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

Cleanup old zaza models #258

Closed

Conversation

dnegreira
Copy link
Collaborator

It can happen that when running the functests that the zaza model stays behind, either by cancelling the script or if the script has an error.

This patch adds a cleanup check to verify if there are old zaza-* models before proceeding to run the functests.

It can happen that when running the functests that the zaza model stays
behind, either by cancelling the script or if the script has an error.

This patch adds a cleanup check to verify if there are old zaza-* models
before proceeding to run the functests.

Signed-off-by: David Negreira <[email protected]>
@@ -110,6 +110,15 @@ done
# Install dependencies
which yq &>/dev/null || sudo snap install yq

# Cleanup zaza-* models before proceeding
OLD_ZAZA_MODELS=$(juju list-models| grep -E "^zaza-\S+"|tr -d '*')
if [ -n "${OLD_ZAZA_MODELS}" ]; then
Copy link
Member

Choose a reason for hiding this comment

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

there is a helper function to do this now - https://github.com/canonical/stsstack-bundles/blob/main/openstack/tools/func_test_tools/common.sh#L1

it is already being run before and after a test run, do we really need to do it again here?

Copy link
Member

Choose a reason for hiding this comment

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

see f0a3097

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

well, this was not there when I wrote it yesterday, so I guess this PR can be dropped

@dnegreira dnegreira closed this Oct 2, 2024
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