Horizon ignores instance snapshot as pre-selected source image

Bug #1608565 reported by eblock@nde.ag
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
David Gutman

Bug Description

Description of problem:
When launching an instance from an instance snapshot via Horizon images overview (Button "Launch") the resulting "Launch instance"-dialog ignores the selected image, the source has to be selected again. This only affects "Instance Snapshot" as source type, the other source types (Image, Volume, Volume Snapshot) are accepted.

Versions:
OpenStack Mitaka on openSUSE_Leap_42.1
openstack-dashboard-9.0.2~a0~dev22-1.1.noarch

How reproducible:
Every time

Steps to Reproduce:
1. Create a snapshot from a running instance.
2. From the images overview (http://control/project/images/) click on the new image (instance snapshot).

Actual result:
In the "Launch Instance"-dialog no image is selected in the "Source" tab and it's marked with an asterisk, an image has to be selected (again).

Expected result:
The form field in "Source" should be pre-allocated by the instance snapshot and "Source" should not be marked by an asterisk.

Changed in horizon:
assignee: nobody → Rebecca Finn (rebeccax-finn)
Changed in horizon:
status: New → In Progress
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/350291

Changed in horizon:
assignee: Rebecca Finn (rebeccax-finn) → nobody
status: In Progress → New
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Rob Cresswell (<email address hidden>) on branch: master
Review: https://review.openstack.org/350291
Reason: Abandoned due to inactivity. Please feel free to restore if you wish to work on it.

Revision history for this message
eblock@nde.ag (eblock) wrote :

I applied the changes proposed in [1], and they worked for me. Unfortunately, this issue is evolving similar to a bug I have reported over a year ago [2]. The changes in

/srv/www/openstack-dashboard/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/source/source.controller.js

and

/srv/www/openstack-dashboard/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/source/source.controller.spec.js

don't resolve the issue, snapshots are not pre-selected anymore. So I applied the exact same changes to these files:

/srv/www/openstack-dashboard/static/dashboard/project/workflow/launch-instance/source/source.controller.js
/srv/www/openstack-dashboard/static/dashboard/project/workflow/launch-instance/source/source.controller.spec.js

and this works now as expected.
Newton release seems to have the same issue.

[1] https://review.openstack.org/#/c/350291/
[2] https://bugs.launchpad.net/nova/+bug/1560965

Changed in horizon:
status: New → Confirmed
importance: Undecided → Low
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/600399

Changed in horizon:
assignee: nobody → David Gutman (david.gutman)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/600399
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=87f5e21b03bdb9a1a09a587f2a3176cc094529b8
Submitter: Zuul
Branch: master

commit 87f5e21b03bdb9a1a09a587f2a3176cc094529b8
Author: David Gutman <email address hidden>
Date: Thu Sep 6 11:33:09 2018 +0200

    Select correct boot source when launching instance from different sources

    When launching instance from snapshot, volume or volume snapshot,
    the selected boot source was always image.
    This was due to a reset to image boot source when receiving "change allowed boot
    sources" event.
    From now:
     - The "change allowed boot source" event does not flush a preselection
    if the preselection boot source type is in the allowed sources.
     - Set the bootsource with preselection update correctly the form for each
    different type of boot source.

    Change-Id: I6907652731fa89b303d997fe2e3c331a68f085b6
    Closes-bug: #1608565

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.