wazuh / wazuh-packages

Wazuh - Tools for packages creation
https://wazuh.com
GNU General Public License v2.0
98 stars 89 forks source link

Failed checks on 4.8.0 to 4.8.1 merge #2840

Closed tdrauncieal closed 4 months ago

tdrauncieal commented 4 months ago
Wazuh version Install type Action performed Platform
4.8.1 Manager Install -

Descripcion

As part of the changes necessary to solve the problems detected in the related issue #2818

Error details

All In One - Amazonlinux 2_base - Tests All In One - Rhel 9 - Tests Distributed Cases - manager_dashboard - centos - Tests Distributed Cases - manager_indexer - ubuntu - Tests

DoD

davidcr01 commented 4 months ago

Update Report

Investigation

After a furhter investigation, I encountered the origin of the problem.

The following errors are being reported in the pipeline: https://ci.wazuh.info/job/Test_unattended/5244/consoleFull

15:14:52  wazuh-install.sh: line 3033: /var/ossec/bin/wazuh-keystore: No such file or directory
15:14:52  wazuh-install.sh: line 3034: /var/ossec/bin/wazuh-keystore: No such file or directory
15:14:52  wazuh-install.sh: line 4045: /var/ossec/bin/wazuh-keystore: No such file or directory

It seems that the wazuh-keystore binary is not being executed because it is not included in the packages used in the installation (4.8.1 from staging). This generates the following error in the ossec.log:

Image

That's why the pipeline is failing, specifically the Launch AIO test stage:

15:16:10  E       AssertionError: 2024/02/07 14:14:51 indexer-connnector: ERROR: HTTP response code said error, status code: 401

Conclusion

This is not an error of the pipeline, the pytest or the installation itself. It is a problem of using old packages without the last changes. We are closing this issue as not planned.