So the volume type error will require a copy of your cinder.conf.  Or you can 
just verify you have a [SATA] section in it.

Also, volume type to my knowledge won’t change how libvirt presents the volume 
to the instance.  I am not sure it can be changed, or at least never had to 
explore trying to do what you are needing to do.


Craig DeLatte
Cloud Engineering & Operations – OpenStack DevOps
Charter
704-731-3356
610-306-4816


From: Alexandra Kisin
Date: Wednesday, July 20, 2016 at 9:02 AM
To: 
"openstack-operators@lists.openstack.org<mailto:openstack-operators@lists.openstack.org>"
Subject: [Openstack-operators] Cinder attach volume
Resent-From: Time Warner Cable

Hello.
I'm working on Liberty Openstack environment using 
ibm.storwize_svc.StorwizeSVCDriver as volume_drivert.
When I'm creating a new volume and attaching it to the VM - by default it will 
be /dev/vdX on the instance using virtio driver.
And this way everything is working fine.

But I need it to be /dev/sdX for my application needs.
I tried to create a new type of the volume by running :
        cinder type-create SATA
        cinder type-key SATA set volume_backend_name=sata
But when I start a volume create process , it fails - the new volume has error 
state and the error in cinder-scheduler.log is :
         ERROR cinder.scheduler.flows.create_volume Failed to run task 
cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No 
valid host was found. No weighed hosts available

Please advise how a volume can be attached as /dev/sdX device and not /dev/vdX.
The solution of stop the VM first and only then attach a volume can also be 
taken in account.

Thank you.

Regards,

Alexandra Kisin
Servers & Network group, IBM R&D Labs in Israel
Unix & Virtualization Team
________________________________

Phone: +972-48296172 | Mobile: +972-54-6976172 | Fax: +972-4-8296111
[cid:_2_0731BB300731B8C4004795A8C2257FF6]
[IBM]







________________________________

This E-mail and any of its attachments may contain Time Warner Cable 
proprietary information, which is privileged, confidential, or subject to 
copyright belonging to Time Warner Cable. This E-mail is intended solely for 
the use of the individual or entity to which it is addressed. If you are not 
the intended recipient of this E-mail, you are hereby notified that any 
dissemination, distribution, copying, or action taken in relation to the 
contents of and attachments to this E-mail is strictly prohibited and may be 
unlawful. If you have received this E-mail in error, please notify the sender 
immediately and permanently delete the original and any copy of this E-mail and 
any printout.
_______________________________________________
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

Reply via email to