summaryrefslogtreecommitdiffstats
path: root/book-enea-nfv-core-installation-guide/doc/high_availability.xml
diff options
context:
space:
mode:
authorMiruna Paun <Miruna.Paun@enea.com>2017-11-20 11:39:25 +0100
committerMiruna Paun <Miruna.Paun@enea.com>2017-11-20 11:39:25 +0100
commitd4b5428c176638242f8ee1c409c220ea7a3605fe (patch)
treed2093a58d896fb70d3f7105a0577a69222dc37f2 /book-enea-nfv-core-installation-guide/doc/high_availability.xml
parent9b46fbf79c27b3824d361f65a6ab339ddbfd75d0 (diff)
downloaddoc-enea-nfv-d4b5428c176638242f8ee1c409c220ea7a3605fe.tar.gz
COSNOSCR-574 updated zabbix config, added images for it, updated rel notes ceph storage cluster
Diffstat (limited to 'book-enea-nfv-core-installation-guide/doc/high_availability.xml')
-rw-r--r--book-enea-nfv-core-installation-guide/doc/high_availability.xml264
1 files changed, 150 insertions, 114 deletions
diff --git a/book-enea-nfv-core-installation-guide/doc/high_availability.xml b/book-enea-nfv-core-installation-guide/doc/high_availability.xml
index 41d107b..e6dc825 100644
--- a/book-enea-nfv-core-installation-guide/doc/high_availability.xml
+++ b/book-enea-nfv-core-installation-guide/doc/high_availability.xml
@@ -165,8 +165,8 @@
165 165
166 <mediaobject> 166 <mediaobject>
167 <imageobject role="fo"> 167 <imageobject role="fo">
168 <imagedata contentwidth="600" fileref="images/functional_blocks.svg" 168 <imagedata align="center" contentwidth="600"
169 format="SVG" /> 169 fileref="images/functional_blocks.svg" format="SVG" />
170 </imageobject> 170 </imageobject>
171 </mediaobject> 171 </mediaobject>
172 172
@@ -184,13 +184,15 @@
184 184
185 <mediaobject> 185 <mediaobject>
186 <imageobject> 186 <imageobject>
187 <imagedata contentwidth="600" fileref="images/dr_fault_mg.svg" /> 187 <imagedata align="center" contentwidth="600"
188 fileref="images/dr_fault_mg.svg" />
188 </imageobject> 189 </imageobject>
189 </mediaobject> 190 </mediaobject>
190 191
191 <mediaobject> 192 <mediaobject>
192 <imageobject> 193 <imageobject>
193 <imagedata contentwidth="600" fileref="images/dr_fault_mg_2.svg" /> 194 <imagedata align="center" contentwidth="600"
195 fileref="images/dr_fault_mg_2.svg" />
194 </imageobject> 196 </imageobject>
195 </mediaobject> 197 </mediaobject>
196 198
@@ -307,29 +309,26 @@
307 309
308 <para>The Zabbix configuration dashboard is available at the same IP 310 <para>The Zabbix configuration dashboard is available at the same IP
309 address where OpenStack can be reached, e.g. 311 address where OpenStack can be reached, e.g.
310 <literal>http://10.0.6.42/zabbix</literal>.</para> 312 <literal>http://10.0.101.42/zabbix</literal>.</para>
311 313
312 <mediaobject> 314 <mediaobject>
313 <imageobject role="fop"> 315 <imageobject>
314 <imagedata contentwidth="600" fileref="images/Zabbix_Home.svg" /> 316 <imagedata align="center" contentwidth="600"
315 </imageobject> 317 fileref="images/Zabbix_Home.svg" />
316
317 <imageobject role="html">
318 <imagedata fileref="images/Zabbix_Home.png" />
319 </imageobject> 318 </imageobject>
320 </mediaobject> 319 </mediaobject>
321 320
322 <para>To forward Zabbix events to Vitrage, a new media script needs to 321 <para>To forward Zabbix events to Vitrage, a new media type needs to be
323 be created and associated with a Zabbix Admin user.</para> 322 created and associated with a Zabbix Admin user.</para>
324 323
325 <para><emphasis role="bold">To create the 324 <para><emphasis role="bold">To create the Media Type which calls
326 zabbix_vitrage.py</emphasis></para> 325 zabbix_vitrage.py</emphasis></para>
327 326
328 <orderedlist> 327 <orderedlist>
329 <listitem> 328 <listitem>
330 <para>Create a new media type by selecting the <literal>Media 329 <para>Create a new media type by selecting <literal>Media
331 Types</literal> tab under the <literal>Admininstration</literal>, 330 Types</literal> under the <literal>Admininstration</literal> tab and
332 tab and choosing <literal>Create Media Type</literal>.</para> 331 choosing <literal>Create Media Type</literal>.</para>
333 332
334 <para>Now fill each parameter field with the values given below, 333 <para>Now fill each parameter field with the values given below,
335 before clicking <literal>add</literal>:</para> 334 before clicking <literal>add</literal>:</para>
@@ -349,22 +348,56 @@
349 </itemizedlist> 348 </itemizedlist>
350 349
351 <mediaobject> 350 <mediaobject>
352 <imageobject role="fop"> 351 <imageobject>
353 <imagedata contentwidth="600" 352 <imagedata align="center" contentwidth="600"
354 fileref="images/Zabbix_MediaType.svg" /> 353 fileref="images/Zabbix_MediaType.svg" />
355 </imageobject> 354 </imageobject>
355 </mediaobject>
356 </listitem>
357
358 <listitem>
359 <para>Under <literal>Administration</literal>, in the
360 <literal>Users</literal> tab (next to <literal>Media
361 Types</literal>), click on the drop-down menu <literal>User
362 groups</literal> and select <literal>Users</literal>, to display the
363 list of existing users. Choose from this list, the
364 <literal>admin</literal> alias:</para>
365
366 <mediaobject>
367 <imageobject>
368 <imagedata align="center"
369 fileref="images/Zabbix_AdminSelectUsers.svg" />
370 </imageobject>
371 </mediaobject>
372
373 <mediaobject>
374 <imageobject>
375 <imagedata align="center" contentwidth="600"
376 fileref="images/Zabbix_AdminUser.svg" />
377 </imageobject>
378 </mediaobject>
379 </listitem>
380
381 <listitem>
382 <para>Inside the <literal>User</literal> tab for the
383 <literal>admin</literal> alias, click <literal>Add</literal> next to
384 the <literal>Groups</literal> list:</para>
385
386 <mediaobject>
387 <imageobject role="fop">
388 <imagedata align="center" contentwidth="600"
389 fileref="images/Zabbix_User.svg" />
390 </imageobject>
356 391
357 <imageobject role="html"> 392 <imageobject role="html">
358 <imagedata fileref="images/Zabbix_MediaType.png" /> 393 <imagedata fileref="images/Zabbix_User.png" />
359 </imageobject> 394 </imageobject>
360 </mediaobject> 395 </mediaobject>
361 </listitem> 396 </listitem>
362 397
363 <listitem> 398 <listitem>
364 <para>Go to the <literal>User</literal> tab by clicking on the 399 <para>Once the <literal>User groups</literal> popup menu
365 <literal>Administration</literal> and next to the field 400 appears:</para>
366 <literal>Groups</literal>, click <literal>Add</literal>. In this
367 screen:</para>
368 401
369 <itemizedlist> 402 <itemizedlist>
370 <listitem> 403 <listitem>
@@ -381,20 +414,17 @@
381 </itemizedlist> 414 </itemizedlist>
382 415
383 <mediaobject> 416 <mediaobject>
384 <imageobject role="fop"> 417 <imageobject>
385 <imagedata contentwidth="600" fileref="images/Zabbix_User.svg" /> 418 <imagedata align="center" contentwidth="600"
386 </imageobject> 419 fileref="images/Zabbix_AdminUserSelectGroup.svg" />
387
388 <imageobject role="html">
389 <imagedata fileref="images/Zabbix_User.png" />
390 </imageobject> 420 </imageobject>
391 </mediaobject> 421 </mediaobject>
392 </listitem> 422 </listitem>
393 423
394 <listitem> 424 <listitem>
395 <para>Next select the <literal>Media</literal> tab and and click 425 <para>Next, select the <literal>Media</literal> tab and click
396 <literal>Add</literal> to create and modify a new media type. A 426 <literal>Add</literal> to create and modify a new media type. A
397 popup menu will appear for <literal>New Media</literal>, fill each 427 popup menu will appear for <literal>New Media</literal>. Fill each
398 field with the values below:</para> 428 field with the values below:</para>
399 429
400 <itemizedlist> 430 <itemizedlist>
@@ -404,8 +434,7 @@
404 434
405 <listitem> 435 <listitem>
406 <para>Send to: <literal>e.g. 436 <para>Send to: <literal>e.g.
407 rabbit://rabbit_user:rabbit_pass@127.0.0.1:5672/ ---</literal> 437 rabbit://nova:Q1Vt9iocA8OpXKOPoUYOLKie@192.168.0.4:5673/</literal></para>
408 Vitrage message bus url.</para>
409 438
410 <para>You need to search for this in 439 <para>You need to search for this in
411 <literal>/etc/vitrage/vitrage.conf or in /etc/nova/nova.conf 440 <literal>/etc/vitrage/vitrage.conf or in /etc/nova/nova.conf
@@ -426,24 +455,23 @@
426 </listitem> 455 </listitem>
427 456
428 <listitem> 457 <listitem>
429 <para>Click <literal>Update</literal></para> 458 <para>Click <literal>Add</literal> and then
459 <literal>Update</literal> to save your changes.</para>
430 </listitem> 460 </listitem>
431 </itemizedlist> 461 </itemizedlist>
432 462
433 <mediaobject> 463 <mediaobject>
434 <imageobject role="fop"> 464 <imageobject>
435 <imagedata fileref="images/Zabbix_MediaNotifications.svg" /> 465 <imagedata align="center" contentwidth="600"
436 </imageobject> 466 fileref="images/Zabbix_AdminUserMediaAdd.svg" />
437
438 <imageobject role="html">
439 <imagedata fileref="images/Zabbix_MediaNotifications.png" />
440 </imageobject> 467 </imageobject>
441 </mediaobject> 468 </mediaobject>
442 </listitem> 469 </listitem>
443 470
444 <listitem> 471 <listitem>
445 <para>To configure an action, select <literal>Actions</literal> 472 <para>To configure an action, under the
446 under the <literal>Configuration</literal> tab. Then, under the 473 <literal>Configuration</literal> tab select
474 <literal>Actions</literal>. Then, under the
447 <literal>Action</literal> tab, fill in the parameter fields with the 475 <literal>Action</literal> tab, fill in the parameter fields with the
448 values below and click <literal>Add</literal></para> 476 values below and click <literal>Add</literal></para>
449 477
@@ -471,14 +499,10 @@ priority={TRIGGER.NSEVERITY}
471lastchange={EVENT.DATE} {EVENT.TIME}</programlisting> 499lastchange={EVENT.DATE} {EVENT.TIME}</programlisting>
472 500
473 <mediaobject> 501 <mediaobject>
474 <imageobject role="fop"> 502 <imageobject>
475 <imagedata contentwidth="600" 503 <imagedata align="center" contentwidth="600"
476 fileref="images/Zabbix_Action.svg" /> 504 fileref="images/Zabbix_Action.svg" />
477 </imageobject> 505 </imageobject>
478
479 <imageobject role="html">
480 <imagedata fileref="images/Zabbix_Action.png" />
481 </imageobject>
482 </mediaobject> 506 </mediaobject>
483 </listitem> 507 </listitem>
484 </itemizedlist> 508 </itemizedlist>
@@ -486,14 +510,23 @@ lastchange={EVENT.DATE} {EVENT.TIME}</programlisting>
486 510
487 <listitem> 511 <listitem>
488 <para>To send events, in the <literal>Conditions</literal> tab shown 512 <para>To send events, in the <literal>Conditions</literal> tab shown
489 above, make sure <literal>Maintenance status not in 513 below, make sure the label <literal>Maintenance status not in
490 "maintenance"</literal> added and remove <literal>Trigger value = 514 "maintenance"</literal> is added and remove the label
491 PROBLEM</literal>, before saving your changes.</para> 515 <literal>Trigger value = PROBLEM</literal>, before saving your
516 changes.</para>
517
518 <mediaobject>
519 <imageobject>
520 <imagedata align="center" contentwidth="600"
521 fileref="images/Zabbix_ActionConditions.svg" />
522 </imageobject>
523 </mediaobject>
492 </listitem> 524 </listitem>
493 525
494 <listitem> 526 <listitem>
495 <para>In the Operations tab, configure the users you wish to send 527 <para>In the <literal>Operations</literal> tab still under
496 to:</para> 528 <literal>Configuration</literal> and <literal>Actions</literal>,
529 configure the users you wish to send to.</para>
497 530
498 <itemizedlist> 531 <itemizedlist>
499 <listitem> 532 <listitem>
@@ -515,30 +548,21 @@ lastchange={EVENT.DATE} {EVENT.TIME}</programlisting>
515 548
516 <mediaobject> 549 <mediaobject>
517 <imageobject role="fop"> 550 <imageobject role="fop">
518 <imagedata fileref="images/Zabbix_ActionOperations.svg" /> 551 <imagedata align="center" contentwidth="600"
519 </imageobject> 552 fileref="images/Zabbix_ActionOperations.svg" />
520
521 <imageobject role="html">
522 <imagedata fileref="images/Zabbix_ActionOperations.png" />
523 </imageobject> 553 </imageobject>
524 </mediaobject> 554 </mediaobject>
525 </listitem> 555 </listitem>
526
527 <listitem>
528 <para>Click Add both in the screen and in the return
529 screen.</para>
530 </listitem>
531 </itemizedlist> 556 </itemizedlist>
532 </listitem> 557 </listitem>
533 </orderedlist> 558 </orderedlist>
534 559
535 <para>Using these instructions, Zabbix will call the 560 <para>Using these instructions, Zabbix will call the
536 <literal>zabbix_vitrage.py</literal> script, made readily available by 561 <literal>zabbix_vitrage.py</literal> script, made readily available by
537 the Fuel Vitrage Plugin, to pass the arguments described in step 3. The 562 the Fuel Vitrage Plugin, to pass the arguments described above. This
538 <literal>zabbix_vitrage.py</literal> script will then interpret the 563 script will then interpret the parameters and format an AMQP message to
539 parameters and format an AMQP message to be sent to the 564 be sent to the <literal>vitrage.notifications</literal> queue, managed
540 <literal>vitrage.notifications</literal> queue, managed by the 565 by the vitrage-graph service.</para>
541 vitrage-graph service.</para>
542 </section> 566 </section>
543 567
544 <section id="vitrage_config"> 568 <section id="vitrage_config">
@@ -555,59 +579,71 @@ lastchange={EVENT.DATE} {EVENT.TIME}</programlisting>
555 <para>In order to make use of these features, Vitrage supports 579 <para>In order to make use of these features, Vitrage supports
556 additional configurations via <literal>yaml</literal> templates that 580 additional configurations via <literal>yaml</literal> templates that
557 must be placed in <literal>/etc/vitrage/templates</literal> on the nodes 581 must be placed in <literal>/etc/vitrage/templates</literal> on the nodes
558 have the Vitrage role.</para> 582 that have the Vitrage role.</para>
583
584 <mediaobject>
585 <imageobject role="fop">
586 <imagedata align="center" contentwidth="600"
587 fileref="images/Vitrage_ConfigurationRole.svg" />
588 </imageobject>
589
590 <imageobject role="html">
591 <imagedata align="center"
592 fileref="images/Vitrage_ConfigurationRole.png" />
593 </imageobject>
594 </mediaobject>
559 595
560 <para>The example below shows how to program Vitrage to mark failed 596 <para>The example below shows how to program Vitrage to mark failed
561 compute hosts as down and then to change the state of the instances to 597 compute hosts as down and then to change the state of the instances to
562 ERROR, by creating Vitrage deduced alarms.</para> 598 ERROR, by creating Vitrage deduced alarms.</para>
563 599
564 <programlisting>metadata: 600 <programlisting>metadata:
565 name: test_nova_mark_instance_err 601 name: test_mark_inst_err
566 description: test description 602 description: test description
567definitions: 603definitions:
568 entities: 604 entities:
569 - entity: 605 - entity:
570 category: ALARM 606 category: ALARM
571 type: zabbix 607 type: zabbix
572 rawtext: Nova Compute process is not running on {HOST.NAME} 608 rawtext: Nova Compute process is not running on {HOST.NAME}
573 template_id: zabbix_alarm 609 template_id: zabbix_alarm
574 - entity: 610 - entity:
575 category: RESOURCE 611 category: RESOURCE
576 type: nova.host 612 type: nova.host
577 template_id: host 613 template_id: host
578 - entity: 614 - entity:
579 category: RESOURCE 615 category: RESOURCE
580 type: nova.instance 616 type: nova.instance
581 template_id: instance 617 template_id: instance
582 relationships: 618 relationships:
583 - relationship: 619 - relationship:
584 source: zabbix_alarm 620 source: zabbix_alarm
585 relationship_type: on 621 relationship_type: on
586 target: host 622 target: host
587 template_id: nova_process_not_running 623 template_id : nova_process_not_running
588 - relationship: 624 - relationship:
589 source: host 625 source: host
590 target: instance 626 target: instance
591 relationship_type: contains 627 relationship_type: contains
592 template_id : host_contains_instance 628 template_id : host_contains_instance
593scenarios: 629scenarios:
594 - scenario: 630 - scenario:
595 condition: nova_process_not_running and host_contains_instance 631 condition: nova_process_not_running and host_contains_instance
596 actions: 632 actions:
597 - action: 633 - action:
598 action_type: mark_down 634 action_type: mark_down
599 action_target: 635 action_target:
600 target: host 636 target: host
601 - action: 637 - action:
602 action_type: set_instance_state 638 action_type: set_state
603 action_target: 639 action_target:
604 target: instance 640 target: instance
605 - action: 641 properties:
606 action_type: set_state 642 state: ERROR
607 action_target: 643 - action:
608 target: instance 644 action_type: set_instance_state
609 properties: 645 action_target:
610 state: ERROR</programlisting> 646 target: instance</programlisting>
611 647
612 <para>For the action type of fencing, a similar action item must be 648 <para>For the action type of fencing, a similar action item must be
613 added:</para> 649 added:</para>