yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #31256
[Bug 1440297] Re: Create Volume from Snapshot / Image creates empty volume
Closing per the above discussion.
** Changed in: horizon
Status: Incomplete => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1440297
Title:
Create Volume from Snapshot / Image creates empty volume
Status in OpenStack Dashboard (Horizon):
Invalid
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1440297/+subscriptions
References