<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=gb2312">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@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:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
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
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"批注框文本 Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:9.0pt;
font-family:"Calibri","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.Char
{mso-style-name:"批注框文本 Char";
mso-style-priority:99;
mso-style-link:批注框文本;
font-family:"Calibri","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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="ZH-CN" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D">Hi, Dilip<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D">Did your driver set the key pool_name and value when init_capabilities called in cinder volume init_host?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D">If didn’t set the key pool_name and value, it will be none.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D">BR<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:#1F497D">Wang Hao<o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:宋体">发件人<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:10.0pt;font-family:宋体"> Dilip Sunkum Manjunath [mailto:Dilip.SunkumManjunath@toshiba-tsip.com]
<br>
</span><b><span style="font-size:10.0pt;font-family:宋体">发送时间<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:10.0pt;font-family:宋体"> 2016</span><span style="font-size:10.0pt;font-family:宋体">年<span lang="EN-US">2</span>月<span lang="EN-US">2</span>日<span lang="EN-US">
15:30<br>
</span><b>收件人<span lang="EN-US">:</span></b><span lang="EN-US"> Dilip Sunkum Manjunath; openstack@lists.openstack.org<br>
</span><b>抄送<span lang="EN-US">:</span></b><span lang="EN-US"> 'itzdilip@gmail.com'<br>
</span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US"> Re: [Openstack] [OpenStack] [CINDER] Scheduler Support for pools issue, not picking free pools<o:p></o:p></span></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Does it have anything to do with capabilities option?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Pool_name seems to be none.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><img width="1271" height="497" id="Picture_x0020_1" src="cid:image001.png@01D15DD9.4533BCC0"><span style="color:#1F497D"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Dilip<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Dilip Sunkum Manjunath [<a href="mailto:Dilip.SunkumManjunath@toshiba-tsip.com">mailto:Dilip.SunkumManjunath@toshiba-tsip.com</a>]
<br>
<b>Sent:</b> Tuesday, February 02, 2016 7:19 AM<br>
<b>To:</b> <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
<b>Cc:</b> 'itzdilip@gmail.com'<br>
<b>Subject:</b> [Openstack] [CINDER] Scheduler Support for pools issue, not picking free pools<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hi all,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:36.0pt"><b><span lang="EN-US" style="font-size:12.0pt">Use Case :
<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-indent:36.0pt"><b><span lang="EN-US">Step 1<o:p></o:p></span></b></p>
<p class="MsoListParagraph" style="margin-left:108.0pt;text-indent:-18.0pt"><span lang="EN-US" style="font-family:Wingdings">§</span><span lang="EN-US" style="font-size:7.0pt;font-family:"Times New Roman","serif"">
</span><span lang="EN-US">I have multiple backend pools,<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:108.0pt;text-indent:-18.0pt"><span lang="EN-US" style="font-family:Wingdings">§</span><span lang="EN-US" style="font-size:7.0pt;font-family:"Times New Roman","serif"">
</span><span lang="EN-US">Updated the get_volume_stats() method to hold the pools information returned from storage API’s<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Sample log : <o:p></o:p></span></p>
<p class="MsoNormal"><i><span lang="EN-US"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US">[{'pool_name': '0', 'total_capacity_gb': 838, 'QoS_support': False, 'thick_provisioning_support': True, 'reserved_percentage': 1, 'consistencygroup_support': False, 'thin_provisioning_support': True, 'free_capacity_gb':
83.79999999999995}, {'pool_name': '1', 'total_capacity_gb': 1126, 'QoS_support': False, 'thick_provisioning_support': True, 'reserved_percentage': 1, 'consistencygroup_support': False, 'thin_provisioning_support': True, 'free_capacity_gb': 67.56000000000017}]<o:p></o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-indent:36.0pt"><b><span lang="EN-US">Step 2<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:108.0pt;text-indent:-18.0pt"><span lang="EN-US" style="font-family:Symbol">·</span><span lang="EN-US" style="font-size:7.0pt;font-family:"Times New Roman","serif"">
</span><span lang="EN-US">In Create volume method am reading the pool information as storage api need pool info(on which pool in need to create)<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:108.0pt;text-indent:-18.0pt"><span lang="EN-US" style="font-family:Symbol">·</span><span lang="EN-US" style="font-size:7.0pt;font-family:"Times New Roman","serif"">
</span><span lang="EN-US">Like pool_id = volume_utils.extract_host(volume['host'], level='pool') by making use of below import<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:72.0pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:108.0pt"><span lang="EN-US">from cinder.volume import utils as volume_utils<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:90.0pt"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:36.0pt"><b><span lang="EN-US">Problem am facing is:<o:p></o:p></span></b></p>
<p class="MsoNormal" style="text-indent:36.0pt"><b><span lang="EN-US"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US"> The scheduler is not always picking the free pool which has space, it returns the pool which don’t have space.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> I came to know when I printed the volume['host'] and above pool id.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there anything else I must do? Please suggest.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Dilip<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p><span lang="EN-US" style="font-size:7.0pt">The information contained in this e-mail message and in any attachments/annexure/appendices is confidential to the
<br>
recipient and may contain privileged information. If you are not the intended recipient, please notify the<br>
sender and delete the message along with any attachments/annexure/appendices. You should not disclose,<br>
copy or otherwise use the information contained in the message or any annexure. Any views expressed in this e-mail
<br>
are those of the individual sender except where the sender specifically states them to be the views of
<br>
Toshiba Software India Pvt. Ltd. (TSIP),Bangalore.<br>
Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no
responsibility is accepted by Toshiba Software India Pvt. Ltd, for any loss or damage arising in any way from its use.</span><span lang="EN-US"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-size:7.0pt">The information contained in this e-mail message and in any attachments/annexure/appendices is confidential to the
<br>
recipient and may contain privileged information. If you are not the intended recipient, please notify the<br>
sender and delete the message along with any attachments/annexure/appendices. You should not disclose,<br>
copy or otherwise use the information contained in the message or any annexure. Any views expressed in this e-mail
<br>
are those of the individual sender except where the sender specifically states them to be the views of
<br>
Toshiba Software India Pvt. Ltd. (TSIP),Bangalore.<br>
Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no
responsibility is accepted by Toshiba Software India Pvt. Ltd, for any loss or damage arising in any way from its use.</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
</body>
</html>