Problem connecting to the VM with quantum and openvswitch
Kyle Mestery (kmestery)
kmestery at cisco.com
Tue May 15 21:57:18 UTC 2012
On May 15, 2012, at 4:48 PM, Ask Stack wrote:
> Hello
>
> I can't ping nor ssh to the VM. By the output of tcpdump, looks like the VM isn't connected to the vswitch but VM got a dhcp IP address.
>
> Any help is greatly appreciated.
>
Which libvirt VIF type and driver are you using?
>
> [root at core01 ~]# nova-manage network create --label=public --fixed_range_v4=10.10.0.0/24 --project_id=76c41e7de2d0408489e94f8adb5b28ee
> [root at core01 ~]# nova-manage network list
> id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid
> 13 10.10.0.0/24 None 10.10.0.2 8.8.4.4 None None 76c41e7de2d0408489e94f8adb5b28ee 09656e2d-7f4e-4172-a37a-8cff745044b2
>
>
> [root at core01 ~]# nova boot --image 2dec19df-b1a0-4091-840f-2c76455d2248 --flavor 1 --nic net-id=09656e2d-7f4e-4172-a37a-8cff745044b2 test-vm1
>
> [root at core01 ~]# nova list
> +--------------------------------------+----------+--------+------------------+
> | ID | Name | Status | Networks |
> +--------------------------------------+----------+--------+------------------+
> | 760f7622-a223-4fff-9cba-84dc144a6448 | test-vm1 | ACTIVE | public=10.10.0.3 |
> +--------------------------------------+----------+--------+------------------+
>
> [root at core01 ~]# ovs-vsctl show
> 1059a32e-7b7f-4b8a-aef1-b526f3c44b67
> Bridge br-int
> Port "gw-09656e2d-7f"
> tag: 1
> Interface "gw-09656e2d-7f"
> type: internal
> Port br-int
> Interface br-int
> type: internal
> Port "tap3421ac3b-94"
> tag: 1
> Interface "tap3421ac3b-94"
> ovs_version: "1.4.0"
> [root at core01 ~]#
> [root at core01 ~]# netstat -rn
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window irtt Iface
> 0.0.0.0 172.20.0.250 0.0.0.0 UG 0 0 0 em1.777
> 10.10.0.0 0.0.0.0 255.255.255.0 U 0 0 0 gw-09656e2d-7f
> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 em1.777
> 172.20.0.0 0.0.0.0 255.255.255.0 U 0 0 0 em1.777
>
>
> [root at core01 nova]# tcpdump -i gw-09656e2d-7f
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on gw-09656e2d-7f, link-type EN10MB (Ethernet), capture size 65535 bytes
> 17:22:01.410697 ARP, Request who-has 10.10.0.3 tell core01, length 28
> 17:22:02.412664 ARP, Request who-has 10.10.0.3 tell core01, length 28
>
> [root at core01 nova]# tcpdump -i tap3421ac3b-94
> tcpdump: WARNING: tap3421ac3b-94: no IPv4 address assigned
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on tap3421ac3b-94, link-type EN10MB (Ethernet), capture size 65535 bytes
> 17:25:10.460668 ARP, Request who-has 10.10.0.3 tell core01, length 28
> 17:25:11.462682 ARP, Request who-has 10.10.0.3 tell core01, length 28
>
>
>
>
>
> [root at core01 nova]# ifconfig
> em1 Link encap:Ethernet HWaddr 00:25:90:1C:1B:0E
> inet6 addr: fe80::225:90ff:fe1c:1b0e/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:16529152 errors:0 dropped:4307 overruns:0 frame:0
> TX packets:2913065 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:10432691482 (9.7 GiB) TX bytes:1351181843 (1.2 GiB)
> Memory:fbd20000-fbd40000
>
> em1.777 Link encap:Ethernet HWaddr 00:25:90:1C:1B:0E
> inet addr:172.20.0.51 Bcast:172.20.0.255 Mask:255.255.255.0
> inet6 addr: fe80::225:90ff:fe1c:1b0e/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:3742346 errors:0 dropped:15956 overruns:0 frame:0
> TX packets:2500077 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:8927367533 (8.3 GiB) TX bytes:1323925155 (1.2 GiB)
>
> gw-09656e2d-7f Link encap:Ethernet HWaddr FA:16:3E:1E:EF:6F
> inet addr:10.10.0.1 Bcast:10.10.0.255 Mask:255.255.255.0
> inet6 addr: fe80::f816:3eff:fe1e:ef6f/64 Scope:Link
> UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
> RX packets:12 errors:0 dropped:0 overruns:0 frame:0
> TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:2520 (2.4 KiB) TX bytes:6096 (5.9 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:6445720 errors:0 dropped:0 overruns:0 frame:0
> TX packets:6445720 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:43788857525 (40.7 GiB) TX bytes:43788857525 (40.7 GiB)
>
> tap3421ac3b-94 Link encap:Ethernet HWaddr D6:FD:56:FD:76:FD
> inet6 addr: fe80::d4fd:56ff:fefd:76fd/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:12 errors:0 dropped:0 overruns:0 frame:0
> TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:500
> RX bytes:2520 (2.4 KiB) TX bytes:6096 (5.9 KiB)
> _______________________________________________
> cloud mailing list
> cloud at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/cloud
More information about the cloud
mailing list