Merge "Add networking terms used in Tricircle"
This commit is contained in:
commit
a9782509e0
|
@ -83,6 +83,10 @@ for installing DevStack in bare metal server and
|
|||
`All-In-One Single VM <http://docs.openstack.org/developer/devstack/guides/single-vm.html>`_
|
||||
for installing DevStack in virtual machine.
|
||||
|
||||
If you want to experience cross OpenStack VxLAN network, please make sure
|
||||
compute nodes are routable to each other on data plane, and enable L2
|
||||
population mechanism driver in OpenStack RegionOne and OpenStack RegionTwo.
|
||||
|
||||
|
||||
Setup
|
||||
^^^^^
|
||||
|
|
|
@ -118,22 +118,24 @@ Create router R1.
|
|||
|
||||
.. code-block:: console
|
||||
|
||||
$ neutron --os-region-name=CentralRegion router-create R1
|
||||
+-----------------------+--------------------------------------+
|
||||
| Field | Value |
|
||||
+-----------------------+--------------------------------------+
|
||||
| admin_state_up | True |
|
||||
| created_at | 2017-01-12T07:04:13Z |
|
||||
| description | |
|
||||
| external_gateway_info | |
|
||||
| id | 063de74b-d962-4fc2-96d9-87e2cb35c082 |
|
||||
| name | R1 |
|
||||
| project_id | 532890c765604609a8d2ef6fc8e5f6ef |
|
||||
| revision_number | 1 |
|
||||
| status | ACTIVE |
|
||||
| tenant_id | 532890c765604609a8d2ef6fc8e5f6ef |
|
||||
| updated_at | 2017-01-12T07:04:13Z |
|
||||
+-----------------------+--------------------------------------+
|
||||
$ neutron --os-region-name=CentralRegion router-create --availability-zone-hint RegionOne R1
|
||||
+-------------------------+--------------------------------------+
|
||||
| Field | Value |
|
||||
+-------------------------+--------------------------------------+
|
||||
| admin_state_up | True |
|
||||
| availability_zone_hints | RegionOne |
|
||||
| availability_zones | |
|
||||
| created_at | 2017-01-12T07:04:13Z |
|
||||
| description | |
|
||||
| external_gateway_info | |
|
||||
| id | 063de74b-d962-4fc2-96d9-87e2cb35c082 |
|
||||
| name | R1 |
|
||||
| project_id | 532890c765604609a8d2ef6fc8e5f6ef |
|
||||
| revision_number | 1 |
|
||||
| status | ACTIVE |
|
||||
| tenant_id | 532890c765604609a8d2ef6fc8e5f6ef |
|
||||
| updated_at | 2017-01-12T07:04:13Z |
|
||||
+-------------------------+--------------------------------------+
|
||||
|
||||
Set the router gateway to ext-net1 for R1.
|
||||
|
||||
|
@ -165,12 +167,12 @@ RegionOne as the value of availability-zone-hint.
|
|||
|
||||
.. code-block:: console
|
||||
|
||||
$ neutron --os-region-name=CentralRegion net-create --availability-zone-hint az1 net1
|
||||
$ neutron --os-region-name=CentralRegion net-create --availability-zone-hint RegionOne net1
|
||||
+---------------------------+--------------------------------------+
|
||||
| Field | Value |
|
||||
+---------------------------+--------------------------------------+
|
||||
| admin_state_up | True |
|
||||
| availability_zone_hints | az1 |
|
||||
| availability_zone_hints | RegionOne |
|
||||
| id | de4fda27-e4f7-4448-80f6-79ee5ea2478b |
|
||||
| name | net1 |
|
||||
| project_id | 532890c765604609a8d2ef6fc8e5f6ef |
|
||||
|
@ -586,22 +588,24 @@ Create router R2 which will work in RegionTwo.
|
|||
|
||||
.. code-block:: console
|
||||
|
||||
$ neutron --os-region-name=CentralRegion router-create R2
|
||||
+-----------------------+--------------------------------------+
|
||||
| Field | Value |
|
||||
+-----------------------+--------------------------------------+
|
||||
| admin_state_up | True |
|
||||
| created_at | 2017-01-12T07:19:23Z |
|
||||
| description | |
|
||||
| external_gateway_info | |
|
||||
| id | 8a8571db-e3ba-4b78-98ca-13d4dc1a4fb0 |
|
||||
| name | R2 |
|
||||
| project_id | 532890c765604609a8d2ef6fc8e5f6ef |
|
||||
| revision_number | 1 |
|
||||
| status | ACTIVE |
|
||||
| tenant_id | 532890c765604609a8d2ef6fc8e5f6ef |
|
||||
| updated_at | 2017-01-12T07:19:23Z |
|
||||
+-----------------------+--------------------------------------+
|
||||
$ neutron --os-region-name=CentralRegion router-create --availability-zone-hint RegionTwo R2
|
||||
+-------------------------+--------------------------------------+
|
||||
| Field | Value |
|
||||
+-------------------------+--------------------------------------+
|
||||
| admin_state_up | True |
|
||||
| availability_zone_hints | RegionTwo |
|
||||
| availability_zones | |
|
||||
| created_at | 2017-01-12T07:19:23Z |
|
||||
| description | |
|
||||
| external_gateway_info | |
|
||||
| id | 8a8571db-e3ba-4b78-98ca-13d4dc1a4fb0 |
|
||||
| name | R2 |
|
||||
| project_id | 532890c765604609a8d2ef6fc8e5f6ef |
|
||||
| revision_number | 1 |
|
||||
| status | ACTIVE |
|
||||
| tenant_id | 532890c765604609a8d2ef6fc8e5f6ef |
|
||||
| updated_at | 2017-01-12T07:19:23Z |
|
||||
+-------------------------+--------------------------------------+
|
||||
|
||||
Set the router gateway to ext-net2 for R2.
|
||||
|
||||
|
@ -633,16 +637,16 @@ Check router R2.
|
|||
+-----------------------+------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
|
||||
Create net2 in az2.
|
||||
Create net2 in RegionTwo.
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ neutron --os-region-name=CentralRegion net-create --availability-zone-hint az2 net2
|
||||
$ neutron --os-region-name=CentralRegion net-create --availability-zone-hint RegionTwo net2
|
||||
+---------------------------+--------------------------------------+
|
||||
| Field | Value |
|
||||
+---------------------------+--------------------------------------+
|
||||
| admin_state_up | True |
|
||||
| availability_zone_hints | az2 |
|
||||
| availability_zone_hints | RegionTwo |
|
||||
| id | 71b06c5d-2eb8-4ef4-a978-c5c98874811b |
|
||||
| name | net2 |
|
||||
| project_id | 532890c765604609a8d2ef6fc8e5f6ef |
|
||||
|
|
|
@ -3,9 +3,10 @@ Networking Guide
|
|||
|
||||
The Tricircle is to provide networking automation across Neutron
|
||||
servers in multi-region OpenStack clouds deployment, many cross Neutron
|
||||
networking mode are supported. In this guide, how to use CLI to setup
|
||||
networking modes are supported. In this guide, how to use CLI to setup
|
||||
typical networking mode will be described.
|
||||
|
||||
|
||||
.. include:: ./networking-terms.rst
|
||||
.. include:: ./networking-prerequisites.rst
|
||||
.. include:: ./networking-scenarios.rst
|
||||
|
|
|
@ -0,0 +1,93 @@
|
|||
================
|
||||
Networking Terms
|
||||
================
|
||||
|
||||
There are four important networking terms will be used in networking
|
||||
automation across Neutron.
|
||||
|
||||
Local Network
|
||||
- Local Network is a network which can only reside in one OpenStack cloud.
|
||||
- Network type could be VLAN, VxLAN, Flat.
|
||||
- If you specify a region name as the value of availability-zone-hint
|
||||
during network creation, then the network will be created as local
|
||||
network in that region.
|
||||
- If the default network type to be created is configured to "local" in
|
||||
central Neutron, then no matter you specify availability-zone-hint or
|
||||
not, the network will be local network if the network was created
|
||||
without explicitly given non-local provider network type.
|
||||
- External network should be created as local network, that means external
|
||||
network is explicitly existing in some specified region. It's possible
|
||||
that each region provides multiple external networks, that means there
|
||||
is no limitation on how many external networks can be created.
|
||||
- For example, local network could be created as follows:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
openstack --os-region-name=CentralRegion network create --availability-zone-hint=RegionOne net1
|
||||
|
||||
Local Router
|
||||
- Local Router is a logical router which can only reside in one OpenStack
|
||||
cloud.
|
||||
- If you specify a region name as the value of availability-zone-hint
|
||||
during router creation, then the router will be created as local
|
||||
router in that region.
|
||||
- For example, local router could be created as follows:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
neutron --os-region-name=CentralRegion router-create --availability-zone-hint RegionOne R1
|
||||
|
||||
Cross OpenStack L2 Network
|
||||
- Cross OpenStack L2 Network is a network which can be stretched into more
|
||||
than one OpenStack cloud.
|
||||
- Also called cross Neutron L2 network, or cross pod L2 network.
|
||||
- Network type could be VLAN, VxLAN, Flat.
|
||||
- During the network creation, if availability-zone-hint is not specified,
|
||||
or specified with availability zone name, or more than one region name,
|
||||
or more than one availability zone name, then the network will be created
|
||||
as cross OpenStack L2 network.
|
||||
- If the default network type to be created is not configured to "local" in
|
||||
central Neutron, then the network will be cross OpenStack L2 network if
|
||||
the network was created without specified provider network type and single
|
||||
region name in availability-zone-hint.
|
||||
- For example, cross OpenStack L2 network could be created as follows:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
neutron --os-region-name=CentralRegion net-create --provider:network_type vxlan --availability-zone-hint RegionOne --availability-zone-hint RegionTwo net1
|
||||
|
||||
Non-Local Router
|
||||
- Non-Local Router will be able to reside in more than one OpenStack cloud,
|
||||
and internally inter-connected with bridge network.
|
||||
- Bridge network used internally for non-local router is a special cross
|
||||
OpenStack L2 network.
|
||||
- Local networks or cross OpenStack L2 networks can be attached to local
|
||||
router or non-local routers if the network can be presented in the region
|
||||
where the router can reside.
|
||||
- During the router creation, if availability-zone-hint is not specified,
|
||||
or specified with availability zone name, or more than one region name,
|
||||
or more than one availability zone name, then the router will be created
|
||||
as non-local router.
|
||||
- For example, non-local router could be created as follows:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
neutron --os-region-name=CentralRegion router-create --availability-zone-hint RegionOne --availability-zone-hint RegionTwo R3
|
||||
|
||||
It's also important to understand that cross OpenStack L2 network, local
|
||||
router and non-local router can be created for different north-south/east-west
|
||||
networking purpose.
|
||||
|
||||
North-South and East-West Networking
|
||||
- Instances in different OpenStack clouds can be attached to a cross
|
||||
OpenStack L2 network directly, so that they can communicate with
|
||||
each other no matter in which OpenStack cloud.
|
||||
- If L3 networking across OpenStack clouds is preferred, local network
|
||||
attached to non-local router can be created for instances to attach.
|
||||
- Local router can be set gateway with external networks to support
|
||||
north-south traffic handled locally.
|
||||
- Non-local router can work only for cross OpenStack east-west networking
|
||||
purpose if no external network is set to the router.
|
||||
- Non-local router can serve as the centralized north-south traffic gateway
|
||||
if external network is attached to the router, and support east-west
|
||||
traffic at the same time.
|
Loading…
Reference in New Issue