Monitoring and notification tools for Masakari
Go to file
shilpa.devharakar 3ffd576b79 Fix masakari-monitor connection issue
From openstacksdk version 0.11.1 onwards, there is no way
you can add service to the connection. Hence we need to monkey
_find_service_filter_class method from sdk to allow
to point to thee correct service filter class from masakariclient.

Solution provided here is not going to work in sdk 0.9.19 and
0.10.0 versions. Because service descriptor is not supported
in 0.9.19 and 0.10.0 sdk versions and profile parameter doesn't
work correctly during connection initialization.

Also solution provided here is not going to work in sdk 0.13.0
and above, it will still fails with below error
"'Connection' object has no attribute 'ha'"
this is because 'Connection' object expecting instance_ha not ha

Co-Author: tpatil <tushar.vitthal.patil@gmail.com>
Change-Id: Ic10d1b380abc8b3b6cc38015c9c3bf4ab7705a0c
Depends-On: I24ec493f3333a5b3f6bfed9395c921fb28500065
Closes-Bug: #1779752
2018-09-04 18:12:28 +05:30
doc/source Initial Cookiecutter Commit. 2016-11-01 13:46:13 +09:00
etc/masakarimonitors Remove an extra word in process_list.yaml.sample 2017-07-31 15:58:59 +09:00
masakarimonitors Fix masakari-monitor connection issue 2018-09-04 18:12:28 +05:30
releasenotes Add warning messages about deprecation to process/host monitor 2017-02-15 11:16:01 +00:00
.coveragerc Initial Cookiecutter Commit. 2016-11-01 13:46:13 +09:00
.gitignore Initial Cookiecutter Commit. 2016-11-01 13:46:13 +09:00
.gitreview Update .gitreview for stable/queens 2018-03-03 13:51:42 +00:00
.mailmap Initial Cookiecutter Commit. 2016-11-01 13:46:13 +09:00
.testr.conf Initial Cookiecutter Commit. 2016-11-01 13:46:13 +09:00
.zuul.yaml Fix masakari-monitor connection issue 2018-09-04 18:12:28 +05:30
CONTRIBUTING.rst Initial Cookiecutter Commit. 2016-11-01 13:46:13 +09:00
HACKING.rst Remove log translations 2017-06-19 16:55:00 +09:00
LICENSE Initial Cookiecutter Commit. 2016-11-01 13:46:13 +09:00
MANIFEST.in Initial Cookiecutter Commit. 2016-11-01 13:46:13 +09:00
README.rst Fix syntax errors of README.rst 2017-03-03 14:52:09 +09:00
babel.cfg Initial Cookiecutter Commit. 2016-11-01 13:46:13 +09:00
requirements.txt Fix masakari-monitor connection issue 2018-09-04 18:12:28 +05:30
setup.cfg Use os-testr and add PY35 support 2017-07-26 16:19:24 +05:30
setup.py Updated from global requirements 2017-08-11 11:52:33 +00:00
test-requirements.txt Updated from global requirements 2017-08-11 11:52:33 +00:00
tox.ini Update UPPER_CONSTRAINTS_FILE for stable/queens 2018-03-03 13:51:48 +00:00

README.rst

masakari-monitors

Monitors for Masakari

Monitors for Masakari provides Virtual Machine High Availability (VMHA) service for OpenStack clouds by automatically detecting the failure events such as VM process down, provisioning process down, and nova-compute host failure. If it detect the events, it sends notifications to the masakari-api.

Original version of Masakari: https://github.com/ntt-sic/masakari

Tokyo Summit Session: https://www.youtube.com/watch?v=BmjNKceW_9A

Monitors for Masakari is distributed under the terms of the Apache License, Version 2.0. The full terms and conditions of this license are detailed in the LICENSE file.

Configure masakari-monitors

  1. Clone masakari using:

    $ git clone https://github.com/openstack/masakari-monitors.git
  2. Create masakarimonitors directory in /etc/.

  3. Run setup.py from masakari-monitors:

    $ sudo python setup.py install
  4. Copy masakarimonitors.conf and process_list.yaml files from masakari-monitors/etc/ to /etc/masakarimonitors folder and make necessary changes to the masakarimonitors.conf and process_list.yaml files. To generate the sample masakarimonitors.conf file, run the following command from the top level of the masakari-monitors directory:

    $ tox -egenconfig
  5. To run masakari-processmonitor, masakari-hostmonitor and masakari-instancemonitor simply use following binary:

    $ masakari-processmonitor
    $ masakari-hostmonitor
    $ masakari-instancemonitor

If you are intend to use bash scripts of masakari-processmonitor and masakari-hostmonitor, use following steps to install them. However, those bash shell scripts are deprecated as of the Ocata release and will be removed in the Queens release. Use above masakari-hostmonitors implemented in python instead.

  1. Clone masakari using:

    $ git clone https://github.com/openstack/masakari-monitors.git
  2. Create masakarimonitors directory in /etc/.

  3. Remove '.sample' from files hostmonitor.conf.sample, processmonitor.conf.sample and proc.list.sample which exist at masakari-monitors/etc/.

  4. Copy hostmonitor.conf, processmonitor.conf and proc.list files from masakari-monitors/etc/ to /etc/masakarimonitors folder and make necessary changes to the hostmonitor.conf, processmonitor.conf and proc.list files.

  5. To run bash scripts of masakari-processmonitor and masakari-hostmonitor simply use following binary:

    $ masakari-processmonitor.sh /etc/masakarimonitors/processmonitor.conf /etc/masakarimonitors/proc.list
    $ masakari-hostmonitor.sh /etc/masakarimonitors/hostmonitor.conf

Features

  • TODO