openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #23354
回复: Re: Unable to ping VM using OpenStack and Quantum(openvswitch plugin)
I found these from the log of the vm, is this the reason?
udhcpc (v1.18.5) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing
WARN: /etc/rc3.d/S40-network failed
cloud-setup: checking http://169.254.169.254/2009-04-04/meta-data/instance-id
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 1/30: up 10.55. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 2/30: up 11.55. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 3/30: up 12.56. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 4/30: up 13.57. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 5/30: up 14.58. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 6/30: up 15.59. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 7/30: up 16.59. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 8/30: up 17.60. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 9/30: up 18.61. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 10/30: up 19.62. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 11/30: up 20.63. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 12/30: up 21.63. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 13/30: up 22.64. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 14/30: up 23.65. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 15/30: up 24.66. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 16/30: up 25.66. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 17/30: up 26.67. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 18/30: up 27.68. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 19/30: up 28.69. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 20/30: up 29.70. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 21/30: up 30.71. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 22/30: up 31.71. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 23/30: up 32.72. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 24/30: up 33.73. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 25/30: up 34.74. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 26/30: up 35.74. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 27/30: up 36.75. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 28/30: up 37.76. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 29/30: up 38.77. request failed
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-setup: failed 30/30: up 39.78. request failed
cloud-setup: after 30 fails, debugging
cloud-setup: running debug (30 tries reached)
############ debug start ##############
### /etc/rc.d/init.d/sshd start
/etc/rc3.d/S45-cloud-setup: line 66: /etc/rc.d/init.d/sshd: not found
route: fscanf
### ifconfig -a
eth0 Link encap:Ethernet HWaddr FA:16:3E:31:6D:6A
inet6 addr: fe80::f816:3eff:fe31:6d6a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2152 (2.1 KiB) TX bytes:1134 (1.1 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
### route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
route: fscanf
### cat /etc/resolv.conf
cat: can't open '/etc/resolv.conf': No such file or directory
### gateway not found
/etc/rc3.d/S45-cloud-setup: line 66: can't open /etc/resolv.conf: no such file
### pinging nameservers
### uname -a
Linux cirros 3.0.0-12-virtual #20-Ubuntu SMP Fri Oct 7 18:19:02 UTC 2011 x86_64 GNU/Linux
### lsmod
Module Size Used by Not tainted
vfat 17585 0
fat 61475 1 vfat
isofs 40253 0
ip_tables 27473 0
x_tables 29846 1 ip_tables
pcnet32 42078 0
8139cp 27412 0
ne2k_pci 13691 0
8390 18856 1 ne2k_pci
e1000 108573 0
acpiphp 24080 0
### dmesg | tail
[ 1.354755] acpiphp: Slot [30] registered
[ 1.354772] acpiphp: Slot [31] registered
[ 1.369689] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[ 1.369693] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 1.382727] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
[ 1.387384] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
[ 1.392610] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@xxxxxxxxxxxxxxxx
[ 1.399841] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.452099] Refined TSC clocksource calibration: 1994.979 MHz.
[ 1.736198] eth0: IPv6 duplicate address fe80::f816:3eff:fe31:6d6a detected!
### tail -n 25 /var/log/messages
May 6 00:45:06 cirros kern.info kernel: [ 1.060092] usb 1-1: new full speed USB device number 2 using uhci_hcd
May 6 00:45:06 cirros kern.info kernel: [ 1.107190] EXT3-fs: barriers not enabled
May 6 00:45:06 cirros kern.info kernel: [ 1.113182] kjournald starting. Commit interval 5 seconds
May 6 00:45:06 cirros kern.info kernel: [ 1.113208] EXT3-fs (vda1): mounted filesystem with ordered data mode
May 6 00:45:06 cirros kern.warn kernel: [ 1.249895] EXT3-fs (vda1): warning: checktime reached, running e2fsck is recommended
May 6 00:45:06 cirros kern.info kernel: [ 1.253912] EXT3-fs (vda1): using internal journal
May 6 00:45:06 cirros kern.info kernel: [ 1.353952] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
May 6 00:45:06 cirros kern.info kernel: [ 1.354159] acpiphp: Slot [3] registered
May 6 00:45:06 cirros kern.info kernel: [ 1.354199] acpiphp: Slot [4] registered
May 6 00:45:06 cirros kern.info kernel: [ 1.354218] acpiphp: Slot [5] registered
May 6 00:45:06 cirros kern.info kernel: [ 1.354235] acpiphp: Slot [6] registered
May 6 00:45:06 cirros kern.info kernel: [ 1.354253] acpiphp: Slot [7] registered
May 6 00:45:06 cirros kern.info kernel: [ 1.354280] acpiphp: Slot [8] registered
May 6 00:45:06 cirros kern.info kernel: [ 1.354300] acpiphp: Slot [9] registered
May 6 00:45:06 cirros kern.info kernel: [ 1.354329] acpiphp: Slot [10] registered
May 6 00:45:06 cirros kern.info kernel: [ 1.354347] acpiphp: Slot [11] registered
May 6 00:45:06 cirros kern.info kernel: [ 1.354366] acpiphp: Slot [12] registered
May 6 00:45:06 cirros kern.info kernel: [ 1.369689] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
May 6 00:45:06 cirros kern.info kernel: [ 1.369693] e1000: Copyright (c) 1999-2006 Intel Corporation.
May 6 00:45:06 cirros kern.info kernel: [ 1.382727] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
May 6 00:45:06 cirros kern.info kernel: [ 1.387384] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
May 6 00:45:06 cirros kern.info kernel: [ 1.392610] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@xxxxxxxxxxxxxxxx
May 6 00:45:06 cirros kern.info kernel: [ 1.399841] ip_tables: (C) 2000-2006 Netfilter Core Team
May 6 00:45:06 cirros kern.info kernel: [ 1.452099] Refined TSC clocksource calibration: 1994.979 MHz.
May 6 00:45:06 cirros kern.info kernel: [ 1.736198] eth0: IPv6 duplicate address fe80::f816:3eff:fe31:6d6a detected!
############ debug end ##############
cloud-setup: failed to read iid from metadata. tried 30
WARN: /etc/rc3.d/S45-cloud-setup failed
Starting dropbear sshd: generating rsa key... generating dsa key... OK
===== cloud-final: system completely up in 41.14 seconds ====
wget: can't connect to remote host (169.254.169.254): Network is unreachable
wget: can't connect to remote host (169.254.169.254): Network is unreachable
wget: can't connect to remote host (169.254.169.254): Network is unreachable
instance-id:
public-ipv4:
local-ipv4 :
wget: can't connect to remote host (169.254.169.254): Network is unreachable
cloud-userdata: failed to read instance id
WARN: /etc/rc3.d/S99-cloud-userdata failed
2013-05-07
zengshan2008
发件人:Anil Vishnoi
发送时间:2013-05-07 16:16
主题:Re: [Openstack] Unable to ping VM using OpenStack and Quantum(openvswitch plugin)
收件人:"zengshan2008"<zengshan2008@xxxxxxxxx>
抄送:"gong yong sheng"<gongysh@xxxxxxxxxxxxxxxxxx>,"gongysh"<gongysh@xxxxxxxxxx>,"openstack"<openstack@xxxxxxxxxxxxxxxxxxx>
one possible reason can be that your VM didn't get IP address from its DHCP server. Can you check your VM instance log (You can check it from dashboard) and see whether its sending the DHCP request for IP and getting any response from it
On Tue, May 7, 2013 at 12:24 PM, zengshan2008 <zengshan2008@xxxxxxxxx> wrote:
Hi,
I've installed openstack using quantum by the guide
https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/master/OpenStack_Folsom_Install_Guide_WebVersion.rst
everything works fine, but I can't ping vm from the outside world, neither from the network node.The following is some of my configration.
1) root@networknode:/etc# ip netns
qrouter-8f5f3c17-a00e-4382-a403-181dfbb9d189
qdhcp-e58739ff-16dc-4289-8110-242f7818d314
2) qrouter and qdhcp server is up
root@networknode:/etc# ip netns exec qrouter-8f5f3c17-a00e-4382-a403-181dfbb9d189 ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:85 errors:0 dropped:0 overruns:0 frame:0
TX packets:85 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9224 (9.2 KB) TX bytes:9224 (9.2 KB)
qg-daf2c037-cc Link encap:Ethernet HWaddr fa:16:3e:ea:f6:c3
inet addr:192.168.23.102 Bcast:192.168.23.255 Mask:255.255.255.0
inet6 addr: 2401:de00::f816:3eff:feea:f6c3/64 Scope:Global
inet6 addr: fe80::f816:3eff:feea:f6c3/64 Scope:Link
inet6 addr: 2401:de00::6066:acc0:66e3:7434/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5392 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:406572 (406.5 KB) TX bytes:846 (846.0 B)
qr-d9cb6d6d-5e Link encap:Ethernet HWaddr fa:16:3e:6d:5a:3a
inet addr:202.122.38.1 Bcast:202.122.38.255 Mask:255.255.255.0
inet6 addr: fe80::f816:3eff:fe6d:5a3a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2184 (2.1 KB) TX bytes:5928 (5.9 KB)
root@networknode:/etc# ip netns exec qdhcp-e58739ff-16dc-4289-8110-242f7818d314 ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:840 (840.0 B) TX bytes:840 (840.0 B)
tape10a4f07-60 Link encap:Ethernet HWaddr fa:16:3e:db:8f:23
inet addr:202.122.38.14 Bcast:202.122.38.255 Mask:255.255.255.0
inet6 addr: fe80::f816:3eff:fedb:8f23/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:106 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5760 (5.7 KB) TX bytes:2652 (2.6 KB)
3) qrouter can ping the dhcp server from the network node
root@networknode:/etc# ip netns exec qrouter-8f5f3c17-a00e-4382-a403-181dfbb9d189 ping 202.122.38.14
PING 202.122.38.14 (202.122.38.14) 56(84) bytes of data.
64 bytes from 202.122.38.14: icmp_req=1 ttl=64 time=0.325 ms
64 bytes from 202.122.38.14: icmp_req=2 ttl=64 time=0.023 ms
64 bytes from 202.122.38.14: icmp_req=3 ttl=64 time=0.024 ms
^C
--- 202.122.38.14 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.023/0.124/0.325/0.142 ms
4) virtual machine is up
quantum floatingip-list
+--------------------------------------+------------------+---------------------+--------------------------------------+
| id | fixed_ip_address | floating_ip_address | port_id |
+--------------------------------------+------------------+---------------------+--------------------------------------+
| 88398dd1-7256-49c7-b1ad-719903125501 | 202.122.38.15 | 192.168.23.103 | ce7c1eff-afcb-4908-b399-0e6e07d2791e |
+--------------------------------------+------------------+---------------------+--------------------------------------+
5) virtual machine eth0 is up
6)ssh or ping to vm is failed
root@networknode:/etc# ip netns exec qrouter-8f5f3c17-a00e-4382-a403-181dfbb9d189 ping 202.122.38.15
PING 202.122.38.15 (202.122.38.15) 56(84) bytes of data.
From 202.122.38.1 icmp_seq=1 Destination Host Unreachable
From 202.122.38.1 icmp_seq=2 Destination Host Unreachable
From 202.122.38.1 icmp_seq=3 Destination Host Unreachable
From 202.122.38.1 icmp_seq=4 Destination Host Unreachable
From 202.122.38.1 icmp_seq=5 Destination Host Unreachable
From 202.122.38.1 icmp_seq=6 Destination Host Unreachable
From 202.122.38.1 icmp_seq=7 Destination Host Unreachable
From 202.122.38.1 icmp_seq=8 Destination Host Unreachable
From 202.122.38.1 icmp_seq=9 Destination Host Unreachable
From 202.122.38.1 icmp_seq=10 Destination Host Unreachable
From 202.122.38.1 icmp_seq=11 Destination Host Unreachable
From 202.122.38.1 icmp_seq=12 Destination Host Unreachable
^C
--- 202.122.38.15 ping statistics ---
14 packets transmitted, 0 received, +12 errors, 100% packet loss, time 12999ms
pipe 4
root@networknode:/etc# ^C
root@networknode:/etc# ^C
root@networknode:/etc# ip netns exec qrouter-8f5f3c17-a00e-4382-a403-181dfbb9d189 ssh root@202.122.38.15
ssh: connect to host 202.122.38.15 port 22: No route to host
2013-05-07
zengshan2008
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
--
Thanks
Anil
References