Unable to upgrade nova-compute to 2023.1 due to existing hostname
Bug #2049120 reported by
Jimmy McCrory
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Our hypervisors were all originally registered with their short names.
After upgrading to 2023.1, it looks like nova-compute now relies on libvirt, which provides an FQDN, for the hosts' names and the service fails to start with this error:
Error starting thread.: nova.exception.
Is there any workaround for this or ability to rename existing registered computes to their FQDNs?
To post a comment you must log in.
Hello Jimmy,
Thanks for reporting this issue.
We have introduced a patch in 2023.1 to prevent adding renamed nodes that lead to severe DB inconsistencies.
In your case, the patch is acting as expected, and it protects your db.
So it appears that your compute node name changed between the time it was registered and after the upgrade.
Do you know if something changed regarding node name ?
If yes, can you revert that change ?
If not the proper way is to:
1- stop your compute service.
2- remove this node from the configuration.
3- restart your node that will be registered with it's new name.
I set the ticket status to incomplete, please set it back to new if you need to discuss it further.