<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> <!--@import url(scrollbar.css); --></STYLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE> body{FONT-SIZE:12pt; FONT-FAMILY:宋体,serif;} </STYLE>
<META name=GENERATOR content="MSHTML 8.00.7601.17744"><BASE
target=_blank></HEAD>
<BODY
style="LINE-HEIGHT: 1.3; BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px"
marginheight="0" marginwidth="0">
<DIV><FONT color=#000000 size=3 face="Times New Roman">I run
ovs-vsctl show on the three node, and here is the result:</FONT></DIV>
<DIV><A href="mailto:root@networknode:/var/log/quantum"><STRONG><FONT
style="BACKGROUND-COLOR: #ccffcc"
face="Times New Roman">root@networknode:/var/log/quantum</FONT></STRONG></A><FONT
face="Times New Roman"><STRONG><FONT style="BACKGROUND-COLOR: #ccffcc">#
ovs-vsctl
show<BR></FONT></STRONG>690ad327-14ad-410e-b310-2d23e4c78223<BR>
Bridge br-int<BR> Port
br-int<BR>
Interface
br-int<BR>
type: internal<BR> Port
"int-br-em3"<BR>
Interface "int-br-em3"<BR> Port
"qr-d9cb6d6d-5e"<BR>
tag: 1<BR>
Interface
"qr-d9cb6d6d-5e"<BR>
type: internal<BR> Port
"tape10a4f07-60"<BR>
tag: 1<BR>
Interface
"tape10a4f07-60"<BR>
type: internal<BR> Bridge
"br-em3"<BR> Port
"em3"<BR>
Interface "em3"<BR> Port
"br-em3"<BR>
Interface
"br-em3"<BR>
type: internal<BR> Port
"phy-br-em3"<BR>
Interface "phy-br-em3"<BR> Bridge
"br-em1"<BR> Port
"em1"<BR>
Interface "em1"<BR> Port
"qg-daf2c037-cc"<BR>
Interface
"qg-daf2c037-cc"<BR>
type: internal<BR> Port
"br-em1"<BR>
Interface
"br-em1"<BR>
type: internal<BR> ovs_version: "1.4.3"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ccffcc" face="Times New Roman">meanwhile,
in the network node, dnsmasq is running</FONT></DIV>
<DIV><FONT face="Times New Roman">ps -ef|grep
dnsmqsq<BR>nobody 5903 1 0 May06
? 00:00:00 dnsmasq --no-hosts
--no-resolv --strict-order --bind-interfaces --interface=tape10a4f07-60
--except-interface=lo --domain=openstacklocal
--pid-file=/var/lib/quantum/dhcp/e58739ff-16dc-4289-8110-242f7818d314/pid
--dhcp-hostsfile=/var/lib/quantum/dhcp/e58739ff-16dc-4289-8110-242f7818d314/host
--dhcp-optsfile=/var/lib/quantum/dhcp/e58739ff-16dc-4289-8110-242f7818d314/opts
--dhcp-script=/usr/bin/quantum-dhcp-agent-dnsmasq-lease-update --leasefile-ro
--dhcp-range=set:tag0,202.122.38.0,static,120s
--conf-file=<BR>root 5904 5903 0 May06
? 00:00:00 dnsmasq --no-hosts
--no-resolv --strict-order --bind-interfaces --interface=tape10a4f07-60
--except-interface=lo --domain=openstacklocal
--pid-file=/var/lib/quantum/dhcp/e58739ff-16dc-4289-8110-242f7818d314/pid
--dhcp-hostsfile=/var/lib/quantum/dhcp/e58739ff-16dc-4289-8110-242f7818d314/host
--dhcp-optsfile=/var/lib/quantum/dhcp/e58739ff-16dc-4289-8110-242f7818d314/opts
--dhcp-script=/usr/bin/quantum-dhcp-agent-dnsmasq-lease-update --leasefile-ro
--dhcp-range=set:tag0,202.122.38.0,static,120s
--conf-file=<BR>root 15753 2398 0 04:36
pts/2 00:00:00 grep --color=auto dnsm</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><A href="mailto:root@controllernode:/var/log/quantum"><FONT
style="BACKGROUND-COLOR: #ccffcc"
face="Times New Roman">root@controllernode:/var/log/quantum</FONT></A><FONT
face="Times New Roman"><FONT style="BACKGROUND-COLOR: #ccffcc"># ovs-vsctl
show<BR></FONT>240e7bfb-3d31-4fe1-b6ea-3806b8eb21ca<BR>
ovs_version: "1.4.3"</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman"><A href="mailto:root@computenode"><FONT
style="BACKGROUND-COLOR: #ccffcc">root@computenode</FONT></A><FONT
style="BACKGROUND-COLOR: #ccffcc">:~# ovs-vsctl
show<BR></FONT>e59adf21-1b48-4783-b8db-67254ac18bb4<BR> Bridge
"br-eth1"<BR> Port
"phy-br-eth1"<BR>
Interface "phy-br-eth1"<BR> Port
"br-eth1"<BR>
Interface
"br-eth1"<BR>
type: internal<BR> Port
"eth1"<BR>
Interface "eth1"<BR> Bridge
br-int<BR> Port
br-int<BR>
Interface
br-int<BR>
type: internal<BR> Port
"qvob99918f6-4c"<BR>
tag: 1<BR>
Interface "qvob99918f6-4c"<BR> Port
"int-br-eth1"<BR>
Interface "int-br-eth1"<BR> Port
"qvo87b7b645-b9"<BR>
tag: 1<BR>
Interface "qvo87b7b645-b9"<BR> Port
"qvo7d05c230-2b"<BR>
tag: 1<BR>
Interface "qvo7d05c230-2b"<BR> Port
"qvoce7c1eff-af"<BR>
tag: 1<BR>
Interface "qvoce7c1eff-af"<BR> ovs_version:
"1.4.3"</FONT></DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana>2013-05-07</FONT></DIV>
<DIV align=left><FONT size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" id=SignNameHR align=left SIZE=2>
</FONT></DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana><SPAN
id=_FlashSignName>zengshan2008</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Verdana>
<HR>
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发件人:</STRONG>Anil Vishnoi</FONT></DIV>
<DIV><FONT size=2
face=Verdana><STRONG>发送时间:</STRONG>2013-05-07 16:16</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG>Re: [Openstack] Unable to
ping VM using OpenStack and Quantum(openvswitch plugin)</FONT></DIV>
<DIV><FONT size=2
face=Verdana><STRONG>收件人:</STRONG>"zengshan2008"<zengshan2008@gmail.com></FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>抄送:</STRONG>"gong yong
sheng"<gongysh@linux.vnet.ibm.com>,"gongysh"<gongysh@cn.ibm.com>,"openstack"<openstack@lists.launchpad.net></FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV dir=ltr>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</DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On Tue, May 7, 2013 at 12:24 PM, zengshan2008 <SPAN
dir=ltr><<A href="mailto:zengshan2008@gmail.com"
target=_blank>zengshan2008@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><U></U>
<DIV
style="LINE-HEIGHT: 1.3; BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px"
marginheight="0" marginwidth="0"><U></U>
<DIV><FONT color=#000000 size=3 face="Times New Roman">Hi,</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT color=#000000 size=3
face="Times New Roman">I've installed openstack using quantum by the guide
</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><A
href="https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/master/OpenStack_Folsom_Install_Guide_WebVersion.rst"
target=_blank>https://github.com/mseknibilel/OpenStack-Folsom-Install-guide/blob/master/OpenStack_Folsom_Install_Guide_WebVersion.rst</A></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT face="Times New Roman">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.</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT face="Times New Roman"><STRONG>1)
</STRONG><A href="mailto:root@networknode:/etc"
target=_blank><STRONG>root@networknode:/etc</STRONG></A><STRONG># ip netns
<BR></STRONG>qrouter-8f5f3c17-a00e-4382-a403-181dfbb9d189<BR>qdhcp-e58739ff-16dc-4289-8110-242f7818d314</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT face="Times New Roman"><STRONG>2) qrouter
and qdhcp server is up</STRONG></FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><A href="mailto:root@networknode:/etc"
target=_blank><FONT
face="Times New Roman">root@networknode:/etc</FONT></A><FONT
face="Times New Roman"># ip netns exec
qrouter-8f5f3c17-a00e-4382-a403-181dfbb9d189 ifconfig<BR><FONT
size=+0>lo Link encap:Local
Loopback <BR> inet
addr:127.0.0.1
Mask:255.0.0.0<BR> inet6
addr: ::1/128
Scope:Host<BR> UP
LOOPBACK RUNNING MTU:16436
Metric:1<BR> RX
packets:85 errors:0 dropped:0 overruns:0
frame:0<BR> TX
packets:85 errors:0 dropped:0 overruns:0
carrier:0<BR>
collisions:0 txqueuelen:0
<BR> RX bytes:9224 (9.2
KB) TX bytes:9224 (9.2 KB)</FONT></FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV style="TEXT-INDENT: 2em"><FONT face="Times New Roman">qg-daf2c037-cc Link
encap:Ethernet HWaddr fa:16:3e:ea:f6:c3
<BR> inet
addr:192.168.23.102 Bcast:192.168.23.255
Mask:255.255.255.0<BR>
inet6 addr: 2401:de00::f816:3eff:feea:f6c3/64
Scope:Global<BR> inet6
addr: fe80::f816:3eff:feea:f6c3/64
Scope:Link<BR> inet6
addr: 2401:de00::6066:acc0:66e3:7434/64
Scope:Global<BR> UP
BROADCAST RUNNING MULTICAST MTU:1500
Metric:1<BR> RX
packets:5392 errors:0 dropped:0 overruns:0
frame:0<BR> TX
packets:13 errors:0 dropped:0 overruns:0
carrier:0<BR>
collisions:0 txqueuelen:0
<BR> RX bytes:406572
(406.5 KB) TX bytes:846 (846.0 B)</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV style="TEXT-INDENT: 2em"><FONT face="Times New Roman">qr-d9cb6d6d-5e Link
encap:Ethernet HWaddr fa:16:3e:6d:5a:3a
<BR> inet
addr:202.122.38.1 Bcast:202.122.38.255
Mask:255.255.255.0<BR>
inet6 addr: fe80::f816:3eff:fe6d:5a3a/64
Scope:Link<BR> UP
BROADCAST RUNNING MULTICAST MTU:1500
Metric:1<BR> RX
packets:24 errors:0 dropped:0 overruns:0
frame:0<BR> TX
packets:108 errors:0 dropped:0 overruns:0
carrier:0<BR>
collisions:0 txqueuelen:0
<BR> RX bytes:2184 (2.1
KB) TX bytes:5928 (5.9 KB)</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV style="TEXT-INDENT: 2em"><A href="mailto:root@networknode:/etc"
target=_blank><FONT
face="Times New Roman">root@networknode:/etc</FONT></A><FONT
face="Times New Roman"># ip netns exec
qdhcp-e58739ff-16dc-4289-8110-242f7818d314 ifconfig<BR></FONT><FONT
face="Times New Roman">lo Link
encap:Local Loopback
<BR> inet
addr:127.0.0.1
Mask:255.0.0.0<BR> inet6
addr: ::1/128
Scope:Host<BR> UP
LOOPBACK RUNNING MTU:16436
Metric:1<BR> RX
packets:10 errors:0 dropped:0 overruns:0
frame:0<BR> TX
packets:10 errors:0 dropped:0 overruns:0
carrier:0<BR>
collisions:0 txqueuelen:0
<BR> RX bytes:840 (840.0
B) TX bytes:840 (840.0 B)</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV style="TEXT-INDENT: 2em"><FONT face="Times New Roman">tape10a4f07-60 Link
encap:Ethernet HWaddr fa:16:3e:db:8f:23
<BR> inet
addr:202.122.38.14 Bcast:202.122.38.255
Mask:255.255.255.0<BR>
inet6 addr: fe80::f816:3eff:fedb:8f23/64
Scope:Link<BR> UP
BROADCAST RUNNING MULTICAST MTU:1500
Metric:1<BR> RX
packets:106 errors:0 dropped:0 overruns:0
frame:0<BR> TX
packets:30 errors:0 dropped:0 overruns:0
carrier:0<BR>
collisions:0 txqueuelen:0
<BR> RX bytes:5760 (5.7
KB) TX bytes:2652 (2.6 KB)</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT size=3 face="Times New Roman"><STRONG>3)
qrouter can ping the dhcp server from the network node</STRONG></FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT face="Times New Roman"><A
href="mailto:root@networknode:/etc" target=_blank><FONT
size=+0>root@networknode:/etc</FONT></A><FONT size=+0># ip netns exec
qrouter-8f5f3c17-a00e-4382-a403-181dfbb9d189 ping 202.122.38.14<BR>PING
202.122.38.14 (202.122.38.14) 56(84) bytes of data.<BR>64 bytes from <A
href="http://202.122.38.14" target=_blank>202.122.38.14</A>: icmp_req=1 ttl=64
time=0.325 ms<BR>64 bytes from <A href="http://202.122.38.14"
target=_blank>202.122.38.14</A>: icmp_req=2 ttl=64 time=0.023 ms<BR>64 bytes
from <A href="http://202.122.38.14" target=_blank>202.122.38.14</A>:
icmp_req=3 ttl=64 time=0.024 ms<BR>^C<BR>--- 202.122.38.14 ping statistics
---<BR>3 packets transmitted, 3 received, 0% packet loss, time 1998ms<BR>rtt
min/avg/max/mdev = 0.023/0.124/0.325/0.142 ms</FONT></FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT size=3 face="Times New Roman"><STRONG>4)
virtual machine is up</STRONG></FONT></DIV>
<DIV style="TEXT-INDENT: 2em"><FONT face="Times New Roman">quantum
floatingip-list<BR>+--------------------------------------+------------------+---------------------+--------------------------------------+<BR>|
id
| fixed_ip_address | floating_ip_address |
port_id
|<BR>+--------------------------------------+------------------+---------------------+--------------------------------------+<BR>|
88398dd1-7256-49c7-b1ad-719903125501 | 202.122.38.15 |
192.168.23.103 |
ce7c1eff-afcb-4908-b399-0e6e07d2791e
|<BR>+--------------------------------------+------------------+---------------------+--------------------------------------+</FONT></DIV>
<DIV><FONT face="Times New Roman"><STRONG>
5) virtual machine eth0 is up</STRONG></FONT></DIV>
<DIV>
<DIV><FONT color=#000000 size=3 face=宋体><IMG></FONT></DIV>
<DIV><FONT color=#000000 size=3
face="Times New Roman"><STRONG>
6)ssh or ping to vm is failed</STRONG></FONT></DIV>
<DIV>
<DIV><FONT color=#000000><A href="mailto:root@networknode:/etc"
target=_blank><FONT
face="Times New Roman">root@networknode:/etc</FONT></A><FONT
face="Times New Roman"># ip netns exec
qrouter-8f5f3c17-a00e-4382-a403-181dfbb9d189 ping 202.122.38.15<BR>PING
202.122.38.15 (202.122.38.15) 56(84) bytes of data.<BR>From 202.122.38.1
icmp_seq=1 Destination Host Unreachable<BR>From 202.122.38.1 icmp_seq=2
Destination Host Unreachable<BR>From 202.122.38.1 icmp_seq=3 Destination Host
Unreachable<BR>From 202.122.38.1 icmp_seq=4 Destination Host
Unreachable<BR>From 202.122.38.1 icmp_seq=5 Destination Host
Unreachable<BR>From 202.122.38.1 icmp_seq=6 Destination Host
Unreachable<BR>From 202.122.38.1 icmp_seq=7 Destination Host
Unreachable<BR>From 202.122.38.1 icmp_seq=8 Destination Host
Unreachable<BR>From 202.122.38.1 icmp_seq=9 Destination Host
Unreachable<BR>From 202.122.38.1 icmp_seq=10 Destination Host
Unreachable<BR>From 202.122.38.1 icmp_seq=11 Destination Host
Unreachable<BR>From 202.122.38.1 icmp_seq=12 Destination Host
Unreachable<BR>^C<BR>--- 202.122.38.15 ping statistics ---<BR>14 packets
transmitted, 0 received, +12 errors, 100% packet loss, time 12999ms<BR>pipe
4<BR></FONT><A href="mailto:root@networknode:/etc" target=_blank><FONT
face="Times New Roman">root@networknode:/etc</FONT></A><FONT
face="Times New Roman"># ^C<BR></FONT><A href="mailto:root@networknode:/etc"
target=_blank><FONT
face="Times New Roman">root@networknode:/etc</FONT></A><FONT
face="Times New Roman"># ^C<BR></FONT><A href="mailto:root@networknode:/etc"
target=_blank><FONT
face="Times New Roman">root@networknode:/etc</FONT></A><FONT
face="Times New Roman"># ip netns exec
qrouter-8f5f3c17-a00e-4382-a403-181dfbb9d189 ssh </FONT><A
href="mailto:root@202.122.38.15" target=_blank><FONT
face="Times New Roman">root@202.122.38.15</FONT></A><BR><FONT
face="Times New Roman">ssh: connect to host 202.122.38.15 port 22: No route to
host</FONT></FONT></DIV>
<DIV> </DIV></DIV></DIV>
<DIV align=left><FONT color=#c0c0c0 face=Verdana>2013-05-07</FONT></DIV><FONT
face=Verdana>
<HR style="MIN-HEIGHT: 2px; WIDTH: 122px" align=left SIZE=2>
<SPAN class=HOEnZb><FONT color=#888888></FONT></SPAN></FONT><SPAN
class=HOEnZb><FONT color=#888888>
<DIV><FONT color=#c0c0c0
face=Verdana><SPAN>zengshan2008</SPAN></FONT></DIV><U></U></FONT></SPAN></DIV><BR>_______________________________________________<BR>Mailing
list: <A href="https://launchpad.net/~openstack"
target=_blank>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"
target=_blank>https://launchpad.net/~openstack</A><BR>More help : <A
href="https://help.launchpad.net/ListHelp"
target=_blank>https://help.launchpad.net/ListHelp</A><BR><BR></BLOCKQUOTE></DIV><BR><BR
clear=all>
<DIV><BR></DIV>-- <BR>
<DIV dir=ltr>Thanks
<DIV>Anil</DIV></DIV></DIV></FONT></DIV></BODY></HTML>