A cell cannot be deleted once a host is added to the cell
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Takashi Natsume | ||
Ocata |
Fix Committed
|
Medium
|
Takashi Natsume | ||
Pike |
Fix Committed
|
Medium
|
Takashi Natsume |
Bug Description
Description
===========
In cell v2 environment, once a host is added to a cell,
the cell cannot be deleted even though the cell does not have any hosts.
Steps to reproduce
==================
In cell v2 environment, a cell to delete has only one compute host.
1. Delete the nova-compute service
> nova service-delete db8e01f5-
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.
2. Delete the cell
> nova-manage cell_v2 delete_cell --cell_uuid 0fcd92ba-
There are existing hosts mapped to cell with uuid 0fcd92ba-
The command fails with the message above.
It is caused because the host record remains in the 'host_mappings' table of api database.
But there is no ways to delete the host record in the 'host_mappings' table.
Expected result
===============
The cell can be deleted if the cell does not have any hosts.
Or we should have the way to delete the host from the cell.
Actual result
=============
The cell cannot be deleted even though the cell does not have any hosts.
(We don't have the way to delete the host from the cell.)
Environment
===========
OS: Ubuntu 16.04.2 LTS
nova master(commit 8ca24bf1ff80f39
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/510324
Review: https:/