<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Tushar,</div><div dir="ltr"><br><div>I searched for masakarimonitors.conf on my both controller and compute node in my devstack stein setup, but I did not find this file present anywhere. After I run "sudo python setup.py install" from my controller's "/opt/stack/masakari-monitors" path, it installed the necessary monitoring binaries in /usr/local/bin/ path-</div><div><br></div><div><div>stack@stein-cntlr-masakari:~/masakari-monitors$ ls -ltr /usr/local/bin/masakari*</div><div>-rwxr-xr-x 1 root root  976 May  9 00:21 /usr/local/bin/masakari-processmonitor.sh</div><div>-rwxr-xr-x 1 root root  918 May  9 00:21 /usr/local/bin/masakari-hostmonitor.sh</div><div>-rwxr-xr-x 1 root root  222 May  9 00:45 /usr/local/bin/masakari</div><div>-rwxr-xr-x 1 root root 1854 May 10 00:06 /usr/local/bin/masakari-wsgi</div><div>-rwxr-xr-x 1 root root  158 May 10 00:06 /usr/local/bin/masakari-status</div><div>-rwxr-xr-x 1 root root  158 May 10 00:06 /usr/local/bin/masakari-manage</div><div>-rwxr-xr-x 1 root root  158 May 10 00:06 /usr/local/bin/masakari-engine</div><div>-rwxr-xr-x 1 root root  155 May 10 00:06 /usr/local/bin/masakari-api</div><div>-rwxr-xr-x 1 root root  188 May 12 23:23 /usr/local/bin/masakari-introspectiveinstancemonitor</div><div>-rwxr-xr-x 1 root root  174 May 12 23:23 /usr/local/bin/masakari-processmonitor</div><div>-rwxr-xr-x 1 root root  175 May 12 23:23 /usr/local/bin/masakari-instancemonitor</div><div>-rwxr-xr-x 1 root root  171 May 12 23:23 /usr/local/bin/masakari-hostmonitor</div></div><div><br></div><div>Under /opt/stack/masakari-monitors, I can find below config files inside etc/ -</div><div><div>$ ls -lt etc/masakarimonitors/</div><div>total 24</div><div>-rwxr-xr-x 1 stack stack 1743 May  9 00:21 hostmonitor.conf.sample</div><div>-rw-r--r-- 1 stack stack  173 May  9 00:21 masakarimonitors-config-generator.conf</div><div>-rw-r--r-- 1 stack stack 2188 May  9 00:21 process_list.yaml.sample</div><div>-rwxr-xr-x 1 stack stack  290 May  9 00:21 processmonitor.conf.sample</div><div>-rwxr-xr-x 1 stack stack  239 May  9 00:21 proc.list.sample</div><div>-rw-r--r-- 1 stack stack  144 May  9 00:21 README-masakarimonitors.conf.txt</div></div><div><br></div><div>Following steps from README-masakarimonitors.conf.txt to generate masakarimonitors.conf file by running "tox -egenconfig", I get errors below-</div><div><br></div><div>===Errors===</div><div><div>I/opt/stack/masakari-monitors/.tox/genconfig/include/python3.5m -c ext/_yaml.c -o build/temp.linux-x86_64-3.5/ext/_yaml.o</div><div>    ext/_yaml.c:4:20: fatal error: Python.h: No such file or directory</div><div>    compilation terminated.</div><div>    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1</div><div>    ----------------------------------------</div><div>ERROR: Command "/opt/stack/masakari-monitors/.tox/genconfig/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-_yy7e6rg/PyYAML/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-fbsfgz00/install-record.txt --single-version-externally-managed --compile --install-headers /opt/stack/masakari-monitors/.tox/genconfig/include/site/python3.5/PyYAML" failed with error code 1 in /tmp/pip-install-_yy7e6rg/PyYAML/</div><div><br></div><div>==================================================================================================== log end =====================================================================================================</div><div>ERROR: could not install deps [-r/opt/stack/masakari-monitors/test-requirements.txt]; v = InvocationError(u'/opt/stack/masakari-monitors/.tox/genconfig/bin/pip install -chttps://<a href="http://releases.openstack.org/constraints/upper/stein">releases.openstack.org/constraints/upper/stein</a> -r/opt/stack/masakari-monitors/test-requirements.txt', 1)</div><div>____________________________________________________________________________________________________ summary _____________________________________________________________________________________________________</div><div>ERROR:   genconfig: could not install deps [-r/opt/stack/masakari-monitors/test-requirements.txt]; v = InvocationError(u'/opt/stack/masakari-monitors/.tox/genconfig/bin/pip install -chttps://<a href="http://releases.openstack.org/constraints/upper/stein">releases.openstack.org/constraints/upper/stein</a> -r/opt/stack/masakari-monitors/test-requirements.txt', 1)</div></div><div>===Errors END===</div><div><br></div><div>I also get this same errors  when I try to generate masakarimonitors.conf file on my compute host after installing masakari monitors binaries on it.</div><div><br></div><div>As mentioned by you earlier in this thread, Masakari dev guys are going to add these monitoring processes in devstack Train release. So my queries are -</div><div><br></div><div>1. whether devstack stein currently does not support these monitoring processes as of now? If not, whether Masakari service can be utilized fully using the normal Masakari Stein release branch integrating it with the other services, not using this devstack version of Masakari what I am trying in my test multi host setup?</div><div><br></div><div>Can you please provide me the documentation link for how to integrate Masakari and its additional sub binaries to existing openstack services under stein release.</div><div><br></div><div>2. whether Train Masakari main release and Devstack release will completely support Masakari monitoring services which in turn gives Masakari its full features to utilize in openstack?</div><div>If yes, then I will wait for the next Train release to have this feature work completely.</div><div><br></div><div>thank you for support and help on this as I am trying to put these pieces together at my end.</div><div><br></div><div>Sorry for my long thread.</div><div><br></div><div>best regards,</div><div>Sanjay</div><div><br></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 30, 2019 at 8:47 PM Patil, Tushar <<a href="mailto:Tushar.Patil@nttdata.com">Tushar.Patil@nttdata.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Sanjay,<br>
<br>
You will need to add following config options in masakarimonitors.conf under the [api] section.<br>
<br>
auth_url<br>
password<br>
project_name<br>
username<br>
user_domain_id<br>
project_domain_id<br>
region<br>
<br>
We have added support to install and run following masakari-monitors in the current master planned to available in Train cycle.<br>
<br>
1. process monitor<br>
2. instance monitor<br>
3. introspective instance monitor<br>
<br>
We are still working on adding support to install and run host monitors using devstack.<br>
<br>
Regards,<br>
Tushar Patil<br>
<br>
<br>
<br>
<br>
________________________________________<br>
From: Sanjay K <<a href="mailto:isanjayk5@gmail.com" target="_blank">isanjayk5@gmail.com</a>><br>
Sent: Tuesday, April 30, 2019 10:04:21 PM<br>
To: Patil, Tushar<br>
Cc: <a href="mailto:openstack-discuss@lists.openstack.org" target="_blank">openstack-discuss@lists.openstack.org</a><br>
Subject: Re: [devstack][stein][masakari]Using Masakari in multihost devstack stein setup<br>
<br>
Hi Tushar,<br>
Thanks you for your quick response on this. As I have already included the masakari-monitors plugin in my compute host's local.conf file in devstack, I have the repo present in my VM. Following the steps to set up the conf files and start the necessary masakari monitoring processes from this link <a href="https://github.com/openstack/masakari-monitors/blob/master/README.rst" rel="noreferrer" target="_blank">https://github.com/openstack/masakari-monitors/blob/master/README.rst</a> I get the same error when I start the 3 monitoring processes (masakari-processmonitor, masakari-hostmonitor, masakari-instancemonitor) -<br>
<br>
stack@devstack-:/etc/masakarimonitors$ masakari-processmonitor<br>
Traceback (most recent call last):<br>
  File "/usr/local/bin/masakari-processmonitor", line 10, in <module><br>
    sys.exit(main())<br>
  File "/usr/local/lib/python2.7/dist-packages/masakarimonitors/cmd/processmonitor.py", line 31, in main<br>
    config.parse_args(sys.argv)<br>
  File "/usr/local/lib/python2.7/dist-packages/masakarimonitors/config.py", line 32, in parse_args<br>
    default_config_files=default_config_files)<br>
  File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2127, in __call__<br>
    self._check_required_opts()<br>
  File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2865, in _check_required_opts<br>
    raise RequiredOptError(<a href="http://opt.name" rel="noreferrer" target="_blank">opt.name</a><<a href="http://opt.name" rel="noreferrer" target="_blank">http://opt.name</a>>, group)<br>
oslo_config.cfg.RequiredOptError: value required for option auth-url in group [api]<br>
<br>
After masakari setup I can file all the required binaries in my /usr/local/bin directory -<br>
<br>
$ ls -ltr /usr/local/bin/masakari*<br>
-rwxr-xr-x 1 root root  222 Apr 17 01:55 /usr/local/bin/masakari<br>
-rwxr-xr-x 1 root root  976 Apr 21 23:41 /usr/local/bin/masakari-processmonitor.sh<br>
-rwxr-xr-x 1 root root  918 Apr 21 23:41 /usr/local/bin/masakari-hostmonitor.sh<br>
-rwxr-xr-x 1 root root 1854 Apr 29 01:01 /usr/local/bin/masakari-wsgi<br>
-rwxr-xr-x 1 root root  158 Apr 29 01:01 /usr/local/bin/masakari-status<br>
-rwxr-xr-x 1 root root  158 Apr 29 01:01 /usr/local/bin/masakari-manage<br>
-rwxr-xr-x 1 root root  158 Apr 29 01:01 /usr/local/bin/masakari-engine<br>
-rwxr-xr-x 1 root root  155 Apr 29 01:01 /usr/local/bin/masakari-api<br>
-rwxr-xr-x 1 root root  174 Apr 30 04:34 /usr/local/bin/masakari-processmonitor<br>
-rwxr-xr-x 1 root root  188 Apr 30 04:34 /usr/local/bin/masakari-introspectiveinstancemonitor<br>
-rwxr-xr-x 1 root root  175 Apr 30 04:34 /usr/local/bin/masakari-instancemonitor<br>
-rwxr-xr-x 1 root root  171 Apr 30 04:34 /usr/local/bin/masakari-hostmonitor<br>
<br>
Please let me know is there any issue with my masakari setup with devstack and where can I find latest documentation on Masakari for using in devstack.<br>
<br>
thanks for your pointer,<br>
best regards,<br>
Sanjay<br>
<br>
On Tue, Apr 30, 2019 at 3:24 AM Patil, Tushar <<a href="mailto:Tushar.Patil@nttdata.com" target="_blank">Tushar.Patil@nttdata.com</a><mailto:<a href="mailto:Tushar.Patil@nttdata.com" target="_blank">Tushar.Patil@nttdata.com</a>>> wrote:<br>
Hi Sanjay,<br>
<br>
In case of masakari-processmonitor, it only monitors processes as mentioned in the process_list.yaml which by default monitors libvirt-bin, nova-compute, instancemonitor, hostmonitor and sshd processes.<br>
<br>
To test process failure, you should terminate any of the above processes.<br>
<br>
In case of instancemonitor, you can shutdown the VM to test whether a notification is sent or not.<br>
<br>
>> I have asked the same question in openstack forum, but not got a single response.<br>
Sorry, I didn't notice your question on forum. I have replied above comment on forum as well.<br>
<br>
Regards,<br>
Tushar Patil<br>
<br>
________________________________________<br>
From: Sanjay K <<a href="mailto:isanjayk5@gmail.com" target="_blank">isanjayk5@gmail.com</a><mailto:<a href="mailto:isanjayk5@gmail.com" target="_blank">isanjayk5@gmail.com</a>>><br>
Sent: Monday, April 29, 2019 6:18:20 PM<br>
To: <a href="mailto:openstack-discuss@lists.openstack.org" target="_blank">openstack-discuss@lists.openstack.org</a><mailto:<a href="mailto:openstack-discuss@lists.openstack.org" target="_blank">openstack-discuss@lists.openstack.org</a>><br>
Subject: [devstack][stein][masakari]Using Masakari in multihost devstack stein setup<br>
<br>
Hi all,<br>
I have been trying to setup Masakari in a 3 node setup - 1 controller + 2 computes with minimal openstack services installed using devstack stable/stein version. All these 3 nodes are Ubuntu 16.04 VMs. I have included Masakari plugin in controller's local.conf file and included masakari-monitor in both compute node's local.conf file. I want to test out VM/process failure in my test environment. To do so, when I kill one of the qemu process created for one instance (cirros 256 flavor VMs) on one of the compute with root user login, I did not see any notification under my horizon/instance-ha section for this (I have already created Segments, Hosts under instance-ha in horizon). Also the killed process is not restarted by Masakari.<br>
<br>
I have asked the same question in openstack forum, but not got a single response.<br>
<br>
masakari-notification-on-process-failure<<a href="https://ask.openstack.org/en/question/121490/masakari-notification-on-process-failure/" rel="noreferrer" target="_blank">https://ask.openstack.org/en/question/121490/masakari-notification-on-process-failure/</a>><br>
<br>
Whether any additional services related to Masakari need to be configured on compute hosts to detect failures since I did not find exactly the documentation related inside devstack for this.<br>
<br>
Please let me know if I am missing anything my set up. Any helps and pointers are most appreciated.<br>
<br>
thank you for your reply.<br>
<br>
best regards<br>
Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.<br>
Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged, confidential, and proprietary data. If you are not the intended recipient, please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.<br>
</blockquote></div>