I'm not familiar how this works with ansible, but we use the "host" config option in nova.conf to explicitly set the shortname: root@compute002:~# grep -E "^host" /etc/nova/nova-compute.conf host = compute002 Zitat von Danish Khan <danish52.jmi@gmail.com>:
Dear All,
Whenever I do any activity like Operating system upgrade of compute nodes or openstack major version update then the name of compute host gets updated.
I have my compute node with name compute1,2,3.... but after the activity they sometimes become compute1.openstack.local or compute2.mgmt.local.
Due to this I get duplicate resource providers. But only the latest provider works properly. and I had manually unset all the vm from old provider and added then into new provider.
Is there a way I can avoid this? means I don't want my compute nodes to get renamed with domain.
And is there a way I can unset a vm from all provider and heal them automatically instead adding them into new resource proivder?
I tried below docs but the healing part is not working so I go with manual process for all vm which is too time consuming.
https://docs.openstack.org/nova/yoga/admin/troubleshooting/orphaned-allocati...
Regards, Danish Khan