Create Volume from Snapshot / Image creates empty volume

Bug #1440297 reported by Frode Nordahl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
Sam Betts

Bug Description

When creating a volume from snapshot or image in current version of horizon the operation apparantly succeeds but the created volume does not contain any data.

Examining the request sent to Horizon shows that the snapshot_id / image_id is present.
Examining the request to Cinder API shows that the snapshot_id / image_id is NOT present.

I have tracked this down to the tests done in the handle fucntion in openstack_dashboard/dashboards/project/volumes/volumes/forms.py around line 309.

The tests expects source_type (retrieved from data['volume_source_type']) to either be None or 'snapshot_source' / 'image_source'. This is also supported by the prepare_source_fields_if_XXX functions.

However, when the actual data reaches the function 'volume_source_type' is set to '' (empty string) and not None.

I am not sure if it is the test that is wrong or if the data gets changed unexpectedly on the way into the function by other parts of the code.

Running on Ubuntu 14.04 LTS with packages from the Kilo Cloud archive.

Sam Betts (sambetts)
Changed in horizon:
assignee: nobody → Sam Betts (sambetts)
Revision history for this message
Sam Betts (sambetts) wrote :

Just tested this against current master and devstack on Ubuntu 14.04.2 and I am unable to recreate this issue, my volumes are created successfully with the right data and checking both ends of the communication (horizon and cinder api ) shows that all the information from the form is making it through the request correctly.

Changed in horizon:
status: New → Incomplete
Revision history for this message
Frode Nordahl (fnordahl) wrote :

I guess it is a bug in the Ubuntu Kilo Cloud archive / staging packaging. Sorry for the noise.

Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Closing per the above discussion.

Changed in horizon:
status: Incomplete → Invalid
Revision history for this message
Frode Nordahl (fnordahl) wrote :

Checked again on Ubuntu 14.04.2 LTS with openstack-dashboard 1:2015.1~rc1-0ubuntu2~cloud0 and other client dependencies up to date from the Kilo archive and the bug prevails.

If it indeed does not occur in current upstream packages / devstack there must be some patches missing in the dashboard / horizon packages or some error in the dependencies.

Completing the described steps on Ubuntu 14.04.2 LTS using openstack-dashboard from the Juno archive using the same OpenStack cloud as back-end works as it should.

Frode Nordahl (fnordahl)
no longer affects: ubuntu
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.