← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1656691] [NEW] There is no way to delete a cell mapping except via DB directly

 

Public bug reported:

We currently provide a few ways to create cell mappings for cells v2 in
nova-manage but we don't have a way to delete a cell mapping in case
there are some created erroneously.

We should provide a nova-manage cell_v2 delete_cell command which allows
deleting an empty cell mapping, it would take a cell uuid argument. If
the cell is not found by uuid we should return an error. If the cell has
mapped hosts or instances then it's not empty and we should return an
error.

Later iterations of the command might allow a --force option to delete
the host/instance mappings so that those could be moved to another cell,
but that would require some more thought.

** Affects: nova
     Importance: Medium
         Status: Confirmed


** Tags: cells nova-manage

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1656691

Title:
  There is no way to delete a cell mapping except via DB directly

Status in OpenStack Compute (nova):
  Confirmed

Bug description:
  We currently provide a few ways to create cell mappings for cells v2
  in nova-manage but we don't have a way to delete a cell mapping in
  case there are some created erroneously.

  We should provide a nova-manage cell_v2 delete_cell command which
  allows deleting an empty cell mapping, it would take a cell uuid
  argument. If the cell is not found by uuid we should return an error.
  If the cell has mapped hosts or instances then it's not empty and we
  should return an error.

  Later iterations of the command might allow a --force option to delete
  the host/instance mappings so that those could be moved to another
  cell, but that would require some more thought.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1656691/+subscriptions


Follow ups