-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
VMware: Fix vmware_guest cloning bug #58737
Conversation
@nagonzalez, just so you are aware we have a dedicated Working Group for vmware. |
@nagonzalez Thanks for PR. Could you please add a test case for this change here ? Thanks. |
@Tomorrow9 Could you please review this ? Thanks in advance |
@Akasurde added test case. Tried to follow the existing standard as far as I could tell. Let me know if I need to change or add anything else. |
@nagonzalez Thanks for the tests and fix. @Tomorrow9 Could you please review this ? Thanks. |
|
||
- assert: | ||
that: | ||
- l_clone_template_modify_disks.changed | bool |
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.
You can just do: - l_clone_template_modify_disks is changed
autoselect_datastore: True | ||
template: clone_resize_disks_original | ||
state: poweredoff | ||
register: l_clone_template_modify_disks |
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.
If you've the opportunity, it would be nice to reduce the length of the variable, this will improve the readability a bit.
Hi @Akasurde, sorry for not response in time, I was on vacation last week. |
I have confirmed that this has been fixed as well. |
@realged13 Thanks for confirmation. |
SUMMARY
Fixes #58721, #56861, #55551
VM cloning in 2.8 tries to create new disks even if they already exist in the original template.
ISSUE TYPE
COMPONENT NAME
vmware_guest
ADDITIONAL INFORMATION
This PR adds a conditional check that only creates new virtual devices if they aren't based off an existing disk.