Skip to content

Commit d94dd6d

Browse files
nvazquezPearl1594
andauthored
Add Netris Integration Documentation (#482)
* Add Netris Plugin page * Add Zone creation and VPC creation specifics on Netris * Add images * formatting * fix image display issues * fixes * Fix version --------- Co-authored-by: Pearl Dsilva <[email protected]>
1 parent 4b8f45e commit d94dd6d

File tree

7 files changed

+250
-0
lines changed

7 files changed

+250
-0
lines changed
80.6 KB
Loading
60.9 KB
Loading
97.3 KB
Loading
90 KB
Loading
54.4 KB
Loading

source/plugins/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ This is the Apache CloudStack Plugins guide. This section gives information for
3333
cloudian-connector
3434
nicira-plugin
3535
nsx-plugin
36+
netris-plugin
3637
vxlan
3738
ovs-plugin
3839
ipv6

source/plugins/netris-plugin.rst

Lines changed: 249 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,249 @@
1+
.. Licensed to the Apache Software Foundation (ASF) under one
2+
or more contributor license agreements. See the NOTICE file
3+
distributed with this work for additional information regarding copyright ownership. The ASF licenses this file
4+
to you under the Apache License, Version 2.0 (the
5+
"License"); you may not use this file except in compliance
6+
with the License. You may obtain a copy of the License at
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
Unless required by applicable law or agreed to in writing,
9+
software distributed under the License is distributed on an
10+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
11+
KIND, either express or implied. See the License for the
12+
specific language governing permissions and limitations
13+
under the License.
14+
15+
The Netris Plugin
16+
=================
17+
18+
Introduction
19+
------------
20+
21+
The Netris Plugin introduces Netris as a network service provider in CloudStack to be able to create and manage Virtual Private Clouds (VPCs) in CloudStack, being able to orchestrate the following network functionalities:
22+
23+
- Network segmentation with Netris-VXLAN isolation method
24+
- Routing between "public" IP and network segments with an ACS ROUTED mode offering
25+
- SourceNAT, DNAT, 1:1 NAT between "public" IP and network segments with an ACS NATTED mode offering
26+
- Routing between VPC network segments (tiers in ACS nomenclature)
27+
- Access Lists (ACLs) between VPC tiers and "public" network (TCP, UDP, ICMP) both as global egress rules and "public" IP specific ingress rules.
28+
- ACLs between VPC network tiers (TCP, UDP, ICMP)
29+
- External load balancing – between VPC network tiers and "public" IP
30+
- Internal load balancing – between VPC network tiers
31+
- CloudStack Virtual Router services (DHCP, DNS, UserData, Password Injection, etc…)
32+
33+
34+
Supported Versions
35+
------------------
36+
37+
+--------------+----------------------+----------------+
38+
| Hypervisor | CloudStack Version | Netris Version |
39+
+==============+======================+================+
40+
| KVM | >= 4.21 | 4.4.0 |
41+
+--------------+----------------------+----------------+
42+
43+
Table: Supported Versions
44+
45+
Configuration
46+
-------------
47+
48+
Prerequisites
49+
~~~~~~~~~~~~~
50+
51+
The Netris plugin is enabled by the 'netris.plugin.enable' setting, which is false by default. It enables the Netris Plugin on CloudStack when it is set to true. The global setting is non-dynamic, that is, the management server would need to be restarted after being modified.
52+
53+
Zone creation
54+
~~~~~~~~~~~~~
55+
56+
The CloudStack Zone creation wizard is extended:
57+
58+
.. image:: ../_static/images/netris-isolation-method.png
59+
:width: 600px
60+
:align: center
61+
62+
- A new isolation method is added for the Core zone, with Advanced networking and KVM hypervisor: NETRIS
63+
64+
- When the NETRIS isolation method is selected, new steps are added to the zone creation wizard:
65+
- Netris Provider: in this step the administrator must provide:
66+
- Netris provider URL along with an internal name for reference
67+
- Netris provider credentials to login into the Netris provider
68+
- Site name: The Netris Site Name to be linked to
69+
- Admin Tenant Name: The name of the Admin Tenant on the Netris provider
70+
- Netris tag: A tag to be used on each Netris VNET creation
71+
72+
.. image:: ../_static/images/netris-provider-config.png
73+
:width: 600px
74+
:align: center
75+
76+
- Public traffic and Netris IP Pool: The public traffic is split in two sections.
77+
- Public traffic: The first Public IP range defined on this section will be marked for system VMs (and a tag will be displayed accordingly, with the name 'systemvm'). The next Public IP ranges defined on this section will be available for VR Public IPs.
78+
79+
.. image:: ../_static/images/netris-sysvm-vr-ip-range.png
80+
:width: 600px
81+
:align: center
82+
83+
- Netris IP Pool: Administrators must provide the Public IP range to be used by VPC operations: Source NAT, Load Balancing, Port Forwarding, Static NAT (this range is marked with the tag 'netris')
84+
85+
.. image:: ../_static/images/netris-public-ip-pool.png
86+
:width: 600px
87+
:align: center
88+
89+
- When a new zone is being created, CloudStack will check the Public IP ranges defined and will perform the following actions on Netris:
90+
- Create an IPAM allocation for the Netris IP Pool range linked to the default VPC.
91+
- If an existing IPAM allocation contains the Netris IP Pool provided, then the range must be created as a new IPAM subnet as a child entity of the existing allocation on Netris, with purpose: 'common'. The 'common' subnet purpose allows creating 'nat' and 'load-balancer' child subnets.
92+
93+
.. note::
94+
**Important:**
95+
Please note CloudStack expects the public IP ranges defined in the same order as the zone wizard creation displays them. The same order must be preserved in case of adding/editing/removing public IP ranges:
96+
97+
- System VM Public Range
98+
- VRs Public Range
99+
- Netris Public Range
100+
101+
The subsequent steps of zone creation remain unchanged and once the zone is successfully created and enabled, the system VMs come up with IPs from the Public IP Range reserved for System VMs (not the Netris public IP range).
102+
103+
VPC creation on Netris
104+
~~~~~~~~~~~~~~~~~~~~~~
105+
106+
VPC creation on CloudStack performs the following actions on Netris:
107+
108+
- A new VPC is created for the Admin Tenant provided at the zone creation phase, with the name convention: D<domainID>-A<accountID>-Z<zoneID>-V<vpcID>-<vpcName>, where:
109+
- domainID: Internal database ID of the domain
110+
- accountID: Internal database ID of the account
111+
- zoneID: Internal database ID of the VPC
112+
- vpcName: Name of the VPC
113+
114+
- A new IPAM allocation is created for the VPC Guest CIDR, with the following parameters:
115+
- Prefix: The VPC CIDR
116+
- Name: D<domainID>-A<accountID>-Z<zoneID>-V<vpcID>-<vpcCidr>, where:
117+
- vpcCidr: is the CIDR defined for the VPC
118+
- VPC: The new VPC created on the step above
119+
120+
- Source NAT is created for VPC in NAT mode
121+
122+
VPC Tier creation on Netris
123+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
124+
125+
VPC Tier creation on CloudStack performs the following actions on Netris:
126+
127+
- A new IPAM subnet is created for the VPC Tier, with the following parameters:
128+
- Prefix: The VPC Tier CIDR
129+
- Name: D<domainID>-A<accountID>-Z<zoneID>-N<networkID>-<vpcTierCidr>, where:
130+
- networkID: The internal database ID of the network tier
131+
- vpcTierCidr: is the CIDR defined for the VPC Tier
132+
- Purpose: 'common'
133+
- VPC: The VPC created on the step above
134+
135+
- A new vNet is created, with the following parameters:
136+
- Name: D<domainID>-A<accountID>-Z<zoneID>-N<networkID>-<vpcTierName>, where:
137+
- vpcTierName: is the VPC Tier name
138+
- VPC: The VPC created on the step above
139+
- VXLAN ID: A random VXLAN from the range provided on the zone creation
140+
- VLAN ID: Disabled
141+
- Tags: The tag set on the zone creation
142+
- IP Gateway: The VPC Tier gateway IP, from the subnet created on the step above.
143+
- ACLs are created on Netris
144+
145+
- The VPC tiers created from the default VPC network offering for Netris – Routed Mode extends the IPAM Subnet creation for the VPC Tier Guest CIDR by setting the parameter:
146+
- Global Routing = true. This parameter allows advertising the IPs for the VPC tier (required for Routed mode)
147+
148+
.. note::
149+
Important: Please consider at least one running VM per VPC tier to prevent VPC tier state transition to Allocated state
150+
151+
152+
Supported VPC Services
153+
~~~~~~~~~~~~~~~~~~~~~~
154+
155+
· The following operations are supported for VPCs created from the default **VPC offering for Netris – NAT mode**:
156+
- Source NAT:
157+
- A new IPAM subnet is created for the Source NAT IP of the VPC, under the Netris IP pool IPAM allocation, with the following parameters:
158+
- **Prefix**: <SOURCE_NAT_IP>/32, where SOURCE_NAT_IP is the VPC Source NAT IP
159+
- **Purpose**: 'nat'
160+
- **VPC**: Default VPC
161+
- **Name**: D<domainID>-A<accountID>-Z<zoneID>-V<vpcID>-<vpcCidr>
162+
163+
- A new NAT rule is created with the following parameters:
164+
- **Action**: SNAT
165+
- **Protocol**: ALL
166+
- **VPC**: The associated VPC
167+
- **Name**: D<domainID>-A<accountID>-Z<zoneID>-V<vpcID>-SNAT
168+
- **Source Address**: The VPC CIDR
169+
- **Destination Address**: 0.0.0.0/0
170+
- **SNAT to IP**: true, set to the Source NAT Public IP
171+
172+
- Port forwarding rules:
173+
- A new IPAM subnet is created for the Public IP, under the Netris IP Pool IPAM allocation, with the following parameters:
174+
- **Prefix**: <PUBLIC_IP>/32, where PUBLIC_IP is the selected free public IP
175+
- **Purpose**: 'nat'
176+
- **VPC**: Default VPC
177+
- **Name**: D<domainID>-A<accountID>-Z<zoneID>-V<vpcID>-<vpcCidr>
178+
179+
- A new NAT rule is created with the following parameters:
180+
- **Action**: DNAT
181+
- **VPC**: The associated VPC
182+
- **Name**: D<domainID>-A<accountID>-Z<zoneID>-V<vpcID>-DNAT-R<ruleID>, where:
183+
- **Rule ID**: The internal database ID of the port forwarding rule
184+
- **Protocol**: The protocol for the port forwarding rule
185+
- **Source Address**: 0.0.0.0/0
186+
- **Source Port**: 1-65535
187+
- **Destination Address**: The port forwarding Public IP
188+
- **Destination Port**: The port forwarding rule public port
189+
- **DNAT to IP**: <VM_IP>/32, where VM_IP: is the VM guest IP
190+
- **DNAT to port**: The port forwarding rule private port
191+
192+
- Static NAT:
193+
- A new IPAM subnet is created for the Public IP, under the Netris IP Pool IPAM allocation, with the following parameters:
194+
- **Prefix**: <PUBLIC_IP>/32, where PUBLIC_IP is the selected free public IP
195+
- **Purpose**: 'nat'
196+
- **VPC**: Default VPC
197+
- **Name**: D<domainID>-A<accountID>-Z<zoneID>-V<vpcID>-<vpcCidr>
198+
199+
- A new NAT rule is created with the following parameters:
200+
- **Action**: DNAT
201+
- **VPC**: The associated VPC
202+
- **Name**: D<domainID>-A<accountID>-Z<zoneID>-V<vpcID>-STATICNAT:
203+
- **Protocol**: ALL
204+
- **Source Address**: 0.0.0.0/0
205+
- **Destination Address**: The port forwarding Public IP
206+
- **DNAT to IP**: <VM_IP>/32, where VM_IP: is the VM guest IP
207+
208+
209+
- Load Balancing:
210+
- A new IPAM subnet is created for the Public IP, under the Netris IP Pool IPAM allocation, with the following parameters:
211+
- **Prefix**: <PUBLIC_IP>/32, where PUBLIC_IP is the selected free public IP
212+
- **Purpose**: 'load-balancer'
213+
- **VPC**: Default VPC
214+
- **Name**: D<domainID>-A<accountID>-Z<zoneID>-V<vpcID>-<vpcCidr>
215+
216+
- A new L4 Load Balancer is created with the following parameters:
217+
- **Action**: DNAT
218+
- **VPC**: The associated VPC
219+
- **Name**: D<domainID>-A<accountID>-Z<zoneID>-V<vpcID>-LB<lbID>, where:
220+
- **lbID**: The internal database ID of the load balancer
221+
- **Protocol**: The protocol for the load balancer
222+
- **Frontend Address**: The load balancer Public IP
223+
- **Frontend Port**: The load balancer public port
224+
- For each VM added to the load balancer:
225+
- **Backend address**: The guest VM IP
226+
- **Backend port**: The load balancer private port
227+
228+
- ACLs
229+
- A new ACL rule is created for each CloudStack ACL rule defined on the network tier ACL:
230+
- **Name**: D<domainID>-A<accountID>-Z<zoneID>-V<vpcID>-N<networkID>-ACL<aclID>, where:
231+
- **aclID**: The internal database ID of the ACL rule
232+
- **VPC**: The associated VPC
233+
- **Protocol**: The selected protocol for the ACL Rule
234+
- **Action**: 'permit' or 'deny' matching the selected Allow or Deny action on CloudStack
235+
- If the traffic type is **Ingress**:
236+
- **Source Address**: The ACL rule CIDR
237+
- **Source Port**: 1-65535
238+
- **Destination Address**: The VPC Tier CIDR
239+
- **Destination Port**: X-Y, where:
240+
- *X*: The ACL rule start port
241+
- *Y*: The ACL rule end port
242+
- If the traffic type is Egress:
243+
- **Reverse**: true
244+
- **Source Address**: The VPC Tier CIDR
245+
- **Source Port**: 1-65535
246+
- **Destination Address**: The ACL rule CIDR
247+
- **Destination Port**: X-Y, where:
248+
- *X*: The ACL rule start port
249+
- *Y*: The ACL rule end port

0 commit comments

Comments
 (0)