wazuh / wazuh-qa

Wazuh - Quality Assurance
GNU General Public License v2.0
60 stars 30 forks source link

Fix allocation bug instance connection error #5274

Closed c-bordon closed 2 weeks ago

c-bordon commented 2 weeks ago

close: https://github.com/wazuh/wazuh-qa/issues/5198

A connectivity validation method is created after provisioning, this validation is carried out through SSH or WINRM depending on the system. When the module finishes executing it is because the machine is provisioned and has connectivity, therefore, it is ready to use.

Several tests were carried out and they were used to correct some errors in the Windows userData and the general Windows configuration. As well as in the process of eliminating Windows instances.

The validation process has an automatic rollback, that is, if after 15 retries with a time between attempts of 60 seconds the instance does not connect, a rollback is automatically performed and the instance is deleted. This rollback can be disabled with the --rollback argument set to False

Related

Retry of: https://github.com/wazuh/wazuh-qa/pull/5216

Testing

Test with rollback: https://github.com/wazuh/wazuh-qa/issues/5198#issuecomment-2050395211

Test without rollback: https://github.com/wazuh/wazuh-qa/issues/5198#issuecomment-2050417597

Test PowerPC: https://github.com/wazuh/wazuh-qa/issues/5198#issuecomment-2051726180

Test macOS Intel: https://github.com/wazuh/wazuh-qa/issues/5198#issuecomment-2051734812

Test macOS ARM: https://github.com/wazuh/wazuh-qa/issues/5198#issuecomment-2051739457

Test Linux: https://github.com/wazuh/wazuh-qa/issues/5198#issuecomment-2049905998

Test Windows Server 2012 R2: https://github.com/wazuh/wazuh-qa/issues/5198#issuecomment-2057469403

Test Windows Server 2016: https://github.com/wazuh/wazuh-qa/issues/5198#issuecomment-2057470166

Test Windows Server 2019: https://github.com/wazuh/wazuh-qa/issues/5198#issuecomment-2057470775

Test Windows Server 2022: https://github.com/wazuh/wazuh-qa/issues/5198#issuecomment-2057473484

Test Windows desktop 10: https://github.com/wazuh/wazuh-qa/issues/5198#issuecomment-2057526642

Test Windows desktop 11: https://github.com/wazuh/wazuh-qa/issues/5198#issuecomment-2057674244