Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wodles/gcloud/exceptions.py to packages SPECS #1316

Closed
3 tasks done
noise-kngdm opened this issue Mar 9, 2022 · 2 comments · Fixed by #1384
Closed
3 tasks done

Add wodles/gcloud/exceptions.py to packages SPECS #1316

noise-kngdm opened this issue Mar 9, 2022 · 2 comments · Fixed by #1384
Assignees
Labels
Milestone

Comments

@noise-kngdm
Copy link
Contributor

noise-kngdm commented Mar 9, 2022

Wazuh version Install type Action performed Platform
4.4 Manager & Agent Install/Upgrade/Remove OS version

Description

While working on wazuh/wazuh#12140, we added a new file, wodles/gcloud/exceptions.py. It is necessary to update the SPECS of all the packages affected by the change to make the module as portable as possible.

Tasks

  • Investigate all the packages affected
  • Update wazuh-packages/solaris/solaris11/SPECS/template_agent_v4.4.0.json
  • Test the updated packages
@noise-kngdm
Copy link
Contributor Author

noise-kngdm commented Mar 22, 2022

Issue update

We added the wodles/gcloud/exceptions.py file to the Solaris 11 SPECS file, however, we realized that the changes added in #1126 aren't available yet. We are working on that issue and will submit a PR with the changes once we are able to appropriately test the package.

@noise-kngdm
Copy link
Contributor Author

Issue update

We tested the modified packages by creating a Solaris11 package and installing it in a Solaris11 machine. Everything worked as expected, as can be seen in the following output:

Package installation and file permissions in Solaris11
root@solaris11:/tmp# pkg install -g ./wazuh-agent_v4.4.0-sol11-i386.p5p wazuh-agent
		   Packages to install:  1
			Services to change:  1
	   Create boot environment: No
Create backup boot environment: No

DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                                1/1         94/94      5.8/5.8 98.9M/s

PHASE                                          ITEMS
Installing new actions                       147/147
Updating package state database                 Done 
Updating package cache                           0/0 
Updating image state                            Done 
Creating fast lookup database                   Done 
Updating package cache                           2/2 

root@solaris11:/tmp# ls -l /var/ossec/wodles/gcloud/
total 47
drwxr-x---   2 root     wazuh          4 Mar 23 18:22 buckets
-rwxr-x---   1 root     wazuh       4453 Mar 23 18:22 exceptions.py
-rwxr-x---   1 root     wazuh       4673 Mar 23 18:22 gcloud
-rwxr-x---   1 root     wazuh       2887 Mar 23 18:22 integration.py
drwxr-x---   2 root     wazuh          3 Mar 23 18:22 pubsub
-rwxr-x---   1 root     wazuh       5638 Mar 23 18:22 tools.py
Package uninstalling in Solaris11
root@solaris11:/tmp# pkg uninstall wazuh-agent
			Packages to remove:  1
			Services to change:  1
	   Create boot environment: No
Create backup boot environment: No

PHASE                                          ITEMS
Removing old actions                         191/191
Updating package state database                 Done 
Updating package cache                           1/1 
Updating image state                            Done 
Creating fast lookup database                   Done 
Updating package cache                           2/2 

We will open a PR with the changes as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants