<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 25, 2017 at 9:37 PM, Loo, Ruby <span dir="ltr"><<a href="mailto:ruby.loo@intel.com" target="_blank">ruby.loo@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">







<div bgcolor="white" lang="EN-US">
<div class="gmail-m_-4457442705499652059WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri">Hi Zhenguo,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri">Thanks for bringing this up. Naming is hard :-(
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri">Maybe this is a dumb question but your phrase "</span><span style="font-size:11pt;font-family:calibri">We copied nova's server resource concept here, so users may easily to accept the
 'baremetal server'" made me wonder. I'm not a user of Mogan so I don't know if this would work, but OSC already has<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri">    openstack server <action> <args><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri">    openstack flavor <action> <args><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri">    openstack keypair <action> <args><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri">Why can't we use the existing OSC commands, and add an option eg '--bm' to indicate that the server is baremetal, not a VM?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri"><u></u> </span></p></div></div></blockquote><div><br></div><div><div>Not sure if it's possible to achieve this by two different OSC plugins, and as we use different options/parameters with nova when creating a baremetal server, so I think it's hard to control by only a '--bm' option to distinguish.</div><div>And compared with vm servers, baremetal servers have different capabilities, it will make more confusing if you use 'openstack server create' to create a baremetal instance, but you can't apply below commands to it.</div><div><br></div><div>openstack server --bm pause/unpause</div><div>openstack server --bm shelve/unshelve</div><div>openstack server --bm migrate</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="white" lang="EN-US"><div class="gmail-m_-4457442705499652059WordSection1"><p class="MsoNormal"><span style="font-size:11pt;font-family:calibri"><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri">Of course, having asked this, how does the user know/distinguish between getting a baremetal instance via mogan or via nova... (and should the end user actually know that there is a difference...)
 But I suspect I am digressing.<u></u><u></u></span></p>
<p class="MsoNormal"><br></p></div></div></blockquote><div><br></div><div><div>As I understand, baremetal instance in nova is a 'specical virtual machine'(raw performance). Users claim the instance by specifying a flavor with 'vcpus', 'memory', "root_gb" instead of real hardware specs like (cpu model/cores, hard drives type/amount, nics type/amount), then he get an instance with properties like 'vm_state' and other 'virtual' stuff. As baremetal in nova use the same model and same set of API that designed for vms, so even for end users, it's not that easy to know which instance is a baremetal server, so maybe it's good to call that baremetal server a special vm instance.</div><div><br></div><div>So, yes the end user actually know that there is a difference between getting a bremetal instance via mogan or via nova :)</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="white" lang="EN-US"><div class="gmail-m_-4457442705499652059WordSection1"><p class="MsoNormal"></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri">--ruby<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:calibri"><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span style="font-family:calibri;color:black">From: </span>
</b><span style="font-family:calibri;color:black">Zhenguo Niu <<a href="mailto:niu.zglinux@gmail.com" target="_blank">niu.zglinux@gmail.com</a>><br>
<b>Reply-To: </b>"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.<wbr>openstack.org</a>><br>
<b>Date: </b>Thursday, May 25, 2017 at 5:38 AM<br>
<b>To: </b>"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.<wbr>openstack.org</a>><br>
<b>Subject: </b>Re: [openstack-dev] [OSC][ironic][mogan] Can we share the same keyword 'baremetal'?<u></u><u></u></span></p>
</div><div><div class="gmail-h5">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Thu, May 25, 2017 at 4:27 PM, Dmitry Tantsur <<a href="mailto:dtantsur@redhat.com" target="_blank">dtantsur@redhat.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">On 05/25/2017 10:20 AM, Zhenguo Niu wrote:<u></u><u></u></p>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">hi all,<u></u><u></u></p>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12pt"><br>
Hi!<span class="gmail-m_-4457442705499652059gmail-"><u></u><u></u></span></p>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><br>
I'm from the Mogan team, we chose the same keyward 'baremetal' when implementing a OSC plugin [1]. As we think the baremetal command is representative of a baremetal resource, not a service, so it makes sense for different projects to share the top level resource
 name that OpenStack can provide.<u></u><u></u></p>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12pt"><br>
We do not "own" the word "baremetal", so nothing prevents you from using it. However, in my experience:<br>
1. This does confuse users, as they expect "openstack baremetal" to be a prefix belonging to Ironic.<br>
2. Collisions may happen. We had two collisions with TripleO already, one resulted in us killing a TripleO command abruptly.<u></u><u></u></p>
</blockquote>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">Alternatively, I don't mind to change this to 'bm' or something like that for Mogan, but some operators told me that it will confuse users more to have both 'baremetal' and 'bm' in there CLI.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">And as I understand, ironic commands are not used frequently, and it's even less if ironic inspector can help to automatically enroll nodes/ports.<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><br>
The commands we have implemented are listed below, seems there's no collision with Ironic presently, and Ironic doesn't manage such resources.<br>
<br>
* openstack baremetal server <action> <args><br>
* openstack bareemtal flavor <action> <args><br>
* openstack baremetal keypair <action> <args><br>
* openstack baremetal availability zone <action> <args><u></u><u></u></p>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12pt"><br>
Ironic does not have any notion of either of these, so it should be fine.<br>
<br>
I'm still a bit on a -1 side because of potential users confusion. I wonder how can we send a message across that prefixes do not designate a specific project, but are rather just part of a "sentence". I'm specifically worried about confusing "baremetal server"
 of Mogan with "baremetal node" of Ironic. For many people these can be synonyms.<u></u><u></u></p>
</blockquote>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">We copied nova's server resource concept here, so users may easily to accept the 'baremetal server'. For 'baremetal node', seems only operators/administrators may use such commands, so seems the synonyms is not a big problem as they are
 for different roles. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal" style="margin-bottom:12pt"><br>
<span class="gmail-m_-4457442705499652059gmail-">So, we'd like to ask if our CLI pattern is allowed before we release the client.</span><br>
<br>
<span class="gmail-m_-4457442705499652059gmail-">Thanks in advance!</span><br>
<br>
<br>
<span class="gmail-m_-4457442705499652059gmail-">[1] <a href="https://github.com/openstack/python-moganclient" target="_blank">
https://github.com/openstack/<wbr>python-moganclient</a></span><br>
<br>
<span class="gmail-m_-4457442705499652059gmail-">-- </span><br>
<span class="gmail-m_-4457442705499652059gmail-">Best Regards,</span><br>
<span class="gmail-m_-4457442705499652059gmail-">Zhenguo Niu</span><br>
<br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">
OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><u></u><u></u></p>
</blockquote>
<p class="MsoNormal"><br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">
OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">Best Regards,<u></u><u></u></p>
</div>
<p class="MsoNormal">Zhenguo Niu<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div></div></div>
</div>

<br>______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best Regards,<br></div>Zhenguo Niu<br></div></div>
</div></div>