Reset state doesn't update migration status

Bug #1308253 reported by John Griffith
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
John Griffith
python-cinderclient
Fix Released
Undecided
Unassigned

Bug Description

In the case of a failed migration the volume's status and the migration status are both set to error state. We have the ability to use reset-state to get the volume back to a usable state, however the migration-status isn't updated which makes it impossible to do things like delete the volume or perhaps retry the migration.

We should have the reset-state command clean up outliers like this as well.

Changed in cinder:
importance: Undecided → Critical
importance: Critical → High
assignee: nobody → John Griffith (john-griffith)
status: New → Triaged
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to cinder (master)

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

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

Reviewed: https://review.openstack.org/88083
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=aabb0fa1f68974e2fa4828cde1462dc47c429655
Submitter: Jenkins
Branch: master

commit aabb0fa1f68974e2fa4828cde1462dc47c429655
Author: john-griffith <email address hidden>
Date: Wed Apr 16 15:03:18 2014 -0600

    Allow reset-state on attach and migration fields

    The reset-state API call only sets that main status
    column on the volume object. There's also a method
    to set attach status, however it turns out that due
    to the implementation of the status validation method
    in the parent class, this was impossible to use because
    it only checked and accepted "status" NOT "attach_status".

    This patch fixes that attach_status problem, it also implements
    the ability to update the migration status. A cinderclient change
    will be needed to expose these calls as well.

    DocImpact

    Change-Id: I59e1bb2522f033c944fa07acf4876ca71c8c3d3f
    Closes-Bug: #1308253

Changed in cinder:
status: In Progress → Fix Committed
Revision history for this message
Lingxian Kong (kong) wrote :

Hi john:

I want to be a vonlunteer, working on cinderclient for this bug, to support the added ability for cinder volume status reset operation.

What I need to do is add cinderclient project, and assign to me, right?

Changed in python-cinderclient:
assignee: nobody → Lingxian Kong (kong)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-cinderclient (master)

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

Changed in python-cinderclient:
status: New → In Progress
Changed in python-cinderclient:
assignee: Lingxian Kong (kong) → Jay Bryant (jsbryant)
Changed in python-cinderclient:
assignee: Jay Bryant (jsbryant) → Lingxian Kong (kong)
Changed in cinder:
milestone: none → juno-2
Changed in cinder:
status: Fix Committed → Fix Released
hzxiongwenwu (xwwzzy)
Changed in python-cinderclient:
assignee: Lingxian Kong (kong) → nobody
assignee: nobody → hzxiongwenwu (xwwzzy)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-cinderclient (master)

Change abandoned by hzxiongwenwu (<email address hidden>) on branch: master
Review: https://review.openstack.org/114917

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by Lingxian Kong (<email address hidden>) on branch: master
Review: https://review.openstack.org/100427

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-cinderclient (master)

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

Thierry Carrez (ttx)
Changed in cinder:
milestone: juno-2 → 2014.2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-cinderclient (master)

Change abandoned by Sean McGinnis (<email address hidden>) on branch: master
Review: https://review.openstack.org/128200
Reason: This review is > 8 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
Mitsuhiro Tanino (mitsuhiro-tanino) wrote :

This bug for python-cinderclient is duplicate of https://bugs.launchpad.net/python-cinderclient/+bug/1309086
The fix was released.

Reviewed: https://review.openstack.org/164309
Committed: https://git.openstack.org/cgit/openstack/python-cinderclient/commit/?id=0f1cbc9e1f72c5ecd4c21b533bb03a8a9640f4c9
Submitter: Jenkins
Branch: master

commit 0f1cbc9e1f72c5ecd4c21b533bb03a8a9640f4c9
Author: Tomoki Sekiyama <email address hidden>
Date: Fri Mar 13 14:40:33 2015 -0400

    Implement reset-state for attach_status and migration_status

    Currently the reset-state command in the client only handles
    the main volume status column. This adds options to set
    attach_status and to reset migration_status.

    DocImpact: Add new options to cinder reset-state command
    Change-Id: Ifaa04c2f8a7ff21100f7c9c51df881313e8babea
    Closes-Bug: #1309086
Changed in python-cinderclient:
status: In Progress → Fix Committed

Changed in python-cinderclient:
assignee: hzxiongwenwu (xwwzzy) → nobody
status: In Progress → Fix Released
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.