Aleš Komárek | a3314b2 | 2017-04-11 13:46:06 +0200 | [diff] [blame] | 1 | ==================== |
| 2 | OpenContrail Formula |
| 3 | ==================== |
Filip Pytloun | 2793040 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 4 | |
Jakub Pavlik | 01fe537 | 2016-05-20 11:23:28 +0200 | [diff] [blame] | 5 | Contrail Controller is an open, standards-based software solution that |
| 6 | delivers network virtualization and service automation for federated cloud |
| 7 | networks. It provides self-service provisioning, improves network |
| 8 | troubleshooting and diagnostics, and enables service chaining for dynamic |
| 9 | application environments across enterprise virtual private cloud (VPC), |
| 10 | managed Infrastructure as a Service (IaaS), and Networks Functions |
| 11 | Virtualization (NFV) use cases. |
Filip Pytloun | 2793040 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 12 | |
Jiri Konecny | 463dee5 | 2016-03-03 11:08:46 +0100 | [diff] [blame] | 13 | |
Petr Michalec | 579e64d | 2017-03-24 12:54:29 +0100 | [diff] [blame] | 14 | Package source |
| 15 | ============== |
Aleš Komárek | a3314b2 | 2017-04-11 13:46:06 +0200 | [diff] [blame] | 16 | |
Petr Michalec | 579e64d | 2017-03-24 12:54:29 +0100 | [diff] [blame] | 17 | Formula support OpenContrail as well as Juniper Contrail package repository in the backend. |
| 18 | |
| 19 | Differences withing the configuration and state run are controlled by |
| 20 | ``opencontrail.common.vendor: [opencontrail|juniper]`` pillar attribute. |
| 21 | |
| 22 | Default value is set to ``opencontrail``. |
| 23 | |
| 24 | Juniper releases tested with this formula: |
| 25 | - 3.0.2.x |
| 26 | |
| 27 | To 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árek | a3314b2 | 2017-04-11 13:46:06 +0200 | [diff] [blame] | 36 | Sample Pillars |
Filip Pytloun | 2793040 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 37 | ============== |
| 38 | |
Jiri Konecny | 463dee5 | 2016-03-03 11:08:46 +0100 | [diff] [blame] | 39 | Controller nodes |
| 40 | ---------------- |
| 41 | |
| 42 | There are several scenarios for OpenContrail control plane. |
| 43 | |
| 44 | All-in-one single |
| 45 | ~~~~~~~~~~~~~~~~~ |
| 46 | |
| 47 | Config, 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 Pavlik | d1a059e | 2016-07-13 23:08:33 +0200 | [diff] [blame] | 89 | members: |
| 90 | - host: 127.0.0.1 |
| 91 | port: 11211 |
Jiri Konecny | 463dee5 | 2016-03-03 11:08:46 +0100 | [diff] [blame] | 92 | 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 |
Dmitry Stremkovskiy | 841fee3 | 2017-09-01 18:08:41 +0300 | [diff] [blame] | 105 | rootlogger: "INFO, CONSOLE" |
Jiri Konecny | 463dee5 | 2016-03-03 11:08:46 +0100 | [diff] [blame] | 106 | control: |
| 107 | version: 2.2 |
| 108 | enabled: true |
| 109 | bind: |
| 110 | address: 127.0.0.1 |
| 111 | discovery: |
| 112 | host: 127.0.0.1 |
| 113 | master: |
| 114 | host: 127.0.0.1 |
| 115 | members: |
| 116 | - host: 127.0.0.1 |
| 117 | id: 1 |
| 118 | collector: |
| 119 | version: 2.2 |
| 120 | enabled: true |
| 121 | bind: |
| 122 | address: 127.0.0.1 |
| 123 | master: |
| 124 | host: 127.0.0.1 |
| 125 | discovery: |
| 126 | host: 127.0.0.1 |
| 127 | data_ttl: 2 |
| 128 | database: |
| 129 | members: |
| 130 | - host: 127.0.0.1 |
| 131 | port: 9160 |
| 132 | database: |
| 133 | version: 2.2 |
| 134 | cassandra: |
| 135 | version: 2 |
| 136 | enabled: true |
| 137 | minimum_disk: 10 |
| 138 | name: 'Contrail' |
| 139 | original_token: 0 |
Dmitry Stremkovskiy | 2a079c7 | 2017-07-12 23:11:18 +0300 | [diff] [blame] | 140 | compaction_throughput_mb_per_sec: 16 |
Dmitry Stremkovskiy | 71b310a | 2017-08-11 20:39:11 +0300 | [diff] [blame] | 141 | concurrent_compactors: 1 |
Jiri Konecny | 463dee5 | 2016-03-03 11:08:46 +0100 | [diff] [blame] | 142 | data_dirs: |
| 143 | - /var/lib/cassandra |
| 144 | id: 1 |
| 145 | discovery: |
| 146 | host: 127.0.0.1 |
| 147 | bind: |
| 148 | host: 127.0.0.1 |
| 149 | port: 9042 |
| 150 | rpc_port: 9160 |
| 151 | members: |
| 152 | - host: 127.0.0.1 |
| 153 | id: 1 |
| 154 | web: |
| 155 | version: 2.2 |
| 156 | enabled: True |
| 157 | bind: |
| 158 | address: 127.0.0.1 |
| 159 | analytics: |
| 160 | host: 127.0.0.1 |
| 161 | master: |
| 162 | host: 127.0.0.1 |
| 163 | cache: |
| 164 | engine: redis |
| 165 | host: 127.0.0.1 |
| 166 | port: 6379 |
| 167 | members: |
| 168 | - host: 127.0.0.1 |
| 169 | id: 1 |
| 170 | identity: |
| 171 | engine: keystone |
| 172 | version: '2.0' |
| 173 | host: 127.0.0.1 |
| 174 | port: 35357 |
| 175 | user: admin |
| 176 | password: password |
| 177 | token: token |
| 178 | tenant: admin |
| 179 | |
| 180 | |
| 181 | All-in-one cluster |
| 182 | ~~~~~~~~~~~~~~~~~~ |
| 183 | |
Jakub Pavlik | 01fe537 | 2016-05-20 11:23:28 +0200 | [diff] [blame] | 184 | Config, control, analytics, database, web -- altogether, clustered on multiple |
| 185 | nodes. |
Jiri Konecny | 463dee5 | 2016-03-03 11:08:46 +0100 | [diff] [blame] | 186 | |
| 187 | .. code-block:: yaml |
| 188 | |
| 189 | opencontrail: |
| 190 | common: |
| 191 | version: 2.2 |
| 192 | source: |
| 193 | engine: pkg |
| 194 | address: http://mirror.robotice.cz/contrail-havana/ |
| 195 | identity: |
| 196 | engine: keystone |
| 197 | host: 127.0.0.1 |
| 198 | port: 35357 |
| 199 | token: token |
| 200 | password: password |
| 201 | network: |
| 202 | engine: neutron |
| 203 | host: 127.0.0.1 |
| 204 | port: 9696 |
| 205 | config: |
| 206 | version: 2.2 |
| 207 | enabled: true |
| 208 | network: |
| 209 | engine: neutron |
| 210 | host: 127.0.0.1 |
| 211 | port: 9696 |
| 212 | discovery: |
| 213 | host: 127.0.0.1 |
| 214 | analytics: |
| 215 | host: 127.0.0.1 |
| 216 | bind: |
| 217 | address: 127.0.0.1 |
| 218 | message_queue: |
| 219 | engine: rabbitmq |
| 220 | host: 127.0.0.1 |
| 221 | port: 5672 |
| 222 | database: |
| 223 | members: |
| 224 | - host: 127.0.0.1 |
| 225 | port: 9160 |
| 226 | - host: 127.0.0.1 |
| 227 | port: 9160 |
| 228 | - host: 127.0.0.1 |
| 229 | port: 9160 |
| 230 | cache: |
Jakub Pavlik | d1a059e | 2016-07-13 23:08:33 +0200 | [diff] [blame] | 231 | members: |
| 232 | - host: 127.0.0.1 |
| 233 | port: 11211 |
| 234 | - host: 127.0.0.1 |
| 235 | port: 11211 |
| 236 | - host: 127.0.0.1 |
| 237 | port: 11211 |
Jiri Konecny | 463dee5 | 2016-03-03 11:08:46 +0100 | [diff] [blame] | 238 | identity: |
| 239 | engine: keystone |
| 240 | version: '2.0' |
| 241 | region: RegionOne |
| 242 | host: 127.0.0.1 |
| 243 | port: 35357 |
| 244 | user: admin |
| 245 | password: password |
| 246 | token: token |
| 247 | tenant: admin |
| 248 | members: |
| 249 | - host: 127.0.0.1 |
| 250 | id: 1 |
| 251 | - host: 127.0.0.1 |
| 252 | id: 2 |
| 253 | - host: 127.0.0.1 |
| 254 | id: 3 |
| 255 | control: |
| 256 | version: 2.2 |
| 257 | enabled: true |
| 258 | bind: |
| 259 | address: 127.0.0.1 |
| 260 | discovery: |
| 261 | host: 127.0.0.1 |
| 262 | master: |
| 263 | host: 127.0.0.1 |
| 264 | members: |
| 265 | - host: 127.0.0.1 |
| 266 | id: 1 |
| 267 | - host: 127.0.0.1 |
| 268 | id: 2 |
| 269 | - host: 127.0.0.1 |
| 270 | id: 3 |
| 271 | collector: |
| 272 | version: 2.2 |
| 273 | enabled: true |
| 274 | bind: |
| 275 | address: 127.0.0.1 |
| 276 | master: |
| 277 | host: 127.0.0.1 |
| 278 | discovery: |
| 279 | host: 127.0.0.1 |
| 280 | data_ttl: 1 |
| 281 | database: |
| 282 | members: |
| 283 | - host: 127.0.0.1 |
| 284 | port: 9160 |
| 285 | - host: 127.0.0.1 |
| 286 | port: 9160 |
| 287 | - host: 127.0.0.1 |
| 288 | port: 9160 |
| 289 | database: |
| 290 | version: 2.2 |
| 291 | cassandra: |
| 292 | version: 2 |
| 293 | enabled: true |
| 294 | name: 'Contrail' |
| 295 | minimum_disk: 10 |
| 296 | original_token: 0 |
| 297 | data_dirs: |
| 298 | - /var/lib/cassandra |
| 299 | id: 1 |
| 300 | discovery: |
| 301 | host: 127.0.0.1 |
| 302 | bind: |
| 303 | host: 127.0.0.1 |
| 304 | port: 9042 |
| 305 | rpc_port: 9160 |
| 306 | members: |
| 307 | - host: 127.0.0.1 |
| 308 | id: 1 |
| 309 | - host: 127.0.0.1 |
| 310 | id: 2 |
| 311 | - host: 127.0.0.1 |
| 312 | id: 3 |
| 313 | web: |
| 314 | version: 2.2 |
| 315 | enabled: True |
| 316 | bind: |
| 317 | address: 127.0.0.1 |
| 318 | master: |
| 319 | host: 127.0.0.1 |
| 320 | analytics: |
| 321 | host: 127.0.0.1 |
| 322 | cache: |
| 323 | engine: redis |
| 324 | host: 127.0.0.1 |
| 325 | port: 6379 |
| 326 | members: |
| 327 | - host: 127.0.0.1 |
| 328 | id: 1 |
| 329 | - host: 127.0.0.1 |
| 330 | id: 2 |
| 331 | - host: 127.0.0.1 |
| 332 | id: 3 |
| 333 | identity: |
| 334 | engine: keystone |
| 335 | version: '2.0' |
| 336 | host: 127.0.0.1 |
| 337 | port: 35357 |
| 338 | user: admin |
| 339 | password: password |
| 340 | token: token |
| 341 | tenant: admin |
| 342 | |
| 343 | |
| 344 | Separated analytics from control and config |
| 345 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 346 | |
| 347 | Config, control, database, web. |
| 348 | |
| 349 | .. code-block:: yaml |
| 350 | |
| 351 | opencontrail: |
| 352 | common: |
| 353 | version: 2.2 |
| 354 | identity: |
| 355 | engine: keystone |
| 356 | host: 127.0.0.1 |
| 357 | port: 35357 |
| 358 | token: token |
| 359 | password: password |
| 360 | network: |
| 361 | engine: neutron |
| 362 | host: 127.0.0.1 |
| 363 | port: 9696 |
| 364 | config: |
| 365 | version: 2.2 |
| 366 | enabled: true |
| 367 | network: |
| 368 | engine: neutron |
| 369 | host: 127.0.0.1 |
| 370 | port: 9696 |
| 371 | discovery: |
| 372 | host: 127.0.0.1 |
| 373 | analytics: |
| 374 | host: 127.0.0.1 |
| 375 | bind: |
| 376 | address: 127.0.0.1 |
| 377 | message_queue: |
| 378 | engine: rabbitmq |
| 379 | host: 127.0.0.1 |
| 380 | port: 5672 |
| 381 | database: |
| 382 | members: |
| 383 | - host: 127.0.0.1 |
| 384 | port: 9160 |
| 385 | - host: 127.0.0.1 |
| 386 | port: 9160 |
| 387 | - host: 127.0.0.1 |
| 388 | port: 9160 |
| 389 | cache: |
Jakub Pavlik | d1a059e | 2016-07-13 23:08:33 +0200 | [diff] [blame] | 390 | members: |
| 391 | - host: 127.0.0.1 |
| 392 | port: 11211 |
| 393 | - host: 127.0.0.1 |
| 394 | port: 11211 |
| 395 | - host: 127.0.0.1 |
| 396 | port: 11211 |
Jiri Konecny | 463dee5 | 2016-03-03 11:08:46 +0100 | [diff] [blame] | 397 | identity: |
| 398 | engine: keystone |
| 399 | version: '2.0' |
| 400 | region: RegionOne |
| 401 | host: 127.0.0.1 |
| 402 | port: 35357 |
| 403 | user: admin |
| 404 | password: password |
| 405 | token: token |
| 406 | tenant: admin |
| 407 | members: |
| 408 | - host: 127.0.0.1 |
| 409 | id: 1 |
| 410 | - host: 127.0.0.1 |
| 411 | id: 2 |
| 412 | - host: 127.0.0.1 |
| 413 | id: 3 |
| 414 | control: |
| 415 | version: 2.2 |
| 416 | enabled: true |
| 417 | bind: |
| 418 | address: 127.0.0.1 |
| 419 | discovery: |
| 420 | host: 127.0.0.1 |
| 421 | master: |
| 422 | host: 127.0.0.1 |
| 423 | members: |
| 424 | - host: 127.0.0.1 |
| 425 | id: 1 |
| 426 | - host: 127.0.0.1 |
| 427 | id: 2 |
| 428 | - host: 127.0.0.1 |
| 429 | id: 3 |
| 430 | database: |
| 431 | version: 127.0.0.1 |
| 432 | cassandra: |
| 433 | version: 2 |
| 434 | enabled: true |
| 435 | name: 'Contrail' |
| 436 | minimum_disk: 10 |
| 437 | original_token: 0 |
| 438 | data_dirs: |
| 439 | - /var/lib/cassandra |
| 440 | id: 1 |
| 441 | discovery: |
| 442 | host: 127.0.0.1 |
| 443 | bind: |
| 444 | host: 127.0.0.1 |
| 445 | port: 9042 |
| 446 | rpc_port: 9160 |
| 447 | members: |
| 448 | - host: 127.0.0.1 |
| 449 | id: 1 |
| 450 | - host: 127.0.0.1 |
| 451 | id: 2 |
| 452 | - host: 127.0.0.1 |
| 453 | id: 3 |
| 454 | web: |
| 455 | version: 2.2 |
| 456 | enabled: True |
| 457 | bind: |
| 458 | address: 127.0.0.1 |
| 459 | analytics: |
| 460 | host: 127.0.0.1 |
| 461 | master: |
| 462 | host: 127.0.0.1 |
| 463 | cache: |
| 464 | engine: redis |
| 465 | host: 127.0.0.1 |
| 466 | port: 6379 |
| 467 | members: |
| 468 | - host: 127.0.0.1 |
| 469 | id: 1 |
| 470 | - host: 127.0.0.1 |
| 471 | id: 2 |
| 472 | - host: 127.0.0.1 |
| 473 | id: 3 |
| 474 | identity: |
| 475 | engine: keystone |
| 476 | version: '2.0' |
| 477 | host: 127.0.0.1 |
| 478 | port: 35357 |
| 479 | user: admin |
| 480 | password: password |
| 481 | token: token |
| 482 | tenant: admin |
| 483 | |
Jiri Konecny | 463dee5 | 2016-03-03 11:08:46 +0100 | [diff] [blame] | 484 | Analytic nodes |
Jiri Konecny | 463dee5 | 2016-03-03 11:08:46 +0100 | [diff] [blame] | 485 | |
| 486 | Analytics and database on an analytic node(s) |
| 487 | |
| 488 | .. code-block:: yaml |
| 489 | |
| 490 | opencontrail: |
| 491 | common: |
| 492 | version: 2.2 |
| 493 | identity: |
| 494 | engine: keystone |
| 495 | host: 127.0.0.1 |
| 496 | port: 35357 |
| 497 | token: token |
| 498 | password: password |
| 499 | network: |
| 500 | engine: neutron |
| 501 | host: 127.0.0.1 |
| 502 | port: 9696 |
| 503 | collector: |
| 504 | version: 2.2 |
| 505 | enabled: true |
| 506 | bind: |
| 507 | address: 127.0.0.1 |
| 508 | master: |
| 509 | host: 127.0.0.1 |
| 510 | discovery: |
| 511 | host: 127.0.0.1 |
| 512 | data_ttl: 1 |
| 513 | database: |
| 514 | members: |
| 515 | - host: 127.0.0.1 |
| 516 | port: 9160 |
| 517 | - host: 127.0.0.1 |
| 518 | port: 9160 |
| 519 | - host: 127.0.0.1 |
| 520 | port: 9160 |
| 521 | database: |
| 522 | version: 2.2 |
| 523 | cassandra: |
| 524 | version: 2 |
| 525 | enabled: true |
| 526 | name: 'Contrail' |
| 527 | minimum_disk: 10 |
| 528 | original_token: 0 |
| 529 | data_dirs: |
| 530 | - /var/lib/cassandra |
| 531 | id: 1 |
| 532 | discovery: |
| 533 | host: 127.0.0.1 |
| 534 | bind: |
| 535 | host: 127.0.0.1 |
| 536 | port: 9042 |
| 537 | rpc_port: 9160 |
| 538 | members: |
| 539 | - host: 127.0.0.1 |
| 540 | id: 1 |
| 541 | - host: 127.0.0.1 |
| 542 | id: 2 |
| 543 | - host: 127.0.0.1 |
| 544 | id: 3 |
| 545 | |
| 546 | |
| 547 | Compute nodes |
Aleš Komárek | a3314b2 | 2017-04-11 13:46:06 +0200 | [diff] [blame] | 548 | ------------- |
Jiri Konecny | 463dee5 | 2016-03-03 11:08:46 +0100 | [diff] [blame] | 549 | |
| 550 | Vrouter configuration on a compute node(s) |
| 551 | |
| 552 | .. code-block:: yaml |
| 553 | |
| 554 | opencontrail: |
| 555 | common: |
| 556 | version: 2.2 |
| 557 | identity: |
| 558 | engine: keystone |
| 559 | host: 127.0.0.1 |
| 560 | port: 35357 |
| 561 | token: token |
| 562 | password: password |
| 563 | network: |
| 564 | engine: neutron |
| 565 | host: 127.0.0.1 |
| 566 | port: 9696 |
| 567 | compute: |
| 568 | version: 2.2 |
| 569 | enabled: True |
Dmitry Stremkovskiy | 0cb5c56 | 2017-07-26 00:32:51 +0300 | [diff] [blame] | 570 | hostname: node-12.domain.tld |
Jiri Konecny | 463dee5 | 2016-03-03 11:08:46 +0100 | [diff] [blame] | 571 | discovery: |
| 572 | host: 127.0.0.1 |
| 573 | interface: |
| 574 | address: 127.0.0.1 |
| 575 | dev: eth0 |
| 576 | gateway: 127.0.0.1 |
| 577 | mask: /24 |
| 578 | dns: 127.0.0.1 |
| 579 | mtu: 9000 |
| 580 | |
Petr Jediný | 5f3008a | 2017-07-31 15:04:05 +0200 | [diff] [blame] | 581 | |
| 582 | Compute nodes with gateway_mode |
| 583 | ------------------------------- |
| 584 | |
| 585 | Gateway mode: can be server/ vcpe (default is none) |
| 586 | |
| 587 | .. code-block:: yaml |
| 588 | |
| 589 | opencontrail: |
| 590 | compute: |
| 591 | gateway_mode: server |
| 592 | |
| 593 | |
Andrey | eff77ac | 2017-08-25 12:14:06 -0500 | [diff] [blame] | 594 | Set up metadata secret for the Vrouter |
Petr Jediný | fe51c6a | 2017-09-05 18:30:31 +0200 | [diff] [blame^] | 595 | -------------------------------------- |
Andrey | eff77ac | 2017-08-25 12:14:06 -0500 | [diff] [blame] | 596 | |
Petr Jediný | fe51c6a | 2017-09-05 18:30:31 +0200 | [diff] [blame^] | 597 | In order to get cloud-init within the instance to properly fetch |
Andrey | eff77ac | 2017-08-25 12:14:06 -0500 | [diff] [blame] | 598 | instance metadata, metadata_proxy_secret in the Vrouter agent config |
| 599 | should match the value in nova.conf. The administrator should define |
| 600 | it in the pillar: |
| 601 | |
| 602 | .. code-block:: yaml |
| 603 | |
| 604 | opencontrail: |
| 605 | compute: |
| 606 | metadata: |
| 607 | secret: opencontrail |
| 608 | |
Petr Jediný | fe51c6a | 2017-09-05 18:30:31 +0200 | [diff] [blame^] | 609 | Add auth info for Barbican on compute nodes |
| 610 | ------------------------------------------- |
| 611 | |
| 612 | .. code-block:: yaml |
| 613 | |
| 614 | opencontrail: |
| 615 | compute: |
| 616 | lbaas: |
| 617 | enabled: true |
| 618 | secret_manager: |
| 619 | engine: barbican |
| 620 | identity: |
| 621 | user: admin |
| 622 | password: "supersecretpassword123" |
| 623 | tenant: admin |
| 624 | |
| 625 | |
Jakub Pavlik | 735005f | 2016-02-26 15:54:53 +0100 | [diff] [blame] | 626 | Keystone v3 |
Aleš Komárek | a3314b2 | 2017-04-11 13:46:06 +0200 | [diff] [blame] | 627 | ----------- |
Jakub Pavlik | 735005f | 2016-02-26 15:54:53 +0100 | [diff] [blame] | 628 | |
Jakub Pavlik | 01fe537 | 2016-05-20 11:23:28 +0200 | [diff] [blame] | 629 | To enable support for keystone v3 in opencontrail, there must be defined |
| 630 | version for config and web role. |
Jakub Pavlik | 735005f | 2016-02-26 15:54:53 +0100 | [diff] [blame] | 631 | |
| 632 | .. code-block:: yaml |
| 633 | |
| 634 | opencontrail: |
| 635 | config: |
| 636 | version: 2.2 |
| 637 | enabled: true |
| 638 | ... |
| 639 | identity: |
| 640 | engine: keystone |
| 641 | version: '3' |
| 642 | ... |
| 643 | |
| 644 | opencontrail: |
| 645 | web: |
| 646 | version: 2.2 |
| 647 | enabled: true |
| 648 | ... |
| 649 | identity: |
| 650 | engine: keystone |
| 651 | version: '3' |
| 652 | ... |
| 653 | |
marco | 10cc221 | 2016-04-03 14:21:54 +0200 | [diff] [blame] | 654 | Without Keystone |
| 655 | ---------------- |
| 656 | |
| 657 | .. code-block:: yaml |
| 658 | |
| 659 | opencontrail: |
| 660 | ... |
| 661 | common: |
| 662 | ... |
| 663 | identity: |
| 664 | engine: none |
| 665 | token: none |
| 666 | password: none |
| 667 | ... |
| 668 | config: |
| 669 | ... |
| 670 | identity: |
| 671 | engine: none |
| 672 | password: none |
| 673 | token: none |
| 674 | ... |
| 675 | web: |
| 676 | ... |
| 677 | identity: |
| 678 | engine: none |
| 679 | password: none |
| 680 | token: none |
| 681 | ... |
marco | f546171 | 2016-04-04 20:49:36 +0200 | [diff] [blame] | 682 | |
Aleš Komárek | a3314b2 | 2017-04-11 13:46:06 +0200 | [diff] [blame] | 683 | Kubernetes support |
| 684 | ------------------ |
| 685 | |
marco | f546171 | 2016-04-04 20:49:36 +0200 | [diff] [blame] | 686 | Kubernetes vrouter nodes |
marco | f546171 | 2016-04-04 20:49:36 +0200 | [diff] [blame] | 687 | |
| 688 | Vrouter configuration on a kubernetes node(s) |
| 689 | |
| 690 | .. code-block:: yaml |
| 691 | |
| 692 | opencontrail: |
| 693 | ... |
| 694 | compute: |
| 695 | engine: kubernetes |
| 696 | ... |
| 697 | |
Jakub Pavlik | 0d1f67e | 2016-11-30 10:04:13 +0100 | [diff] [blame] | 698 | vRouter with separated control plane |
Jakub Pavlik | 0d1f67e | 2016-11-30 10:04:13 +0100 | [diff] [blame] | 699 | |
| 700 | Separate XMPP traffic from dataplane interface. |
| 701 | |
| 702 | .. code-block:: yaml |
| 703 | |
| 704 | opencontrail: |
| 705 | compute: |
| 706 | bind: |
| 707 | address: 172.16.0.50 |
| 708 | ... |
| 709 | |
Petr Jediný | 439fab3 | 2017-07-10 14:33:09 +0200 | [diff] [blame] | 710 | Override RPF default in Contrail API |
| 711 | ------------------------------------ |
| 712 | |
| 713 | From MCP1.1 with OpenContrail >= 3.1.1 you can override RPF default for newly |
| 714 | created virtual networks. This can be useful for usecases like running |
| 715 | Calico and K8S in overlay. The `override_rpf_default_by` has valid values |
| 716 | `disable`, `enable`. If not defined, the configuration fallbacks to Contrail |
| 717 | default - currently `enable`. |
| 718 | |
| 719 | .. code-block:: yaml |
| 720 | |
| 721 | opencontrail: |
| 722 | ... |
| 723 | config: |
| 724 | override_rpf_default_by: 'disable' |
| 725 | ... |
| 726 | |
| 727 | |
Jakub Pavlik | 6d90f36 | 2016-04-19 20:34:37 +0200 | [diff] [blame] | 728 | Disable Contrail API authentication |
| 729 | ----------------------------------- |
| 730 | |
Petr Jediný | 78e6f42 | 2017-06-01 13:24:49 +0200 | [diff] [blame] | 731 | Contrail version must >= 3.0. It is useful especially for Keystone v3. |
Jakub Pavlik | 6d90f36 | 2016-04-19 20:34:37 +0200 | [diff] [blame] | 732 | |
| 733 | .. code-block:: yaml |
| 734 | |
| 735 | opencontrail: |
| 736 | ... |
| 737 | config: |
| 738 | multi_tenancy: false |
| 739 | ... |
| 740 | |
Petr Jediný | 78e6f42 | 2017-06-01 13:24:49 +0200 | [diff] [blame] | 741 | Switch from on demand to periodic keystone sync |
| 742 | ----------------------------------------------- |
| 743 | |
| 744 | This can be useful when you want to sync projects from OpenStack to Contrail |
| 745 | automatically. The period of sync is 60s. |
| 746 | |
| 747 | .. code-block:: yaml |
| 748 | |
| 749 | opencontrail: |
| 750 | ... |
| 751 | config: |
| 752 | identity: |
| 753 | sync_on_demand: false |
| 754 | ... |
| 755 | |
marco | 2502e05 | 2016-05-31 22:53:54 +0200 | [diff] [blame] | 756 | Cassandra listen interface |
Petr Jediný | ffbe208 | 2017-03-07 00:56:47 +0100 | [diff] [blame] | 757 | -------------------------- |
marco | 2502e05 | 2016-05-31 22:53:54 +0200 | [diff] [blame] | 758 | |
| 759 | .. code-block:: yaml |
| 760 | |
| 761 | database: |
| 762 | .... |
| 763 | bind: |
| 764 | interface: eth0 |
| 765 | port: 9042 |
| 766 | rpc_port: 9160 |
| 767 | .... |
Jakub Pavlik | 6d90f36 | 2016-04-19 20:34:37 +0200 | [diff] [blame] | 768 | |
Petr Jediný | ffbe208 | 2017-03-07 00:56:47 +0100 | [diff] [blame] | 769 | OpenContrail WebUI version >= 3.1.1 |
| 770 | ----------------------------------- |
Petr Jediný | 78e6f42 | 2017-06-01 13:24:49 +0200 | [diff] [blame] | 771 | For OpenContrail version >= 3.1.1 and Cassandra >= 2.1 we should override WebUI's cassandra port from 9160 to 9042. |
Petr Jediný | ffbe208 | 2017-03-07 00:56:47 +0100 | [diff] [blame] | 772 | |
| 773 | For appropriate node at class level: |
| 774 | |
| 775 | .. code-block:: yaml |
Aleš Komárek | a3314b2 | 2017-04-11 13:46:06 +0200 | [diff] [blame] | 776 | |
Petr Jediný | ffbe208 | 2017-03-07 00:56:47 +0100 | [diff] [blame] | 777 | opencontrail: |
| 778 | .... |
| 779 | web: |
| 780 | database: |
| 781 | port: 9042 |
| 782 | .... |
| 783 | |
| 784 | |
Jakub Pavlik | 9a4de01 | 2016-12-14 13:23:55 +0100 | [diff] [blame] | 785 | RabbitMQ HA hosts |
| 786 | ------------------ |
| 787 | |
| 788 | .. code-block:: yaml |
| 789 | |
| 790 | opencontrail: |
| 791 | config: |
| 792 | message_queue: |
| 793 | engine: rabbitmq |
| 794 | members: |
| 795 | - host: 10.0.16.1 |
| 796 | - host: 10.0.16.2 |
| 797 | - host: 10.0.16.3 |
| 798 | port: 5672 |
| 799 | |
| 800 | .. code-block:: yaml |
| 801 | |
| 802 | database: |
| 803 | .... |
| 804 | bind: |
| 805 | interface: eth0 |
| 806 | port: 9042 |
| 807 | rpc_port: 9160 |
| 808 | .... |
| 809 | |
Jakub Pavlik | e359006 | 2017-02-20 23:32:57 +0100 | [diff] [blame] | 810 | DPDK vRouter |
| 811 | ------------- |
| 812 | |
| 813 | .. code-block:: yaml |
| 814 | |
| 815 | opencontrail: |
| 816 | compute: |
| 817 | dpdk: |
| 818 | enabled: true |
Jakub Pavlik | 54761d8 | 2017-03-08 11:22:37 +0100 | [diff] [blame] | 819 | taskset: "0x0000003C00003C" |
| 820 | socket_mem: "1024,1024" |
Jakub Pavlik | e359006 | 2017-02-20 23:32:57 +0100 | [diff] [blame] | 821 | interface: |
| 822 | mac_address: 90:e2:ba:7c:22:e1 |
| 823 | pci: 0000:81:00.1 |
| 824 | ... |
| 825 | |
Ales Komarek | ad46d2e | 2017-03-09 17:16:38 +0100 | [diff] [blame] | 826 | Contrail client |
| 827 | --------------- |
| 828 | |
| 829 | Basic parameters with identity and host configs |
| 830 | |
Petr Jediný | 78e6f42 | 2017-06-01 13:24:49 +0200 | [diff] [blame] | 831 | .. code-block:: yaml |
Ales Komarek | ad46d2e | 2017-03-09 17:16:38 +0100 | [diff] [blame] | 832 | |
| 833 | opencontrail: |
| 834 | client: |
| 835 | identity: |
| 836 | user: admin |
| 837 | project: admin |
| 838 | password: adminpass |
| 839 | host: keystone_host |
| 840 | config: |
| 841 | host: contrail_api_host |
| 842 | port: contrail_api_ort |
| 843 | |
| 844 | Enforcing virtual routers |
| 845 | |
Petr Jediný | 78e6f42 | 2017-06-01 13:24:49 +0200 | [diff] [blame] | 846 | .. code-block:: yaml |
Ales Komarek | ad46d2e | 2017-03-09 17:16:38 +0100 | [diff] [blame] | 847 | |
| 848 | opencontrail: |
| 849 | client: |
| 850 | ... |
| 851 | virtual_router: |
| 852 | cmp01: |
| 853 | ip_address: 172.16.0.11 |
| 854 | dpdk_enabled: True |
| 855 | cmp02: |
| 856 | ip_address: 172.16.0.12 |
| 857 | dpdk_enabled: True |
| 858 | |
| 859 | Enforcing control nodes |
| 860 | |
Petr Jediný | 78e6f42 | 2017-06-01 13:24:49 +0200 | [diff] [blame] | 861 | .. code-block:: yaml |
Ales Komarek | ad46d2e | 2017-03-09 17:16:38 +0100 | [diff] [blame] | 862 | |
| 863 | opencontrail: |
| 864 | client: |
| 865 | ... |
| 866 | bgp_router: |
| 867 | ntw01: |
| 868 | type: control-node |
| 869 | ip_address: 172.16.0.11 |
| 870 | nwt02: |
| 871 | type: control-node |
| 872 | ip_address: 172.16.0.12 |
| 873 | nwt03: |
| 874 | type: control-node |
| 875 | ip_address: 172.16.0.13 |
| 876 | |
| 877 | |
| 878 | Enforcing edge BGP routers |
| 879 | |
Petr Jediný | 78e6f42 | 2017-06-01 13:24:49 +0200 | [diff] [blame] | 880 | .. code-block:: yaml |
Ales Komarek | ad46d2e | 2017-03-09 17:16:38 +0100 | [diff] [blame] | 881 | |
| 882 | opencontrail: |
| 883 | client: |
| 884 | ... |
| 885 | bgp_router: |
| 886 | mx01: |
| 887 | type: router |
| 888 | ip_address: 172.16.0.21 |
| 889 | asn: 64512 |
| 890 | mx02: |
| 891 | type: router |
| 892 | ip_address: 172.16.0.22 |
| 893 | asn: 64512 |
| 894 | |
| 895 | Enforcing config nodes |
| 896 | |
Petr Jediný | 78e6f42 | 2017-06-01 13:24:49 +0200 | [diff] [blame] | 897 | .. code-block:: yaml |
Ales Komarek | ad46d2e | 2017-03-09 17:16:38 +0100 | [diff] [blame] | 898 | |
| 899 | opencontrail: |
| 900 | client: |
| 901 | ... |
| 902 | config_node: |
| 903 | ctl01: |
| 904 | ip_address: 172.16.0.21 |
| 905 | ctl02: |
| 906 | ip_address: 172.16.0.22 |
| 907 | |
| 908 | Enforcing database nodes |
| 909 | |
Petr Jediný | 78e6f42 | 2017-06-01 13:24:49 +0200 | [diff] [blame] | 910 | .. code-block:: yaml |
Ales Komarek | ad46d2e | 2017-03-09 17:16:38 +0100 | [diff] [blame] | 911 | |
| 912 | opencontrail: |
| 913 | client: |
| 914 | ... |
| 915 | database_node: |
| 916 | ntw01: |
| 917 | ip_address: 172.16.0.21 |
| 918 | ntw02: |
| 919 | ip_address: 172.16.0.22 |
| 920 | |
| 921 | Enforcing analytics nodes |
| 922 | |
Petr Jediný | 78e6f42 | 2017-06-01 13:24:49 +0200 | [diff] [blame] | 923 | .. code-block:: yaml |
Ales Komarek | ad46d2e | 2017-03-09 17:16:38 +0100 | [diff] [blame] | 924 | |
| 925 | opencontrail: |
| 926 | client: |
| 927 | ... |
| 928 | analytics_node: |
| 929 | nal01: |
| 930 | ip_address: 172.16.0.31 |
| 931 | nal02: |
| 932 | ip_address: 172.16.0.32 |
| 933 | |
Petr Jediný | 5f3efe3 | 2017-05-26 17:55:09 +0200 | [diff] [blame] | 934 | Enforcing Link Local Services |
| 935 | |
| 936 | .. code-block:: yaml |
| 937 | |
| 938 | opencontrail: |
| 939 | client: |
| 940 | ... |
| 941 | linklocal_service: |
| 942 | # example with dns name address (only one permited) |
| 943 | meta1: |
| 944 | lls_ip: 10.0.0.23 |
| 945 | lls_port: 80 |
| 946 | ipf_addresses: "meta.example.com" |
| 947 | ipf_port: 80 |
| 948 | # example with multiple ip addresses |
| 949 | meta2: |
| 950 | lls_ip: 10.0.0.23 |
| 951 | lls_port: 80 |
| 952 | ipf_addresses: |
| 953 | - 10.10.10.10 |
| 954 | - 10.20.20.20 |
| 955 | - 10.30.30.30 |
| 956 | ipf_port: 80 |
| 957 | # example with one ip address |
| 958 | meta3: |
| 959 | lls_ip: 10.0.0.23 |
| 960 | lls_port: 80 |
| 961 | ipf_addresses: |
| 962 | - 10.10.10.10 |
| 963 | ipf_port: 80 |
| 964 | # example with name override |
| 965 | lls_meta4: |
| 966 | name: meta4 |
| 967 | lls_ip: 10.0.0.23 |
| 968 | lls_port: 80 |
| 969 | ipf_addresses: |
| 970 | - 10.10.10.10 |
| 971 | ipf_port: 80 |
| 972 | |
Ales Komarek | ad46d2e | 2017-03-09 17:16:38 +0100 | [diff] [blame] | 973 | |
Filip Pytloun | 2793040 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 974 | Usage |
| 975 | ===== |
| 976 | |
| 977 | Basic installation |
Ales Komarek | ad46d2e | 2017-03-09 17:16:38 +0100 | [diff] [blame] | 978 | ------------------ |
Filip Pytloun | 2793040 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 979 | |
| 980 | Add control BGP |
Ales Komarek | ad46d2e | 2017-03-09 17:16:38 +0100 | [diff] [blame] | 981 | |
| 982 | .. code-block:: bash |
Filip Pytloun | 2793040 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 983 | |
| 984 | 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 |
| 985 | |
Ales Komarek | ad46d2e | 2017-03-09 17:16:38 +0100 | [diff] [blame] | 986 | Install compute node |
Filip Pytloun | 2793040 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 987 | |
Ales Komarek | ad46d2e | 2017-03-09 17:16:38 +0100 | [diff] [blame] | 988 | .. code-block:: bash |
Filip Pytloun | 2793040 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 989 | |
| 990 | yum install contrail-vrouter contrail-openstack-vrouter |
| 991 | |
| 992 | salt-call state.sls nova,opencontrail |
| 993 | |
| 994 | Add virtual router |
Filip Pytloun | 2793040 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 995 | |
Ales Komarek | ad46d2e | 2017-03-09 17:16:38 +0100 | [diff] [blame] | 996 | .. code-block:: bash |
Filip Pytloun | 2793040 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 997 | |
| 998 | 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 |
| 999 | |
| 1000 | /etc/sysconfig/network-scripts/ifcfg-bond0 -- comment GATEWAY,NETMASK,IPADDR |
| 1001 | |
| 1002 | reboot |
| 1003 | |
Aleš Komárek | a3314b2 | 2017-04-11 13:46:06 +0200 | [diff] [blame] | 1004 | Debugging |
| 1005 | --------- |
Filip Pytloun | 2793040 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1006 | |
| 1007 | Display vhost XMPP connection status |
| 1008 | |
| 1009 | You should see the correct controller_ip and state should be established. |
| 1010 | |
| 1011 | http://<compute-node>:8085/Snh_AgentXmppConnectionStatusReq? |
| 1012 | |
| 1013 | Display vrouter interface status |
| 1014 | |
| 1015 | When vrf_name = ---ERROR--- then something goes wrong |
| 1016 | |
| 1017 | http://<compute-node>:8085/Snh_ItfReq?name= |
| 1018 | |
| 1019 | Display IF MAP table |
| 1020 | |
| 1021 | Look for neighbours, if VM has 2, it's ok |
| 1022 | |
| 1023 | http://<control-node>:8083/Snh_IFMapTableShowReq?table_name= |
| 1024 | |
| 1025 | Trace XMPP requests |
| 1026 | |
| 1027 | http://<compute-node>:8085/Snh_SandeshTraceRequest?x=XmppMessageTrace |
| 1028 | |
Filip Pytloun | f6b79d4 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 1029 | |
| 1030 | Documentation and Bugs |
| 1031 | ====================== |
| 1032 | |
| 1033 | To learn how to install and update salt-formulas, consult the documentation |
| 1034 | available online at: |
| 1035 | |
| 1036 | http://salt-formulas.readthedocs.io/ |
| 1037 | |
| 1038 | In the unfortunate event that bugs are discovered, they should be reported to |
| 1039 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 1040 | formula: |
| 1041 | |
| 1042 | https://github.com/salt-formulas/salt-formula-opencontrail/issues |
| 1043 | |
| 1044 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 1045 | use Launchpad salt-formulas project: |
| 1046 | |
| 1047 | https://launchpad.net/salt-formulas |
| 1048 | |
| 1049 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 1050 | |
| 1051 | https://launchpad.net/~salt-formulas-users |
| 1052 | |
| 1053 | Developers wishing to work on the salt-formulas projects should always base |
| 1054 | their work on master branch and submit pull request against specific formula. |
| 1055 | |
| 1056 | https://github.com/salt-formulas/salt-formula-opencontrail |
| 1057 | |
| 1058 | Any questions or feedback is always welcome so feel free to join our IRC |
| 1059 | channel: |
| 1060 | |
| 1061 | #salt-formulas @ irc.freenode.net |