<div dir="ltr">Hi Gaetan,<div>I try to generate config file by using this command tox -egenconfig on top level of masakari but the output is error, is this masakari still in beta version ?</div><div>[root@compute1 masakari-monitors]# tox -egenconfig<br>genconfig create: /root/masakari-monitors/.tox/genconfig<br>ERROR: InterpreterNotFound: python3<br>_____________________________________________________________ summary ______________________________________________________________<br>ERROR:  genconfig: InterpreterNotFound: python3<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 8, 2019 at 3:24 PM Vu Tan <<a href="mailto:vungoctan252@gmail.com">vungoctan252@gmail.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"><div dir="ltr">Hi,<div>Thanks a lot for your reply, I install pacemaker/corosync, masakari-api, maskari-engine on controller node, and I run masakari-api with this command: masakari-api, but I dont know whether the process is running like that or is it just hang there, here is what it shows when I run the command, I leave it there for a while but it does not change anything :</div><div>[root@controller masakari]# masakari-api<br>2019-07-08 15:21:09.946 30250 INFO masakari.api.openstack [-] Loaded extensions: ['extensions', 'notifications', 'os-hosts', 'segments', 'versions']<br>2019-07-08 15:21:09.955 30250 WARNING keystonemiddleware._common.config [-] The option "__file__" in conf is not known to auth_token<br>2019-07-08 15:21:09.955 30250 WARNING keystonemiddleware._common.config [-] The option "here" in conf is not known to auth_token<br>2019-07-08 15:21:09.960 30250 WARNING keystonemiddleware.auth_token [-] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True.<br>2019-07-08 15:21:09.974 30250 INFO masakari.wsgi [-] masakari_api listening on <a href="http://127.0.0.1:15868" target="_blank">127.0.0.1:15868</a><br>2019-07-08 15:21:09.975 30250 INFO oslo_service.service [-] Starting 4 workers<br>2019-07-08 15:21:09.984 30274 INFO masakari.masakari_api.wsgi.server [-] (30274) wsgi starting up on <a href="http://127.0.0.1:15868" target="_blank">http://127.0.0.1:15868</a><br>2019-07-08 15:21:09.985 30275 INFO masakari.masakari_api.wsgi.server [-] (30275) wsgi starting up on <a href="http://127.0.0.1:15868" target="_blank">http://127.0.0.1:15868</a><br>2019-07-08 15:21:09.992 30277 INFO masakari.masakari_api.wsgi.server [-] (30277) wsgi starting up on <a href="http://127.0.0.1:15868" target="_blank">http://127.0.0.1:15868</a><br>2019-07-08 15:21:09.994 30276 INFO masakari.masakari_api.wsgi.server [-] (30276) wsgi starting up on <a href="http://127.0.0.1:15868" target="_blank">http://127.0.0.1:15868</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 7, 2019 at 7:37 PM Gaëtan Trellu <<a href="mailto:gaetan.trellu@incloudus.com" target="_blank">gaetan.trellu@incloudus.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"><div dir="auto"><div>Hi Vu Tan,</div><div dir="auto"><br></div><div dir="auto">Masakari documentation doesn't really exist... I had to figured some stuff by myself to make it works into Kolla project.</div><div dir="auto"><br></div><div dir="auto">On controller nodes you need:</div><div dir="auto"><br></div><div dir="auto">- pacemaker</div><div dir="auto">- corosync</div><div dir="auto">- masakari-api (openstack/masakari repository)</div><div dir="auto">- masakari- engine (<span style="font-family:sans-serif">openstack/masakari repository)</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">On compute nodes you need:</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><font face="sans-serif">- pacemaker-remote (integrated to pacemaker cluster as a resource)</font></div><div dir="auto"><font face="sans-serif">- masakari- hostmonitor (</font><span style="font-family:sans-serif">openstack/masakari-monitor repository)</span></div><div dir="auto"><span style="font-family:sans-serif">- masakari-instancemonitor </span><font face="sans-serif">(</font><span style="font-family:sans-serif">openstack/masakari-monitor repository)</span></div><div dir="auto"><span style="font-family:sans-serif">- </span><span style="font-family:sans-serif">masakari-processmonitor </span><font face="sans-serif">(</font><span style="font-family:sans-serif">openstack/masakari-monitor repository)</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">For masakari-hostmonitor, the service needs to have access to systemctl command (make sure you are not using sysvinit).</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">For masakari-monitor, the masakari-monitor.conf is a bit different, you will have to configure the [api] section properly.</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><font face="sans-serif">RabbitMQ needs to be configured (as transport_url) on masakari-api and masakari-engine too.</font></div><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif">Please check this review[1], you will have masakari.conf and masakari-monitor.conf configuration examples.</font></div><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif">[1] <a href="https://review.opendev.org/#/c/615715" target="_blank">https://review.opendev.org/#/c/615715</a></font></div><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif">Gaëtan</font></div><div dir="auto"><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On Jul 7, 2019 12:08 AM, Vu Tan <<a href="mailto:vungoctan252@gmail.com" target="_blank">vungoctan252@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail-m_6772589420989496623gmail-m_281874007837329394quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="padding:20px 0px 0px;font-size:0.875rem;font-family:roboto,robotodraft,helvetica,arial,sans-serif"><br><table cellpadding="0" style="border-collapse:collapse;margin-top:0px;width:auto;font-size:0.875rem;letter-spacing:0.2px;display:block"><tbody style="display:block"><tr style="height:auto"><td style="white-space:nowrap;padding:0px;vertical-align:top;width:1287.47px;line-height:20px;display:block;max-height:20px"><table cellpadding="0" style="border-collapse:collapse;table-layout:fixed;width:1287px"><tbody><tr><td><h3 style="font-size:0.75rem;font-weight:inherit;margin:inherit;text-overflow:ellipsis;letter-spacing:0.3px;color:rgb(95,99,104);line-height:20px"><span style="color:rgb(32,33,36);font-size:0.875rem;font-weight:bold;display:inline;vertical-align:top;letter-spacing:0.2px;line-height:20px">Vu Tan</span> <span style="vertical-align:top;color:rgb(85,85,85)"><<a href="mailto:vungoctan252@gmail.com" target="_blank">vungoctan252@gmail.com</a>></span></h3></td></tr></tbody></table></td><td style="text-align:right;white-space:nowrap;vertical-align:top;display:block;max-height:20px"><div style="padding:0px"><span style="vertical-align:top;margin:0px;font-size:0.75rem;letter-spacing:0.3px;color:rgb(95,99,104);display:block;line-height:20px">10:30 AM (35 minutes ago)</span><div style="display:inline-block;height:20px;margin-left:20px;outline:0px"><span style="height:20px;text-align:center;width:20px;padding:0px;margin:0px;border:none;outline:none"></span></div></div></td><td style="text-align:right;white-space:nowrap;vertical-align:top"></td><td rowspan="2" style="text-align:right;white-space:nowrap;vertical-align:top;display:block;max-height:20px"><div style="border-radius:2px 0px 0px 2px;font-size:0.875rem;text-align:center;margin:0px 0px 0px 20px;height:20px;line-height:18px;min-width:0px;outline:none;padding:0px;background:transparent;color:rgb(68,68,68);border:none"><img src="https://mail.google.com/mail/u/0/images/cleardot.gif" alt="" style="background: url("https://ci4.googleusercontent.com/proxy/-shEvx-z5X_fEDdygs_6-SdWItpUTEcgMhdi64S2gEQdlAw7AgDLgZgL9knwTZcLnco2HBKyc3r6-IyG2unMtUnM5sWrGcndeo8hVM0DtNVTZs1l-XeGQZwZSfEmbsM=s0-d-e1-ft#https://www.gstatic.com/images/icons/material/system/1x/reply_black_20dp.png") 50% 50% / 20px no-repeat; height: 20px; margin: 0px; vertical-align: middle; width: 20px; display: inline-block; padding: 0px;"></div><div style="border-radius:0px 2px 2px 0px;font-size:0.875rem;text-align:center;margin:0px 0px 0px 20px;height:20px;line-height:18px;min-width:0px;outline:none;padding:0px;background:transparent;color:rgb(68,68,68);border:none"><img src="https://mail.google.com/mail/u/0/images/cleardot.gif" alt="" style="background: url("https://ci4.googleusercontent.com/proxy/mJzqsKRuAD8-RYamBI_7Gla-DDFv4vv104YshicxGbhIJ5c3poYrP_gV04dbMWFm4s90taCnijsbl0VRAhekiWC7qT8PwfU6Xsec1h5RCLfjmwpvJVHZju6oO6hoPRN0ehot=s0-d-e1-ft#https://www.gstatic.com/images/icons/material/system/1x/more_vert_black_20dp.png") 50% 50% / 20px no-repeat; height: 20px; width: 20px; margin: 0px; vertical-align: middle; display: inline-block; padding: 0px;"></div></td></tr><tr style="height:auto"><td colspan="3"><table cellpadding="0" style="border-collapse:collapse;table-layout:fixed;white-space:nowrap;width:1560px"><tbody><tr><td style="text-overflow:ellipsis;line-height:20px"><div style="max-width:92%;display:inline-block"><span style="vertical-align:top;color:rgb(95,99,104);font-size:0.75rem;letter-spacing:0.3px;line-height:20px">to <span dir="ltr" style="vertical-align:top">openstack-discuss</span></span></div><div style="margin-left:4px;vertical-align:top;border:none;outline:none"><img src="https://mail.google.com/mail/u/0/images/cleardot.gif" alt="" style="background: url("https://ci4.googleusercontent.com/proxy/nb89mgvybzzZndT14BkrHFj720uLPihffvG-uYJWQeuNOIlAaEuJX2OF5zIeJW93m-jWsL29Bj47NrnC15FWxViax_xXJyrsYcybpLzsTh6neG4exOtFrkvICM9US-nnLQGMhxz4X00a=s0-d-e1-ft#https://www.gstatic.com/images/icons/material/system/1x/arrow_drop_down_black_20dp.png") 50% 50% / 20px no-repeat; padding: 0px; vertical-align: baseline; height: 20px; width: 20px; border: none; margin: 0px 0px 0px auto;"></div></td></tr></tbody></table></td></tr></tbody></table></div><div style="font-family:roboto,robotodraft,helvetica,arial,sans-serif;font-size:medium"><div></div><div></div><div></div></div><div style="font-family:roboto,robotodraft,helvetica,arial,sans-serif;font-size:medium"><div></div><div></div><div style="font-size:0.875rem;direction:ltr;margin:8px 0px 0px;padding:0px"><div style="font-stretch:normal;font-size:small;line-height:1.5;font-family:arial,helvetica,sans-serif"><div>Sorry, I resend this email because I realized that I lacked of prefix on this email's subject</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Hi,<div><br></div><div><span style="color:rgb(36,41,46);font-family:-apple-system,blinkmacsystemfont,"segoe ui",helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px">I would like to use Masakari and I'm having trouble finding a step by step or other documentation to get started with. Which part should be installed on controller, which is should be on compute, and what is the prerequisite to install masakari, I have installed corosync and pacemaker on compute and controller nodes, , what else do I need to do ?</span>  step I have done so far: </div><div>- installed corosync/pacemaker</div><div>- install masakari on compute node on this github repo: <a href="https://github.com/openstack/masakari" target="_blank">https://github.com/openstack/masakari</a><br></div><div>- add masakari in to mariadb</div><div>here is my configuration file of masakari.conf, do you mind to take a look at it, if I have misconfigured anything? </div><div><br></div><div>[DEFAULT]<br>enabled_apis = masakari_api<br><br># Enable to specify listening IP other than default<br>masakari_api_listen = controller<br># Enable to specify port other than default<br>masakari_api_listen_port = 15868<br>debug = False<br>auth_strategy=keystone<br><br>[wsgi]<br># The paste configuration file path<br>api_paste_config = /etc/masakari/api-paste.ini<br><br>[keystone_authtoken]<br>www_authenticate_uri = <a href="http://controller:5000/" target="_blank">http://controller:5000</a><br>auth_url = <a href="http://controller:5000/" target="_blank">http://controller:5000</a><br>auth_type = password<br>project_domain_id = default<br>user_domain_id = default<br>project_name = service<br>username = masakari<br>password = P@ssword<br><br>[database]<br>connection = mysql+pymysql://masakari:P@ssword@controller/masakari</div></div></div></div></div></div>
</blockquote></div><br></div></div></div></blockquote></div>
</blockquote></div>