Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
Metadata forwarding must be handled by the gateway, and since nova does
not do any setup in this mode, it must be done manually.  Requests to
169.254.169.254 port 80 will need to be forwarded to the api server.

There is following method in nova/network/linux_net.py, but it's only called while using Flat DHCP Manager or VLAN Manager.

def metadata_forward(): """Create forwarding rule for metadata""" _confirm_rule("PREROUTING", "-t nat -s 0.0.0.0/0 " "-d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT " "--to-destination %s:%s" % (FLAGS.ec2_dmz_host, FLAGS.ec2_port))