<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 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        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:SimSun;
        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;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"\6279\6CE8\6846\6587\672C Char";
        margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:9.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.Char
        {mso-style-name:"\6279\6CE8\6846\6587\672C Char";
        mso-style-priority:99;
        mso-style-link:\6279\6CE8\6846\6587\672C;}
.MsoChpDefault
        {mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.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="blue" vlink="purple" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi Duncan,<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">Really thanks for replying and sorry for my delayed response due to Chinese new year.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><i><span lang="EN-US">> 1) Driver authors tend, in my experience, to know more than admins, so<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US">> drivers should be able (where useful) to be able to set a default value to<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US">> either filter expression or weighting expression<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">Actually I am in a team which is writing cinder driver for Huawei storage array, and I agree that driver authors know more than admins about the storage device, but not the requirement. I think it’s admin’s choice what
 kind of storage is needed, e.g:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">1) Admin A cares nothing but free capacity, so capacity filter is enough for him;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">2) Admin B want SLA volume, so he need min_iops/min_bandwidth/replication to be filter conditions (in this case, the admin is likely to create a special volume-type);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m not sure if the scenario above is in the scope of this BP, but I think editing equation in cinder.conf IS a way to match the requirement.<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"><i><span lang="EN-US">> 2) Admins definitely need to be able to over-ride this if desired via<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US">> cinder.conf<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US">> I thing it is fairly easy (and beneficial) to go through the in-tree<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US">> drivers and add the conf value to the stats report, once the base driver<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US">> change has merged.<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">Do you mean the cinder base driver can have the built-in implementation of filter/goodness function? Is there a plan? maybe we can do something about this.  <o:p></o:p></span></p>
</div>
</body>
</html>