Hi,
We have this scenario:
- VM running Centos-7
- VM running Oracle-8
Then, we shutdown and delete Centos-7 VM (verified by API and UI)
Then, we rename Oracle-8 VM (via API) to have the name of the old Centos-7 VM and then
stop/start Oracle-8 VM.
Rename is working and VM is coming up (status is "up" from API and also in the
UI).
The problem is that Oracle-8 VM is not really up. it is hanging. not replying to PING nor
to SSH.
Seems like the root cause is this:
- Oracle-8 VM name is indeed Centos-7 VM. but its FQDN (seen in UI) is still its Original
name.
- So when getting both Centos-7 VM name and Oracle-8 VM name status, I get an answer (via
API) about both of them:
Both reply with "up"
I'm using a simple API to rename the VM as followed (vm_name is Oracle-8 VM name, and
new_name is Centos-7 VM name):
vm_id_obj = self.get_vm_id(vm_name)
updated_vm = vm_id_obj.update(
vm=types.Vm(
name=new_name
)
)
Thanks,
Lavi