'nova-manage cell_v2 delete_cell' fails even if all instances have been deleted in the cell
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Takashi Natsume |
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-
Message:
There are existing instances mapped to cell with uuid f166159e-
Steps to reproduce
==================
1. Create a server(instance)
openstack server create --flavor 1 --image 69ff03db-
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-
The command fails with the following message:
There are existing instances mapped to cell with uuid f166159e-
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-
Environment
===========
nova master(commit 8d21d711000fff8
OS: Ubuntu 16.04.3 LTS
Fix proposed to branch: master /review. openstack. org/513771
Review: https:/