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

Fix VM Provision datastore location class #911

Merged

Conversation

agrare
Copy link
Member

@agrare agrare commented May 21, 2024

When building the VirtualMachineRelocateSpec the datastore property is a ManagedObjectReference to a Datastore. We were setting the value to a simple String rather than a VimString with the proper xsiType/vimType.

This would have broken when we moved from having VimString in ems_ref as a serialized yaml column and added ems_ref_obj.

This causes the clone to fail when using a vcsim (https://github.com/vmware/govmomi/tree/main/vcsim)

Depends on:

@agrare agrare added the bug label May 21, 2024
@agrare agrare requested a review from Fryguy as a code owner May 21, 2024 14:44
@agrare agrare requested a review from kbrock May 21, 2024 14:44
@agrare
Copy link
Member Author

agrare commented May 21, 2024

NOTE this is failing because the storage_vmware factory doesn't have the proper class set so we don't have the ems_ref_obj method defined.

When building the `VirtualMachineRelocateSpec` the `datastore` property
is a `ManagedObjectReference` to a `Datastore`.  We were setting the
value to a simple `String` rather than a `VimString` with the proper
`xsiType`/`vimType`.

This would have broken when we moved from having VimString in ems_ref as
a serialized yaml column and added ems_ref_obj.
@agrare agrare force-pushed the fix_vm_provision_spec_location_datastore_class branch from b13d024 to b8e8f34 Compare May 21, 2024 18:19
@miq-bot
Copy link
Member

miq-bot commented May 21, 2024

Checked commit agrare@b8e8f34 with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint
2 files checked, 0 offenses detected
Everything looks fine. 👍

@Fryguy Fryguy closed this May 21, 2024
@Fryguy Fryguy reopened this May 21, 2024
@Fryguy Fryguy merged commit 9bd1ef1 into ManageIQ:master May 21, 2024
4 of 6 checks passed
@Fryguy Fryguy self-assigned this May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants