Boot instance from volume snapshot fail

Bug #1474283 reported by Chung Chih, Hung
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Chung Chih, Hung

Bug Description

How to reproduce:
1. create new volume and volume source is image
2. Snapshot volume which was created at step1
3. Launch as instance from snapshot volume which was created at step2
Then horizon will display "Block Device Mapping is Invalid: failed to get volume"

Because horizon will send volume source type instead of snapshot source type to nova.
Therefore nova api will try to fetch volume tough volume id instead of snapshot.
Nova create server request's data was incorrect at following link and line.
https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py#L874

Changed in horizon:
assignee: nobody → lyanchih (lyanchih)
Changed in horizon:
status: New → In Progress
David Lyle (david-lyle)
Changed in horizon:
importance: Undecided → High
milestone: none → liberty-2
Changed in horizon:
milestone: liberty-2 → liberty-3
Revision history for this message
Michal Dulko (michal-dulko-f) wrote :

Any work is done on this bug? It's actually a broken functionality.

Revision history for this message
Chung Chih, Hung (lyanchih) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/#/c/199457

Thierry Carrez (ttx)
Changed in horizon:
milestone: liberty-3 → liberty-rc1
Changed in horizon:
assignee: Chung Chih, Hung (lyanchih) → Travis Tripp (travis-tripp)
Changed in horizon:
assignee: Travis Tripp (travis-tripp) → Chung Chih, Hung (lyanchih)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

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

commit a1db17aeff842566e6ac429889ca9a3dad9a6daa
Author: lyanchih <email address hidden>
Date: Wed Jul 8 17:16:27 2015 +0800

    Couldn't provision instance from volume snapshot

    When user create instance from volume snapshot. Horizon will send
    request to nova and it contain some information about block device
    mapping. But the source type was assigned 'volume'. Therefore nova will
    recognized this instance was boot from volume instead of snapshot, then
    nova couldn't find the id of volume.

    The source type of block device mapping should be determined by whether
    this instance was boot from volume or snapshot.

    Closes-Bug: 1474283

    Change-Id: I38765513833a03f632be11e168efad28aedcf7f0

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: liberty-rc1 → 8.0.0
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.