Ask Your Question

Revision history [back]

Thanks Shausy!

I was having same issue where creating a volume on a cinder-volume host failed with " No valid host found" error. This was a problem of timesync between nodes. After correcting the time difference, creating volume started working.

Also, To select a particular volume node, I used different volume backend names and create a volume type assosiated with the particular backend name. The create a volume with the selected type.

e.g:

1) cinder.conf on the volume node:

enabled_backends=lvm-host1

[lvm-host1] volume_group=host-cinder volume_backend_name-LVM_iSCSI_host1

2) Create volume type cinder type-create host-lvm

3) Assosiate a backend name with the type: cinder type-key host-lvm set volume_backend_name=LVM_iSCSI_host1

4) Create a volume with specified type volume create --display-name sample-volume --volume-type host-lvm 10

Thanks, Vijesh