[nova] Clean up "building" instances [resolved]

Eugen Block eblock at nde.ag
Wed Feb 22 09:19:36 UTC 2023


Just to close this thread, with the help of Sylvain I updated the  
nova_api database and added the missing cell_id to the pending  
instances:

MariaDB [nova_api]> update instance_mappings set cell_id='3' where  
instance_uuid='0453a7e5-e4f9-419b-ad71-d837a20ef6bb';

The cell_id can be found in the nova_api.cell_mappings table  
(unfortunately not in the output of 'nova-manage cell_v2 list_cells').  
After that I could successfully delete the pending instances.

Thank you for you quick help (especially Sylvain), I appreciate it!

Eugen

Zitat von Dan Smith <dms at danplanet.com>:

>> Thank you. I tried this (didn't produce any output):
>>
>> control01:~ # nova-manage cell_v2 map_instances --cell_uuid
>> 00000000-0000-0000-0000-000000000000
>>
>> But the instance still can't be removed or reset:
>>
>> control01:~ # openstack server delete
>> amphora-0ee32901-0c59-4752-8253-35b66da176ea
>> No server with a name or ID of
>> 'amphora-0ee32901-0c59-4752-8253-35b66da176ea' exists.
>
> Ack, and I see you said that the instance was mentioned in
> instance-mappings anyway in your original post, my mistake.  So perhaps
> it does already have a mapping. Without debug logs and database dumps in
> a bug it'll be hard to really pursue that further.
>
> --Dan






More information about the openstack-discuss mailing list