Random volume type on create volume from image

Bug #1737900 reported by Crazik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
wei.ying

Bug Description

I want to create a new volume from image, starting from context menu on images list
(url: horizon/project/images).
There is a form, where I can specify name, size, AZ, and volume type.
For all my tests, volume type is randomly choosen from existing two (in my setup).
The same actions called from CLI are correct.
There is no error in logs.

environment:
Ocata
openstack-dashboard 3:11.0.1-0ubuntu1~cloud0
python-glanceclient 1:2.6.0-0ubuntu1~cloud0
python-cinderclient 1:1.11.0-0ubuntu2~cloud0

wei.ying (wei.yy)
Changed in horizon:
assignee: nobody → wei.ying (wei.yy)
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/529910

Changed in horizon:
status: New → In Progress
Revision history for this message
wei.ying (wei.yy) wrote :

Tested in my local env, this problem also appears in the master branch.

Ying Zuo (yingzuo)
Changed in horizon:
importance: Undecided → High
milestone: none → queens-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/529910
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=3aee4cbac666f080133671790baa9dd42223c996
Submitter: Zuul
Branch: master

commit 3aee4cbac666f080133671790baa9dd42223c996
Author: wei.ying <email address hidden>
Date: Fri Nov 17 12:03:56 2017 +0800

    Fix incorrect volume type value in ng images create volume form

    The value of the 'volume_type' is determined by the 'volumeType'
    object [1]. The value of the 'volume_type' changes only the
    'volumeType' object changes. However, the current value of the
    'volume_type' is changed according to the volume object change [2].

    It will cause a phenomenon, when the page is initialized, the value
    of 'volume_type' is empty, when we switch volume types drop-down box,
    its value is also empty, only change the name, description, size and
    availability zone, the value of 'volume_type' is the page selection.

    [1] https://github.com/openstack/horizon/blob/master/openstack_dashboard/static/app/core/images/steps/create-volume/create-volume.html#L45
    [2] https://github.com/openstack/horizon/blob/master/openstack_dashboard/static/app/core/images/steps/create-volume/create-volume.controller.js#L140

    Change-Id: If754d0c2ced844414c35829d4cefa1fb861522d5
    Closes-Bug:#1737900

Changed in horizon:
status: In Progress → Fix Released
Ying Zuo (yingzuo)
tags: added: pike-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/531023

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/pike)

Reviewed: https://review.openstack.org/531023
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=1a2b742fe9fe5f37e8b68b9b63ab3bb332a6af31
Submitter: Zuul
Branch: stable/pike

commit 1a2b742fe9fe5f37e8b68b9b63ab3bb332a6af31
Author: wei.ying <email address hidden>
Date: Fri Nov 17 12:03:56 2017 +0800

    Fix incorrect volume type value in ng images create volume form

    The value of the 'volume_type' is determined by the 'volumeType'
    object [1]. The value of the 'volume_type' changes only the
    'volumeType' object changes. However, the current value of the
    'volume_type' is changed according to the volume object change [2].

    It will cause a phenomenon, when the page is initialized, the value
    of 'volume_type' is empty, when we switch volume types drop-down box,
    its value is also empty, only change the name, description, size and
    availability zone, the value of 'volume_type' is the page selection.

    [1] https://github.com/openstack/horizon/blob/master/openstack_dashboard/static/app/core/images/steps/create-volume/create-volume.html#L45
    [2] https://github.com/openstack/horizon/blob/master/openstack_dashboard/static/app/core/images/steps/create-volume/create-volume.controller.js#L140

    Change-Id: If754d0c2ced844414c35829d4cefa1fb861522d5
    Closes-Bug:#1737900
    (cherry picked from commit 3aee4cbac666f080133671790baa9dd42223c996)

tags: added: in-stable-pike
Akihiro Motoki (amotoki)
tags: removed: pike-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 12.0.2

This issue was fixed in the openstack/horizon 12.0.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 13.0.0.0b3

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