<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 25, 2017 at 9:29 PM, Mark Goddard <span dir="ltr"><<a href="mailto:mark@stackhpc.com" target="_blank">mark@stackhpc.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 dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="gmail-h5">On 25 May 2017 at 11:03, Dmitry Tantsur <span dir="ltr"><<a href="mailto:dtantsur@redhat.com" target="_blank">dtantsur@redhat.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">On 05/25/2017 11:38 AM, Zhenguo Niu wrote:<span class="gmail-m_-8366010200053910201gmail-"><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
On Thu, May 25, 2017 at 4:27 PM, Dmitry Tantsur <<a href="mailto:dtantsur@redhat.com" target="_blank">dtantsur@redhat.com</a> <mailto:<a href="mailto:dtantsur@redhat.com" target="_blank">dtantsur@redhat.com</a>>> wrote:<br>
<br>
    On 05/25/2017 10:20 AM, Zhenguo Niu wrote:<br>
<br>
        hi all,<br>
<br>
<br>
    Hi!<br>
<br>
<br>
        I'm from the Mogan team, we chose the same keyward 'baremetal' when<br>
        implementing a OSC plugin [1]. As we think the baremetal command is<br>
        representative of a baremetal resource, not a service, so it makes sense<br>
        for different projects to share the top level resource name that<br>
        OpenStack can provide.<br>
<br>
<br>
    We do not "own" the word "baremetal", so nothing prevents you from using it.<br>
    However, in my experience:<br>
    1. This does confuse users, as they expect "openstack baremetal" to be a<br>
    prefix belonging to Ironic.<br>
    2. Collisions may happen. We had two collisions with TripleO already, one<br>
    resulted in us killing a TripleO command abruptly.<br>
<br>
<br>
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.<br>
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.<br>
</blockquote>
<br></span>
I don't share this understanding, depends on a situation. A user of a purely baremetal cloud, or an installer like TripleO, may use the baremetal commands all the time.<span class="gmail-m_-8366010200053910201gmail-"><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
        The commands we have implemented are listed below, seems there's no<br>
        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><br>
<br>
<br>
    Ironic does not have any notion of either of these, so it should be fine.<br></blockquote></span></blockquote><div><br></div></div></div>When using the openstack CLI I'm often in a 'discovery' mode, particularly if I'm interacting with a service that I don't often interact with. I often use the tab autocomplete and fuzzy match features of OSC as I explore. Having command prefix match multiple services could be confusing, particularly if I have python-moganclient installed but no mogan service exists.<div><br></div><div>If there were an additional command prefix for mogan as is used for ironic inspector (openstack baremetal introspection ...), this would at least group the mogan commands.</div><div><br></div><div>        * openstack baremetal foo server <action> <args><br>        * openstack baremetal foo flavor <action> <args><br>        * openstack baremetal foo keypair <action> <args><br></div><div>        * openstack baremetal foo availability zone <action> <args></div><div><div class="gmail-h5"><div><br></div></div></div></div></div></div></blockquote><div><br></div><div><div>In fact, at first we used an additional prefix for mogan (openstack baremetal compute) like ironic inspector to group our commands, but then we find there's no collision with the existing commands if we remove the prefix and</div><div>only using 'baremetal'makes users type less. But seems we make this change from the point of view of an OpenStack developer instead of the OSC users.</div><div><br></div><div>We can change to use 'openstack baremetal compute' if it makes less confusing, It looks like a good alternative to me :)</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 dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="gmail-h5"><div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-m_-8366010200053910201gmail-"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
    I'm still a bit on a -1 side because of potential users confusion. I wonder<br>
    how can we send a message across that prefixes do not designate a specific<br>
    project, but are rather just part of a "sentence". I'm specifically worried<br>
    about confusing "baremetal server" of Mogan with "baremetal node" of Ironic.<br>
    For many people these can be synonyms.<br>
<br>
<br>
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.<br>
</blockquote>
<br></span>
It's not obvious from a command name, though. They'll just get 403 when trying to use them.<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-m_-8366010200053910201gmail-">
<br>
<br>
        So, we'd like to ask if our CLI pattern is allowed before we release the<br>
        client.<br>
<br>
        Thanks in advance!<br>
<br>
<br>
        [1] <a href="https://github.com/openstack/python-moganclient" rel="noreferrer" target="_blank">https://github.com/openstack/p<wbr>ython-moganclient</a><br>
        <<a href="https://github.com/openstack/python-moganclient" rel="noreferrer" target="_blank">https://github.com/openstack/<wbr>python-moganclient</a>><br>
<br>
        --         Best Regards,<br>
        Zhenguo Niu<br>
<br>
<br>
        ______________________________<wbr>______________________________<wbr>______________<br>
        OpenStack Development Mailing List (not for usage questions)<br>
        Unsubscribe:<br>
        <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br></span>
        <<a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">http://OpenStack-dev-request@<wbr>lists.openstack.org?subject:un<wbr>subscribe</a>><br>
        <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><span class="gmail-m_-8366010200053910201gmail-"><br>
        <<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cg<wbr>i-bin/mailman/listinfo/opensta<wbr>ck-dev</a>><br>
<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" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br></span>
    <<a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">http://OpenStack-dev-request@<wbr>lists.openstack.org?subject:un<wbr>subscribe</a>><br>
    <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><span class="gmail-m_-8366010200053910201gmail-"><br>
    <<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cg<wbr>i-bin/mailman/listinfo/opensta<wbr>ck-dev</a>><br>
<br>
<br>
<br>
<br>
-- <br>
Best Regards,<br>
Zhenguo Niu<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" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
<br>
</span></blockquote><div class="gmail-m_-8366010200053910201gmail-HOEnZb"><div class="gmail-m_-8366010200053910201gmail-h5">
<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" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.op<wbr>enstack.org?subject:unsubscrib<wbr>e</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k-dev</a><br>
</div></div></blockquote></div></div></div><br><br></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>