← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1725331] [NEW] 'nova-manage cell_v2 delete_cell' fails even if all instances have been deleted in the cell

 

Public bug reported:

Description
===========

The following command fails with the following message even if all
instances have been deleted in the cell.

Command:
nova-manage cell_v2 delete_cell --cell_uuid f166159e-9111-4c09-ac9a-74e016c6b1e2 --force

Message:
There are existing instances mapped to cell with uuid f166159e-9111-4c09-ac9a-74e016c6b1e2.

Steps to reproduce
==================

1. Create a server(instance)

openstack server create --flavor 1 --image 69ff03db-312a-406e-
bb49-7303c206590f server1

2. Delete a server(instance)

openstack server delete server1

All instances have been deleted in the cell.

3. Delete a cell that the server(instance) existed.

nova-manage cell_v2 delete_cell --cell_uuid f166159e-9111-4c09-ac9a-
74e016c6b1e2 --force

The command fails with the following message:
There are existing instances mapped to cell with uuid f166159e-9111-4c09-ac9a-74e016c6b1e2.

It is difficult to understand why the command fails even if all
instances have been deleted in the cell.

Expected result
===============

If all instances have been deleted in the cell, the command succeeds
with deleting instance mappings or show warning to delete the records in
the instance_mappings table.

Actual result
=============

The command fails with the following message.

There are existing instances mapped to cell with uuid f166159e-9111-4c09
-ac9a-74e016c6b1e2.

Environment
===========
nova master(commit 8d21d711000fff80eb367692b157d09b6532923f)
OS: Ubuntu 16.04.3 LTS

** Affects: nova
     Importance: Undecided
     Assignee: Takashi NATSUME (natsume-takashi)
         Status: New


** Tags: cells

-- 
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/1725331

Title:
  'nova-manage cell_v2 delete_cell' fails even if all instances have
  been deleted in the cell

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========

  The following command fails with the following message even if all
  instances have been deleted in the cell.

  Command:
  nova-manage cell_v2 delete_cell --cell_uuid f166159e-9111-4c09-ac9a-74e016c6b1e2 --force

  Message:
  There are existing instances mapped to cell with uuid f166159e-9111-4c09-ac9a-74e016c6b1e2.

  Steps to reproduce
  ==================

  1. Create a server(instance)

  openstack server create --flavor 1 --image 69ff03db-312a-406e-
  bb49-7303c206590f server1

  2. Delete a server(instance)

  openstack server delete server1

  All instances have been deleted in the cell.

  3. Delete a cell that the server(instance) existed.

  nova-manage cell_v2 delete_cell --cell_uuid f166159e-9111-4c09-ac9a-
  74e016c6b1e2 --force

  The command fails with the following message:
  There are existing instances mapped to cell with uuid f166159e-9111-4c09-ac9a-74e016c6b1e2.

  It is difficult to understand why the command fails even if all
  instances have been deleted in the cell.

  Expected result
  ===============

  If all instances have been deleted in the cell, the command succeeds
  with deleting instance mappings or show warning to delete the records
  in the instance_mappings table.

  Actual result
  =============

  The command fails with the following message.

  There are existing instances mapped to cell with uuid
  f166159e-9111-4c09-ac9a-74e016c6b1e2.

  Environment
  ===========
  nova master(commit 8d21d711000fff80eb367692b157d09b6532923f)
  OS: Ubuntu 16.04.3 LTS

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


Follow ups