<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=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        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.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:454982973;
        mso-list-type:hybrid;
        mso-list-template-ids:-1262050548 1766362248 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:27.0pt;
        text-indent:-.25in;
        font-family:"Times New Roman","serif";
        mso-fareast-font-family:"Times New Roman";}
@list l0:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:63.0pt;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:99.0pt;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level4
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:135.0pt;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:171.0pt;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level6
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:207.0pt;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l0:level7
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:243.0pt;
        text-indent:-.25in;
        font-family:Symbol;}
@list l0:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:279.0pt;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l0:level9
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:315.0pt;
        text-indent:-.25in;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoPlainText">Hi list,<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">After study  <a href="https://wiki.openstack.org/wiki/Manila/Kilo_Network_Spec">
https://wiki.openstack.org/wiki/Manila/Kilo_Network_Spec</a><o:p></o:p></p>
<p class="MsoPlainText">I’d like to change my proposal.<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Since driver mode is actually decide by its network situation, how about:<o:p></o:p></p>
<p class="MsoPlainText">  static_network_mode<o:p></o:p></p>
<p class="MsoPlainText">  <span style="font-family:"Cambria Math","serif"">⇨</span> No share server<o:p></o:p></p>
<p class="MsoPlainText">  <span style="font-family:"Cambria Math","serif"">⇨</span> import share server from other place<o:p></o:p></p>
<p class="MsoPlainText">  <o:p></o:p></p>
<p class="MsoPlainText">  dynamic_network_mode<o:p></o:p></p>
<p class="MsoPlainText">  <span style="font-family:"Cambria Math","serif"">⇨</span> flat network<o:p></o:p></p>
<p class="MsoPlainText">  <span style="font-family:"Cambria Math","serif"">⇨</span> segmented network<o:p></o:p></p>
<p class="MsoPlainText">      o share server at the same subnet of share network<o:p></o:p></p>
<p class="MsoPlainText">      o share server connect to tenant subnet using router
<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">The use                case would like this:<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">enabled_backends=generic1,generic2,glusterfs1<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">[generic1]<o:p></o:p></p>
<p class="MsoPlainText">driver=manila.share.drivers.generic.GenericShareDriver<o:p></o:p></p>
<p class="MsoPlainText">mode=dynamic_network_mode<o:p></o:p></p>
<p class="MsoPlainText">network=network1<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">[generic2]<o:p></o:p></p>
<p class="MsoPlainText">driver=manila.share.drivers.generic.GenericShareDriver<o:p></o:p></p>
<p class="MsoPlainText">mode=static_network_mode<o:p></o:p></p>
<p class="MsoPlainText">enable_share_server=True<o:p></o:p></p>
<p class="MsoPlainText">share_server=server1<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">[glusterfs1]<o:p></o:p></p>
<p class="MsoPlainText">share_driver = manila.share.drivers.glusterfs.GlusterfsShareDriver<o:p></o:p></p>
<p class="MsoPlainText">glusterfs_target = manila:/manila-volume0<o:p></o:p></p>
<p class="MsoPlainText">mode=static_network_mode<o:p></o:p></p>
<p class="MsoPlainText">enable_share_server=False<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">[network1]<o:p></o:p></p>
<p class="MsoPlainText">plugin=manila.network.Neutron<o:p></o:p></p>
<p class="MsoPlainText">network_type=flat<o:p></o:p></p>
<p class="MsoPlainText">network=192.168.10.0<o:p></o:p></p>
<p class="MsoPlainText">netmask=255.255.255.0<o:p></o:p></p>
<p class="MsoPlainText">gateway=192.168.10.1<o:p></o:p></p>
<p class="MsoPlainText">ip_range=192.168.10.50-192.168.10.99<o:p></o:p></p>
<p class="MsoPlainText">                                                                  
<o:p></o:p></p>
<p class="MsoPlainText">[server1]<o:p></o:p></p>
<p class="MsoPlainText">server_type=nova<o:p></o:p></p>
<p class="MsoPlainText">is_deletable=False<o:p></o:p></p>
<p class="MsoPlainText">id=xxxxx<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Li, Chen [mailto:chen.li@intel.com]
<br>
<b>Sent:</b> Tuesday, December 30, 2014 5:27 PM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> [openstack-dev] [Manila]Rename driver mode<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">Hi list,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">There are two driver modes in manila currently, “multi_svm_mode” and “single_svm_mode”.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">"multi_svm_mode" means usage of share-networks that contain network information for dynamic creation of share-servers (SVMs).<br>
"single_svm_mode" means usage of predefined some endpoint, without need to provide share-network and without creation of share-servers (SVMs).
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">Currently, the name of driver mode describes how many servers the driver can handle.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">For "multi", it says that share driver can handle more than one server.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">And,  if someone share server is just already exist from share driver, but it uses some server anyway with host address, username, password, NFS daemon, etc... are defined
 as works in "single_svm" mode too.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">But, as a new user to manila, these names make me really confusing.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">Because I thought the driver mode names describe how drivers works with share-servers.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">I thought “multi-” and “single-” indicate the number of share-servers would been created when we create a share, if we are using the driver.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">Obviously, my understanding is wrong.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">When we’re working under driver generic, one share-server would be created for one share-network.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">When we’re working under driver glusterfs, no share-server would be created at all.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">I believe I would not be the only one who is making this mistake.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">To make code more readable, I’d like to suggest to rename driver mode names.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">Name them based on behavior but not ability.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">I think three driver modes are needed:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt;text-indent:-.25in;mso-list:l0 level1 lfo2">
<![if !supportLists]><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><![endif]><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">dynamic_svm_mode :
<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">                                  Usage of share-networks that contain network information for dynamic creation of share-servers (SVMs).
<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">                                  This is how current generic driver works.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">                                  Under this mode, driver manages share servers itself,  and share-server would be created and deleted
 with related shares.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt;text-indent:-.25in;mso-list:l0 level1 lfo2">
<![if !supportLists]><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><![endif]><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">static_svm_mode:   Using pre-create share servers.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">                              The case as
<a href="https://review.openstack.org/#/c/144342/">https://review.openstack.org/#/c/144342/</a><o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">                              Under this mode, driver do not manage share servers, but work with them.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:27.0pt;text-indent:-.25in;mso-list:l0 level1 lfo2">
<![if !supportLists]><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><![endif]><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">no_svm_mode:  the case as driver glusterfs working currently, no share-server would be created.<br>
  <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">Thanks.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">-chen<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>