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: always update volume size when creating a new image #267

Merged
merged 2 commits into from May 19, 2022

Conversation

bennyz
Copy link
Member

@bennyz bennyz commented Apr 13, 2022

Vdsm often aligns the size of the volume when creating, and the volume
will end up having a different size in the engine than what is on the
storage. This is already handled when a new disk is created but not when
a new snapshot is created.

Since there is already a getVolumeInfo request at the end of snapshot
creation, we can use this opportunity to update the size of the volume
as well.

Bug-Url: https://bugzilla.redhat.com/1852308

@bennyz bennyz added the storage label Apr 13, 2022
@bennyz
Copy link
Member Author

bennyz commented Apr 13, 2022

/ost

1 similar comment
@bennyz
Copy link
Member Author

bennyz commented Apr 13, 2022

/ost

Since we have the disk_content_type field we can use it to distinguish
between the two memory related disks instead of checking the size.

Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
@bennyz
Copy link
Member Author

bennyz commented May 17, 2022

/ost

Vdsm often aligns the size of the volume when creating, and the volume
will end up having a different size in the engine than what is on the
storage. This is already handled when a new disk is created but not when
a new snapshot is created.

Since there is already a getVolumeInfo request at the end of snapshot
creation, we can use this opportunity to update the size of the volume
as well.

Bug-Url: https://bugzilla.redhat.com/1852308
Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
@bennyz bennyz marked this pull request as ready for review May 17, 2022 15:28
@ahadas
Copy link
Member

ahadas commented May 18, 2022

/ost

1 similar comment
@bennyz
Copy link
Member Author

bennyz commented May 18, 2022

/ost

@ahadas ahadas merged commit ed764b4 into oVirt:master May 19, 2022
@bennyz bennyz deleted the fix-volume-size branch June 6, 2022 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants