Using ctlplane network for VM instances

asked 2019-06-17 12:32:14 -0500

Nikita Belov gravatar image

I have only one network interface at 3 baremetal nodes (undercloud, controller node, compute node). At this interface I have ctlplane 10.0.140.0/24. I want to use this network as external network for my VM instances. I made: int-net (192.168.10.0/24) and ext-net (flat for datacenter:br-ex, 10.0.140.0/24). Also I made router with two interfaces: for ext-net and int-net.

Now my VMs can ping each other inside int-net. But when I use floating IP from ext-net, I get nothing.

Compute node:

[heat-admin@overcloud-novacompute-0 ~]$ sudo ovs-vsctl show
8ea44f7f-6749-4a52-a8ee-3f5dec2d5437
    Manager "ptcp:6640:127.0.0.1"
        is_connected: true
    Bridge br-ex
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port "ens11f0"
            Interface "ens11f0"
        Port phy-br-ex
            Interface phy-br-ex
                type: patch
                options: {peer=int-br-ex}
        Port br-ex
            Interface br-ex
                type: internal
    Bridge br-int
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port int-br-ex
            Interface int-br-ex
                type: patch
                options: {peer=phy-br-ex}
        Port "qvob451a0de-c6"
            tag: 2
            Interface "qvob451a0de-c6"
        Port br-int
            Interface br-int
                type: internal
        Port patch-tun
            Interface patch-tun
                type: patch
                options: {peer=patch-int}
        Port "qvo7bc1ad74-5e"
            tag: 2
            Interface "qvo7bc1ad74-5e"
    Bridge br-tun
        Controller "tcp:127.0.0.1:6633"
            is_connected: true
        fail_mode: secure
        Port br-tun
            Interface br-tun
                type: internal
        Port patch-int
            Interface patch-int
                type: patch
                options: {peer=patch-tun}
        Port "vxlan-0a008c72"
            Interface "vxlan-0a008c72"
                type: vxlan
                options: {df_default="true", in_key=flow, local_ip="10.0.140.106", out_key=flow, remote_ip="10.0.140.114"}
    ovs_version: "2.11.0"

ifconfig:

[heat-admin@overcloud-novacompute-0 ~]$ ifconfig
br-ex: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.140.106  netmask 255.255.255.0  broadcast 10.0.140.255
        inet6 fe80::226:58ff:fe04:64f4  prefixlen 64  scopeid 0x20<link>
        ether 00:26:58:04:64:f4  txqueuelen 1000  (Ethernet)
        RX packets 192870  bytes 74995852 (71.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 141559  bytes 729001370 (695.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.31.0.1  netmask 255.255.255.0  broadcast 0.0.0.0
        inet6 fe80::42:a8ff:fed0:bf4  prefixlen 64  scopeid 0x20<link>
        ether 02:42:a8:d0:0b:f4  txqueuelen 0  (Ethernet)
        RX packets 1  bytes 76 (76.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3  bytes 266 (266.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ens18: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.249.218  netmask 255.255.255.0  broadcast 10.0.249.255
        inet6 fe80::ee0d:9aff:feba:b0d0  prefixlen 64  scopeid 0x20<link>
        ether ec:0d:9a:ba:b0:d0  txqueuelen 1000  (Ethernet)
        RX packets 5772  bytes 348715 (340.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 125  bytes 9772 (9.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ens11f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::226 ...
(more)
edit retag flag offensive close merge delete