<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 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 class="">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 class=""><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 class="">
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 class="">
<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 class="h5">
    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 class=""><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 class=""><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 class="HOEnZb"><div class="h5">
<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>