Bug #22723
closedChanging name of datacenter in vCenter will break Compute Resource
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1440711
Description of problem:
If the name of the datacenter that is chosen for a VMware Compute Resource is changed in the vCenter, Foreman gives error messages when trying to access e.g. the Virtual Machines tab on the Compute Resource or trying to edit a host that is provisioned with that Compute Resource.
How reproducible:
Every time
Steps to Reproduce:
1. Create a new Compute Resource
2. Choose Provider: VMware
3. Add server address, username and password
4. Click on Load Datacenter and choose a datacenter you want to use
5. Save
6. Open the Compute Resource in the Foreman GUI and click the Virtual Machines tab to make sure that you can list the vms in that datacenter
7. Go to vCenter and change name of the datacenter you chose in step 4
8. Go back to Foreman and try to list all Virtual Machines again (this will generate the error message)
9. If you have a host in Foreman that is created on that Compute Resource, open it in the GUI and click Edit (this will also generate error message)
Actual results:
The Compute Resource won't function until you change back to the old datacenter name.
Expected results:
It should be possible to change the name of the datacenter without breaking Foreman usage.
Additional info:
Unfortunately I don't have the error messages or logs available at this point, but it should be simple to reproduce.
Updated by Ondřej Ezr over 3 years ago
- Related to Bug #32792: Compute profile references wrong datacenter path after changing datacenter name added
Updated by Ondřej Ezr over 3 years ago
- Subject changed from Changing name of datacenter in vCenter will break Compute Resource to Changing name of datacenter in vCenter will break Compute Resource
I don't think we should do anything about this.
If datacenter name is changed, you need to change it in Compute Resource, it sounds reasonable to me.
I believe we should fix #32792 tho.