<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Calibri Light";
        panose-1:2 15 3 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
        {mso-style-priority:1;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Calibri Light",sans-serif">Hello All,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri Light",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri Light",sans-serif">This is regarding bug
<a href="https://launchpad.net/bugs/1667269">https://launchpad.net/bugs/1667269</a> titled as
<b><span style="color:black;background:white">Nova volume-attach doesn't care for device name
</span></b><span style="color:black;background:white"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri Light",sans-serif;color:black;background:white">Review is going on at
<a href="https://review.openstack.org/#/c/454048/">https://review.openstack.org/#/c/454048/</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri Light",sans-serif;color:black;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><u><span style="font-family:"Calibri Light",sans-serif;color:black;background:white">Description:<o:p></o:p></span></u></b></p>
<p class="MsoNormal"><span style="font-family:"Calibri Light",sans-serif;color:#333333;background:white">[root@greglinux2 ~(keystone_admin)]#
<b><span style="background:yellow;mso-highlight:yellow">nova volume-attach e9c63adc-e837-4108-b5cf-10a8f147a5ab f0990f38-8fc5-4710-b9ac-e846b6c634cb /dev/vdc >>></span></b></span><b><span style="font-family:"Calibri Light",sans-serif;color:#333333"><br>
</span></b><span style="font-family:"Calibri Light",sans-serif;color:#333333;background:white">+----------+--------------------------------------+</span><span style="font-family:"Calibri Light",sans-serif;color:#333333"><br>
<span style="background:white">| Property | Value |</span><br>
<span style="background:white">+----------+--------------------------------------+</span><br>
<b><span style="background:white">| device | /dev/vdb | >>>>> Still attached as /dev/vdb !!!! >>>>>>>>>>>>>>>>>>.</span></b><br>
<span style="background:white">| id | f0990f38-8fc5-4710-b9ac-e846b6c634cb |</span><br>
<span style="background:white">| serverId | e9c63adc-e837-4108-b5cf-10a8f147a5ab |</span><br>
<span style="background:white">| volumeId | f0990f38-8fc5-4710-b9ac-e846b6c634cb |</span><br>
<span style="background:white">+----------+--------------------------------------+<o:p></o:p></span></span></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:9.6pt;margin-left:0in;background:white">
<span style="font-family:"Calibri Light",sans-serif;color:#333333;background:white">It looks like nova is not considering <device> parameter at all. Is it expected?
</span><span style="font-family:"Calibri Light",sans-serif;color:#333333"><br>
<b><u><span style="background:yellow;mso-highlight:yellow">It shows that "/dev/vdc" was requested by client as device name but server prefers to ignore it.</span><o:p></o:p></u></b></span></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:9.6pt;margin-left:0in;background:white">
<b><span style="font-family:"Calibri Light",sans-serif;color:#333333">As seen in nova server side logs :<br>
</span></b><span style="font-family:"Calibri Light",sans-serif;color:#333333">====================================<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:9.6pt;margin-left:0in;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-family:"Calibri Light",sans-serif;color:#333333">2017-04-05 03:35:58.902 3199 WARNING nova.virt.libvirt.driver [req-90bfc957-2cb2-47e4-9018-fb0e24404f7b c2a01ca6f6f84d388dbd12c68eaa1d13 f29439bb99d54dba980631b1ef7bd8cd - - -] [instance: 31aaa8e3-3163-4f17-8ccd-f22c3c35ce95]
 Ignoring supplied device name: /dev/vdr >>>>>>>>>>>>>>>>>>>>>>>>>><o:p></o:p></span></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:9.6pt;margin-left:0in;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-family:"Calibri Light",sans-serif;color:#333333">2017-04-05 03:35:58.903 3199 WARNING nova.virt.osinfo [req-90bfc957-2cb2-47e4-9018-fb0e24404f7b c2a01ca6f6f84d388dbd12c68eaa1d13 f29439bb99d54dba980631b1ef7bd8cd - - -] Cannot find OS information
 - Reason: (No configuration information found for operating system Empty)<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:9.6pt;margin-left:0in;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-family:"Calibri Light",sans-serif;color:#333333">2017-04-05 03:35:59.312 3199 INFO nova.compute.manager [req-90bfc957-2cb2-47e4-9018-fb0e24404f7b c2a01ca6f6f84d388dbd12c68eaa1d13 f29439bb99d54dba980631b1ef7bd8cd - - -] [instance: 31aaa8e3-3163-4f17-8ccd-f22c3c35ce95]
 Attaching volume 657ed918-36ae-4ffc-a08b-275eefd0c152 to /dev/vde >>>>>>>>>>>>>>>>>>>>>>.<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:9.6pt;margin-left:0in;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-family:"Calibri Light",sans-serif;color:#333333">Where in code file<br>
nova/virt/libvirt/drivers.py<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:9.6pt;margin-left:0in;background:white;font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<b><u><span style="font-family:"Calibri Light",sans-serif;color:#333333;background:yellow;mso-highlight:yellow">we see that if a device name is not none intentionally we ignore the device name coming from cli.</span></u></b><b><u><span style="font-family:"Calibri Light",sans-serif;color:#333333"><o:p></o:p></span></u></b></p>
<p class="MsoNoSpacing" style="font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-family:"Calibri Light",sans-serif">Hence i think in that case there is no use of sending device name from novaclient.
<o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri Light",sans-serif">As we are just confusing user by asking him device name and later ignoring it intentionally.<o:p></o:p></span></p>
<p class="MsoNoSpacing" style="font-variant-ligatures: normal;font-variant-caps: normal;orphans: 2;widows: 2;-webkit-text-stroke-width: 0px;text-decoration-style: initial;text-decoration-color: initial;word-spacing:0px">
<span style="font-family:"Calibri Light",sans-serif">Hence we fixed it by removing device name option from shell.py in novaclient.<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:9.6pt;margin-left:0in;background:white">
<span style="font-family:"Calibri Light",sans-serif;color:#333333"><o:p> </o:p></span></p>
<p class="MsoNoSpacing">But there are opinion which differ like<o:p></o:p></p>
<p class="MsoNoSpacing"><u>Matt Riedemann says <o:p></o:p></u></p>
<p class="MsoNoSpacing"><u><o:p><span style="text-decoration:none"> </span></o:p></u></p>
<p class="MsoNoSpacing"><u>“</u>I think I'd like to see this brought up in the openstack-dev mailing list
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">
<span style="font-family:"Calibri Light",sans-serif;color:#0654AC">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</span></a> or at least the weekly nova team meeting [1] to make sure everyone is on the same page before doing this, because
 the libvirt driver is technically the only one that ignores the requested device, not all drivers do that.<o:p></o:p></p>
<p class="MsoNoSpacing" style="-webkit-margin-before: 0px;-webkit-margin-after: 0.3em;white-space:pre-wrap">
And I tried deprecated block device name from the API but that ran into complications:<o:p></o:p></p>
<p class="MsoNoSpacing" style="-webkit-margin-before: 0px;-webkit-margin-after: 0.3em;white-space:pre-wrap">
<a href="https://review.openstack.org/#/c/452546/" target="_blank"><span style="font-family:"Calibri Light",sans-serif;color:#0654AC">https://review.openstack.org/#/c/452546/</span></a><o:p></o:p></p>
<p class="MsoNoSpacing" style="-webkit-margin-before: 0px;-webkit-margin-after: 0.3em;white-space:pre-wrap">
[1] <a href="https://wiki.openstack.org/wiki/Meetings/Nova" target="_blank"><span style="font-family:"Calibri Light",sans-serif;color:#0654AC">https://wiki.openstack.org/wiki/Meetings/Nova</span></a> “<o:p></o:p></p>
<p class="MsoNoSpacing"><span style="color:#333333"><o:p> </o:p></span></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:9.6pt;margin-left:0in;background:white">
<b><u><span style="font-family:"Calibri Light",sans-serif;color:#333333;background:yellow;mso-highlight:yellow">Can wider audience with your experience please share your thoughts on this?</span></u></b><b><u><span style="font-family:"Calibri Light",sans-serif;color:#333333"><o:p></o:p></span></u></b></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:9.6pt;margin-left:0in;background:white">
<span style="font-family:"Calibri Light",sans-serif;color:#333333"><o:p> </o:p></span></p>
<p class="MsoNoSpacing">Thanks<o:p></o:p></p>
<p class="MsoNoSpacing">Nidhi<o:p></o:p></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:9.6pt;margin-left:0in;background:white">
<span style="font-family:"Calibri Light",sans-serif;color:#333333"><o:p> </o:p></span></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:9.6pt;margin-left:0in;background:white">
<span style="font-family:"Calibri Light",sans-serif;color:#333333"><o:p> </o:p></span></p>
<p style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:9.6pt;margin-left:0in;background:white">
<span style="font-family:"Calibri Light",sans-serif;color:#333333"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><u><span style="font-family:"Calibri Light",sans-serif;color:black;background:white"><o:p><span style="text-decoration:none"> </span></o:p></span></u></b></p>
</div>
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should
 not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments
 for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
</body>
</html>