<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<div>Without knowing your environment, it is hard to say specifically how it should look. But to give an example. </div>
<div><br>
</div>
<div>Here I have a ceph_ssd backend defined. It contains all the information I would need to connect and use the backend</div>
<div><br>
</div>
<div>[ceph_ssd]</div>
<div>volume_backend_name=ceph_ssd</div>
<div>volume_driver=cinder.volume.drivers.rbd.RBDDriver</div>
<div>rbd_ceph_conf=/etc/ceph/ceph.conf</div>
<div>rbd_user=volumes</div>
<div>rbd_pool=ssd_volumes</div>
<div>rbd_max_clone_depth=2</div>
<div>rbd_flatten_volume_from_snapshot=True</div>
<div>rbd_secret_uuid=<redacted> </div>
<div>backend_host=<redacted> </div>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
After you have this up, you will see the volume service go active in your cinder-volume.log. At that point you can define your volume type and then add the extra specs tying that volume type to the backend. Something like this</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<table id="extras" class="table table-striped datatable " style="box-sizing: border-box; border-collapse: collapse; border-spacing: 0px; width: 700px; max-width: 100%; margin-bottom: 18px; color: rgb(51, 51, 51); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 18.5714px; widows: 1; background-color: rgb(255, 255, 255);">
<tbody style="box-sizing: border-box;">
<tr class="" data-display="volume_backend_name" data-display-key="name" data-object-id="volume_backend_name" id="extras__row__volume_backend_name" style="box-sizing: border-box; background-color: rgb(249, 249, 249);">
<td class="sortable normal_column" style="box-sizing: border-box; padding: 8px; transition: background 0.2s; line-height: 1.42857; vertical-align: middle; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221); background-clip: padding-box;">
volume_backend_name</td>
<td class="sortable normal_column" style="box-sizing: border-box; padding: 8px; transition: background 0.2s; line-height: 1.42857; vertical-align: middle; border-top-width: 1px; border-top-style: solid; border-top-color: rgb(221, 221, 221); background-clip: padding-box;">
ceph-ssd</td>
</tr>
</tbody>
</table>
<br>
</div>
<div><font face="Helvetica Neue"><span style="font-size: 13px;">A</span></font><font face="Helvetica Neue" style="color: rgb(0, 0, 0);"><span style="font-size: 13px;">lso, you can always use your cinder service-list to find out the status of your backend you
defined. </span></font></div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
In my lab I would see this:</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
| cinder-volume | <redacted>@ceph_ssd | nova | enabled | up | 2016-07-22T14:02:59.000000 | - |</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<div id="MAC_OUTLOOK_SIGNATURE">
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri">Craig DeLatte</font></font></div>
<div>Cloud Engineering & Operations – OpenStack DevOps</div>
<div><span style="font-family: Calibri;">Charter</span></div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri">704-731-3356</font></font></div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri">610-306-4816</font></font></div>
<div><br>
</div>
</div>
</div>
</div>
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<br>
</div>
<span id="OLK_SRC_BODY_SECTION" style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Alexandra Kisin<br>
<span style="font-weight:bold">Date: </span>Wednesday, July 20, 2016 at 9:47 AM<br>
<span style="font-weight:bold">To: </span>Time Warner Cable<br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:openstack-operators@lists.openstack.org">openstack-operators@lists.openstack.org</a>"<br>
<span style="font-weight:bold">Subject: </span>Re: [Openstack-operators] Cinder attach volume<br>
</div>
<div><br>
</div>
<div>
<div><font size="2" face="sans-serif">Thank you for the prompt respond. </font><br>
<font size="2" face="sans-serif">How should </font><tt><font size="3"> [SATA] section look in /etc/cinder/cinder.conf file ?
</font></tt><br>
<br>
<font size="2" face="sans-serif">Regards,</font><br>
<br>
<font size="2" face="sans-serif">Alexandra Kisin<br>
Servers & Network group, IBM R&D Labs in Israel<br>
Unix & Virtualization Team</font><br>
<table width="738" style="border-collapse:collapse;">
<tbody>
<tr height="8">
<td width="738" colspan="3" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<hr>
</td>
</tr>
<tr valign="top" height="8">
<td width="529" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<font size="1" color="#4181c0" face="Arial"><b>Phone:</b></font><font size="1" color="#5f5f5f" face="Arial"> +972-48296172</font><font size="1" color="#4181c0" face="Arial"> | <b>Mobile:</b></font><font size="1" color="#5f5f5f" face="Arial"> +972-54-6976172</font><font size="1" color="#4181c0" face="Arial"> | <b>Fax:</b></font><font size="1" color="#5f5f5f" face="Arial"> +972-4-8296111</font><br>
<img src="cid:_2_0EC6EFE80EC6ED7C004AB8FCC2257FF6" style="border:0px solid;"></td>
<td width="12" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
</td>
<td width="196" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px;">
<div align="right"><img src="cid:_1_0EC6FBDC0EC6F648004AB8FCC2257FF6" width="83" height="30" alt="IBM" style="border:0px solid;"><font size="1" color="#5f5f5f" face="Arial"><br>
<br>
</font></div>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<font size="1" color="#5f5f5f" face="sans-serif">From: </font><font size="1" face="sans-serif">"Delatte, Craig" <<a href="mailto:craig.delatte@twcable.com">craig.delatte@twcable.com</a>></font><br>
<font size="1" color="#5f5f5f" face="sans-serif">To: </font><font size="1" face="sans-serif">Alexandra Kisin/Haifa/IBM@IBMIL, "<a href="mailto:openstack-operators@lists.openstack.org">openstack-operators@lists.openstack.org</a>" <<a href="mailto:openstack-operators@lists.openstack.org">openstack-operators@lists.openstack.org</a>></font><br>
<font size="1" color="#5f5f5f" face="sans-serif">Date: </font><font size="1" face="sans-serif">20/07/2016 04:13 PM</font><br>
<font size="1" color="#5f5f5f" face="sans-serif">Subject: </font><font size="1" face="sans-serif">Re: [Openstack-operators] Cinder attach volume</font><br>
<hr noshade="">
<br>
<br>
<br>
<font size="2" face="Calibri">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. </font><br>
<br>
<font size="2" face="Calibri">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. </font><br>
<br>
<br>
<font size="2" face="Calibri">Craig DeLatte</font><br>
<font size="2" face="Calibri">Cloud Engineering & Operations – OpenStack DevOps</font><br>
<font size="2" face="Calibri">Charter</font><br>
<font size="2" face="Calibri">704-731-3356</font><br>
<font size="2" face="Calibri">610-306-4816</font><br>
<br>
<br>
<font size="3" face="Calibri"><b>From: </b>Alexandra Kisin<b><br>
Date: </b>Wednesday, July 20, 2016 at 9:02 AM<b><br>
To: </b>"</font><a href="mailto:openstack-operators@lists.openstack.org"><font size="3" color="blue" face="Calibri"><u>openstack-operators@lists.openstack.org</u></font></a><font size="3" face="Calibri">"<b><br>
Subject: </b>[Openstack-operators] Cinder attach volume<b><br>
Resent-From: </b>Time Warner Cable</font><br>
<br>
<font size="2" face="sans-serif">Hello. <br>
I'm working on Liberty Openstack environment using <b>ibm.storwize_svc.StorwizeSVCDriver
</b>as volume_drivert. <br>
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.
<br>
And this way everything is working fine.<br>
<br>
But I need it to be <b>/dev/sdX </b>for my application needs. <br>
I tried to create a new type of the volume by running :<b><br>
cinder type-create SATA<br>
cinder type-key SATA set volume_backend_name=sata</b><br>
But when I start a volume create process , it fails - the new volume has error state and the error in cinder-scheduler.log is :</font><font size="2" color="#0000e0" face="sans-serif"><br>
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</font><font size="2" face="Calibri"><br>
</font><font size="2" face="sans-serif"><br>
Please advise how a volume can be attached as /dev/sdX device and not /dev/vdX. <br>
The solution of stop the VM first and only then attach a volume can also be taken in account.
</font><font size="2" face="Calibri"><br>
</font><font size="2" face="sans-serif"><br>
Thank you. </font><font size="2" face="Calibri"><br>
</font><font size="2" face="sans-serif"><br>
Regards,</font><font size="2" face="Calibri"><br>
</font><font size="2" face="sans-serif"><br>
Alexandra Kisin<br>
Servers & Network group, IBM R&D Labs in Israel<br>
Unix & Virtualization Team</font>
<table width="738" style="border-collapse:collapse;">
<tbody>
<tr height="8">
<td width="736" colspan="3" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:1px 1px;">
<hr>
</td>
</tr>
<tr valign="top" height="8">
<td width="525" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:1px 1px;">
<font size="1" color="#4181c0" face="Arial"><b>Phone:</b></font><font size="1" color="#5f5f5f" face="Arial">+972-48296172</font><font size="1" color="#4181c0" face="Arial"> |
<b>Mobile:</b></font><font size="1" color="#5f5f5f" face="Arial">+972-54-6976172</font><font size="1" color="#4181c0" face="Arial"> |
<b>Fax:</b></font><font size="1" color="#5f5f5f" face="Arial">+972-4-8296111</font><font size="3" face="Calibri"><br>
</font><img src="cid:_2_0EC757A40EC944C4004AB8FCC2257FF6" width="222" height="50" style="border:0px solid;"></td>
<td width="11" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:1px 1px;">
</td>
<td width="194" style="border-style:none none none none;border-color:#000000;border-width:0px 0px 0px 0px;padding:1px 1px;">
<div align="right"><img src="cid:_1_0EC762A00EC75ECC004AB8FCC2257FF6" alt="IBM" style="border:0px solid;"><font size="1" color="#5f5f5f" face="Arial"><br>
</font></div>
</td>
</tr>
</tbody>
</table>
<br>
<font size="2" face="Calibri"><br>
<br>
<br>
</font><br>
<font size="2" face="Calibri"><br>
</font>
<hr>
<font size="1" color="#808080" face="Arial"><br>
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.</font><br>
<font size="2" face="sans-serif">[attachment "ATT00001.jpg" deleted by Alexandra Kisin/Haifa/IBM] [attachment "ATT00002.gif" deleted by Alexandra Kisin/Haifa/IBM]
</font><br>
<br>
</div>
</div>
</span>
</body>
</html>