Skip to content

CA-411477: Fix SM API version check failure #6552

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

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

Conversation

BengangY
Copy link
Contributor

When shutdown a VM, xapi will check SM API version to decide if to call post_deactivate_hook. But if the SR has already been unplugged, the checking will fail.

Solution:
Check if the plugin of the SR still exists. If not, skip the SM API checking.

@BengangY BengangY force-pushed the private/bengangy/CA-411477 branch from 8ccb08f to 196b5f4 Compare June 24, 2025 14:37
When shutdown a VM, xapi will check SM API version to decide if to
call `post_deactivate_hook`. But if the SR has already been unplugged,
the checking will fail.

Solution:
Check if the dp of the SR still exists. If not, skip the SM API
checking.

Signed-off-by: Bengang Yuan <[email protected]>
@BengangY BengangY force-pushed the private/bengangy/CA-411477 branch from 196b5f4 to ec612ae Compare June 25, 2025 09:40
@BengangY BengangY requested a review from snwoods June 25, 2025 09:42
@BengangY
Copy link
Contributor Author

I changed the solution as there is another function of_sr also can raise this exception.
It used to call Storage.dp_destroy and Storage_mux.destory which checks read dp first.
I use the same way with previous one.

@BengangY BengangY marked this pull request as ready for review June 26, 2025 01:12
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.

3 participants