We can configure Masakari by following two ways: 1. Installed along with devstack by enabling Masakari in local.conf [[local|localrc]] HOST_IP= FLAT_INTERFACE=eth0 LOGFILE=/opt/stack/logs/stack.sh.log LOG_DAYS=3 ADMIN_PASSWORD=admin MYSQL_PASSWORD=admin RABBIT_PASSWORD=admin SERVICE_PASSWORD=admin SERVICE_TOKEN=xyzpdqlazydog VOLUME_BACKING_FILE_SIZE=97280M enable_plugin masakari https://opendev.org/openstack/masakari 2. Installed Masakari separately if openstack is installed earlier using devstack a. Prerequisites: i. Openstack installation using devstack b. Steps: i. DB creation 1. Masakari uses taskflow internally to log notification process flow So along with Masakari DB tables, ‘taskflow’ DB tables are also created. ‘taskflow’ DB creation has dependency on ‘sqlalchemy_utils’, so installed separately using pip install sqlalchemy_utils 2. Create database at sql CREATE DATABASE masakari CHARACTER SET utf8; ii. User and endpoint creation Followed ‘https://opendev.org/openstack/masakari’ for user and endpoint creation: openstack user create --password-prompt masakari (given password as masakari) openstack role add --project service --user masakari admin openstack service create --name masakari --description "masakari high availability" instance-ha openstack endpoint create --region RegionOne masakari admin http:// /instance-ha/v1/$\(tenant_id\)s openstack endpoint create --region RegionOne masakari public http:// /instance-ha/v1/$\(tenant_id\)s openstack endpoint create --region RegionOne masakari internal http:// /instance-ha/v1/$\(tenant_id\)s iii. Pull the repositories from github under /opt/stack’, do not installed yet. git clone https://opendev.org/openstack/masakari git clone https://github.com/openstack/python-masakariclient.git iv. Generate masakari configuration file 1. Go to ‘opt/stack/masakari’ and execute below command, this will generate ‘masakari.conf.sample’, sample configuration file at ‘/opt/stack/masakari/etc/masakari/’ tox -e genconfig 2. Rename this sample file as ‘masakari.conf’ and edit below section only. Note that password configured under [keystone_authtoken] section is same as we entered during user creation in earlier step. Once edit done, move this file under ‘etc/masakari’ [DEFAULT] transport_url = rabbit://stackrabbit:admin@:5672/ graceful_shutdown_timeout = 5 os_privileged_user_tenant = service os_privileged_user_password = admin os_privileged_user_auth_url = http:// /identity os_privileged_user_name = nova logging_exception_prefix = %(color)s%(asctime)s.%(msecs)03d TRACE %(name)s [01;35m%(instance)s[00m logging_debug_format_suffix = [00;33mfrom (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d[00m logging_default_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [[00;36m-%(color)s] [01;35m%(instance)s%(color)s%(message)s[00m logging_context_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [[01;36m%(request_id)s [00;36m%(project_name)s %(user_name)s%(color)s] [01;35m%(instance)s%(color)s%(message)s[00m use_syslog = False debug = True masakari_api_workers = 2 [database] connection = mysql+pymysql://root:admin@127.0.0.1/masakari?charset=utf8 [keystone_authtoken] memcached_servers = localhost:11211 cafile = /opt/stack/data/ca-bundle.pem project_domain_name = Default project_name = service user_domain_name = Default password = masakari username = masakari auth_url = http:// /identity auth_type = password [taskflow] connection = mysql+pymysql://root:admin@127.0.0.1/masakari?charset=utf8 v. Copy 'masakari/etc/api-paste' files to location as below: a. Copy below files to ‘/etc/masakari’ location ii. api-paste vii. Now install ‘masakari’ and client 1. Go to /opt/stack/masakari’ and execute python setup.py install 2. run below to sync Database masakari-manage db sync 3. Go to /opt/stack/python-masakariclient’ and execute python setup.py install viii. Verify services by executing masakari-api masakari-engine ix. Masakari provides below CLI commands, use ‘help’ keyword for argument list 1. Segment related 'segment-create', 'segment-delete', 'segment-list', 'segment-show', 'segment-update' 2. Host related 'host-create', 'host-delete', 'host-list', 'host-show', 'host-update', 3. Notification related 'notification-create', 'notification-list', 'notification-show', [1]: https://uwsgi-docs.readthedocs.io/en/latest/Configuration.html [2]: https://github.com/openstack/devstack/blob/master/functions-common#L1582