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

Small fixes #266

Merged
merged 4 commits into from
Sep 27, 2023
Merged

Small fixes #266

merged 4 commits into from
Sep 27, 2023

Conversation

justinc1
Copy link
Collaborator

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).

If exception occurred (timeout to HyperCore cluster), resp was not defined
and code crashed.
Also, q() cannot be called with kwargs syntax (`exception=ex`).

Signed-off-by: Justin Cinkelj <[email protected]>
The https://10.5.11.201 was not yet updated to 9.2.22.212325,
upgrade is available for it too.

Signed-off-by: Justin Cinkelj <[email protected]>
CI tests were creating VMs with tag Xlab, but without tag CI.

Also, remove only VMs older that N days (N=2). Then we can run cleanup
in parallel with the tests.

Signed-off-by: Justin Cinkelj <[email protected]>
Now we can run cleanup in parallel with SMB import/export tests.
Problem could happen near 30/31/1 of month.

Signed-off-by: Justin Cinkelj <[email protected]>
Copy link
Collaborator

@domendobnikar domendobnikar left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@justinc1 justinc1 merged commit 921478d into main Sep 27, 2023
23 checks passed
@justinc1 justinc1 deleted the small-fixes branch September 27, 2023 09:34
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.

2 participants