Can't dnat from 169.254.169.254:80 to host:8775

Bug #1212168 reported by Xiang Hui
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Xiang Hui

Bug Description

After setting "enable_metadata_proxy=False" on /etc/neutron/l3_agent.ini, which means shut down the
neutron-ns-metadata-proxy, and choose to use nova metadata, but there still have a rule as below:

iptables -t nat -D neutron-l3-agent-PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 9697

which will block the rules

iptables -t nat -A PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination $HOST:8775

I think this is a bug, it should be fixed in the code, if not enable neutron metadata , then don't add the first rule.
Thanks advance for any advice.

Tags: l3-ipam-dhcp
Xiang Hui (xianghui)
description: updated
Changed in neutron:
assignee: nobody → Mark McClain (markmcclain)
status: New → Triaged
tags: added: l3-ipam-dhcp
removed: metadata
Revision history for this message
Xiang Hui (xianghui) wrote :

Hi Mark,
  Are you going to fix it? : )
Thanks.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
assignee: Mark McClain (markmcclain) → Xiang Hui (xianghui)
status: Triaged → In Progress
Revision history for this message
Jian Wen (wenjianhn) wrote :

Maybe it's worth filing a new bug to remove the metadata filter rules as well.

Revision history for this message
Xiang Hui (xianghui) wrote :

@Jian Wen, sorry, I didn't get it, are you going to say l3 agent didn't remove this metadata filter rules after user disable the metadata proxy? if so, that's a good point.

Thanks.

Revision history for this message
Xiang Hui (xianghui) wrote :

@Jian Wen, I got your point , the metadata filter rules should be treated as metadata nat rules.
Great Thanks.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/45559
Committed: http://github.com/openstack/neutron/commit/84d73ec5999339919c937687c81de77732886bd4
Submitter: Jenkins
Branch: master

commit 84d73ec5999339919c937687c81de77732886bd4
Author: Hui HX Xiang <email address hidden>
Date: Sat Sep 7 19:51:42 2013 -0700

    Don't add neutron metadata_nat_rules if disable metadata proxy

    This patchset fixes this issue by adding a condition when adding nat
    rules of neutron metadata proxy.

    fixes bug #1212168

    Change-Id: I99775aad73c49a8df3043690440d214614279a2b

Changed in neutron:
status: In Progress → Fix Committed
Changed in neutron:
importance: Undecided → Low
milestone: none → havana-rc1
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: havana-rc1 → 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.