blob: 3d851a2f65b45314b3ff2a90971a7b6faf350f59 [file] [log] [blame]
Aleš Komárek41e82312017-04-11 13:37:44 +02001===============
2Neutron Formula
3===============
Filip Pytlouncd028e42015-10-06 16:28:32 +02004
Jakub Pavlik9ecf0262016-05-20 11:20:58 +02005Neutron is an OpenStack project to provide "networking as a service" between
6interface devices (e.g., vNICs) managed by other Openstack services (e.g.,
7nova).
Filip Pytlouncd028e42015-10-06 16:28:32 +02008
Jakub Pavlik9ecf0262016-05-20 11:20:58 +02009Starting in the Folsom release, Neutron is a core and supported part of the
10OpenStack platform (for Essex, we were an "incubated" project, which means use
Vasyl Saienko2fffc842017-06-14 10:35:26 +030011is suggested only for those who really know what they're doing with Neutron).
Filip Pytlouncd028e42015-10-06 16:28:32 +020012
Aleš Komárek41e82312017-04-11 13:37:44 +020013Sample Pillars
Filip Pytlouncd028e42015-10-06 16:28:32 +020014==============
15
16Neutron Server on the controller node
17
18.. code-block:: yaml
19
20 neutron:
21 server:
22 enabled: true
Jiri Broulik74f61112016-11-21 20:23:47 +010023 version: mitaka
Swann Croiset9407daf2017-02-02 15:27:56 +010024 allow_pagination: true
25 pagination_max_limit: 100
Mykyta Karpin253406d2017-12-08 17:01:37 +020026 api_workers: 2
27 rpc_workers: 2
28 rpc_state_report_workers: 2
Michael Polenchuk1ff88652018-03-06 16:15:57 +040029 root_helper_daemon: false
Michael Polenchuk2151b272018-06-19 18:32:31 +040030 dhcp_lease_duration: 600
Michael Polenchukcece76d2018-06-21 14:56:17 +040031 firewall_driver: iptables_hybrid
Filip Pytlouncd028e42015-10-06 16:28:32 +020032 bind:
33 address: 172.20.0.1
34 port: 9696
Filip Pytlouncd028e42015-10-06 16:28:32 +020035 database:
36 engine: mysql
37 host: 127.0.0.1
38 port: 3306
39 name: neutron
40 user: neutron
41 password: pwd
42 identity:
43 engine: keystone
44 host: 127.0.0.1
45 port: 35357
46 user: neutron
47 password: pwd
48 tenant: service
Dennis Dmitriev37114722017-03-06 16:52:26 +020049 endpoint_type: internal
Filip Pytlouncd028e42015-10-06 16:28:32 +020050 message_queue:
51 engine: rabbitmq
52 host: 127.0.0.1
53 port: 5672
54 user: openstack
55 password: pwd
56 virtual_host: '/openstack'
57 metadata:
58 host: 127.0.0.1
59 port: 8775
60 password: pass
Mykyta Karpin253406d2017-12-08 17:01:37 +020061 workers: 2
Petr Michalec61f7ab22016-11-29 16:29:09 +010062 audit:
63 enabled: false
Filip Pytlouncd028e42015-10-06 16:28:32 +020064
Swann Croiset9407daf2017-02-02 15:27:56 +010065Note: The pagination is useful to retrieve a large bunch of resources,
66because a single request may fail (timeout). This is enabled with both
67parameters *allow_pagination* and *pagination_max_limit* as shown above.
68
Dmitry Ukov596ddcf2017-05-04 18:16:16 +040069
70Configuration of policy.json file
71
72.. code-block:: yaml
73
74 neutron:
75 server:
76 ....
77 policy:
78 create_subnet: 'rule:admin_or_network_owner'
79 'get_network:queue_id': 'rule:admin_only'
80 # Add key without value to remove line from policy.json
81 'create_network:shared':
82
Elena Ezhovacd67cfe2017-06-16 23:35:07 +040083Neutron LBaaSv2 enablement
84--------------------------
Ondrej Smola314eee22017-03-08 21:21:16 +010085
86.. code-block:: yaml
87
88 neutron:
89 server:
90 lbaas:
91 enabled: true
92 providers:
Elena Ezhovacd67cfe2017-06-16 23:35:07 +040093 octavia:
94 engine: octavia
95 driver_path: 'neutron_lbaas.drivers.octavia.driver.OctaviaDriver'
96 base_url: 'http://127.0.0.1:9876'
Ondrej Smola314eee22017-03-08 21:21:16 +010097 avi_adc:
Ondrej Smola314eee22017-03-08 21:21:16 +010098 engine: avinetworks
Elena Ezhovacd67cfe2017-06-16 23:35:07 +040099 driver_path: 'avi_lbaasv2.avi_driver.AviDriver'
Ondrej Smola314eee22017-03-08 21:21:16 +0100100 controller_address: 10.182.129.239
101 controller_user: admin
102 controller_password: Cloudlab2016
103 controller_cloud_name: Default-Cloud
104 avi_adc2:
105 engine: avinetworks
106 ...
107
Elena Ezhovacd67cfe2017-06-16 23:35:07 +0400108Note: If the Contrail backend is set, Opencontrail loadbalancer would be enabled
109automatically. In this case lbaas should disabled in pillar:
Ondrej Smola314eee22017-03-08 21:21:16 +0100110
111.. code-block:: yaml
112
113 neutron:
114 server:
115 lbaas:
Elena Ezhovacd67cfe2017-06-16 23:35:07 +0400116 enabled: false
Ondrej Smola314eee22017-03-08 21:21:16 +0100117
Elena Ezhova166d4012017-08-17 12:53:52 +0400118
119Neutron FWaaSv1 enablement
120--------------------------
121
122.. code-block:: yaml
123
124 neutron:
125 fwaas:
126 enabled: true
127 version: ocata
128 api_version: v1
129
130
Ondrej Smola12ff8192017-04-28 12:39:11 +0200131Enable CORS parameters
Elena Ezhova166d4012017-08-17 12:53:52 +0400132----------------------
Ondrej Smola12ff8192017-04-28 12:39:11 +0200133
134.. code-block:: yaml
135
136 neutron:
137 server:
138 cors:
139 allowed_origin: https:localhost.local,http:localhost.local
140 expose_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token
141 allow_methods: GET,PUT,POST,DELETE,PATCH
142 allow_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token
143 allow_credentials: True
144 max_age: 86400
145
146
Aleš Komárek41e82312017-04-11 13:37:44 +0200147Neutron VXLAN tenant networks with Network nodes
148------------------------------------------------
Swann Croiset9407daf2017-02-02 15:27:56 +0100149
Aleš Komárek41e82312017-04-11 13:37:44 +0200150With DVR for East-West and Network node for North-South.
Jiri Broulik74f61112016-11-21 20:23:47 +0100151
152This use case describes a model utilising VxLAN overlay with DVR. The DVR
Aleš Komárek41e82312017-04-11 13:37:44 +0200153routers will only be utilized for traffic that is router within the cloud
Vasyl Saienko2fffc842017-06-14 10:35:26 +0300154infrastructure and that remains encapsulated. External traffic will be
155routed to via the network nodes.
Jiri Broulik74f61112016-11-21 20:23:47 +0100156
Vasyl Saienko2fffc842017-06-14 10:35:26 +0300157The intention is that each tenant will require at least two (2) vrouters
158one to be utilised
Jiri Broulik74f61112016-11-21 20:23:47 +0100159
Aleš Komárek41e82312017-04-11 13:37:44 +0200160Neutron Server
marcoa4428a32016-06-10 11:50:16 +0200161
162.. code-block:: yaml
163
164 neutron:
165 server:
Jiri Broulik74f61112016-11-21 20:23:47 +0100166 version: mitaka
Dmitry Stremkouski3c1be3e2017-11-18 11:04:20 +0300167 path_mtu: 1500
Jiri Broulik74f61112016-11-21 20:23:47 +0100168 bind:
169 address: 172.20.0.1
170 port: 9696
171 database:
172 engine: mysql
173 host: 127.0.0.1
174 port: 3306
175 name: neutron
176 user: neutron
177 password: pwd
178 identity:
179 engine: keystone
180 host: 127.0.0.1
181 port: 35357
182 user: neutron
183 password: pwd
184 tenant: service
Dennis Dmitriev37114722017-03-06 16:52:26 +0200185 endpoint_type: internal
Jiri Broulik74f61112016-11-21 20:23:47 +0100186 message_queue:
187 engine: rabbitmq
188 host: 127.0.0.1
189 port: 5672
190 user: openstack
191 password: pwd
192 virtual_host: '/openstack'
193 global_physnet_mtu: 9000
194 l3_ha: False # Which type of router will be created by default
195 dvr: True # disabled for non DVR use case
196 backend:
197 engine: ml2
198 tenant_network_types: "flat,vxlan"
199 external_mtu: 9000
200 mechanism:
Elena Ezhovad6a080c2017-10-09 15:25:16 +0400201 ovs:
202 driver: openvswitch
Jiri Broulik74f61112016-11-21 20:23:47 +0100203
Aleš Komárek41e82312017-04-11 13:37:44 +0200204Network Node
Jiri Broulik74f61112016-11-21 20:23:47 +0100205
206.. code-block:: yaml
207
208 neutron:
209 gateway:
210 enabled: True
211 version: mitaka
Michael Polenchuk2151b272018-06-19 18:32:31 +0400212 dhcp_lease_duration: 600
Michael Polenchukcece76d2018-06-21 14:56:17 +0400213 firewall_driver: iptables_hybrid
Jiri Broulik74f61112016-11-21 20:23:47 +0100214 message_queue:
215 engine: rabbitmq
216 host: 127.0.0.1
217 port: 5672
218 user: openstack
219 password: pwd
220 virtual_host: '/openstack'
221 local_ip: 192.168.20.20 # br-mesh ip address
222 dvr: True # disabled for non DVR use case
223 agent_mode: dvr_snat
224 metadata:
225 host: 127.0.0.1
226 password: pass
227 backend:
228 engine: ml2
229 tenant_network_types: "flat,vxlan"
230 mechanism:
Elena Ezhovad6a080c2017-10-09 15:25:16 +0400231 ovs:
232 driver: openvswitch
Jiri Broulik74f61112016-11-21 20:23:47 +0100233
234Compute Node
Jiri Broulik74f61112016-11-21 20:23:47 +0100235
236.. code-block:: yaml
237
238 neutron:
239 compute:
240 enabled: True
241 version: mitaka
242 message_queue:
243 engine: rabbitmq
244 host: 127.0.0.1
245 port: 5672
246 user: openstack
247 password: pwd
248 virtual_host: '/openstack'
249 local_ip: 192.168.20.20 # br-mesh ip address
250 dvr: True # disabled for non DVR use case
251 agent_mode: dvr
252 external_access: false # Compute node with DVR for east-west only, Network Node has True as default
253 metadata:
254 host: 127.0.0.1
Vasyl Saienko2fffc842017-06-14 10:35:26 +0300255 password: pass
Jiri Broulik74f61112016-11-21 20:23:47 +0100256 backend:
257 engine: ml2
258 tenant_network_types: "flat,vxlan"
259 mechanism:
Elena Ezhovad6a080c2017-10-09 15:25:16 +0400260 ovs:
261 driver: openvswitch
Petr Michalec61f7ab22016-11-29 16:29:09 +0100262 audit:
263 enabled: false
Jiri Broulik74f61112016-11-21 20:23:47 +0100264
Aleš Komárek41e82312017-04-11 13:37:44 +0200265
Dmitry Stremkouskia3a4ab42017-10-23 17:37:12 +0300266Disable physnet1 bridge
267-----------------------
268
269By default we have external access turned on, so among any physnets in
270your reclass there would be additional one: physnet1, which is mapped to
271br-floating
272
273If you need internal nets only without this bridge, remove br-floating
274and configurations mappings. Disable mappings for this bridge on
275neutron-servers:
276
277.. code-block:: yaml
278
279 neutron:
280 server:
281 external_access: false
282
283gateways:
284
285.. code-block:: yaml
286
287 neutron:
288 gateway:
289 external_access: false
290
291compute nodes:
292
293.. code-block:: yaml
294
295 neutron:
296 compute:
297 external_access: false
298
299
Marcin Iwinskic50137a2018-01-22 14:18:24 +0100300Add additional bridge mappings for OVS bridges
301----------------------------------------------
302
303By default we have external access turned on, so among any physnets in
304your reclass there would be additional one: physnet1, which is mapped to
305br-floating
306
307If you need to add extra non-default bridge mappings they can be defined
308separately for both gateways and compute nodes:
309
310gateways:
311
312.. code-block:: yaml
313
314 neutron:
315 gateway:
316 bridge_mappings:
317 physnet4: br-floating-internet
318
319compute nodes:
320
321.. code-block:: yaml
322
323 neutron:
324 compute:
325 bridge_mappings:
326 physnet4: br-floating-internet
327
328
Dmitry Stremkouski4b410222017-11-18 11:29:55 +0300329Specify different mtu values for different physnets
330---------------------------------------------------
331
332Neutron Server
333
334.. code-block:: yaml
335
336 neutron:
337 server:
338 version: mitaka
339 backend:
340 external_mtu: 1500
341 tenant_net_mtu: 9000
342 ironic_net_mtu: 9000
343
Jiri Broulik74f61112016-11-21 20:23:47 +0100344Neutron VXLAN tenant networks with Network Nodes (non DVR)
Aleš Komárek41e82312017-04-11 13:37:44 +0200345----------------------------------------------------------
Jiri Broulik74f61112016-11-21 20:23:47 +0100346
347This section describes a network solution that utilises VxLAN overlay
348 networks without DVR with all routers being managed on the network nodes.
349
Aleš Komárek41e82312017-04-11 13:37:44 +0200350Neutron Server
Jiri Broulik74f61112016-11-21 20:23:47 +0100351
352.. code-block:: yaml
353
354 neutron:
355 server:
356 version: mitaka
Jiri Broulik74f61112016-11-21 20:23:47 +0100357 bind:
358 address: 172.20.0.1
359 port: 9696
360 database:
361 engine: mysql
362 host: 127.0.0.1
363 port: 3306
364 name: neutron
365 user: neutron
366 password: pwd
367 identity:
368 engine: keystone
369 host: 127.0.0.1
370 port: 35357
371 user: neutron
372 password: pwd
373 tenant: service
Dennis Dmitriev37114722017-03-06 16:52:26 +0200374 endpoint_type: internal
Jiri Broulik74f61112016-11-21 20:23:47 +0100375 message_queue:
376 engine: rabbitmq
377 host: 127.0.0.1
378 port: 5672
379 user: openstack
380 password: pwd
381 virtual_host: '/openstack'
382 global_physnet_mtu: 9000
383 l3_ha: True
384 dvr: False
385 backend:
386 engine: ml2
387 tenant_network_types= "flat,vxlan"
388 external_mtu: 9000
389 mechanism:
Elena Ezhovad6a080c2017-10-09 15:25:16 +0400390 ovs:
391 driver: openvswitch
Jiri Broulik74f61112016-11-21 20:23:47 +0100392
Aleš Komárek41e82312017-04-11 13:37:44 +0200393Network Node
Jiri Broulik74f61112016-11-21 20:23:47 +0100394
395.. code-block:: yaml
396
397 neutron:
398 gateway:
399 enabled: True
400 version: mitaka
401 message_queue:
402 engine: rabbitmq
403 host: 127.0.0.1
404 port: 5672
405 user: openstack
406 password: pwd
407 virtual_host: '/openstack'
408 local_ip: 192.168.20.20 # br-mesh ip address
409 dvr: False
410 agent_mode: legacy
Simon Pasquierc03af112017-04-10 10:35:14 +0200411 availability_zone: az1
Jiri Broulik74f61112016-11-21 20:23:47 +0100412 metadata:
413 host: 127.0.0.1
414 password: pass
415 backend:
416 engine: ml2
417 tenant_network_types: "flat,vxlan"
418 mechanism:
Elena Ezhovad6a080c2017-10-09 15:25:16 +0400419 ovs:
420 driver: openvswitch
Jiri Broulik74f61112016-11-21 20:23:47 +0100421
422Compute Node
Jiri Broulik74f61112016-11-21 20:23:47 +0100423
424.. code-block:: yaml
425
426 neutron:
427 compute:
428 enabled: True
429 version: mitaka
430 message_queue:
431 engine: rabbitmq
432 host: 127.0.0.1
433 port: 5672
434 user: openstack
435 password: pwd
436 virtual_host: '/openstack'
437 local_ip: 192.168.20.20 # br-mesh ip address
438 external_access: False
Vasyl Saienko2fffc842017-06-14 10:35:26 +0300439 dvr: False
Jiri Broulik74f61112016-11-21 20:23:47 +0100440 backend:
441 engine: ml2
442 tenant_network_types: "flat,vxlan"
443 mechanism:
Elena Ezhovad6a080c2017-10-09 15:25:16 +0400444 ovs:
445 driver: openvswitch
Jiri Broulik74f61112016-11-21 20:23:47 +0100446
Aleš Komárek41e82312017-04-11 13:37:44 +0200447Neutron VXLAN tenant networks with Network Nodes with DVR
448---------------------------------------------------------
449
450With DVR for East-West and North-South, DVR everywhere, Network node for SNAT.
Jiri Broulik74f61112016-11-21 20:23:47 +0100451
Vasyl Saienko2fffc842017-06-14 10:35:26 +0300452This section describes a network solution that utilises VxLAN
453overlay networks with DVR with North-South and East-West. Network
Jiri Broulik74f61112016-11-21 20:23:47 +0100454Node is used only for SNAT.
455
Aleš Komárek41e82312017-04-11 13:37:44 +0200456Neutron Server
Jiri Broulik74f61112016-11-21 20:23:47 +0100457
458.. code-block:: yaml
459
460 neutron:
461 server:
462 version: mitaka
Jiri Broulik74f61112016-11-21 20:23:47 +0100463 bind:
464 address: 172.20.0.1
465 port: 9696
466 database:
467 engine: mysql
468 host: 127.0.0.1
469 port: 3306
470 name: neutron
471 user: neutron
472 password: pwd
473 identity:
474 engine: keystone
475 host: 127.0.0.1
476 port: 35357
477 user: neutron
478 password: pwd
479 tenant: service
Dennis Dmitriev37114722017-03-06 16:52:26 +0200480 endpoint_type: internal
Jiri Broulik74f61112016-11-21 20:23:47 +0100481 message_queue:
482 engine: rabbitmq
483 host: 127.0.0.1
484 port: 5672
485 user: openstack
486 password: pwd
487 virtual_host: '/openstack'
488 global_physnet_mtu: 9000
489 l3_ha: False
490 dvr: True
491 backend:
492 engine: ml2
493 tenant_network_types= "flat,vxlan"
494 external_mtu: 9000
495 mechanism:
Elena Ezhovad6a080c2017-10-09 15:25:16 +0400496 ovs:
497 driver: openvswitch
Jiri Broulik74f61112016-11-21 20:23:47 +0100498
Aleš Komárek41e82312017-04-11 13:37:44 +0200499Network Node
Jiri Broulik74f61112016-11-21 20:23:47 +0100500
501.. code-block:: yaml
502
503 neutron:
504 gateway:
505 enabled: True
506 version: mitaka
507 message_queue:
508 engine: rabbitmq
509 host: 127.0.0.1
510 port: 5672
511 user: openstack
512 password: pwd
513 virtual_host: '/openstack'
514 local_ip: 192.168.20.20 # br-mesh ip address
515 dvr: True
516 agent_mode: dvr_snat
Simon Pasquierc03af112017-04-10 10:35:14 +0200517 availability_zone: az1
Jiri Broulik74f61112016-11-21 20:23:47 +0100518 metadata:
519 host: 127.0.0.1
520 password: pass
521 backend:
522 engine: ml2
523 tenant_network_types: "flat,vxlan"
524 mechanism:
Elena Ezhovad6a080c2017-10-09 15:25:16 +0400525 ovs:
526 driver: openvswitch
Jiri Broulik74f61112016-11-21 20:23:47 +0100527
528Compute Node
Jiri Broulik74f61112016-11-21 20:23:47 +0100529
530.. code-block:: yaml
531
532 neutron:
533 compute:
534 enabled: True
535 version: mitaka
536 message_queue:
537 engine: rabbitmq
538 host: 127.0.0.1
539 port: 5672
540 user: openstack
541 password: pwd
542 virtual_host: '/openstack'
543 local_ip: 192.168.20.20 # br-mesh ip address
544 dvr: True
Vasyl Saienko2fffc842017-06-14 10:35:26 +0300545 external_access: True
Jiri Broulik74f61112016-11-21 20:23:47 +0100546 agent_mode: dvr
Simon Pasquierc03af112017-04-10 10:35:14 +0200547 availability_zone: az1
Jiri Broulik74f61112016-11-21 20:23:47 +0100548 metadata:
549 host: 127.0.0.1
550 password: pass
551 backend:
552 engine: ml2
553 tenant_network_types: "flat,vxlan"
554 mechanism:
Elena Ezhovad6a080c2017-10-09 15:25:16 +0400555 ovs:
556 driver: openvswitch
Jiri Broulik74f61112016-11-21 20:23:47 +0100557
558Sample Linux network configuration for DVR
Jiri Broulik74f61112016-11-21 20:23:47 +0100559
560.. code-block:: yaml
561
562 linux:
563 network:
564 bridge: openvswitch
565 interface:
566 eth1:
567 enabled: true
568 type: eth
569 mtu: 9000
570 proto: manual
571 eth2:
572 enabled: true
573 type: eth
574 mtu: 9000
575 proto: manual
576 eth3:
577 enabled: true
578 type: eth
579 mtu: 9000
580 proto: manual
581 br-int:
582 enabled: true
583 mtu: 9000
584 type: ovs_bridge
585 br-floating:
586 enabled: true
587 mtu: 9000
588 type: ovs_bridge
589 float-to-ex:
590 enabled: true
591 type: ovs_port
592 mtu: 65000
593 bridge: br-floating
594 br-mgmt:
595 enabled: true
596 type: bridge
597 mtu: 9000
598 address: ${_param:single_address}
599 netmask: 255.255.255.0
600 use_interfaces:
601 - eth1
602 br-mesh:
603 enabled: true
604 type: bridge
605 mtu: 9000
606 address: ${_param:tenant_address}
607 netmask: 255.255.255.0
608 use_interfaces:
609 - eth2
610 br-ex:
611 enabled: true
612 type: bridge
613 mtu: 9000
614 address: ${_param:external_address}
615 netmask: 255.255.255.0
616 use_interfaces:
617 - eth3
618 use_ovs_ports:
619 - float-to-ex
620
Thom Gerdes3282d072017-05-30 22:06:04 +0000621Additonal VXLAN tenant network settings
622---------------------------------------
623
624The default multicast group of 224.0.0.1 only multicasts to a single subnet.
625Allow overriding it to allow larger underlay network topologies.
626
627Neutron Server
628
629.. code-block:: yaml
630
631 neutron:
632 server:
633 vxlan:
634 group: 239.0.0.0/8
635 vni_ranges: "2:65535"
636
Jiri Broulik74f61112016-11-21 20:23:47 +0100637Neutron VLAN tenant networks with Network Nodes
Aleš Komárek41e82312017-04-11 13:37:44 +0200638-----------------------------------------------
Jiri Broulik74f61112016-11-21 20:23:47 +0100639
640VLAN tenant provider
641
642Neutron Server only
Jiri Broulik74f61112016-11-21 20:23:47 +0100643
644.. code-block:: yaml
645
646 neutron:
647 server:
648 version: mitaka
Jiri Broulik74f61112016-11-21 20:23:47 +0100649 ...
650 global_physnet_mtu: 9000
651 l3_ha: False
652 dvr: True
653 backend:
654 engine: ml2
655 tenant_network_types: "flat,vlan" # Can be mixed flat,vlan,vxlan
656 tenant_vlan_range: "1000:2000"
657 external_vlan_range: "100:200" # Does not have to be defined.
658 external_mtu: 9000
659 mechanism:
Elena Ezhovad6a080c2017-10-09 15:25:16 +0400660 ovs:
661 driver: openvswitch
Jiri Broulik74f61112016-11-21 20:23:47 +0100662
663Compute node
Jiri Broulik74f61112016-11-21 20:23:47 +0100664
665.. code-block:: yaml
666
667 neutron:
668 compute:
669 version: mitaka
Jiri Broulik74f61112016-11-21 20:23:47 +0100670 ...
671 dvr: True
672 agent_mode: dvr
673 external_access: False
674 backend:
675 engine: ml2
676 tenant_network_types: "flat,vlan" # Can be mixed flat,vlan,vxlan
677 mechanism:
Elena Ezhovad6a080c2017-10-09 15:25:16 +0400678 ovs:
679 driver: openvswitch
Jiri Broulik74f61112016-11-21 20:23:47 +0100680
Oleg Bondarevada324f2018-06-04 14:55:38 +0400681Neutron with additional physical networks
682-----------------------------------------
683
684Neutron Server only
685
686.. code-block:: yaml
687
688 neutron:
689 server:
690 version: ocata
691 ...
692 backend:
693 engine: ml2
694 tenant_network_types: "flat,vlan" # Can be mixed flat,vlan,vxlan
695 ...
696 # also need to configure corresponding additional bridge_mappings on
697 # compute and gateway nodes
698 physnets:
699 sriov_net:
700 mtu: 9000 # Optional, defaults to 1500
701 vlan_range: '100:200' # Optional
702 ext_net2:
703 mtu: 1500
704 mechanism:
705 ovs:
706 driver: openvswitch
707
Aleš Komárek41e82312017-04-11 13:37:44 +0200708Advanced Neutron Features (DPDK, SR-IOV)
Oleg Bondarev0575ae42017-07-28 16:36:25 +0400709----------------------------------------
Aleš Komárek41e82312017-04-11 13:37:44 +0200710
Jakub Pavlik8f83ccc2017-02-27 11:15:39 +0100711Neutron OVS DPDK
Jakub Pavlik8f83ccc2017-02-27 11:15:39 +0100712
713Enable datapath netdev for neutron openvswitch agent
714
715.. code-block:: yaml
716
717 neutron:
718 server:
719 version: mitaka
720 ...
721 dpdk: True
722 ...
723
724 neutron:
725 compute:
726 version: mitaka
Jakub Pavlik8f83ccc2017-02-27 11:15:39 +0100727 dpdk: True
Michael Polenchuk52911652018-04-12 22:09:49 +0400728 vhost_mode: client # options: client|server (default)
Oleg Bondarevee7e8302017-10-16 17:20:38 +0400729 vhost_socket_dir: /var/run/openvswitch
Jakub Pavlik8f83ccc2017-02-27 11:15:39 +0100730 backend:
731 engine: ml2
732 ...
733 mechanism:
Elena Ezhovad6a080c2017-10-09 15:25:16 +0400734 ovs:
735 driver: openvswitch
Jakub Pavlik8f83ccc2017-02-27 11:15:39 +0100736
Jakub Pavlik70555cb2017-02-26 18:48:02 +0100737Neutron OVS SR-IOV
Jakub Pavlik70555cb2017-02-26 18:48:02 +0100738
739.. code-block:: yaml
740
741 neutron:
742 server:
743 version: mitaka
Jakub Pavlik70555cb2017-02-26 18:48:02 +0100744 backend:
745 engine: ml2
746 ...
747 mechanism:
Elena Ezhovad6a080c2017-10-09 15:25:16 +0400748 ovs:
749 driver: openvswitch
750 sriov:
751 driver: sriovnicswitch
Jakub Pavlik70555cb2017-02-26 18:48:02 +0100752
753 neutron:
754 compute:
755 version: mitaka
Jakub Pavlik70555cb2017-02-26 18:48:02 +0100756 ...
757 backend:
758 engine: ml2
759 tenant_network_types: "flat,vlan" # Can be mixed flat,vlan,vxlan
760 sriov:
761 nic_one:
762 devname: eth1
763 physical_network: physnet3
764 mechanism:
Elena Ezhovad6a080c2017-10-09 15:25:16 +0400765 ovs:
766 driver: openvswitch
Jakub Pavlik70555cb2017-02-26 18:48:02 +0100767
Ilya Chukhnakovf4c2bb32017-06-08 02:03:15 +0300768Neutron with VLAN-aware-VMs
Oleg Bondarev0575ae42017-07-28 16:36:25 +0400769---------------------------
Ilya Chukhnakovf4c2bb32017-06-08 02:03:15 +0300770
771.. code-block:: yaml
772
773 neutron:
774 server:
775 vlan_aware_vms: true
776 ....
777 compute:
778 vlan_aware_vms: true
779 ....
780 gateway:
781 vlan_aware_vms: true
782
Oleg Bondarevacb2e532018-03-06 10:43:59 +0400783Neutron with BGP VPN (BaGPipe driver)
Oleg Bondarevb63d27f2018-02-14 19:21:06 +0400784---------------------------
785
786.. code-block:: yaml
787
788 neutron:
789 server:
790 version: pike
791 bgp_vpn:
Oleg Bondarevacb2e532018-03-06 10:43:59 +0400792 enabled: true
Oleg Bondarevb63d27f2018-02-14 19:21:06 +0400793 driver: bagpipe # Options: bagpipe/opencontrail/opendaylight
794 ....
795 compute:
796 version: pike
797 bgp_vpn:
Oleg Bondarevacb2e532018-03-06 10:43:59 +0400798 enabled: true
Oleg Bondarevb63d27f2018-02-14 19:21:06 +0400799 driver: bagpipe # Options: bagpipe/opencontrail/opendaylight
Oleg Bondarevacb2e532018-03-06 10:43:59 +0400800 bagpipe:
801 local_address: 192.168.20.20 # IP address for mpls/gre tunnels
802 peers: 192.168.20.30 # IP addresses of BGP peers
803 autonomous_system: 64512 # Autonomous System number
804 enable_rtc: True # Enable RT Constraint (RFC4684)
Oleg Bondarevb63d27f2018-02-14 19:21:06 +0400805 backend:
Oleg Bondarev878ac462018-04-23 17:48:15 +0400806 ovs_extension: # for OVS agent only, not supported in SRIOV agent
Oleg Bondarevb63d27f2018-02-14 19:21:06 +0400807 bagpipe_bgpvpn:
808 enabled: True
809
Oleksii Chupryn16cb4e02018-02-26 14:20:39 +0200810Neutron with DHCP agent on compute node
811---------------------------------------
812
813.. code-block:: yaml
814
815 neutron:
816 ....
817 compute:
818 dhcp_agent_enabled: true
819 ....
820
Oleg Bondarev0575ae42017-07-28 16:36:25 +0400821Neutron with OVN
822----------------
823
824Control node:
825
826.. code-block:: yaml
827
828 neutron:
829 server:
830 backend:
831 engine: ovn
832 mechanism:
833 ovn:
834 driver: ovn
835 tenant_network_types: "geneve,flat"
Michael Polenchukf59229b2018-06-19 16:24:49 +0400836 ovn:
837 ovn_l3_scheduler: leastloaded # valid options: chance, leastloaded
838 neutron_sync_mode: repair # valid options: log, off, repair
Michael Polenchuka3d492b2017-12-27 15:49:43 +0400839 ovn_ctl_opts:
840 db-nb-create-insecure-remote: 'yes'
841 db-sb-create-insecure-remote: 'yes'
Oleg Bondarev0575ae42017-07-28 16:36:25 +0400842
843Compute node:
844
845.. code-block:: yaml
846
847 neutron:
848 compute:
849 local_ip: 10.2.0.105
850 controller_vip: 10.1.0.101
851 external_access: false
852 backend:
853 engine: ovn
854
Michael Polenchukcccd1a52018-02-02 17:41:16 +0400855
856Neutron L2 Gateway
857----------------
858
859Control node:
860
861.. code-block:: yaml
862
863 neutron:
864 server:
865 version: pike
866 l2gw:
867 enabled: true
868 periodic_monitoring_interval: 5
869 quota_l2_gateway: 20
870 # service_provider=<service_type>:<name>:<driver>[:default]
871 service_provider: L2GW:OpenDaylight:networking_odl.l2gateway.driver.OpenDaylightL2gwDriver:default
872 backend:
873 engine: ml2
874
875Network/Gateway node:
876
877.. code-block:: yaml
878
879 neutron:
880 gateway:
881 version: pike
882 l2gw:
883 enabled: true
884 debug: true
885 socket_timeout: 20
886 ovsdb_hosts:
887 # <ovsdb_name>: <ip address>:<port>
888 # - ovsdb_name: a user defined symbolic identifier of physical switch
889 # - ip address: the address or dns name for the OVSDB server (i.e. pointer to the switch)
890 ovsdb1: 10.164.5.33:6632
891 ovsdb2: 10.164.4.33:6632
892
893
Michael Polenchuk87d2b742017-06-29 12:05:25 +0400894OpenDaylight integration
895------------------------
896
897Control node:
898
899.. code-block:: yaml
900
901 neutron:
902 server:
903 backend:
904 opendaylight: true
905 router: odl-router_v2
906 host: 10.20.0.77
907 rest_api_port: 8282
908 user: admin
909 password: admin
910 ovsdb_connection: tcp:127.0.0.1:6639
911 enable_websocket: true
912 enable_dhcp_service: false
913 mechanism:
914 ovs:
915 driver: opendaylight_v2
916
917Network/Gateway node:
918
919.. code-block:: yaml
920
921 neutron:
922 gateway:
923 backend:
924 router: odl-router_v2
925 ovsdb_connection: tcp:127.0.0.1:6639
926 opendaylight:
927 ovsdb_server_iface: ptcp:6639:127.0.0.1
928 ovsdb_odl_iface: tcp:10.20.0.77:6640
929 tunnel_ip: 10.1.0.110
930 provider_mappings: physnet1:br-floating
931
932Compute node:
933
934.. code-block:: yaml
935
936 neutron:
937 compute:
938 opendaylight:
939 ovsdb_server_iface: ptcp:6639:127.0.0.1
940 ovsdb_odl_iface: tcp:10.20.0.77:6640
941 tunnel_ip: 10.1.0.105
942 provider_mappings: physnet1:br-floating
943
944
Aleš Komárek41e82312017-04-11 13:37:44 +0200945Neutron Server
946--------------
947
Jiri Broulik74f61112016-11-21 20:23:47 +0100948Neutron Server with OpenContrail
Jiri Broulik74f61112016-11-21 20:23:47 +0100949
950.. code-block:: yaml
951
952 neutron:
953 server:
marcoa4428a32016-06-10 11:50:16 +0200954 backend:
955 engine: contrail
956 host: contrail_discovery_host
957 port: 8082
958 user: admin
959 password: password
960 tenant: admin
961 token: token
962
963Neutron Server with Midonet
964
965.. code-block:: yaml
966
967 neutron:
968 server:
969 backend:
970 engine: midonet
971 host: midonet_api_host
972 port: 8181
973 user: admin
974 password: password
975
Jakub Pavlik6dd5c0a2016-03-09 14:18:15 +0100976Neutron Keystone region
977
978.. code-block:: yaml
979
980 neutron:
981 server:
982 enabled: true
983 version: kilo
984 ...
985 identity:
986 region: RegionTwo
987 ...
988 compute:
989 region: RegionTwo
990 ...
991
Jiri Konecny93b19992016-04-12 11:15:39 +0200992Client-side RabbitMQ HA setup
993
994.. code-block:: yaml
995
996 neutron:
997 server:
998 ....
999 message_queue:
1000 engine: rabbitmq
1001 members:
1002 - host: 10.0.16.1
1003 - host: 10.0.16.2
1004 - host: 10.0.16.3
1005 user: openstack
1006 password: pwd
1007 virtual_host: '/openstack'
1008 ....
1009
Kirill Bespalov8fffe022017-08-03 17:55:02 +03001010
Kirill Bespalovdd748b62017-11-21 10:42:57 +03001011Configuring TLS communications
1012------------------------------
Kirill Bespalov8fffe022017-08-03 17:55:02 +03001013
Kirill Bespalov8fffe022017-08-03 17:55:02 +03001014
Kirill Bespalovdd748b62017-11-21 10:42:57 +03001015**Note:** by default system wide installed CA certs are used, so ``cacert_file`` param is optional, as well as ``cacert``.
1016
1017
1018- **RabbitMQ TLS**
Kirill Bespalov8fffe022017-08-03 17:55:02 +03001019
1020.. code-block:: yaml
1021
Kirill Bespalovdd748b62017-11-21 10:42:57 +03001022 neutron:
1023 server, gateway, compute:
Kirill Bespalov8fffe022017-08-03 17:55:02 +03001024 message_queue:
Kirill Bespalovdd748b62017-11-21 10:42:57 +03001025 port: 5671
Kirill Bespalov8fffe022017-08-03 17:55:02 +03001026 ssl:
1027 enabled: True
Kirill Bespalovdd748b62017-11-21 10:42:57 +03001028 (optional) cacert: cert body if the cacert_file does not exists
1029 (optional) cacert_file: /etc/openstack/rabbitmq-ca.pem
1030 (optional) version: TLSv1_2
Kirill Bespalov8fffe022017-08-03 17:55:02 +03001031
1032
Kirill Bespalovdd748b62017-11-21 10:42:57 +03001033- **MySQL TLS**
Kirill Bespalov8fffe022017-08-03 17:55:02 +03001034
1035.. code-block:: yaml
1036
Kirill Bespalovdd748b62017-11-21 10:42:57 +03001037 neutron:
1038 server:
1039 database:
Kirill Bespalov8fffe022017-08-03 17:55:02 +03001040 ssl:
1041 enabled: True
Kirill Bespalovdd748b62017-11-21 10:42:57 +03001042 (optional) cacert: cert body if the cacert_file does not exists
1043 (optional) cacert_file: /etc/openstack/mysql-ca.pem
Kirill Bespalov8fffe022017-08-03 17:55:02 +03001044
Kirill Bespalovdd748b62017-11-21 10:42:57 +03001045- **Openstack HTTPS API**
1046
Kirill Bespalov8fffe022017-08-03 17:55:02 +03001047
1048.. code-block:: yaml
1049
Kirill Bespalovdd748b62017-11-21 10:42:57 +03001050 neutron:
1051 server:
1052 identity:
1053 protocol: https
1054 (optional) cacert_file: /etc/openstack/proxy.pem
Kirill Bespalov8fffe022017-08-03 17:55:02 +03001055
1056
Petr Michalec61f7ab22016-11-29 16:29:09 +01001057Enable auditing filter, ie: CADF
1058
1059.. code-block:: yaml
1060
1061 neutron:
1062 server:
1063 audit:
1064 enabled: true
1065 ....
1066 filter_factory: 'keystonemiddleware.audit:filter_factory'
1067 map_file: '/etc/pycadf/neutron_api_audit_map.conf'
1068 ....
1069 compute:
1070 audit:
1071 enabled: true
1072 ....
1073 filter_factory: 'keystonemiddleware.audit:filter_factory'
1074 map_file: '/etc/pycadf/neutron_api_audit_map.conf'
1075 ....
Jiri Konecny93b19992016-04-12 11:15:39 +02001076
Oleg Bondarev98870a32017-05-29 16:53:19 +04001077Neutron with security groups disabled
1078
1079.. code-block:: yaml
1080
1081 neutron:
1082 server:
1083 security_groups_enabled: False
1084 ....
1085 compute:
1086 security_groups_enabled: False
1087 ....
1088 gateway:
1089 security_groups_enabled: False
1090
Jiri Konecny93b19992016-04-12 11:15:39 +02001091
Aleš Komárek41e82312017-04-11 13:37:44 +02001092Neutron Client
1093--------------
Jiri Broulik5368cc52017-02-08 18:53:59 +01001094
1095Neutron networks
1096
1097.. code-block:: yaml
1098
1099 neutron:
1100 client:
1101 enabled: true
1102 server:
1103 identity:
Richard Felklaac256a2017-03-23 15:43:49 +01001104 endpoint_type: internalURL
Jiri Broulik5368cc52017-02-08 18:53:59 +01001105 network:
1106 inet1:
1107 tenant: demo
1108 shared: False
1109 admin_state_up: True
1110 router_external: True
1111 provider_physical_network: inet
1112 provider_network_type: flat
1113 provider_segmentation_id: 2
1114 subnet:
1115 inet1-subnet1:
1116 cidr: 192.168.90.0/24
1117 enable_dhcp: False
1118 inet2:
1119 tenant: admin
1120 shared: False
1121 router_external: True
1122 provider_network_type: "vlan"
1123 subnet:
1124 inet2-subnet1:
1125 cidr: 192.168.92.0/24
1126 enable_dhcp: False
1127 inet2-subnet2:
1128 cidr: 192.168.94.0/24
1129 enable_dhcp: True
1130 identity1:
1131 network:
1132 ...
1133
Jiri Broulik5368cc52017-02-08 18:53:59 +01001134Neutron routers
1135
1136.. code-block:: yaml
1137
1138 neutron:
1139 client:
1140 enabled: true
1141 server:
1142 identity:
Richard Felklaac256a2017-03-23 15:43:49 +01001143 endpoint_type: internalURL
Jiri Broulik5368cc52017-02-08 18:53:59 +01001144 router:
1145 inet1-router:
1146 tenant: demo
1147 admin_state_up: True
1148 gateway_network: inet
1149 interfaces:
1150 - inet1-subnet1
1151 - inet1-subnet2
1152 identity1:
1153 router:
1154 ...
1155
1156 TODO: implement adding new interfaces to a router while updating it
1157
1158
1159Neutron security groups
1160
1161.. code-block:: yaml
1162
1163 neutron:
1164 client:
1165 enabled: true
1166 server:
1167 identity:
Richard Felklaac256a2017-03-23 15:43:49 +01001168 endpoint_type: internalURL
Jiri Broulik5368cc52017-02-08 18:53:59 +01001169 security_group:
1170 security_group1:
1171 tenant: demo
1172 description: security group 1
1173 rules:
1174 - direction: ingress
1175 ethertype: IPv4
1176 protocol: TCP
1177 port_range_min: 1
1178 port_range_max: 65535
1179 remote_ip_prefix: 0.0.0.0/0
1180 - direction: ingress
1181 ethertype: IPv4
1182 protocol: UDP
1183 port_range_min: 1
1184 port_range_max: 65535
1185 remote_ip_prefix: 0.0.0.0/0
1186 - direction: ingress
1187 protocol: ICMP
1188 remote_ip_prefix: 0.0.0.0/0
1189 identity1:
1190 security_group:
1191 ...
1192
1193 TODO: implement updating existing security rules (now it adds new rule if trying to update existing one)
1194
Jiri Broulikde2e2902017-02-13 15:03:47 +01001195
1196Floating IP addresses
1197
1198.. code-block:: yaml
1199
1200 neutron:
1201 client:
1202 enabled: true
1203 server:
1204 identity:
Richard Felklaac256a2017-03-23 15:43:49 +01001205 endpoint_type: internalURL
Jiri Broulikde2e2902017-02-13 15:03:47 +01001206 floating_ip:
1207 prx01-instance:
1208 server: prx01.mk22-lab-basic.local
1209 subnet: private-subnet1
1210 network: public-net1
1211 tenant: demo
1212 gtw01-instance:
1213 ...
1214
1215.. note:: The network must have flag router:external set to True.
1216 Instance port in the stated subnet will be associated with the dynamically generated floating IP.
1217
1218
Oleg Iurchenkode71cc22017-09-18 17:58:56 +03001219
1220Enable Neutron extensions (QoS, DNS, etc.)
1221------------------------------------------
1222.. code-block:: yaml
1223
1224 neutron:
1225 server:
1226 backend:
1227 extension:
Oleg Iurchenkoac17f4f2017-10-06 11:24:27 +03001228 dns:
1229 enabled: True
1230 host: 127.0.0.1
1231 port: 9001
1232 protocol: http
1233 ....
1234 qos
1235 enabled: True
Oleg Iurchenkode71cc22017-09-18 17:58:56 +03001236
Oleg Bondarev878ac462018-04-23 17:48:15 +04001237Different Neutron extensions for different agents
1238-------------------------------------------------
1239.. code-block:: yaml
1240
1241 neutron:
1242 server:
1243 backend:
1244 extension: # common extensions for OVS and SRIOV agents
1245 dns:
1246 enabled: True
1247 ...
1248 qos
1249 enabled: True
1250 ovs_extension: # OVS specific extensions
1251 bagpipe_bgpvpn:
1252 enabled: True
1253 sriov_extension: # SRIOV specific extensions
1254 dummy:
1255 enabled: True
Oleg Iurchenkode71cc22017-09-18 17:58:56 +03001256
Oleg Iurchenko8cf6cf52017-09-18 15:44:03 +03001257
1258Neutron with Designate
1259-----------------------------------------
1260.. code-block:: yaml
1261
1262 neutron:
1263 server:
1264 backend:
1265 extension:
1266 dns:
1267 enabled: True
1268 host: 127.0.0.1
1269 port: 9001
1270 protocol: http
1271
Marek Celoud67ce2062018-01-31 13:44:55 +01001272Enable RBAC for OpenContrail engine
1273-----------------------------------
1274.. code-block:: yaml
1275
1276 neutron:
1277 server:
1278 backend:
1279 engine: contrail
1280 rbac:
1281 enabled: True
Oleg Iurchenko8cf6cf52017-09-18 15:44:03 +03001282
Dmitry Kalashnik35dd0e02017-12-07 14:16:25 +04001283Enhanced logging with logging.conf
1284----------------------------------
1285
1286By default logging.conf is disabled.
1287
1288That is possible to enable per-binary logging.conf with new variables:
1289 * openstack_log_appender - set it to true to enable log_config_append for all OpenStack services;
1290 * openstack_fluentd_handler_enabled - set to true to enable FluentHandler for all Openstack services.
Oleksii Chupryn156c5f42018-02-07 10:06:50 +02001291 * openstack_ossyslog_handler_enabled - set to true to enable OSSysLogHandler for all Openstack services.
Dmitry Kalashnik35dd0e02017-12-07 14:16:25 +04001292
Oleksii Chupryn156c5f42018-02-07 10:06:50 +02001293Only WatchedFileHandler, OSSysLogHandler and FluentHandler are available.
Dmitry Kalashnik35dd0e02017-12-07 14:16:25 +04001294
1295Also it is possible to configure this with pillar:
1296
1297.. code-block:: yaml
1298
1299 neutron:
1300 server:
1301 logging:
1302 log_appender: true
1303 log_handlers:
1304 watchedfile:
1305 enabled: true
1306 fluentd:
1307 enabled: true
Oleksii Chupryn156c5f42018-02-07 10:06:50 +02001308 ossyslog:
1309 enabled: true
Dmitry Kalashnik35dd0e02017-12-07 14:16:25 +04001310 ....
1311 compute:
1312 logging:
1313 log_appender: true
1314 log_handlers:
1315 watchedfile:
1316 enabled: true
1317 fluentd:
1318 enabled: true
Oleksii Chupryn156c5f42018-02-07 10:06:50 +02001319 ossyslog:
1320 enabled: true
Dmitry Kalashnik35dd0e02017-12-07 14:16:25 +04001321 ....
1322 gateway:
1323 logging:
1324 log_appender: true
1325 log_handlers:
1326 watchedfile:
1327 enabled: true
1328 fluentd:
1329 enabled: true
Oleksii Chupryn156c5f42018-02-07 10:06:50 +02001330 ossyslog:
1331 enabled: true
Oleg Iurchenko8cf6cf52017-09-18 15:44:03 +03001332
Oleksii Grudevfe73ee52018-05-14 14:08:11 +03001333Logging levels pillar example:
1334
1335.. code-block:: yaml
1336
1337 neutron:
1338 server:
1339 logging:
1340 log_appender: true
1341 loggers:
1342 root:
1343 level: 'DEBUG'
1344 neutron:
1345 level: 'DEBUG'
1346 amqplib:
1347 level: 'DEBUG'
1348 sqlalchemy:
1349 level: 'DEBUG'
1350 boto:
1351 level: 'DEBUG'
1352 suds:
1353 level: 'DEBUG'
1354 eventletwsgi:
1355 level: 'DEBUG'
1356 ......
1357
1358
Filip Pytloun20c0a442017-02-02 13:05:13 +01001359Documentation and Bugs
1360======================
1361
1362To learn how to install and update salt-formulas, consult the documentation
1363available online at:
1364
1365 http://salt-formulas.readthedocs.io/
1366
1367In the unfortunate event that bugs are discovered, they should be reported to
1368the appropriate issue tracker. Use Github issue tracker for specific salt
1369formula:
1370
1371 https://github.com/salt-formulas/salt-formula-neutron/issues
1372
1373For feature requests, bug reports or blueprints affecting entire ecosystem,
1374use Launchpad salt-formulas project:
1375
1376 https://launchpad.net/salt-formulas
1377
1378You can also join salt-formulas-users team and subscribe to mailing list:
1379
1380 https://launchpad.net/~salt-formulas-users
1381
1382Developers wishing to work on the salt-formulas projects should always base
1383their work on master branch and submit pull request against specific formula.
1384
1385 https://github.com/salt-formulas/salt-formula-neutron
1386
1387Any questions or feedback is always welcome so feel free to join our IRC
1388channel:
1389
1390 #salt-formulas @ irc.freenode.net