Ask Your Question

ajaya's profile - activity

2015-06-10 18:33:45 -0500 received badge  Student (source)
2014-02-11 12:42:34 -0500 received badge  Famous Question (source)
2013-12-28 22:33:54 -0500 received badge  Notable Question (source)
2013-12-24 00:57:30 -0500 received badge  Popular Question (source)
2013-12-23 14:12:23 -0500 received badge  Teacher (source)
2013-12-23 13:14:45 -0500 commented answer Can't ping from VM to Controller Node Ubuntu/Havana/nova-networking

I fixed the metadata service issue also. Looks like we have to install the nova-api on the compute node also. Metadata service documentation says that but install document didn't mention it. See my answer at https://ask.openstack.org/en/question/8581/no-connection-to-metadata-service-nova-network/%3C/p%3E (https://ask.openstack.org/en/question/8581/no-connection-to-metadata-service-nova-network/)

2013-12-23 12:54:36 -0500 answered a question No connection to metadata service - nova-network

Please install nova-api in the compute node and make sure the /etc/nova/nova.conf file has "enabled_apis=ec2,osapi_compute,metadata" entry.

As per documentation, if you are running multi_host true and using nova-networking, all compute nodes must have nova-api-metadata running.

I will submit a bug to fix the docs.

On Compute node

apt-get install nova-api

/etc/nova/nova.conf

enabled_apis=ec2,osapi_compute,metadata
2013-12-23 10:04:42 -0500 received badge  Scholar (source)
2013-12-23 10:04:07 -0500 commented answer Can't ping from VM to Controller Node Ubuntu/Havana/nova-networking

Awesome. That did it. I will look at the default setup and open a bug if this was somehow missed. But the ping issue is resolved. I still have the not being to able to reach the metadata server issue though. root@danny:~# curl http://169.254.169.254 curl: (7) couldn't connect to host

2013-12-22 22:47:03 -0500 received badge  Editor (source)
2013-12-22 22:45:51 -0500 asked a question Can't ping from VM to Controller Node Ubuntu/Havana/nova-networking

Hello

I have followed the documentation for the Havana installation on Ubuntu. I have a simple two node setup with two NICs on each. and I have followed the documentation to every bit of detail. Everything is working fine except TWO items. One is my VMs can't seem to reach the 169.254.169.254 for metadata and Second: I can't seem to ping from the cirros VM to the controller node and to the world. I can ping/SSH from the controller node into the VM. but I can't ping out from the VM. The VM can ping to the compute node it's running on.

I have done tcpdump and looks like a request goes out but won't come back. Output on Controller Node

root@ace:~# tcpdump -i any -n -v 'icmp[icmptype] = icmp-echoreply or icmp[icmptype] = icmp-echo'
tcpdump: listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes

20:43:31.983713 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto ICMP (1), length 84)
    10.0.0.2 > 192.168.0.20: ICMP echo request, id 50689, seq 0, length 64
20:43:32.983782 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto ICMP (1), length 84)
    10.0.0.2 > 192.168.0.20: ICMP echo request, id 50689, seq 1, length 64

Output on Compute Node

root@danny:~# tcpdump -i any -n -v 'icmp[icmptype] = icmp-echoreply or icmp[icmptype] = icmp-echo'
tcpdump: listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes

20:43:31.982867 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto ICMP (1), length 84)
    10.0.0.2 > 192.168.0.20: ICMP echo request, id 50689, seq 0, length 64
20:43:31.982867 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto ICMP (1), length 84)
    10.0.0.2 > 192.168.0.20: ICMP echo request, id 50689, seq 0, length 64
20:43:31.982914 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto ICMP (1), length 84)
    10.0.0.2 > 192.168.0.20: ICMP echo request, id 50689, seq 0, length 64
20:43:32.982956 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto ICMP (1), length 84)
    10.0.0.2 > 192.168.0.20: ICMP echo request, id 50689, seq 1, length 64
20:43:32.982956 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto ICMP (1), length 84)
    10.0.0.2 > 192.168.0.20: ICMP echo request, id 50689, seq 1, length 64
20:43:32.982989 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto ICMP (1), length 84)
    10.0.0.2 > 192.168.0.20: ICMP echo request, id 50689, seq 1, length 64

Output on VM

$ ping 192.168.0.20
PING 192.168.0.20 (192.168.0.20): 56 ...
(more)
2013-12-21 19:02:22 -0500 commented answer No connection to metadata service - nova-network

I can confirm the same problem following the Havana on Ubuntu guide. I see that the metadata service running by accessing the curl http://ace:8775 which outputs ============ 1.0 2007-01-19 2007-03-01 2007-08-29 2007-10-10 2007-12-15 2008-02-01 2008-09-01 2009-04-04 latest ========= But I checked my compute nodes and I see iptables forwards iptables -t nat -L -v | grep -n3 169.254.169.254 46- 47-Chain nova-network-PREROUTING (1 references) 48- pkts bytes target prot opt in out source destination 49: 0 0 DNAT tcp -- any any anywhere 169.254.169.254 tcp dpt:http to:192.168.0.21:8775 50- 51-Chain nova-network-float-snat (1 references) 52- pkts bytes target prot opt in out source destination