-
Notifications
You must be signed in to change notification settings - Fork 32
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
Take image virtual size into account when creating Volumes #1113
Take image virtual size into account when creating Volumes #1113
Conversation
Wait, I've just discovered this isn't quite right -- it's now effectively impossible to manually edit the size once an image is chosen (I think because everything calls |
5979a7d
to
3ee5fbd
Compare
OK, that seems to have done the trick... If there's a better way to structure anything here, please LMK. |
Sorry, not sure if I misunderstand this PR purpose, we want to pre-fill the Does this PR need specific backend change or master-head is enough ? It's not work as expected when test locally. bug.mov |
Yep, it's meant to pre-fill the
It should work fine provided your backend harvester cluster is v1.4 or master -- looking at the version in the video, it seems you're on v1.3.1, which doesn't support virtual size... But even in that case I would have expected it to at least fill the field with the physical size of the image -- |
This patch contains some more improvements. You can make use of the already fetched images (see the
|
It might be best to just stay with an integer value - I could be wrong, but I don't think we allow decimals anywhere in any size fields, it's all just whole GiB. |
3ee5fbd
to
cd9d633
Compare
This is a followup to harvester#1104 When creating new volumes on the Volume screen in Harvester, the default size is empty, i.e. it's not pre-filled with anything at all. If the source is set to "VM image" we can now take the image virtual size and use that as the default size for the volume. Unlike when creating VMs (which always set the volume to a minimum of 10GiB regardless of virtual size, for consistency with earlier harvester versions), on this screen we just use the virtual size as-is. If the user wants to make it bigger, they can. Related issue: harvester/harvester#4905 Signed-off-by: Tim Serong <tserong@suse.com> Co-authored-by: Volker Theile <vtheile@suse.com>
cd9d633
to
3778552
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember to backport v1.4 after merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Mergifyio backport release-harvester-v1.4 |
✅ Backports have been created
|
This is a followup to #1104
When creating new volumes on the Volume screen in Harvester, the default size is empty, i.e. it's not pre-filled with anything at all. If the source is set to "VM image" we can now take the image virtual size and use that as the default size for the volume. Unlike when creating VMs (which always set the volume to a minimum of 10GiB regardless of virtual size, for consistency with earlier harvester versions), on this screen we just use the virtual size as-is. If the user wants to make it bigger, they can.
Related issue: harvester/harvester#4905