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

Log successful cluster deletions #3934

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ventifus
Copy link
Collaborator

Which issue this PR addresses:

Fixes https://issues.redhat.com/browse/ARO-11772

What this PR does / why we need it:

Currently we don't log the completion of successful cluster deletions. That's because the logs (and other metrics) get emitted by endLease(), and the lease doesn't get released for deletions because the cluster doc gets deleted instead.

Moves the logging and metrics functions to a emitTerminalMetrics() function that can be called directly at the end of the deletion operation.

Test plan for issue:

E2E will exercise this as part of cluster creation and deletion. Check that the appropriate "long running operation succeeded" log is emitted for cluster creation. Check that "long running operation succeeded" now gets logged on deletion.

Is there any documentation that needs to be updated for this PR?

How do you know this will function as expected in production?

@ventifus
Copy link
Collaborator Author

/azp run ci,e2e

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@ventifus
Copy link
Collaborator Author

ventifus commented Nov 1, 2024

In the e2e logs for deletion, it does not appear to delete via backend operation, so it's not testing this change.

@github-actions github-actions bot added the needs-rebase branch needs a rebase label Nov 14, 2024
Copy link

Please rebase pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase branch needs a rebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants