<div dir="ltr">Hi Marc, <div><br></div><div>I am driving the ironic-ml2 integration and introduced baremetal type for vmic_type. </div><div>You can very much use the same integration here - however, I am not completely clear about your use case. </div><div>Do you want neutron/ML2 to plumb the network for Manila or do you want to find out what VLAN (segmentation id) is used on the segment which connects TOR to the storage device? </div><div><br></div><div>You had this on the agenda of ML2 meeting for tomorrow and I was going to discuss this with you in the meeting. But, I noticed that you removed it from the agenda. Do you have what you need? If not, you may want to join us in the ML2 meeting tomorrow and we can discuss this use case there. </div><div><br></div><div>-Sukhdev</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 1, 2016 at 1:08 AM, Koderer, Marc <span dir="ltr"><<a href="mailto:marc@koderer.com" target="_blank">marc@koderer.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><span class=""><blockquote type="cite"><div>On 01 Mar 2016, at 06:22, Kevin Benton <<a href="mailto:kevin@benton.pub" target="_blank">kevin@benton.pub</a>> wrote:</div><br><div><div dir="ltr">><span style="font-size:12.8px">This seems gross and backwards. It makes sense as a short term hack but given that we have time to design this correctly I'd prefer to get this information in a more straighforward way.</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Well it depends on what is happening here. If Manilla is wiring up a specific VLAN for a port, that makes it part of the port binding process, in which case it should be an ML2 driver. Can you provide some more details about what Manilla is doing with this info?</span></div></div></div></blockquote><div><br></div></span><div><div>The VLAN segment ID and IP address is used in the share driver to configure the</div><div>corresponding interface resources within the storage. Just to give some</div><div>examples:</div><div><br></div><div> - NetApp driver uses it to create a logical interface and assign it to a</div><div>   “storage virtual machine” [1]</div><div> - EMC driver does it in similar manner [2]</div><div><br></div><div>My idea was to use the same principle as ironic ml2 intregration is doing [3]</div><div>by setting the vnic_type to “baremetal”.</div><div><br></div><div>In Manila's current implementation storage drivers are also responsible to</div><div>setup the right networking setup. Would you suggest to move this part into the</div><div>port binding phase?</div><div><br></div><div>Regards</div><div>Marc</div></div><div><br></div><div><br></div><div>[1]: <a href="https://github.com/openstack/manila/blob/master/manila/share/drivers/netapp/dataontap/cluster_mode/lib_multi_svm.py#L272" target="_blank">https://github.com/openstack/manila/blob/master/manila/share/drivers/netapp/dataontap/cluster_mode/lib_multi_svm.py#L272</a></div><div>[2]: <a href="https://github.com/openstack/manila/blob/master/manila/share/drivers/emc/plugins/vnx/connection.py#L609" target="_blank">https://github.com/openstack/manila/blob/master/manila/share/drivers/emc/plugins/vnx/connection.py#L609</a></div><div>[3]: <a href="https://specs.openstack.org/openstack/ironic-specs/specs/not-implemented/ironic-ml2-integration.html" target="_blank">https://specs.openstack.org/openstack/ironic-specs/specs/not-implemented/ironic-ml2-integration.html</a></div><div><div class="h5"><div><br></div><br><blockquote type="cite"><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 29, 2016 at 5:29 PM, Ben Swartzlander <span dir="ltr"><<a href="mailto:ben@swartzlander.org" target="_blank">ben@swartzlander.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 02/29/2016 04:38 PM, Kevin Benton wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You're correct. Right now there is no way via the HTTP API to find which<br>
segments a port is bound to.<br>
This is something we can certainly consider adding, but it will need an<br>
RFE so it wouldn't land until Newton at the earliest.<br>
</blockquote>
<br></span>
I believe Newton is the target for this work. This is feature freeze week after all.<span><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Have you considered writing an ML2 driver that just notifies Manilla of<br>
the port's segment info? All of this information is available to ML2<br>
drivers in the PortContext object that is passed to them.<br>
</blockquote>
<br></span>
This seems gross and backwards. It makes sense as a short term hack but given that we have time to design this correctly I'd prefer to get this information in a more straighforward way.<br>
<br>
-Ben Swartzlander<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>
On Mon, Feb 29, 2016 at 6:48 AM, Ihar Hrachyshka <<a href="mailto:ihrachys@redhat.com" target="_blank">ihrachys@redhat.com</a><br></span><span>
<mailto:<a href="mailto:ihrachys@redhat.com" target="_blank">ihrachys@redhat.com</a>>> wrote:<br>
<br>
    Fixed neutron tag in the subject.<br>
<br></span><div><div>
    Marc <<a href="mailto:marc@koderer.com" target="_blank">marc@koderer.com</a> <mailto:<a href="mailto:marc@koderer.com" target="_blank">marc@koderer.com</a>>> wrote:<br>
<br>
        Hi Neutron team,<br>
<br>
        I am currently working on a feature for hierarchical port<br>
        binding support in<br>
        Manila [1] [2]. Just to give some context: In the current<br>
        implementation Manila<br>
        creates a neutron port but let it unbound (state DOWN).<br>
        Therefore Manila uses<br>
        the port create only retrieve an IP address and segmentation ID<br>
        (some drivers<br>
        only support VLAN here).<br>
<br>
        My idea is to change this behavior and do an actual port binding<br>
        action so that<br>
        the configuration of VLAN isn’t a manual job any longer. And<br>
        that multi-segment<br>
        and HPB is supported on the long-run.<br>
<br>
        My current issue is: How can Manila retrieve the segment<br>
        information for a<br>
        bound port? Manila only is interested in the last (bottom)<br>
        segmentation ID<br>
        since I assume the storage is connected to a ToR switch.<br>
<br>
        Database-wise it’s possible to query it using<br>
        ml2_port_binding_levels table.<br>
        But AFAIK there is no API to query this. The only information<br>
        that is exposed<br>
        are all segments of a network. But this is not sufficient to<br>
        identify which<br>
        segments actually used for a port binding.<br>
<br>
        Regards<br>
        Marc<br>
        SAP SE<br>
<br>
        [1]:<br>
        <a href="https://wiki.openstack.org/wiki/Manila/design/manila-newton-hpb-support" rel="noreferrer" target="_blank">https://wiki.openstack.org/wiki/Manila/design/manila-newton-hpb-support</a><br>
        [2]: <a href="https://review.openstack.org/#/c/277731/" rel="noreferrer" target="_blank">https://review.openstack.org/#/c/277731/</a><br>
        __________________________________________________________________________<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.openstack.org?subject:unsubscribe</a><br></div></div>
        <<a href="http://OpenStack-dev-request@lists.openstack.org/?subject:unsubscribe" rel="noreferrer" target="_blank">http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>><span><br>
        <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
<br>
<br>
    __________________________________________________________________________<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.openstack.org?subject:unsubscribe</a><br></span>
    <<a href="http://OpenStack-dev-request@lists.openstack.org/?subject:unsubscribe" rel="noreferrer" target="_blank">http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>><span><br>
    <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
<br>
<br>
<br>
__________________________________________________________________________<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.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
</span></blockquote><div><div>
<br>
<br>
__________________________________________________________________________<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.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br></div>
__________________________________________________________________________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" target="_blank">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br></div></blockquote></div></div></div><br></div><br>__________________________________________________________________________<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.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>