metadata proxy launched by l3 agent is missing the metadata port

Bug #1160955 reported by mouadino
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
mouadino
Grizzly
Fix Released
Medium
Gary Kotton

Bug Description

While configuring quantum to run in my own setup with namespace enable and after i created 2 quantum networks and an internal router, i remarked that whenever i start a VM, this later can't connect to the metadata service.

So after digging in the namespace of the router, using the commands:

$ ip netns exec <router-id> netstat -anp
$ ip netns exec <router-id> iptables-save | grep 169.254.169.254

I saw that the quantum-ns-metadata-proxy process was listening on the wrong port, because in my case i had configured the metadata quantum server to listen on a different port than the default one (9697) in the l3_agent configuration, while the pre-routing iptables rule was configured correctly.

So after checking the code i saw that the iptables rule for pre-routing the package from 169.254.169.254 to the metadata quantum server port was correct but when it come to the proxy (i.e. quantum-ns-metadata-proxy), i saw that it wasn't getting the right configuration from anywhere and that's why it was listening on the default port (9697).

I am including here a patch that fix this and hopefully my conclusion was correct and that i didn't miss anything.

N.B: This is my first contribution to the OpenStack project.

Tags: l3-ipam-dhcp
Revision history for this message
mouadino (mouadino) wrote :
tags: added: l3-ipam-dhcp
Changed in quantum:
importance: Undecided → Medium
Changed in quantum:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (master)

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

Changed in quantum:
assignee: nobody → mouadino (mouadino)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/25526
Committed: http://github.com/openstack/quantum/commit/e1b3e1678d37756692796b2099e75a872a8b35ea
Submitter: Jenkins
Branch: master

commit e1b3e1678d37756692796b2099e75a872a8b35ea
Author: mouad benchchaoui <email address hidden>
Date: Sat Mar 30 11:56:44 2013 +0100

    Pass metadata port to metadata proxy

    Make the l3 agent pass the port used by the metadata service to the router namespace proxy when
    creating it and add also new tests for this.

    Fixes LP# 1160955
    Change-Id: Iec8a5238345b26e70b0aa1dc96a896e26af34722

Changed in quantum:
status: In Progress → Fix Committed
Changed in quantum:
milestone: none → havana-1
tags: added: grizzly-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/25898

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to quantum (stable/grizzly)

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/26194

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to quantum (stable/grizzly)

Reviewed: https://review.openstack.org/26194
Committed: http://github.com/openstack/quantum/commit/c82d72ff761da10367acfa466a46475869f159bd
Submitter: Jenkins
Branch: stable/grizzly

commit c82d72ff761da10367acfa466a46475869f159bd
Author: mouad benchchaoui <email address hidden>
Date: Sat Mar 30 11:56:44 2013 +0100

    Pass metadata port to metadata proxy

    Make the l3 agent pass the port used by the metadata service to the router namespace proxy when
    creating it and add also new tests for this.

    Fixes LP# 1160955
    Change-Id: Iec8a5238345b26e70b0aa1dc96a896e26af34722

tags: added: in-stable-grizzly
Gary Kotton (garyk)
tags: removed: grizzly-backport-potential
Thierry Carrez (ttx)
Changed in quantum:
status: Fix Committed → Fix Released
Alan Pevec (apevec)
tags: removed: in-stable-grizzly
Thierry Carrez (ttx)
Changed in neutron:
milestone: havana-1 → 2013.2
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.