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

Fixes #216 - cloning disks thin relocation and storagePod location #217

Merged
merged 1 commit into from
Jul 17, 2019

Conversation

ezr-ondrej
Copy link
Collaborator

@ezr-ondrej ezr-ondrej commented Jul 6, 2019

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.

@ezr-ondrej ezr-ondrej force-pushed the clone_disk_configurations branch 2 times, most recently from 278f92b to 2704a9d Compare July 8, 2019 08:48
@chris1984 chris1984 self-assigned this Jul 8, 2019
Copy link
Collaborator

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Starting to test

@chris1984
Copy link
Collaborator

chris1984 commented Jul 8, 2019

This didn't work :(

Screenshot:

https://nimb.ws/8lwoxQ

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

@ezr-ondrej ezr-ondrej force-pushed the clone_disk_configurations branch from 2704a9d to 387979b Compare July 13, 2019 21:07
@ezr-ondrej
Copy link
Collaborator Author

Ok, I believe I have this figured out :)
Could you spin it for another test @chris1984, please?

@chris1984
Copy link
Collaborator

@ezr-ondrej I am on PTO tomorrow but will check on it Tuesday when I am back online.

@chris1984
Copy link
Collaborator

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

@chris1984
Copy link
Collaborator

This came out of the discussion around this #220 Merging for now since this would be out of the scope of the PR

@chris1984 chris1984 merged commit eb0c3a6 into fog:master Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to build a vm using an image and adding a 2nd disk in the same datastore cluster with Foreman nightly
2 participants