ScaleComputing / HyperCoreAnsibleCollection

Official Ansible collection for Scale Computing SC//HyperCore (HC3) v1 API
GNU General Public License v3.0
12 stars 8 forks source link

Small fixes #266

Closed justinc1 closed 9 months ago

justinc1 commented 9 months ago

Only small fixes. The debug HTTP request logging can be enabled with SC_DEBUG_LOG_TRAFFIC=1 environ variable. The code crashed if request timed out, as we wanted to log HTTP response, but variable was not set.

The CI test need to expect 9.2.17.211525 as available update (HyperCore version upgrade).

The cleanup on SMB server is modified to run even if tests fail. The cleanup will remove all files not from current month (before: not from current day). This cloud interfere with tests on first/last day of month, but in practice we should not have a problem as the cleanup will be scheduled before tests.

Similar for DR target cluster, we will remove all VMs older that 2 days. Should not interfere with tests at all. Here we remove all old replicated VMs with tag "Xlab" (before tag Xlab and CI was needed; but we forgot to include "CI" string in some tests, so VMs were not removed).