Extend action is only possible when volume is available

Bug #1277570 reported by Julie Pichon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Zhenguo Niu

Bug Description

If I go to the volume panel and try to "Extend" a volume that is currently of status "in-use", the action fails. I can see the following error in the logs:

Recoverable error: Invalid volume: Volume status must be available to extend. (HTTP 400) (Request-ID: req-cfe1bad2-44d9-4351-bd31-aa05ee02ba23)

However we allow the action even if it's either 'available' or 'in-use'. Based on the error message I would expect Horizon to only show the button when the status is 'available'.

https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/volumes/tables.py#L102

Changed in horizon:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
assignee: nobody → Zhenguo Niu (niu-zglinux)
status: Confirmed → In Progress
Changed in horizon:
milestone: none → icehouse-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/72272
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=15c4d8330d46f59a191930ce7fa307bfa761017e
Submitter: Jenkins
Branch: master

commit 15c4d8330d46f59a191930ce7fa307bfa761017e
Author: Zhenguo Niu <email address hidden>
Date: Mon Feb 10 14:29:15 2014 +0800

    Volume status must be available to extend

    Change-Id: I3e149249db0a44be6531dc409176c698819be317
    Closes-Bug: #1277570

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: icehouse-3 → 2014.1
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.