get_instance_uuids_by_ip_filter is slow, making ec2 metadata slow

Bug #934356 reported by Scott Moser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Jason Kölker

Bug Description

As discussed today in openstack-dev [1], the code in instance_uuids_by_ip_filter of nova/network/manager, added [2] is very slow.

In one openstack deployment, it was the primary issue causing metadata service requests to be unbearably slow (over 3 seconds, hitting a timeout on cloud-init requests).

jkoelker suggested paste at [3], and with minor issue fixed at [4]. and it went over reasonably well.

--
[1] http://eavesdrop.openstack.org/irclogs/%23openstack-dev/%23openstack-dev.2012-02-17.log
[2] https://github.com/openstack/nova/commit/8f9453aeb8882509d825c9715fde4e6827b0bbf7
[3] http://paste.openstack.org/show/4860/
[4] http://paste.openstack.org/show/4861/

Tags: ec2
Chuck Short (zulcss)
tags: added: ec2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/4276

Changed in nova:
assignee: nobody → Jason Kölker (jason-koelker)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/4276
Committed: http://github.com/openstack/nova/commit/5d3dbb4127785c77604602cd1737b75e30126b6e
Submitter: Jenkins
Branch: master

commit 5d3dbb4127785c77604602cd1737b75e30126b6e
Author: Jason Kölker <email address hidden>
Date: Fri Feb 17 11:07:40 2012 -0600

    Query directly for just the ip

    * Fixes LP934356

    Change-Id: I99b1501b1ef86eafb89fe9416f2668e4325a3656

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → essex-4
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-4 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.