Ask Your Question
1

How to set up metadata service on a flat network?

asked 2013-05-09 16:29:12 -0500

aso726 gravatar image

updated 2013-06-11 10:25:50 -0500

fifieldt gravatar image

I've seen docs but they all say to set up an L3 agent. In our case, our VM's are all set up in a flat network. How do I set up a metadata agent with no L3 agent?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-05-10 20:47:53 -0500

You'll need to install the following iptable rule on all your HV's that have instances connected to the flat network:

iptables -t nat -A PREROUTING -d 169.254.169.254 -p tcp -m tcp --dport 80 -j DNAT --to-destination <nova-api>:8775

note: your nova-api host will need to be able to route packets to/from this network in order for it to work otherwise you'll need to run a nova-api-metadata instance on the flat network which will proxy the requests for you.

edit flag offensive delete link more

Comments

The nova-api host needs to route packets to/from which network, exactly?

briancline gravatar imagebriancline ( 2013-07-29 13:53:00 -0500 )edit
1

shouldnt that prerouting rule be automatically created?

Mathias Ewald gravatar imageMathias Ewald ( 2013-12-12 13:31:10 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2013-05-09 16:29:12 -0500

Seen: 1,545 times

Last updated: May 10 '13