one
one copied to clipboard
vcenter find_by_ref changes (RESOURCE DEPENDANT)
Bug Report
Version of OpenNebula
- [ ] 5.2.2
- [ ] 5.4.0
- [ ] 5.4.1
- [ ] 5.4.2
- [x] 5.4.3
- [x] Development build
Component
- [ ] Authorization (LDAP, x509 certs...)
- [ ] Command Line Interface (CLI)
- [ ] Contextualization
- [ ] Documentation
- [ ] Federation and HA
- [ ] Host, Clusters and Monitorization
- [ ] KVM
- [ ] Networking
- [ ] Orchestration (OpenNebula Flow)
- [ ] Packages
- [ ] Scheduler
- [ ] Storage & Images
- [ ] Sunstone
- [ ] Upgrades
- [ ] User, Groups, VDCs and ACL
- [x] vCenter
Description
We have collisions problems regarding, vcenter key references. Example:
One opennebula installation pointing to more than 1 vcenter instances. vcenter_ref key can collide between the two instances of vcenter (normal behaviour), opennebula will not see properly these objects due the main method find_by_ref
Expected Behavior
find by ref should take account of these kind of problems, knowing that it is possible to have more than 1 xpath for the finding operation.
Actual Behavior
vcenter driver does not differenciate between objects located in differents vcenter_instances.
How to reproduce
Import Resources to more than 1 vcenter instances.
related to #1598