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

CA-394444: hard_shutdown stuck behind a pending shutdown #5701

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

GabrielBuica
Copy link
Contributor

VM.hard_shutdown does not cancel VM.shutdown operations.

In the case of losing the session during a failed VM.shutdown, we cannot recover with VM.hard_shutdown as it is not in the list of operations that are to be cancelled.
These results in VM hanging until the requests time out.

Moreover, VM.shutdowm is missing from the vm_operation_table resulting in it being incorrectly displayed as (unknown operation).

Add ``shutdown` to the list of operation that `hard_shutdown` can
cancel.

Currently, ``shutdown` is missing from the list of operation that
`hard_shutdown` needs to cancel.

Signed-off-by: Gabriel Buica <danutgabriel.buica@cloud.com>
@edwintorok
Copy link
Contributor

Small typo in the commit message "disply", looks good otherwise, can you fix that and force push?

Adds ``shutdown` to `vm_operation_table`.

`VM.shutdown` operations were displayed as `(unknown operation)`. This
should display the operation correctly in logs and during `xe task-list`.

Signed-off-by: Gabriel Buica <danutgabriel.buica@cloud.com>
Copy link
Member

@psafont psafont left a comment

Choose a reason for hiding this comment

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

hard shutdown cancels a hard shutdown already, so it's safe to cancel a shutdown (which is a soft shutdown before a hard one)

@GabrielBuica
Copy link
Contributor Author

BVT 199847 passed

@edwintorok edwintorok merged commit b3bba59 into xapi-project:master Jun 18, 2024
14 checks passed
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.

None yet

4 participants