When restoring a volume backup to the specified volume, the selection of the target volume list should list available volumes only

Bug #1740260 reported by Brin Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Huang.Xiangdong

Bug Description

On dashboard,steps as follows(The following steps are on devstack, kolla also exists.):
1.Open the OpenStack Horizon,select-->Project-->Volumes-->backups;
2.Select a backup from the list of volume backups and perform a recovery operation,you can get a list of available target volumes. However, the current version of the acquired list of volumes is not filtered, including error,in-use and other states.

Through the CLI you can get the relevant information.
[root@localhost ~]# cinder backup-restore --volume 1237b738-fe01-4acf-828d-2e06b046bc9e --name test 81155cf4-33b1-49df-981c-a31958b13940
Mutually exclusive options are specified simultaneously: "--volume (or the deprecated --volume-id) and --name". The --volume (or --volume-id) option takes priority.
ERROR:Invalid volume: Volume to be restored to must be available (HTTP 400) (Request-ID: req-24442e88-0b26-4b04-856e-0f0723451412)

Akihiro Motoki (amotoki)
summary: When restoring a volume backup to the specified volume, the selection of
- the target volume list is not displayed correctly
+ the target volume list should list available volumes only
Changed in horizon:
importance: Undecided → Medium
status: New → Confirmed
milestone: none → rocky-1
Akihiro Motoki (amotoki)
Changed in horizon:
milestone: rocky-1 → rocky-2
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/597144

Changed in horizon:
assignee: nobody → Huang.Xiangdong (privaterookie)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Ivan Kolodyazhny (<email address hidden>) on branch: master
Review: https://review.openstack.org/597144
Reason: This review is > 4 months 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
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/597144
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=19635237b388dcc9199081a740ee9829feb67bee
Submitter: Zuul
Branch: master

commit 19635237b388dcc9199081a740ee9829feb67bee
Author: PrivateRookie <email address hidden>
Date: Tue Aug 28 22:23:46 2018 +0800

    fix volume status bug when restoring a Volume

    Change-Id: I96b922d59908f19f2850c117e77ec8831e7fdd77
    Closes-Bug:#1740260

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 15.0.0.0b1

This issue was fixed in the openstack/horizon 15.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.