-
Notifications
You must be signed in to change notification settings - Fork 57
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
Get disk format from template on VMware, fixes bsc#1171349 #1093
Conversation
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.
Tested results
image template VM
-----------------------------------------------------------------------------------------------------------------------------
lcavajani-guestinfo-nothin Thick Provision Lazy Zeroed Thick Provision Lazy Zeroed
lcavajani-guestinfo-nothin-eago Thick Provision Eager Zeroed Thick Provision Lazy Zeroed
Thick provisioned lazy zeroed: Both eagerly_scrub and thin_provisioned should be set to false.
Thick provisioned eager zeroed: eagerly_scrub should be set to true, and thin_provisioned should be set to false.
Thin provisioned: eagerly_scrub should be set to false, and thin_provisioned should be set to true.
lcavajani-guestinfo-nothin got
eagerly_scrub = false
thin_provisioned = false
lcavajani-guestinfo-nothin-eago got
eagerly_scrub = true
thin_provisioned = false
Vmware template default disk type cannot be changed as Ludo already mentioned about the bug. I feel like the VM is Thick Provision Eager Zeroed
the last line of table because it took significantly took more time than layzy_zero or thin provisioning. I think that is because it is scrubbing old data. Anyway this is Terraform's bug as Ludo already mentioned the upstream issue in the bug.
It looks good to me.
I still don't have an answer from upstream regarding This is just to use the exact template size as values for |
This commit makes it possible to inherit the format of a disk from the template, before this, only "Thin provision" templates could be cloned as these are the default terraform values. * Thick Provision Lazy Zeroed (default) * Thick Provision Eager Zeroed * Thin Provision Signed-off-by: lcavajani <lcavajani@suse.com>
This is ready for release. |
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.
Codes have not been changed a lot prior to my previous review.
LGTM
This commit makes it possible to inherit the format of a disk from the template, before this, only "Thin provision" templates could be cloned as these are the default terraform values. * Thick Provision Lazy Zeroed (default) * Thick Provision Eager Zeroed * Thin Provision Signed-off-by: lcavajani <lcavajani@suse.com>
Why is this PR needed?
Fixes https://bugzilla.suse.com/show_bug.cgi?id=1171349
What does this PR do?
This commit makes it possible to inherit the format of a disk from the template, before this, only
"Thin provision" templates could be cloned as these are the default terraform values.
Signed-off-by: lcavajani lcavajani@suse.com
Info for QA
To use Thick Provisoning Lazy Zeroed (default)
Thick Provisoning Lazy Zeroed
as format for the diskTo use Thick Provisoning Eager Zeroed (default)
Thick Provisoning Eager Zeroed
as format for the diskEDIT: I've found out we end up with lazy-zeroed when the size of the disk is changed, which is what we do, I've created an issue upstream: hashicorp/terraform-provider-vsphere#1078
If it's by design and not a bug, I will update the doc
To use Thin Provisoning:
Thin Provisioning
as format for the diskStatus BEFORE applying the patch
It's not possible to use something else as the default Thin provisioning.
Status AFTER applying the patch
It's now possible to use the three formats above.
Docs
SUSE/doc-caasp#796
Merge restrictions
(Please do not edit this)
We are in v4-maintenance phase, so we will restrict what can be merged to prevent unexpected surprises: