Fix rst format for nested_containers document

Change-Id: I5e82052287e2f0f084195256988d72e8e03caf77
This commit is contained in:
Omer Anson 2016-05-29 18:38:25 +03:00
parent d0975e0a0a
commit 9e4fae95ae
1 changed files with 60 additions and 49 deletions

View File

@ -6,7 +6,7 @@
============================================================================ ============================================================================
Networking for Nested Containers in OpenStack / Magnum - Neutron Integration Networking for Nested Containers in OpenStack / Magnum - Neutron Integration
============================================================================= ============================================================================
Launchpad blueprint: Launchpad blueprint:
@ -219,41 +219,41 @@ found here [4].
Example of model:: Example of model::
+-------------------------------+ +-------------------------------+ +-------------------------------+ +-------------------------------+
| +---------+ +---------+ | | +---------+ +---------+ | | +---------+ +---------+ | | +---------+ +---------+ |
| | c1 | | c2 | | | | c3 | | c4 | | | | c1 | | c2 | | | | c3 | | c4 | |
| +---------+ +---------+ | | +---------+ +---------+ | | +---------+ +---------+ | | +---------+ +---------+ |
| | | | | | | |
| VM1 | | VM2 | | VM1 | | VM2 |
| | | | | | | |
| | | | | | | |
+---------+------------+--------+ +---------+------------+--------+ +---------+------------+--------+ +---------+------------+--------+
|Trunk Port1 | |Trunk Port2 | |Trunk Port1 | |Trunk Port2 |
+------------+ +------------+ +------------+ +------------+
/|\ /|\ /|\ /|\
/ | \ / | \ / | \ / | \
/ | \ / | \ / | \ / | \
+--+ +-++ +--+ +--+ +-++ +--+ +--+ +-++ +--+ +--+ +-++ +--+
|S1| |S2| |S3| |S4| |S5| |S6| |S1| |S2| |S3| |S4| |S5| |S6|
+-++ +--+ +-++ +--+ +-++ +-++ +-++ +--+ +-++ +--+ +-++ +-++
| | | | | | | | | |
| | | +---+ | | | | | +---+ | |
| | +---+N1+ +-+N2+-----------+ | | +---+N1+ +-+N2+-----------+
| | | | | | | | | | | |
+-------------+ | | | +-------------+ | | |
| | | | | | | |
+ ++ x x +-+ + + ++ x x +-+ +
N3+--------+x x+-----------+N4 N3+--------+x x+-----------+N4
x x x x
x Router x x Router x
x x x x
x x x x
C1-4 = Magnum containers C1-4 = Magnum containers
N1-4 = Neutron Networks and Subnets N1-4 = Neutron Networks and Subnets
S1,S3,S4,S6 = Subports S1,S3,S4,S6 = Subports
S2,S5 = Trunk ports (untagged traffic) S2,S5 = Trunk ports (untagged traffic)
In the example above, Magnum launches four containers (c1, c2, c3, c4) In the example above, Magnum launches four containers (c1, c2, c3, c4)
spread across two Nova instances. There are four Neutron spread across two Nova instances. There are four Neutron
@ -271,15 +271,21 @@ tagged:
+------+----------------------+---------------+ +------+----------------------+---------------+
| Port | Tagged(VID)/untagged | Packets go to | | Port | Tagged(VID)/untagged | Packets go to |
+------+----------------------+---------------+ +======+======================+===============+
| S1 | 100 | N1 | | S1 | 100 | N1 |
+------+----------------------+---------------+
| S2 | untagged | N3 | | S2 | untagged | N3 |
+------+----------------------+---------------+
| S3 | 200 | N1 | | S3 | 200 | N1 |
+------+----------------------+---------------+
| S4 | 100 | N2 | | S4 | 100 | N2 |
+------+----------------------+---------------+
| S5 | untagged | N4 | | S5 | untagged | N4 |
+------+----------------------+---------------+
| S6 | 300 | N2 | | S6 | 300 | N2 |
+------+----------------------+---------------+ +------+----------------------+---------------+
One thing to note over here is S1.vlan == S4.vlan is a valid scenario One thing to note over here is S1.vlan == S4.vlan is a valid scenario
since they are part of different trunk ports. It is possible that some since they are part of different trunk ports. It is possible that some
implementations do not use VLAN IDs, the VID can be something implementations do not use VLAN IDs, the VID can be something
@ -355,28 +361,26 @@ Data Model Impact (Magnum)
This document adds the network_id attribute to the container database This document adds the network_id attribute to the container database
table. A migration script will be provided to support the attribute table. A migration script will be provided to support the attribute
being added. :: being added.
+-------------------+-----------------+---------------------------------------------+ +-------------------+-----------------+---------------------------------------------+
| Attribute | Type | Description | | Attribute | Type | Description |
+===================+=================+=============================================+ +===================+=================+=============================================+
+-------------------+-----------------+---------------------------------------------+ | network_id | uuid | UUID of a Neutron network |
| network_id | uuid | UUID of a Neutron network | +-------------------+-----------------+---------------------------------------------+
+-------------------+-----------------+---------------------------------------------+
REST API Impact (Magnum) REST API Impact (Magnum)
------------------------- -------------------------
This document adds network_id attribute to the Container This document adds network_id attribute to the Container
API class. :: API class.
+-------------------+-----------------+---------------------------------------------+ +-------------------+-----------------+---------------------------------------------+
| Attribute | Type | Description | | Attribute | Type | Description |
+===================+=================+=============================================+ +===================+=================+=============================================+
+-------------------+-----------------+---------------------------------------------+ | network_id | uuid | UUID of a Neutron network |
| network_id | uuid | UUID of a Neutron network | +-------------------+-----------------+---------------------------------------------+
+-------------------+-----------------+---------------------------------------------+
Security Impact Security Impact
@ -465,6 +469,7 @@ Work Items
---------- ----------
Magnum: Magnum:
* Extend the Magnum API to support new network attribute. * Extend the Magnum API to support new network attribute.
* Extend the Client API to support new network attribute. * Extend the Client API to support new network attribute.
* Extend baymodel objects to support new container * Extend baymodel objects to support new container
@ -474,10 +479,12 @@ Magnum:
in Magnum. in Magnum.
Heat: Heat:
* Update Heat templates to support the Magnum container * Update Heat templates to support the Magnum container
port information. port information.
Kuryr: Kuryr:
* Kuryr container agent. * Kuryr container agent.
* Kuryr VLAN/VID allocation engine. * Kuryr VLAN/VID allocation engine.
* Extend unit test cases in Kuryr for the agent and VLAN/VID allocation * Extend unit test cases in Kuryr for the agent and VLAN/VID allocation
@ -522,7 +529,11 @@ References
========== ==========
[1] https://review.openstack.org/#/c/204686/7 [1] https://review.openstack.org/#/c/204686/7
[2] http://specs.openstack.org/openstack/neutron-specs/specs/mitaka/vlan-aware-vms.html [2] http://specs.openstack.org/openstack/neutron-specs/specs/mitaka/vlan-aware-vms.html
[3] https://blueprints.launchpad.net/kuryr/+spec/kuryr-agent [3] https://blueprints.launchpad.net/kuryr/+spec/kuryr-agent
[4] https://blueprints.launchpad.net/kuryr/+spec/kuryr-magnum-heat-deployment [4] https://blueprints.launchpad.net/kuryr/+spec/kuryr-magnum-heat-deployment
[5] http://docs.openstack.org/developer/magnum/ [5] http://docs.openstack.org/developer/magnum/