Create from snapshot will not honor volume-type if backend would need to change
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
John Griffith |
Bug Description
Environment: Multi-backend using volume-types to dictate which backend a volume gets created on.
Issue: If you create a snapshot of a volume (volume-type Red) and then attempt to create a new volume from that snapshot of volume-type Blue, the new volume-type is ignored and the new volume is created on the Red backend.
cinder create --snapshot-id a3f54851-
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2014-02-
| display_description | None |
| display_name | jonclisnapcreate2 |
| id | 093ae42f-
| metadata | {} |
| size | 4 |
| snapshot_id | a3f54851-
| source_volid | None |
| status | creating |
| volume_type | Red |
+------
As an end-user my expectation would be that the new volume would be created on the appropriate backend using the requested volume-type.
Changed in cinder: | |
assignee: | John Griffith (john-griffith) → Avishay Traeger (avishay-il) |
Changed in cinder: | |
assignee: | Avishay Traeger (avishay-il) → John Griffith (john-griffith) |
Changed in cinder: | |
milestone: | none → icehouse-3 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | icehouse-3 → 2014.1 |
yes, the current behavior of create-from-snap and create-from-volume only works when going to and from the same backend. Sadly we are not clear/explicit on this.
First step to cleaning this up is making sure the requested dest type is serviceable from the same backend as the source. Check that right away and fail if not.