← Back to team overview

openstack team mailing list archive

Re: Can not visit outside from VM using devstack with Quantum

 

Here's my detailed description for my issue, please help.

Issue Description:
Quantum + OpenVswitch, and use devstack to do all-in-one installation. I
only add these lines into my localrc:
FIXED_RANGE=20.0.0.0/24
NETWORK_GATEWAY=20.0.0.1
FLOATING_RANGE=192.168.0.80/28

This is my trace record:

OpenStack running at 192.168.0.31
Create a new VM and it's fixed ip is 20.0.0.13
Ping an available physical host which ip is 192.168.0.30

OK: From 20.0.0.13 ping 192.168.0.30
FAILED: From 20.0.0.13 ping 192.168.0.31, no response.
*
*
Record
1、Capturing packets in 192.168.0.30
IP 192.168.0.82 > 192.168.0.30: ICMP echo request, id 51227, seq 1168,
length 64
IP 192.168.0.82 > 192.168.0.30: ICMP echo request, id 51227, seq 1169,
length 64

2、Capturing packets in 192.168.0.31
IP 192.168.0.82 > 192.168.0.30: ICMP echo request, id 51227, seq 1186,
length 64
IP 192.168.0.82 > 192.168.0.30: ICMP echo request, id 51227, seq 1187,
length 64

3、View all bridges on 31
sysadmin@demo:~$ sudo brctl show
bridge name bridge id STP enabled interfaces
br-ex 0000.72633cb7f342 no qg-6cd84081-50
br-int 0000.beb48d9b564a no qr-6c51a298-38
qvo2321476f-d4
 qvo25a703b3-ec
qvo32e4f5f4-d4
qvo41470284-88
 qvof985de57-c3
tapbe16c498-55
qbr2321476f-d4 8000.8e6d9159f75c no qvb2321476f-d4
 tap2321476f-d4
qbr25a703b3-ec 8000.6a5e33be29af no qvb25a703b3-ec
 tap25a703b3-ec
qbr32e4f5f4-d4 8000.deefb2135c56 no qvb32e4f5f4-d4
 tap32e4f5f4-d4
qbr41470284-88 8000.4226702b5c26 no qvb41470284-88
 tap41470284-88
qbrc7e49a5a-78 8000.000000000000 no
qbrf985de57-c3 8000.8eabf640fae6 no qvbf985de57-c3
 tapf985de57-c3
virbr0 8000.000000000000 yes

4、View route table on 31
sysadmin@demo:~$ sudo route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    100    0        0 eth0
20.0.0.0        192.168.0.82    255.255.255.0   UG    0      0        0
br-ex
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.0.80    0.0.0.0         255.255.255.240 U     0      0        0
br-ex
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0
virbr0

5、View ifconfig on 31
sysadmin@demo:~$ ifconfig br-ex
br-ex     Link encap:Ethernet  HWaddr 72:63:3c:b7:f3:42
          inet addr:192.168.0.81  Bcast:0.0.0.0  Mask:255.255.255.240
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:2665 errors:0 dropped:0 overruns:0 frame:0
          TX packets:127 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:254850 (254.8 KB)  TX bytes:7342 (7.3 KB)

6、View 'ip a' on 31
sysadmin@demo:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state
UP qlen 1000
    link/ether 00:15:17:be:28:35 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.31/24 brd 192.168.0.255 scope global eth0
    inet6 fe80::215:17ff:febe:2835/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:15:17:1c:ee:0d brd ff:ff:ff:ff:ff:ff
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state
DOWN
    link/ether 3a:7b:1c:fa:39:4a brd ff:ff:ff:ff:ff:ff
    inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
5: br-int: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
    link/ether be:b4:8d:9b:56:4a brd ff:ff:ff:ff:ff:ff
6: br-ex: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue
state UNKNOWN
    link/ether 72:63:3c:b7:f3:42 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.81/28 scope global br-ex

7、ping 192.168.0.81(br-ex on 192.168.0.31) from 192.168.0.30
sysadmin@devtools:~$ ping 192.168.0.81
PING 192.168.0.81 (192.168.0.81) 56(84) bytes of data.
64 bytes from 192.168.0.81: icmp_req=1 ttl=64 time=0.429 ms

8、ping 192.168.0.82(router on 192.168.0.31) from 192.168.0.30
sysadmin@devtools:~$ ping 192.168.0.82
PING 192.168.0.82 (192.168.0.82) 56(84) bytes of data.

We can not capture any packet on 192.168.0.30 now.

9、ovs-vsctl show on 192.168.0.30
sysadmin@demo:~$ sudo ovs-vsctl show
b7ae744b-5363-46ba-9a2b-abe354e82c7b
    Bridge br-int
        Port "tapbe16c498-55"
            tag: 1
            Interface "tapbe16c498-55"
                type: internal
        Port "qvo41470284-88"
            tag: 1
            Interface "qvo41470284-88"
        Port "qvo2321476f-d4"
            tag: 1
            Interface "qvo2321476f-d4"
        Port "qr-6c51a298-38"
            tag: 1
            Interface "qr-6c51a298-38"
                type: internal
        Port br-int
            Interface br-int
                type: internal
        Port "qvo25a703b3-ec"
            tag: 1
            Interface "qvo25a703b3-ec"
        Port "qvof985de57-c3"
            tag: 1
            Interface "qvof985de57-c3"
        Port "qvo32e4f5f4-d4"
            tag: 1
            Interface "qvo32e4f5f4-d4"
    Bridge br-ex
        Port br-ex
            Interface br-ex
                type: internal
        Port "qg-6cd84081-50"
            Interface "qg-6cd84081-50"
                type: internal
    ovs_version: "1.4.0+build0"
sysadmin@demo:~$

Best Regards
-- Ray


On Mon, Jul 22, 2013 at 4:09 PM, Ray Sun <xiaoquqi@xxxxxxxxx> wrote:

> I am using devstack to install openstack stable/grizzly version with
> Quantum using default configuration. But after I start a new VM(cirros), I
> can't visit outside.
>
> Then I changed FLOATING_RANGE=192.168.0.80/28, this is my local ip range.
> But I still can not visit outside under the new configuration.
>
> Then I removed quantum, and seems everything is ok inside VM.
>
> Please help. Thanks.
>
> Best Regards
> -- Ray
>

References