-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fixes #216 - cloning disks thin relocation and storagePod location #217
Conversation
278f92b
to
2704a9d
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.
Starting to test
This didn't work :( Screenshot: Traceback: Failed to create a compute VMware (VMware) instance molly-
stewart.toledo.satellite.lab.eng.rdu2.redhat.com:
InvalidRequest: Required property diskId is missing from data object of type PodDiskLocator while parsing serialized DataObject of type vim.storageDrs.PodSelectionSpec.DiskLocator at line 1, column 550 while parsing property "disk" of static type ArrayOfPodDiskLocator while parsing serialized DataObject of type vim.storageDrs.PodSelectionSpec.VmPodConfig at line 1, column 445 while parsing property "initialVmConfig" of static type ArrayOfVmPodConfigForPlacement while parsing serialized DataObject of type vim.storageDrs.PodSelectionSpec at line 1, column 389 while parsing property "podSelectionSpec" of static type StorageDrsPodSelectionSpec while parsing serialized DataObject of type vim.storageDrs.StoragePlacementSpec at line 1, column 283 while parsing call information for method RecommendDatastores at line 1, column 177 while parsing SOAP body at line 1, column 167 while parsing SOAP envelope at line 1, column 0 while parsing HTTP request for method recommendDatastores on object of type vim.StorageResourceManager at line 1, column 0 |
2704a9d
to
387979b
Compare
Ok, I believe I have this figured out :) |
@ezr-ondrej I am on PTO tomorrow but will check on it Tuesday when I am back online. |
Works great @ezr-ondrej feel free to merge and we can get a new release out once #219 is merged. Image:
----------------------------------------------------------------------------------
VM creation with single HDD on Local Datastore - Passed
VM creation with added HDD on Local Datastore - Passed
VM creation with single HDD on Storage Pod - Passed
VM creation with added HDD on same Storage Pod - Passed
VM creation with added HDD on different Storage Pod - Passed |
This came out of the discussion around this #220 Merging for now since this would be out of the scope of the PR |
Fixes #216 and allows specifying the thin provisioning for cloned VMs from templates.
The main change is in the new disks being added in separate task after the machine is cloned.
The drawback is, that now it is not an atomic action, so if adding the disk fails for some reason, the machine stays in the vcenter.