<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">There should be a redirect in iptables from 169.254.169.254:80 to $my_ip:8775 (where nova-api-metadata is running)<div><br></div><div>So:</div><div><br></div><div>a) can you</div><div><br></div><div> curl $my_ip:8775 (should 404)</div><div><br></div><div>b) if you do</div><div><br></div><div> sudo iptables -t nat -L -n v</div><div><br></div><div>do you see the forward rule? Is it getting hit properly?</div><div><br></div><div>Vish</div><div> </div><div><div><div>On Dec 19, 2012, at 6:39 AM, Gui Maluf <<a href="mailto:guimalufb@gmail.com">guimalufb@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>My set up is a <a href="http://docs.openstack.org/trunk/openstack-compute/admin/content/existing-ha-networking-options.html" target="_blank">nova-network-ha</a>, so each of my nodes run a nova-{api-metadata,network,compute,volume}, my controller runs all of this plus the rest of things it should run.<br>
</div><div>Each of my nodes are the gateway for it's own instances. They all have the same net config, ip_forwarding. <br><br>The main issue is that I can't telnet the nodes on port 80 that should redirect to metadatas server. metadata IP is set correctly to eth0, but 80 port is not open.<br>
</div><div>My doubt is, should I create a endpoint for each node api-metadata service? should I install apache on nodes?<br><br><div>I really don't know what to do anymore. This only happen
on nodes, on cloudcontroller all instance run smoothly. they get the
floatip, metadata service, etc.<br><br>Thanks in advance!<br clear="all"></div><br></div><div></div><div>
</div><div><br></div>
<div>I will put the max of info I can here.<br><br>root@oxala:~# nova-manage service list <br>
Binary Host Zone Status State Updated_At<br>nova-compute xango nova enabled :-) 2012-12-18 20:34:21<br>nova-network xango nova enabled :-) 2012-12-18 20:34:20<br>
nova-compute oxossi nova enabled :-) 2012-12-18 20:34:15<br>nova-network oxossi nova enabled :-) 2012-12-18 20:34:20<br>
nova-volume oxossi nova enabled :-) 2012-12-18 20:34:18<br>nova-volume xango nova enabled :-) 2012-12-18 20:34:19<br>
nova-consoleauth oxala nova enabled :-) 2012-12-18 20:34:24<br>nova-scheduler oxala nova enabled :-) 2012-12-18 20:34:25<br>
nova-cert oxala nova enabled :-) 2012-12-18 20:34:25<br>nova-volume oxala nova enabled :-) 2012-12-18 20:34:25<br>
nova-network oxala nova enabled :-) 2012-12-18 20:34:17<br>nova-compute oxala nova enabled :-) 2012-12-18 20:34:10<br>
<br></div><div><b>controller nova.conf</b><br>#NETWORK<br>--allow_same_net_traffic=true<br>--network_manager=nova.network.manager.FlatDHCPManager<br>--firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver<br>
--public_interface=eth0<br>
--flat_interface=eth1<br>--flat_network_bridge=br100<br>--fixed_range=<a href="http://10.5.5.32/27" target="_blank">10.5.5.32/27</a><br>--network_size=32<br>--flat_network_dhcp_start=10.5.5.33<br>--my_ip=200.131.6.250<br>
--multi_host=True<br>
#--enabled_apis=ec2,osapi_compute,osapi_volume,metadata <br>--dhcpbridge_flagfile=/etc/nova/nova.conf<br>--dhcpbridge=/usr/bin/nova-dhcpbridge<br>--force_dhcp_release<br>--ec2_private_dns_show<br>--routing_source_ip=$my_ip<br>
</div><div><br><div><b>nodes nova.conf</b><br></div><div>{same network configs}<br></div><div>--my_ip=200.131.6.248<br>--multi_host=True<br>--enabled_apis=ec2,osapi_compute,osapi_volume,metadata <br>--routing_source_ip=$my_ip<br>
</div><br></div><b>controller iptables -L -vn && </b><b>iptables -L -vn</b> <b>-t nat</b><br><a href="http://paste.openstack.org/show/mkWZTYI6cKHR4qUWbOUz/" target="_blank">http://paste.openstack.org/show/mkWZTYI6cKHR4qUWbOUz/</a><br>
<div><b>node</b> <b>iptables -L -vn && </b><b>iptables -L -vn</b> <b>-t nat<br></b><a href="http://paste.openstack.org/show/28384/" target="_blank">http://paste.openstack.org/show/28384/</a><b><br></b><b><br></b><br>
<div><b>controller ip a</b><br>
<a href="http://paste.openstack.org/show/W2vrVtost2EP2u62iZwp/" target="_blank">http://paste.openstack.org/show/W2vrVtost2EP2u62iZwp/</a><br>root@oxala:~# route<br>Tabela de Roteamento IP do Kernel<br>Destino Roteador MáscaraGen. Opções Métrica Ref Uso Iface<br>
default 200.131.6.129 0.0.0.0 UG 100 0 0 eth0<br>10.5.5.32 * 255.255.255.224 U 0 0 0 br100<br>200.131.6.128 * 255.255.255.128 U 0 0 0 eth0<br>
</div><br><b><b>node ip a</b><br></b><a href="http://paste.openstack.org/show/S44TL3sznIztNCO3s8p2/" target="_blank">http://paste.openstack.org/show/S44TL3sznIztNCO3s8p2/</a><b><br></b>root@oxossi:~# route<br>Tabela de Roteamento IP do Kernel<br>
Destino Roteador MáscaraGen. Opções Métrica Ref Uso Iface<br>default 200.131.6.129 0.0.0.0 UG 100 0 0 eth0<br>10.5.5.32 * 255.255.255.224 U 0 0 0 br100<br>
200.131.6.128 * 255.255.255.128 U 0 0 0 eth0<br><b><br><br></b></div><div><b>And finnaly the error throw out by the vm when running on Nodes.<br><br></b></div><div><pre>ci-info: lo : 1 127.0.0.1 255.0.0.0 .
ci-info: eth0 : 1 10.5.5.53 255.255.255.224 fa:16:3e:69:cb:d2
ci-info: route-0: 0.0.0.0 10.5.5.35 0.0.0.0 eth0 UG
ci-info: route-1: 10.5.5.32 0.0.0.0 255.255.255.224 eth0 U
cloud-init start running: Tue, 18 Dec 2012 20:34:09 +0000. up 4.02 seconds
2012-12-18 20:34:15,967 - util.py[WARNING]: '<a href="http://169.254.169.254/2009-04-04/meta-data/instance-id" target="_blank">http://169.254.169.254/2009-04-04/meta-data/instance-id</a>' failed [6/120s]: url error [[Errno 113] No route to host]</pre>
<br></div><br>-- <br><font face="Arial, Helvetica, sans-serif"><b>guilherme</b> \n<br>\<font>t</font> <b>maluf</b><br></font>
</div>
_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote></div><br></div></body></html>