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

Add workflow to cleanup CI clusters #451

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

sjpb
Copy link
Collaborator

@sjpb sjpb commented Oct 15, 2024

CI clusters are deleted if the OpenTofu provisioning fails or the workflow is cancelled, but are left up if the Ansible fails to allow debugging.

This PR adds a workflow nightly to clean up any remaining CI clusters, unless the control node has been tagged with "keep", e.g. using:

openstack server set slurmci-RL9-1374-control --tag keep --os-compute-api-version 2.26

It also amends the deployment/reimage workflow so that it is not triggered by changes to workflows, other than itself.

@sjpb sjpb marked this pull request as ready for review October 15, 2024 11:03
@sjpb sjpb requested a review from a team as a code owner October 15, 2024 11:03
@sjpb sjpb changed the title Add CI to cleanup ci clusters Add workflow to cleanup CI clusters Oct 15, 2024
Copy link
Member

@bertiethorpe bertiethorpe left a comment

Choose a reason for hiding this comment

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

Couple things, but it looks good. Definitely needed

.github/workflows/nightly-cleanup.yml Outdated Show resolved Hide resolved
.github/workflows/nightly-cleanup.yml Outdated Show resolved Hide resolved
Copy link
Member

@bertiethorpe bertiethorpe left a comment

Choose a reason for hiding this comment

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

LGTM

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