metadata proxy launched by l3 agent is missing the metadata port

Bug #1160955 reported by mouadino on 2013-03-27
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Medium
mouadino
Grizzly
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: added: l3-ipam-dhcp
Changed in quantum:
importance: Undecided → Medium
Changed in quantum:
status: New → Confirmed

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

Changed in quantum:
assignee: nobody → mouadino (mouadino)
status: Confirmed → In Progress

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

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) on 2013-04-22
tags: removed: grizzly-backport-potential
Thierry Carrez (ttx) on 2013-05-29
Changed in quantum:
status: Fix Committed → Fix Released
Alan Pevec (apevec) on 2013-08-06
tags: removed: in-stable-grizzly
Thierry Carrez (ttx) on 2013-10-17
Changed in neutron:
milestone: havana-1 → 2013.2
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers