Marker reset option for nova-manage map_instances

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

Bug Description

Currently nova-manage map_instances uses a marker set-up by which repeated runs of the command will start from where the last run finished. Even deleting the cell with the instance_mappings will not remove the marker since the marker mapping has a NULL cell_mapping field. There needs to be a way to reset this marker so that the user can run map_instances from the beginning instead of the map_instances command saying "all instances are already mapped" as is the current behavior.

Solution :

Add a --reset flag to "nova-manage map_instances"

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-34

tags: added: nova-manage
removed: nova-mana
Changed in nova:
assignee: nobody → Surya Seetharaman (tssurya)
description: updated
tags: added: cells
Matt Riedemann (mriedem)
Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
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/539501

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/539501
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=98163f98b700840f50c689e4a3aed7e28dd0c1ef
Submitter: Zuul
Branch: master

commit 98163f98b700840f50c689e4a3aed7e28dd0c1ef
Author: Surya Seetharaman <email address hidden>
Date: Wed Jan 31 12:39:34 2018 +0100

    Marker reset option for nova-manage map_instances

    Currently nova-manage map_instances uses a marker set-up by which repeated
    runs of the command will start from where the last run finished. Even
    deleting the cell with the instance_mappings will not remove the marker
    since the marker mapping has a NULL cell_mapping field. There needs to be
    a way to reset this marker so that the user can run map_instances from the
    beginning instead of the map_instances command saying "all instances are
    already mapped" as is the current behavior.

    Change-Id: Ic9a0bda9314cc1caed993db101bf6f874c0a0ae8
    Closes-Bug: #1745358

Changed in nova:
status: In Progress → Fix Released
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.