<div dir="ltr">Couldn't you sort the result from the neutron port query by port UUID so the ordering is maintained until ports are added or deleted?</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 1:49 PM, Don Waterloo <span dir="ltr"><<a href="mailto:don.waterloo@gmail.com" target="_blank">don.waterloo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On 20 January 2015 at 22:20, Don Waterloo <span dir="ltr"><<a href="mailto:don.waterloo@gmail.com" target="_blank">don.waterloo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">For any one else who hits this, I entered <a href="https://bugs.launchpad.net/nova/+bug/1413049" target="_blank">https://bugs.launchpad.net/nova/+bug/1413049</a><br><div>which contains a patch.</div><div><br></div><div>In a nutshell, @ the bottom end of reloading/healing the cache, it turns around and uses the cache in _gather_port_ids_and_networks().</div><div><br></div><div>My fix is to use the neutron api and call list_ports.</div></div><div class="gmail_extra"><div class="gmail_quote"><div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div></div></blockquote></span></div></div></div></blockquote></div></div></div></div></blockquote><div><br></div></span><div>sigh, my patch is not correct. the order of the ports is not preserved on the neutron /ports.json call, and that is important to nova.</div><div><br></div><div>Does anyone know a solution to this?</div><div><br></div><div>e.g. if i have an instance that has 2 ports, GET /...ports.json?device_id=UUID might return them in either order, presumably since its stored as a hashmap or something.</div><div><br></div><div> </div></div></div></div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div>Kevin Benton</div></div>
</div>