add notification_driver config in nova.conf
[doctor.git] / docs / configguide / featureconfig.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3
4 Doctor Configuration
5 ====================
6
7 ..
8     This section will be compiled into OPNFV composite document.
9
10 Doctor Inspector
11 ----------------
12
13 Doctor Inspector is suggested to be placed in one of the controller nodes,
14 but it can be put on any host where Doctor Monitor can reach and accessible
15 to the OpenStack Controller (Nova).
16
17 Make sure OpenStack env parameters are set properly, so that Doctor Inspector
18 can issue admin actions such as compute host force-down and state update of VM.
19
20 Then, you can configure Doctor Inspector as follows:
21
22 .. code-block:: bash
23
24     git clone https://gerrit.opnfv.org/gerrit/doctor -b stable/brahmaputra
25     cd doctor/tests
26     INSPECTOR_PORT=12345
27     python inspector.py $INSPECTOR_PORT > inspector.log 2>&1 &
28
29 Doctor Monitor
30 --------------
31
32 Doctor Monitors are suggested to be placed in one of the controller nodes,
33 but those can be put on any host which is reachable to target compute host and
34 accessible to the Doctor Inspector.
35 You need to configure Monitors for all compute hosts one by one.
36
37 Make sure OpenStack env parameters are set properly, so that Doctor Inspector
38 can issue admin actions such as compute host force-down and state update of VM.
39
40 Then, you can configure Doctor Monitor as follows:
41
42 .. code-block:: bash
43
44     git clone https://gerrit.opnfv.org/gerrit/doctor -b stable/brahmaputra
45     cd doctor/tests
46     INSPECTOR_PORT=12345
47     COMPUTE_HOST='overcloud-novacompute-0'
48     sudo python monitor.py "$COMPUTE_HOST" \
49         "http://127.0.0.1:$INSPECTOR_PORT/events" > monitor.log 2>&1 &