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

Eliminate Redundant Tasks in Wazuh Agent Provisioning Role #4770

Merged
merged 6 commits into from
Dec 20, 2023

Conversation

Rebits
Copy link
Member

@Rebits Rebits commented Dec 18, 2023

Related issue
https:/wazuh/wazuh-jenkins/issues/6067

Description

The current state of the Wazuh-agents provisioning is afflicted by a bug where tasks related to the agent role are executed twice. This redundancy is specifically impacting macOS agents, rendering them unconnected.

Updated

  • Removed duplication in Wazuh agents provisioning role

Testing performed

Build: https://ci.wazuh.info/job/Wazuh_QA_environment/829/
Agent Control:

root@ip-172-31-8-14:/home/qa# /var/ossec/bin/agent_control -l

Wazuh agent_control. List of available agents:

   ID: 000, Name: ip-172-31-8-14 (server), IP: 127.0.0.1, Active/Local
   ID: 001, Name: ip-172-31-10-99, IP: any, Active
   ID: 002, Name: ip-172-31-6-36, IP: any, Active
   ID: 003, Name: ip-172-31-7-119.ec2.internal, IP: any, Active
   ID: 004, Name: ip-172-31-12-118.ec2.internal, IP: any, Active
   ID: 005, Name: DESKTOP-AQ2R8SM, IP: any, Active
   ID: 006, Name: macos-1200, IP: any, Active

@Rebits Rebits self-assigned this Dec 18, 2023
Copy link
Contributor

@Deblintrake09 Deblintrake09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@davidjiglesias davidjiglesias merged commit 09b5bf5 into 4.8.0 Dec 20, 2023
3 of 4 checks passed
@davidjiglesias davidjiglesias deleted the fix/6067-macos-agent-init branch December 20, 2023 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants