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

The macOS agent is not in the same time zone as the node #5175

Closed
3 tasks done
Tracked by #5183
juliamagan opened this issue Apr 3, 2024 · 1 comment · Fixed by #5178
Closed
3 tasks done
Tracked by #5183

The macOS agent is not in the same time zone as the node #5175

juliamagan opened this issue Apr 3, 2024 · 1 comment · Fixed by #5178
Assignees
Labels

Comments

@juliamagan
Copy link
Member

juliamagan commented Apr 3, 2024

Description

During the execution of the tests to check that the development of #5108 was correct, it was seen that the macOS agent is not in the same time zone as the node, so the test fails because it uses greater_than_timestamp to filter the logs.

Failure:

TimeoutError: Element not found: {'regex': '(\\d{4}\\/\\d{2}\\/\\d{2} \\d{2}:\\d{2}:\\d{2}) .*? INFO: Starting evaluation', 'file': '/Library/Ossec/logs/ossec.log', 'timeout': 90, 'n_iterations': 1, 'greater_than_timestamp': '2024-04-02T13:44:04.985046'}

Agent logs:

2024/04/02 06:47:22 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2024/04/02 06:47:26 wazuh-modulesd:syscollector: INFO: Evaluation finished.
2024/04/02 06:49:27 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2024/04/02 06:49:32 wazuh-modulesd:syscollector: INFO: Evaluation finished.

Tasks

  • Change the vagrant time and check that it is maintained
  • Create a session fixture that performs this change
  • Check that tests pass as expected
@wazuhci wazuhci moved this to Backlog in Release 4.8.0 Apr 3, 2024
@juliamagan juliamagan self-assigned this Apr 4, 2024
@wazuhci wazuhci moved this from Backlog to In progress in Release 4.8.0 Apr 4, 2024
@wazuhci wazuhci moved this from In progress to On hold in Release 4.8.0 Apr 4, 2024
@wazuhci wazuhci moved this from On hold to In progress in Release 4.8.0 Apr 4, 2024
@juliamagan juliamagan linked a pull request Apr 4, 2024 that will close this issue
@Rebits
Copy link
Member

Rebits commented Apr 4, 2024

This problem is also present in Windows nodes. We can solve it through fixtures using the following command:

Set-TimeZone -Id "UTC"

@wazuhci wazuhci moved this from In progress to Pending review in Release 4.8.0 Apr 5, 2024
@wazuhci wazuhci moved this from Pending review to Pending final review in Release 4.8.0 Apr 5, 2024
@wazuhci wazuhci moved this from Pending final review to Done in Release 4.8.0 Apr 5, 2024
@juliamagan juliamagan linked a pull request Apr 5, 2024 that will close this issue
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