[NOVA] There is no method to delete non-empty cells or "cell mappings".

Bug #1683730 reported by Saurabh jangir
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Undecided
Unassigned

Bug Description

We have several method to create cells and mapping cell with hosts, database and message queue but there's no method to delete the non-empty cells in nova.
We can delete the empty cells through "nova-manage cell_v2 delete_cell --cell_uuid <cell_uuid>". But if cell is mapped to hosts, we don't have any CLI or method to delete that cell because to delete any cell we first need to remove its mapping with hosts.
For it to be resolved first we need a method to delete cell mappings.

description: updated
summary: - [NOVA] There is no method to delete cell mapping.
+ [NOVA] There is no method to delete non-empty cells.
wangxiyuan (wangxiyuan)
affects: cinder → nova
description: updated
summary: - [NOVA] There is no method to delete non-empty cells.
+ [NOVA] There is no method to delete non-empty cells or "cell mappings".
Revision history for this message
jichenjc (jichenjc) wrote :

this looks like a reuqiremnets, not a bug, what kind of use case to delete a cell mapping or non-empty cell? remove host from cell?

Revision history for this message
Saurabh jangir (sjopenstack) wrote :

@jichenjic to delete a non-empty cell we need to delete its mapping to hosts/instance first. Which actually means that we need to remove hosts from cell. then only we can delete any cell.

One thing can be done here. We have a CLI to delete an empty cell - "nova-manage cell_v2 delete_cell --cell_uuid <cell_uuid>". we can append "-f" or "--force" to that existing command to first delete all the mappings and then removing cells.

Revision history for this message
jichenjc (jichenjc) wrote :

thanks for the detailed info, maybe that's an use case that I am can't image, maybe we need delete an cell and create a new one then make all hosts to the new cell? anyway I think it's a requirements other than a bug...

Revision history for this message
Saurabh jangir (sjopenstack) wrote :

~jichenjc I found a same bug reported earlier. Pls have a look @ https://bugs.launchpad.net/nova/+bug/1656691.

Changed in nova:
status: New → Confirmed
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.