Redeploying an existing hypervisor with the same hostname results in nova-compute startup error

Bug #2051011 reported by Pierre Riteau
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
kolla-ansible
New
Undecided
Unassigned

Bug Description

Starting with 2023.1, there were changes to the Nova compute node identification process: https://docs.openstack.org/nova/latest/admin/compute-node-identification.html

If a hypervisor is redeployed after wiping its nova_compute Docker volume and the hostname is kept the same, the nova_compute container will fail to start with the following error:

    nova.exception.InvalidConfiguration: No local node identity found, but this is not our first startup on this host. Refusing to start after potentially having lost that state!

Kolla Ansible needs support for injecting the compute node UUID into the /var/lib/nova/compute_id file.

Revision history for this message
Matt Crees (mattcrees) wrote :

Workaround for now:

Find the id from the database:

``select uuid from compute_nodes where hypervisor_hostname='<hostname>';``

Add this to a file under ``/mnt/nova/compute_id`` where ``/mnt/nova/`` is mounted as ``/var/lib/nova`` in the nova-compute container.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.