[openstack-dev] [nova] A way to delete a record in 'host_mappings' table

Takashi Natsume natsume.takashi at lab.ntt.co.jp
Tue Oct 3 06:59:05 UTC 2017

Hi. Nova developers.

In cell v2 environment, when deleting a host (compute node) by 'nova 
the records are soft deleted in the 'services' table and the 
'compute_nodes' table of the cell database.

But the record in 'host_mappings' table of api database is not deleted
(I tried it with nova master 8ca24bf1ff80f39b14726aca22b5cf52603ea5a0).
The cell cannot be deleted if the records for the cell remains in 
'host_mappings' table.
(An error occurs with a message "There are existing hosts mapped to cell 
with uuid ...".)

Are there any ways (CLI, API) to delete the host record in 
'host_mappings' table?
I couldn't find it.

Takashi Natsume
NTT Software Innovation Center
E-mail: natsume.takashi at lab.ntt.co.jp

More information about the OpenStack-dev mailing list