vmware: search unmanaged instances using hypervisor name#4328
Conversation
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2007 |
|
@blueorangutan test centos7 vmware-67u3 |
|
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
|
Trillian test result (tid-2743)
|
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
70fea3e to
d46b9dc
Compare
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2035 |
|
@rhtyd I have changed base branch as vm import was added in 4.14. Please change the milestone if needed |
|
@shwstppr a Trillian-Jenkins test job (centos7 mgmt + vmware-67u3) has been kicked to run smoke tests |
|
Trillian test result (tid-2807)
|
|
Tests, lgtm |
DaanHoogland
left a comment
There was a problem hiding this comment.
code looks good, not sure if the method rename is making anything more clear but no objections.
Description
VMware code keeps a cache of existing VMs on a hypervisor host using
cloud.vm.internal.nameproperty of the VM. Searching for unmanaged instances/VMs on a host might not return an expected result when this property differs from the actual name of the VM.To reproduce:
cloud.vm.internal.nameand value =Anything different than VM namenameparameter with name of the VMTypes of changes
Screenshots (if appropriate):
How Has This Been Tested?
With API using cmk
VM in vcenter having a different name and custom attribute

cloud.vm.internal.nameBoth listUnmanagedInstance and importUnmanagedInstance