Cannot retype volume on Ceph when cinder-volume services on different nodes with different volume types
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Create an extra-specification to link the volume type to a back end name.
Let's say you have several services cinder-volume on the different nodes with Ceph.
Then, an extra-specification has to be created to link the volume type to a back end name. Run this command:
$ cinder --os-username admin --os-tenant-name admin type-key ceph set volume_
On other host create another volume type ceph2:
$ cinder --os-username admin --os-tenant-name admin type-create ceph2
$ cinder --os-username admin --os-tenant-name admin type-key ceph2 set volume_
Also, on this host change ceph with ceph2 in the etc/cinder/
To list the extra-specifica
$ cinder extra-specs-list
+------
| ID | Name | extra_specs |
+------
| 31f65ed1-
| a00b6e98-
+------
Create volume and then try retype it:
$cinder retype 01e4ce5d-
where 01e4ce5d-
Could not find a host for volume 01e4ce5d-
summary: |
- Cannot retype volume when cinder-volume services on different nodes with - different volume types + Cannot retype volume on Ceph when cinder-volume services on different + nodes with different volume types |
Changed in cinder: | |
status: | Confirmed → Fix Released |
This looks like a configuration issue to me. The scheduler isn't finding the second node with the ceph2 backend.
And you'll need to use option "--migration-policy on-demand" to make sure the volume is migrated with the retype.