Skip to content

Conversation

vyadavmsft
Copy link
Collaborator

No description provided.

@vyadavmsft vyadavmsft reopened this Oct 10, 2025
@vyadavmsft vyadavmsft changed the title Add standard security profile in Hyper-V platform kdump: Replace CvmDisabled with before_case SecurityProfile check Oct 10, 2025
if isinstance(node.os, BSD) or isinstance(node.os, Windows):
raise SkippedException(f"{node.os} is not supported.")
# Skip kdump tests on CVMs (Confidential VMs) as they are not supported
if node.features.is_supported(SecurityProfile):
Copy link
Member

Choose a reason for hiding this comment

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

should it be if not node.features.is_supported(SecurityProfile):?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

node.features.is_supported(SecurityProfile) returns True only when the VM has SecurityProfile features (i.e., it's a CVM/SecureBoot VM), and returns False for regular Standard VMs where SecurityProfile is not present/applicable.

Copy link
Member

Choose a reason for hiding this comment

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

See the if block, the test case should be skipped, if SecurityProfile is not support, instead of SecurityProfile supported, and then skip.

# Skip kdump tests on CVMs (Confidential VMs) as they are not supported
if node.features.is_supported(SecurityProfile):
raise SkippedException(
"Kdump is not supported on Confidential VMs (CVMs). "
Copy link
Member

Choose a reason for hiding this comment

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

Mention about the platform doesn't support security profile.

@squirrelsc
Copy link
Member

@kamalca , please help check if the latest change still support your scenarios.

@vyadavmsft vyadavmsft requested a review from squirrelsc October 13, 2025 21:52
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