Extending delete_cell --force to delete instance_mappings

Bug #1745375 reported by Surya Seetharaman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Wishlist
Surya Seetharaman

Bug Description

Currently the nova-manage delete_cell command with the --force option allows us to destroy hosts_mappings of the cell which does not have any instances or instance_mappings. It would be nice for this command with the --force option to be extended for destroying instance_mappings of the cell which is to be deleted

Changed in nova:
assignee: nobody → Surya Seetharaman (tssurya)
tags: added: cells nova-manage
removed: cell
Revision history for this message
Surya Seetharaman (tssurya) wrote :

This is proposed following the discussion in the Nova CellV2 meeting on 24th Jan 2018 - http://eavesdrop.openstack.org/meetings/nova_cells/2018/nova_cells.2018-01-24-21.00.log.html#l-121

description: updated
Matt Riedemann (mriedem)
Changed in nova:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/540073

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/540073
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=ee2f65d91fb632f04be3572967029cd58be4c614
Submitter: Zuul
Branch: master

commit ee2f65d91fb632f04be3572967029cd58be4c614
Author: Surya Seetharaman <email address hidden>
Date: Thu Feb 1 18:56:10 2018 +0100

    Extending delete_cell --force to delete instance_mappings

    Currently the nova-manage delete_cell command with the --force option
    allows us to destroy hosts_mappings of the cell which does not have any
    instances or instance_mappings. This patch extends this command with the
    --force option for destroying instance_mappings in addition to the
    host_mappings of the cell which is to be deleted. Note that the instance
    mappings and host mappings are only removed if there are no living
    instances in the cell. So a --force delete here will not work if there
    are non-deleted instances.

    Change-Id: Ibefa0465224bec9a22431c7d3b5c8f5d91fc7732
    Closes-Bug: #1745375

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/553478

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (stable/queens)

Change abandoned by Surya Seetharaman (<email address hidden>) on branch: stable/queens
Review: https://review.openstack.org/553478
Reason: Abandoning this since its only a Wishlist.

no longer affects: nova/queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 18.0.0.0b1

This issue was fixed in the openstack/nova 18.0.0.0b1 development milestone.

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.