Open Nils98Ar opened 10 months ago
Maybe creating the file manually inside the nova_compute container could work?
Looks like this issue, yes.
Creating the file manually on the compute node with the output of openstack hypervisor show <compute01 FQDN>-c id -f value
as <ID>
seems to work but I am not sure if it is a good idea:
dragon@compute01:~$ docker exec -itu root nova_compute bash -c "echo -n '<ID>' > /var/lib/nova/compute_id; chown nova:nova /var/lib/nova/compute_id;chmod 644 /var/lib/nova/compute_id"
This does also work if the old docker volume is still there:
dragon@compute01:~$ sudo mv /var/lib/docker/volumes/nova_compute/_data/compute_id <new datadir>/
Propably the same as in https://bugs.launchpad.net/kolla-ansible/+bug/2051011?
Replacing the nova docker volume with a bind mount of the local ssd via
nova_instance_datadir_volume
seems to cause the problem because after that the instance_id file which was present in the docker volume is not created again at the new location and nova_compute refuses to start.Any idea or maybe a workaround?