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?

On Wed, Jan 21, 2015 at 1:49 PM, Don Waterloo <don.water...@gmail.com>
wrote:

>
>
> On 20 January 2015 at 22:20, Don Waterloo <don.water...@gmail.com> wrote:
>
>> For any one else who hits this, I entered
>> https://bugs.launchpad.net/nova/+bug/1413049
>> which contains a patch.
>>
>> In a nutshell, @ the bottom end of reloading/healing the cache, it turns
>> around and uses the cache in _gather_port_ids_and_networks().
>>
>> My fix is to use the neutron api and call list_ports.
>>
>>>
>>>>
> 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.
>
> Does anyone know a solution to this?
>
> 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.
>
>
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack@lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>


-- 
Kevin Benton
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to