[rhos-list] How to config quantum external network?

Hangbin Liu haliu at redhat.com
Mon Aug 5 16:11:01 UTC 2013


Hi all,

I usually use packstack to set up openstack environment with to compute nodes.
But I only know how to add one internal vlan network with openvwitch. Could
you tell me how to config the external network?

My testing machines are in beaker, and the testing topo is like:

                |-- (eth0) Host A (eth1) --|
beaker_switch --|                          |-- our_own_switch
(external net)  |-- (eth0) Host B (eth1) --|   (internal net)

Here is my packstack quantum config:

CONFIG_QUANTUM_SERVER_HOST=10.66.86.101
CONFIG_QUANTUM_USE_NAMESPACES=y
CONFIG_QUANTUM_KS_PW=redhat
CONFIG_QUANTUM_DB_PW=redhat

CONFIG_QUANTUM_L3_HOSTS=10.66.86.101
CONFIG_QUANTUM_L3_EXT_BRIDGE=br-ex

CONFIG_QUANTUM_DHCP_HOSTS=10.66.86.101
CONFIG_QUANTUM_L2_PLUGIN=openvswitch

CONFIG_QUANTUM_METADATA_HOSTS=10.66.86.101
CONFIG_QUANTUM_METADATA_PW=redhat
CONFIG_QUANTUM_LB_TENANT_NETWORK_TYPE=local

CONFIG_QUANTUM_OVS_TENANT_NETWORK_TYPE=vlan
CONFIG_QUANTUM_OVS_VLAN_RANGES=physnet1:10:100
CONFIG_QUANTUM_OVS_BRIDGE_MAPPINGS=physnet1:br-link1
CONFIG_QUANTUM_OVS_BRIDGE_IFACES=br-link1:eth1

After install finished on Host A and Host B, I got topo like:

 -- br-link1 --                  -- br-int --
 |            |                 |            |
eth1   phy-br-link1 <--> int-br-link1  vm-tap-device

Here my VMs can connect each other from br-link1 via eth1. But I don't know how
to conected the VMs through beaker.


some internal subnet info listed.
On compute node 1:

# quantum agent-list
+--------------------------------------+--------------------+----------------------------------------+-------+----------------+
| id                                   | agent_type         | host                                   | alive | admin_state_up |
+--------------------------------------+--------------------+----------------------------------------+-------+----------------+
| 1f7e0753-73f6-458d-b0c7-1fb7de3a507c | DHCP agent         | ibm-x3550m3-04.rhts.eng.nay.redhat.com | :-)   | True           |
| 8ace71a9-a377-4cc4-a4ad-d6964ef08ffa | Open vSwitch agent | ibm-x3650-02.rhts.eng.nay.redhat.com   | :-)   | True           |
| e71c227b-e665-48b8-b97e-152df5f34269 | L3 agent           | ibm-x3550m3-04.rhts.eng.nay.redhat.com | :-)   | True           |
| fd09eabe-0d6e-47ae-b0ea-75268840493e | Open vSwitch agent | ibm-x3550m3-04.rhts.eng.nay.redhat.com | :-)   | True           |
+--------------------------------------+--------------------+----------------------------------------+-------+----------------+

# quantum net-list
+--------------------------------------+--------------+------------------------------------------------------+
| id                                   | name         | subnets                                              |
+--------------------------------------+--------------+------------------------------------------------------+
| 34e2c2f4-7161-4c0c-a306-40dc8dce1086 | Vlan_Network | 01652f1c-578a-4058-a673-1d2d2194e707 192.168.10.0/24 |
| b9d2d4fc-98a6-464e-b3d7-c5e2a6598d09 | public       |                                                      |
+--------------------------------------+--------------+------------------------------------------------------+

# quantum subnet-list
+--------------------------------------+------+-----------------+----------------------------------------------------+
| id                                   | name | cidr            | allocation_pools                                   |
+--------------------------------------+------+-----------------+----------------------------------------------------+
| 01652f1c-578a-4058-a673-1d2d2194e707 |      | 192.168.10.0/24 | {"start": "192.168.10.2", "end": "192.168.10.253"} |
+--------------------------------------+------+-----------------+----------------------------------------------------+

# quantum net-show 34e2c2f4-7161-4c0c-a306-40dc8dce1086
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 34e2c2f4-7161-4c0c-a306-40dc8dce1086 |
| name                      | Vlan_Network                         |
| provider:network_type     | vlan                                 |
| provider:physical_network | physnet1                             |
| provider:segmentation_id  | 10                                   |
| router:external           | True                                 |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   | 01652f1c-578a-4058-a673-1d2d2194e707 |
| tenant_id                 | ea0c68c1d83743a5a19a3f33f434485a     |
+---------------------------+--------------------------------------+

# quantum subnet-show 01652f1c-578a-4058-a673-1d2d2194e707
+------------------+----------------------------------------------------+
| Field            | Value                                              |
+------------------+----------------------------------------------------+
| allocation_pools | {"start": "192.168.10.2", "end": "192.168.10.253"} |
| cidr             | 192.168.10.0/24                                    |
| dns_nameservers  |                                                    |
| enable_dhcp      | True                                               |
| gateway_ip       | 192.168.10.254                                     |
| host_routes      |                                                    |
| id               | 01652f1c-578a-4058-a673-1d2d2194e707               |
| ip_version       | 4                                                  |
| name             |                                                    |
| network_id       | 34e2c2f4-7161-4c0c-a306-40dc8dce1086               |
| tenant_id        | ea0c68c1d83743a5a19a3f33f434485a                   |
+------------------+----------------------------------------------------+

# ovs-vsctl show
a8f0551a-8197-47e9-bdd5-db7b0ef9394d
    Bridge br-int
        Port "qvo7858e34e-20"
            tag: 1
            Interface "qvo7858e34e-20"
        Port "int-br-link1"
            Interface "int-br-link1"
        Port "tap138e4dd7-72"
            tag: 1
            Interface "tap138e4dd7-72"
        Port br-int
            Interface br-int
                type: internal
    Bridge br-ex
        Port br-ex
            Interface br-ex
                type: internal
    Bridge "br-link1"
        Port "br-link1"
            Interface "br-link1"
                type: internal
        Port "eth1"
            Interface "eth1"
        Port "phy-br-link1"
            Interface "phy-br-link1"
    ovs_version: "1.9.0"


On compute node 2:
# ovs-vsctl show
02249bbc-a5c6-4343-906a-7949ae821b91
    Bridge br-int
        Port br-int
            Interface br-int
                type: internal
        Port "qvoc9c8e777-38"
            tag: 1
            Interface "qvoc9c8e777-38"
        Port "int-br-link1"
            Interface "int-br-link1"
    Bridge "br-link1"
        Port "br-link1"
            Interface "br-link1"
                type: internal
        Port "eth1"
            Interface "eth1"
        Port "phy-br-link1"
            Interface "phy-br-link1"
    ovs_version: "1.9.0"


-- 

Thanks & Best Regards
Hangbin Liu <haliu at redhat.com>
Leo on #kernel-qe, #kernel, #eng-china




More information about the rhos-list mailing list