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

core: measure unattached disks #518

Merged
merged 1 commit into from
Aug 1, 2022
Merged

Conversation

bennyz
Copy link
Member

@bennyz bennyz commented Jul 6, 2022

The current check doesn't use measureVolume if the volume is a leaf, but there is no reason to do this if the disk is not attached to a running a VM.

This patch checks if the disk is attached to a running VM before checking if the volume is a leaf to ensure it's measured correctly.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=2104806

@bennyz
Copy link
Member Author

bennyz commented Jul 6, 2022

/ost

@bennyz bennyz marked this pull request as ready for review July 11, 2022 17:02
@bennyz bennyz requested a review from ahadas as a code owner July 11, 2022 17:02
@bennyz
Copy link
Member Author

bennyz commented Jul 11, 2022

/ost

The current check doesn't doesn't use measureVolume if the volume is a
leaf, but there is no reason to do this if the disk is not attached to a
running a VM.

This patch checks if the disk is attached to a running VM before
checking if the volume is a leaf to ensure it's measured correctly.

Bug-Url: https://bugzilla.redhat.com/2104806
Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
@bennyz
Copy link
Member Author

bennyz commented Aug 1, 2022

/ost

@bennyz bennyz merged commit dcc9e37 into oVirt:master Aug 1, 2022
@bennyz bennyz deleted the fix-measure-condition branch August 1, 2022 11:30
Copy link
Member

@ahadas ahadas left a comment

Choose a reason for hiding this comment

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

forgot to post the approval :)

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

3 participants