blob: 20b043f3ffab546afeba7024844ea543c435a609 [file] [log] [blame]
Aleš Komáreka3314b22017-04-11 13:46:06 +02001====================
2OpenContrail Formula
3====================
Filip Pytloun27930402015-10-06 16:28:32 +02004
Jakub Pavlik01fe5372016-05-20 11:23:28 +02005Contrail Controller is an open, standards-based software solution that
6delivers network virtualization and service automation for federated cloud
7networks. It provides self-service provisioning, improves network
8troubleshooting and diagnostics, and enables service chaining for dynamic
9application environments across enterprise virtual private cloud (VPC),
10managed Infrastructure as a Service (IaaS), and Networks Functions
11Virtualization (NFV) use cases.
Filip Pytloun27930402015-10-06 16:28:32 +020012
Jiri Konecny463dee52016-03-03 11:08:46 +010013
Petr Michalec579e64d2017-03-24 12:54:29 +010014Package source
15==============
Aleš Komáreka3314b22017-04-11 13:46:06 +020016
Petr Michalec579e64d2017-03-24 12:54:29 +010017Formula support OpenContrail as well as Juniper Contrail package repository in the backend.
18
19Differences withing the configuration and state run are controlled by
20``opencontrail.common.vendor: [opencontrail|juniper]`` pillar attribute.
21
22Default value is set to ``opencontrail``.
23
24Juniper releases tested with this formula:
25 - 3.0.2.x
26
27To use Juniper Contrail repository as a source of packages override pillar as in this example:
28
29.. code-block:: yaml
30
31 opencontrail:
32 common:
33 vendor: juniper
34
35
Aleš Komáreka3314b22017-04-11 13:46:06 +020036Sample Pillars
Filip Pytloun27930402015-10-06 16:28:32 +020037==============
38
Jiri Konecny463dee52016-03-03 11:08:46 +010039Controller nodes
40----------------
41
42There are several scenarios for OpenContrail control plane.
43
44All-in-one single
45~~~~~~~~~~~~~~~~~
46
47Config, control, analytics, database, web -- altogether on one node.
48
49.. code-block:: yaml
50
51 opencontrail:
52 common:
53 version: 2.2
54 source:
55 engine: pkg
56 address: http://mirror.robotice.cz/contrail-havana/
57 identity:
58 engine: keystone
59 host: 127.0.0.1
60 port: 35357
61 token: token
62 password: password
63 network:
64 engine: neutron
65 host: 127.0.0.1
66 port: 9696
67 config:
68 version: 2.2
69 enabled: true
70 network:
71 engine: neutron
72 host: 127.0.0.1
73 port: 9696
74 discovery:
75 host: 127.0.0.1
76 analytics:
77 host: 127.0.0.1
78 bind:
79 address: 127.0.0.1
80 message_queue:
81 engine: rabbitmq
82 host: 127.0.0.1
83 port: 5672
84 database:
85 members:
86 - host: 127.0.0.1
87 port: 9160
88 cache:
Jakub Pavlikd1a059e2016-07-13 23:08:33 +020089 members:
90 - host: 127.0.0.1
91 port: 11211
Jiri Konecny463dee52016-03-03 11:08:46 +010092 identity:
93 engine: keystone
94 version: '2.0'
95 region: RegionOne
96 host: 127.0.0.1
97 port: 35357
98 user: admin
99 password: password
100 token: token
101 tenant: admin
102 members:
103 - host: 127.0.0.1
104 id: 1
105 control:
106 version: 2.2
107 enabled: true
108 bind:
109 address: 127.0.0.1
110 discovery:
111 host: 127.0.0.1
112 master:
113 host: 127.0.0.1
114 members:
115 - host: 127.0.0.1
116 id: 1
117 collector:
118 version: 2.2
119 enabled: true
120 bind:
121 address: 127.0.0.1
122 master:
123 host: 127.0.0.1
124 discovery:
125 host: 127.0.0.1
126 data_ttl: 2
127 database:
128 members:
129 - host: 127.0.0.1
130 port: 9160
131 database:
132 version: 2.2
133 cassandra:
134 version: 2
135 enabled: true
136 minimum_disk: 10
137 name: 'Contrail'
138 original_token: 0
139 data_dirs:
140 - /var/lib/cassandra
141 id: 1
142 discovery:
143 host: 127.0.0.1
144 bind:
145 host: 127.0.0.1
146 port: 9042
147 rpc_port: 9160
148 members:
149 - host: 127.0.0.1
150 id: 1
151 web:
152 version: 2.2
153 enabled: True
154 bind:
155 address: 127.0.0.1
156 analytics:
157 host: 127.0.0.1
158 master:
159 host: 127.0.0.1
160 cache:
161 engine: redis
162 host: 127.0.0.1
163 port: 6379
164 members:
165 - host: 127.0.0.1
166 id: 1
167 identity:
168 engine: keystone
169 version: '2.0'
170 host: 127.0.0.1
171 port: 35357
172 user: admin
173 password: password
174 token: token
175 tenant: admin
176
177
178All-in-one cluster
179~~~~~~~~~~~~~~~~~~
180
Jakub Pavlik01fe5372016-05-20 11:23:28 +0200181Config, control, analytics, database, web -- altogether, clustered on multiple
182nodes.
Jiri Konecny463dee52016-03-03 11:08:46 +0100183
184.. code-block:: yaml
185
186 opencontrail:
187 common:
188 version: 2.2
189 source:
190 engine: pkg
191 address: http://mirror.robotice.cz/contrail-havana/
192 identity:
193 engine: keystone
194 host: 127.0.0.1
195 port: 35357
196 token: token
197 password: password
198 network:
199 engine: neutron
200 host: 127.0.0.1
201 port: 9696
202 config:
203 version: 2.2
204 enabled: true
205 network:
206 engine: neutron
207 host: 127.0.0.1
208 port: 9696
209 discovery:
210 host: 127.0.0.1
211 analytics:
212 host: 127.0.0.1
213 bind:
214 address: 127.0.0.1
215 message_queue:
216 engine: rabbitmq
217 host: 127.0.0.1
218 port: 5672
219 database:
220 members:
221 - host: 127.0.0.1
222 port: 9160
223 - host: 127.0.0.1
224 port: 9160
225 - host: 127.0.0.1
226 port: 9160
227 cache:
Jakub Pavlikd1a059e2016-07-13 23:08:33 +0200228 members:
229 - host: 127.0.0.1
230 port: 11211
231 - host: 127.0.0.1
232 port: 11211
233 - host: 127.0.0.1
234 port: 11211
Jiri Konecny463dee52016-03-03 11:08:46 +0100235 identity:
236 engine: keystone
237 version: '2.0'
238 region: RegionOne
239 host: 127.0.0.1
240 port: 35357
241 user: admin
242 password: password
243 token: token
244 tenant: admin
245 members:
246 - host: 127.0.0.1
247 id: 1
248 - host: 127.0.0.1
249 id: 2
250 - host: 127.0.0.1
251 id: 3
252 control:
253 version: 2.2
254 enabled: true
255 bind:
256 address: 127.0.0.1
257 discovery:
258 host: 127.0.0.1
259 master:
260 host: 127.0.0.1
261 members:
262 - host: 127.0.0.1
263 id: 1
264 - host: 127.0.0.1
265 id: 2
266 - host: 127.0.0.1
267 id: 3
268 collector:
269 version: 2.2
270 enabled: true
271 bind:
272 address: 127.0.0.1
273 master:
274 host: 127.0.0.1
275 discovery:
276 host: 127.0.0.1
277 data_ttl: 1
278 database:
279 members:
280 - host: 127.0.0.1
281 port: 9160
282 - host: 127.0.0.1
283 port: 9160
284 - host: 127.0.0.1
285 port: 9160
286 database:
287 version: 2.2
288 cassandra:
289 version: 2
290 enabled: true
291 name: 'Contrail'
292 minimum_disk: 10
293 original_token: 0
294 data_dirs:
295 - /var/lib/cassandra
296 id: 1
297 discovery:
298 host: 127.0.0.1
299 bind:
300 host: 127.0.0.1
301 port: 9042
302 rpc_port: 9160
303 members:
304 - host: 127.0.0.1
305 id: 1
306 - host: 127.0.0.1
307 id: 2
308 - host: 127.0.0.1
309 id: 3
310 web:
311 version: 2.2
312 enabled: True
313 bind:
314 address: 127.0.0.1
315 master:
316 host: 127.0.0.1
317 analytics:
318 host: 127.0.0.1
319 cache:
320 engine: redis
321 host: 127.0.0.1
322 port: 6379
323 members:
324 - host: 127.0.0.1
325 id: 1
326 - host: 127.0.0.1
327 id: 2
328 - host: 127.0.0.1
329 id: 3
330 identity:
331 engine: keystone
332 version: '2.0'
333 host: 127.0.0.1
334 port: 35357
335 user: admin
336 password: password
337 token: token
338 tenant: admin
339
340
341Separated analytics from control and config
342~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
343
344Config, control, database, web.
345
346.. code-block:: yaml
347
348 opencontrail:
349 common:
350 version: 2.2
351 identity:
352 engine: keystone
353 host: 127.0.0.1
354 port: 35357
355 token: token
356 password: password
357 network:
358 engine: neutron
359 host: 127.0.0.1
360 port: 9696
361 config:
362 version: 2.2
363 enabled: true
364 network:
365 engine: neutron
366 host: 127.0.0.1
367 port: 9696
368 discovery:
369 host: 127.0.0.1
370 analytics:
371 host: 127.0.0.1
372 bind:
373 address: 127.0.0.1
374 message_queue:
375 engine: rabbitmq
376 host: 127.0.0.1
377 port: 5672
378 database:
379 members:
380 - host: 127.0.0.1
381 port: 9160
382 - host: 127.0.0.1
383 port: 9160
384 - host: 127.0.0.1
385 port: 9160
386 cache:
Jakub Pavlikd1a059e2016-07-13 23:08:33 +0200387 members:
388 - host: 127.0.0.1
389 port: 11211
390 - host: 127.0.0.1
391 port: 11211
392 - host: 127.0.0.1
393 port: 11211
Jiri Konecny463dee52016-03-03 11:08:46 +0100394 identity:
395 engine: keystone
396 version: '2.0'
397 region: RegionOne
398 host: 127.0.0.1
399 port: 35357
400 user: admin
401 password: password
402 token: token
403 tenant: admin
404 members:
405 - host: 127.0.0.1
406 id: 1
407 - host: 127.0.0.1
408 id: 2
409 - host: 127.0.0.1
410 id: 3
411 control:
412 version: 2.2
413 enabled: true
414 bind:
415 address: 127.0.0.1
416 discovery:
417 host: 127.0.0.1
418 master:
419 host: 127.0.0.1
420 members:
421 - host: 127.0.0.1
422 id: 1
423 - host: 127.0.0.1
424 id: 2
425 - host: 127.0.0.1
426 id: 3
427 database:
428 version: 127.0.0.1
429 cassandra:
430 version: 2
431 enabled: true
432 name: 'Contrail'
433 minimum_disk: 10
434 original_token: 0
435 data_dirs:
436 - /var/lib/cassandra
437 id: 1
438 discovery:
439 host: 127.0.0.1
440 bind:
441 host: 127.0.0.1
442 port: 9042
443 rpc_port: 9160
444 members:
445 - host: 127.0.0.1
446 id: 1
447 - host: 127.0.0.1
448 id: 2
449 - host: 127.0.0.1
450 id: 3
451 web:
452 version: 2.2
453 enabled: True
454 bind:
455 address: 127.0.0.1
456 analytics:
457 host: 127.0.0.1
458 master:
459 host: 127.0.0.1
460 cache:
461 engine: redis
462 host: 127.0.0.1
463 port: 6379
464 members:
465 - host: 127.0.0.1
466 id: 1
467 - host: 127.0.0.1
468 id: 2
469 - host: 127.0.0.1
470 id: 3
471 identity:
472 engine: keystone
473 version: '2.0'
474 host: 127.0.0.1
475 port: 35357
476 user: admin
477 password: password
478 token: token
479 tenant: admin
480
Jiri Konecny463dee52016-03-03 11:08:46 +0100481Analytic nodes
Jiri Konecny463dee52016-03-03 11:08:46 +0100482
483Analytics and database on an analytic node(s)
484
485.. code-block:: yaml
486
487 opencontrail:
488 common:
489 version: 2.2
490 identity:
491 engine: keystone
492 host: 127.0.0.1
493 port: 35357
494 token: token
495 password: password
496 network:
497 engine: neutron
498 host: 127.0.0.1
499 port: 9696
500 collector:
501 version: 2.2
502 enabled: true
503 bind:
504 address: 127.0.0.1
505 master:
506 host: 127.0.0.1
507 discovery:
508 host: 127.0.0.1
509 data_ttl: 1
510 database:
511 members:
512 - host: 127.0.0.1
513 port: 9160
514 - host: 127.0.0.1
515 port: 9160
516 - host: 127.0.0.1
517 port: 9160
518 database:
519 version: 2.2
520 cassandra:
521 version: 2
522 enabled: true
523 name: 'Contrail'
524 minimum_disk: 10
525 original_token: 0
526 data_dirs:
527 - /var/lib/cassandra
528 id: 1
529 discovery:
530 host: 127.0.0.1
531 bind:
532 host: 127.0.0.1
533 port: 9042
534 rpc_port: 9160
535 members:
536 - host: 127.0.0.1
537 id: 1
538 - host: 127.0.0.1
539 id: 2
540 - host: 127.0.0.1
541 id: 3
542
543
544Compute nodes
Aleš Komáreka3314b22017-04-11 13:46:06 +0200545-------------
Jiri Konecny463dee52016-03-03 11:08:46 +0100546
547Vrouter configuration on a compute node(s)
548
549.. code-block:: yaml
550
551 opencontrail:
552 common:
553 version: 2.2
554 identity:
555 engine: keystone
556 host: 127.0.0.1
557 port: 35357
558 token: token
559 password: password
560 network:
561 engine: neutron
562 host: 127.0.0.1
563 port: 9696
564 compute:
565 version: 2.2
566 enabled: True
567 discovery:
568 host: 127.0.0.1
569 interface:
570 address: 127.0.0.1
571 dev: eth0
572 gateway: 127.0.0.1
573 mask: /24
574 dns: 127.0.0.1
575 mtu: 9000
576
Jakub Pavlik735005f2016-02-26 15:54:53 +0100577Keystone v3
Aleš Komáreka3314b22017-04-11 13:46:06 +0200578-----------
Jakub Pavlik735005f2016-02-26 15:54:53 +0100579
Jakub Pavlik01fe5372016-05-20 11:23:28 +0200580To enable support for keystone v3 in opencontrail, there must be defined
581version for config and web role.
Jakub Pavlik735005f2016-02-26 15:54:53 +0100582
583.. code-block:: yaml
584
585 opencontrail:
586 config:
587 version: 2.2
588 enabled: true
589 ...
590 identity:
591 engine: keystone
592 version: '3'
593 ...
594
595 opencontrail:
596 web:
597 version: 2.2
598 enabled: true
599 ...
600 identity:
601 engine: keystone
602 version: '3'
603 ...
604
marco10cc2212016-04-03 14:21:54 +0200605Without Keystone
606----------------
607
608.. code-block:: yaml
609
610 opencontrail:
611 ...
612 common:
613 ...
614 identity:
615 engine: none
616 token: none
617 password: none
618 ...
619 config:
620 ...
621 identity:
622 engine: none
623 password: none
624 token: none
625 ...
626 web:
627 ...
628 identity:
629 engine: none
630 password: none
631 token: none
632 ...
marcof5461712016-04-04 20:49:36 +0200633
Aleš Komáreka3314b22017-04-11 13:46:06 +0200634Kubernetes support
635------------------
636
marcof5461712016-04-04 20:49:36 +0200637Kubernetes vrouter nodes
marcof5461712016-04-04 20:49:36 +0200638
639Vrouter configuration on a kubernetes node(s)
640
641.. code-block:: yaml
642
643 opencontrail:
644 ...
645 compute:
646 engine: kubernetes
647 ...
648
Jakub Pavlik0d1f67e2016-11-30 10:04:13 +0100649vRouter with separated control plane
Jakub Pavlik0d1f67e2016-11-30 10:04:13 +0100650
651Separate XMPP traffic from dataplane interface.
652
653.. code-block:: yaml
654
655 opencontrail:
656 compute:
657 bind:
658 address: 172.16.0.50
659 ...
660
Petr Jediný439fab32017-07-10 14:33:09 +0200661Override RPF default in Contrail API
662------------------------------------
663
664From MCP1.1 with OpenContrail >= 3.1.1 you can override RPF default for newly
665created virtual networks. This can be useful for usecases like running
666Calico and K8S in overlay. The `override_rpf_default_by` has valid values
667`disable`, `enable`. If not defined, the configuration fallbacks to Contrail
668default - currently `enable`.
669
670.. code-block:: yaml
671
672 opencontrail:
673 ...
674 config:
675 override_rpf_default_by: 'disable'
676 ...
677
678
Jakub Pavlik6d90f362016-04-19 20:34:37 +0200679Disable Contrail API authentication
680-----------------------------------
681
Petr Jediný78e6f422017-06-01 13:24:49 +0200682Contrail version must >= 3.0. It is useful especially for Keystone v3.
Jakub Pavlik6d90f362016-04-19 20:34:37 +0200683
684.. code-block:: yaml
685
686 opencontrail:
687 ...
688 config:
689 multi_tenancy: false
690 ...
691
Petr Jediný78e6f422017-06-01 13:24:49 +0200692Switch from on demand to periodic keystone sync
693-----------------------------------------------
694
695This can be useful when you want to sync projects from OpenStack to Contrail
696automatically. The period of sync is 60s.
697
698.. code-block:: yaml
699
700 opencontrail:
701 ...
702 config:
703 identity:
704 sync_on_demand: false
705 ...
706
marco2502e052016-05-31 22:53:54 +0200707Cassandra listen interface
Petr Jedinýffbe2082017-03-07 00:56:47 +0100708--------------------------
marco2502e052016-05-31 22:53:54 +0200709
710.. code-block:: yaml
711
712 database:
713 ....
714 bind:
715 interface: eth0
716 port: 9042
717 rpc_port: 9160
718 ....
Jakub Pavlik6d90f362016-04-19 20:34:37 +0200719
Petr Jedinýffbe2082017-03-07 00:56:47 +0100720OpenContrail WebUI version >= 3.1.1
721-----------------------------------
Petr Jediný78e6f422017-06-01 13:24:49 +0200722For OpenContrail version >= 3.1.1 and Cassandra >= 2.1 we should override WebUI's cassandra port from 9160 to 9042.
Petr Jedinýffbe2082017-03-07 00:56:47 +0100723
724For appropriate node at class level:
725
726.. code-block:: yaml
Aleš Komáreka3314b22017-04-11 13:46:06 +0200727
Petr Jedinýffbe2082017-03-07 00:56:47 +0100728 opencontrail:
729 ....
730 web:
731 database:
732 port: 9042
733 ....
734
735
Jakub Pavlik9a4de012016-12-14 13:23:55 +0100736RabbitMQ HA hosts
737------------------
738
739.. code-block:: yaml
740
741 opencontrail:
742 config:
743 message_queue:
744 engine: rabbitmq
745 members:
746 - host: 10.0.16.1
747 - host: 10.0.16.2
748 - host: 10.0.16.3
749 port: 5672
750
751.. code-block:: yaml
752
753 database:
754 ....
755 bind:
756 interface: eth0
757 port: 9042
758 rpc_port: 9160
759 ....
760
Jakub Pavlike3590062017-02-20 23:32:57 +0100761DPDK vRouter
762-------------
763
764.. code-block:: yaml
765
766 opencontrail:
767 compute:
768 dpdk:
769 enabled: true
Jakub Pavlik54761d82017-03-08 11:22:37 +0100770 taskset: "0x0000003C00003C"
771 socket_mem: "1024,1024"
Jakub Pavlike3590062017-02-20 23:32:57 +0100772 interface:
773 mac_address: 90:e2:ba:7c:22:e1
774 pci: 0000:81:00.1
775 ...
776
Ales Komarekad46d2e2017-03-09 17:16:38 +0100777Contrail client
778---------------
779
780Basic parameters with identity and host configs
781
Petr Jediný78e6f422017-06-01 13:24:49 +0200782.. code-block:: yaml
Ales Komarekad46d2e2017-03-09 17:16:38 +0100783
784 opencontrail:
785 client:
786 identity:
787 user: admin
788 project: admin
789 password: adminpass
790 host: keystone_host
791 config:
792 host: contrail_api_host
793 port: contrail_api_ort
794
795Enforcing virtual routers
796
Petr Jediný78e6f422017-06-01 13:24:49 +0200797.. code-block:: yaml
Ales Komarekad46d2e2017-03-09 17:16:38 +0100798
799 opencontrail:
800 client:
801 ...
802 virtual_router:
803 cmp01:
804 ip_address: 172.16.0.11
805 dpdk_enabled: True
806 cmp02:
807 ip_address: 172.16.0.12
808 dpdk_enabled: True
809
810Enforcing control nodes
811
Petr Jediný78e6f422017-06-01 13:24:49 +0200812.. code-block:: yaml
Ales Komarekad46d2e2017-03-09 17:16:38 +0100813
814 opencontrail:
815 client:
816 ...
817 bgp_router:
818 ntw01:
819 type: control-node
820 ip_address: 172.16.0.11
821 nwt02:
822 type: control-node
823 ip_address: 172.16.0.12
824 nwt03:
825 type: control-node
826 ip_address: 172.16.0.13
827
828
829Enforcing edge BGP routers
830
Petr Jediný78e6f422017-06-01 13:24:49 +0200831.. code-block:: yaml
Ales Komarekad46d2e2017-03-09 17:16:38 +0100832
833 opencontrail:
834 client:
835 ...
836 bgp_router:
837 mx01:
838 type: router
839 ip_address: 172.16.0.21
840 asn: 64512
841 mx02:
842 type: router
843 ip_address: 172.16.0.22
844 asn: 64512
845
846Enforcing config nodes
847
Petr Jediný78e6f422017-06-01 13:24:49 +0200848.. code-block:: yaml
Ales Komarekad46d2e2017-03-09 17:16:38 +0100849
850 opencontrail:
851 client:
852 ...
853 config_node:
854 ctl01:
855 ip_address: 172.16.0.21
856 ctl02:
857 ip_address: 172.16.0.22
858
859Enforcing database nodes
860
Petr Jediný78e6f422017-06-01 13:24:49 +0200861.. code-block:: yaml
Ales Komarekad46d2e2017-03-09 17:16:38 +0100862
863 opencontrail:
864 client:
865 ...
866 database_node:
867 ntw01:
868 ip_address: 172.16.0.21
869 ntw02:
870 ip_address: 172.16.0.22
871
872Enforcing analytics nodes
873
Petr Jediný78e6f422017-06-01 13:24:49 +0200874.. code-block:: yaml
Ales Komarekad46d2e2017-03-09 17:16:38 +0100875
876 opencontrail:
877 client:
878 ...
879 analytics_node:
880 nal01:
881 ip_address: 172.16.0.31
882 nal02:
883 ip_address: 172.16.0.32
884
Petr Jediný5f3efe32017-05-26 17:55:09 +0200885Enforcing Link Local Services
886
887.. code-block:: yaml
888
889 opencontrail:
890 client:
891 ...
892 linklocal_service:
893 # example with dns name address (only one permited)
894 meta1:
895 lls_ip: 10.0.0.23
896 lls_port: 80
897 ipf_addresses: "meta.example.com"
898 ipf_port: 80
899 # example with multiple ip addresses
900 meta2:
901 lls_ip: 10.0.0.23
902 lls_port: 80
903 ipf_addresses:
904 - 10.10.10.10
905 - 10.20.20.20
906 - 10.30.30.30
907 ipf_port: 80
908 # example with one ip address
909 meta3:
910 lls_ip: 10.0.0.23
911 lls_port: 80
912 ipf_addresses:
913 - 10.10.10.10
914 ipf_port: 80
915 # example with name override
916 lls_meta4:
917 name: meta4
918 lls_ip: 10.0.0.23
919 lls_port: 80
920 ipf_addresses:
921 - 10.10.10.10
922 ipf_port: 80
923
Ales Komarekad46d2e2017-03-09 17:16:38 +0100924
Filip Pytloun27930402015-10-06 16:28:32 +0200925Usage
926=====
927
928Basic installation
Ales Komarekad46d2e2017-03-09 17:16:38 +0100929------------------
Filip Pytloun27930402015-10-06 16:28:32 +0200930
931Add control BGP
Ales Komarekad46d2e2017-03-09 17:16:38 +0100932
933.. code-block:: bash
Filip Pytloun27930402015-10-06 16:28:32 +0200934
935 python /etc/contrail/provision_control.py --api_server_ip 192.168.1.11 --api_server_port 8082 --host_name network1.contrail.domain.com --host_ip 192.168.1.11 --router_asn 64512
936
Ales Komarekad46d2e2017-03-09 17:16:38 +0100937Install compute node
Filip Pytloun27930402015-10-06 16:28:32 +0200938
Ales Komarekad46d2e2017-03-09 17:16:38 +0100939.. code-block:: bash
Filip Pytloun27930402015-10-06 16:28:32 +0200940
941 yum install contrail-vrouter contrail-openstack-vrouter
942
943 salt-call state.sls nova,opencontrail
944
945Add virtual router
Filip Pytloun27930402015-10-06 16:28:32 +0200946
Ales Komarekad46d2e2017-03-09 17:16:38 +0100947.. code-block:: bash
Filip Pytloun27930402015-10-06 16:28:32 +0200948
949 python /etc/contrail/provision_vrouter.py --host_name hostnode1.intra.domain.com --host_ip 10.0.100.101 --api_server_ip 10.0.100.30 --oper add --admin_user admin --admin_password cloudlab --admin_tenant_name admin
950
951 /etc/sysconfig/network-scripts/ifcfg-bond0 -- comment GATEWAY,NETMASK,IPADDR
952
953 reboot
954
Aleš Komáreka3314b22017-04-11 13:46:06 +0200955Debugging
956---------
Filip Pytloun27930402015-10-06 16:28:32 +0200957
958Display vhost XMPP connection status
959
960You should see the correct controller_ip and state should be established.
961
962 http://<compute-node>:8085/Snh_AgentXmppConnectionStatusReq?
963
964Display vrouter interface status
965
966When vrf_name = ---ERROR--- then something goes wrong
967
968 http://<compute-node>:8085/Snh_ItfReq?name=
969
970Display IF MAP table
971
972Look for neighbours, if VM has 2, it's ok
973
974 http://<control-node>:8083/Snh_IFMapTableShowReq?table_name=
975
976Trace XMPP requests
977
978 http://<compute-node>:8085/Snh_SandeshTraceRequest?x=XmppMessageTrace
979
Filip Pytlounf6b79d42017-02-02 13:02:03 +0100980
981Documentation and Bugs
982======================
983
984To learn how to install and update salt-formulas, consult the documentation
985available online at:
986
987 http://salt-formulas.readthedocs.io/
988
989In the unfortunate event that bugs are discovered, they should be reported to
990the appropriate issue tracker. Use Github issue tracker for specific salt
991formula:
992
993 https://github.com/salt-formulas/salt-formula-opencontrail/issues
994
995For feature requests, bug reports or blueprints affecting entire ecosystem,
996use Launchpad salt-formulas project:
997
998 https://launchpad.net/salt-formulas
999
1000You can also join salt-formulas-users team and subscribe to mailing list:
1001
1002 https://launchpad.net/~salt-formulas-users
1003
1004Developers wishing to work on the salt-formulas projects should always base
1005their work on master branch and submit pull request against specific formula.
1006
1007 https://github.com/salt-formulas/salt-formula-opencontrail
1008
1009Any questions or feedback is always welcome so feel free to join our IRC
1010channel:
1011
1012 #salt-formulas @ irc.freenode.net