<div dir="ltr">Hi Gaetan,<div>Thanks for pinpoint this out, silly me that did not notice the simple "error InterpreterNotFound: python3". Thanks a lot, I appreciate it</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 8, 2019 at 9:15 PM <<a href="mailto:gaetan.trellu@incloudus.com">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">Vu Tan,<br>
<br>
About "auth_token" error, you need "os_privileged_user_*" options into <br>
your masakari.conf for the API.<br>
As mentioned previously please have a look here to have an example of <br>
configuration working (for me at least):<br>
<br>
- masakari.conf: <br>
<a href="https://review.opendev.org/#/c/615715/42/ansible/roles/masakari/templates/masakari.conf.j2" rel="noreferrer" target="_blank">https://review.opendev.org/#/c/615715/42/ansible/roles/masakari/templates/masakari.conf.j2</a><br>
- masakari-monitor.conf: <br>
<a href="https://review.opendev.org/#/c/615715/42/ansible/roles/masakari/templates/masakari-monitors.conf.j2" rel="noreferrer" target="_blank">https://review.opendev.org/#/c/615715/42/ansible/roles/masakari/templates/masakari-monitors.conf.j2</a><br>
<br>
About your tox issue make sure you have Python3 installed.<br>
<br>
Gaëtan<br>
<br>
On 2019-07-08 06:08, Vu Tan wrote:<br>
<br>
> Hi Gaetan,<br>
> I try to generate config file by using this command tox -egenconfig on <br>
> top level of masakari but the output is error, is this masakari still <br>
> in beta version ?<br>
> [root@compute1 masakari-monitors]# tox -egenconfig<br>
> genconfig create: /root/masakari-monitors/.tox/genconfig<br>
> ERROR: InterpreterNotFound: python3<br>
> _____________________________________________________________ summary <br>
> ______________________________________________________________<br>
> ERROR:  genconfig: InterpreterNotFound: python3<br>
> <br>
> On Mon, Jul 8, 2019 at 3:24 PM Vu Tan <<a href="mailto:vungoctan252@gmail.com" target="_blank">vungoctan252@gmail.com</a>> wrote:<br>
> Hi,<br>
> Thanks a lot for your reply, I install pacemaker/corosync, <br>
> masakari-api, maskari-engine on controller node, and I run masakari-api <br>
> with this command: masakari-api, but I dont know whether the process is <br>
> running like that or is it just hang there, here is what it shows when <br>
> I run the command, I leave it there for a while but it does not change <br>
> anything :<br>
> [root@controller masakari]# masakari-api<br>
> 2019-07-08 15:21:09.946 30250 INFO masakari.api.openstack [-] Loaded <br>
> extensions: ['extensions', 'notifications', 'os-hosts', 'segments', <br>
> 'versions']<br>
> 2019-07-08 15:21:09.955 30250 WARNING keystonemiddleware._common.config <br>
> [-] The option "__file__" in conf is not known to auth_token<br>
> 2019-07-08 15:21:09.955 30250 WARNING keystonemiddleware._common.config <br>
> [-] The option "here" in conf is not known to auth_token<br>
> 2019-07-08 15:21:09.960 30250 WARNING keystonemiddleware.auth_token [-] <br>
> AuthToken middleware is set with <br>
> keystone_authtoken.service_token_roles_required set to False. This is <br>
> backwards compatible but deprecated behaviour. Please set this to True.<br>
> 2019-07-08 15:21:09.974 30250 INFO masakari.wsgi [-] masakari_api <br>
> listening on <a href="http://127.0.0.1:15868" rel="noreferrer" target="_blank">127.0.0.1:15868</a><br>
> 2019-07-08 15:21:09.975 30250 INFO oslo_service.service [-] Starting 4 <br>
> workers<br>
> 2019-07-08 15:21:09.984 30274 INFO masakari.masakari_api.wsgi.server <br>
> [-] (30274) wsgi starting up on <a href="http://127.0.0.1:15868" rel="noreferrer" target="_blank">http://127.0.0.1:15868</a><br>
> 2019-07-08 15:21:09.985 30275 INFO masakari.masakari_api.wsgi.server <br>
> [-] (30275) wsgi starting up on <a href="http://127.0.0.1:15868" rel="noreferrer" target="_blank">http://127.0.0.1:15868</a><br>
> 2019-07-08 15:21:09.992 30277 INFO masakari.masakari_api.wsgi.server <br>
> [-] (30277) wsgi starting up on <a href="http://127.0.0.1:15868" rel="noreferrer" target="_blank">http://127.0.0.1:15868</a><br>
> 2019-07-08 15:21:09.994 30276 INFO masakari.masakari_api.wsgi.server <br>
> [-] (30276) wsgi starting up on <a href="http://127.0.0.1:15868" rel="noreferrer" target="_blank">http://127.0.0.1:15868</a><br>
> <br>
> On Sun, Jul 7, 2019 at 7:37 PM Gaëtan Trellu <br>
> <<a href="mailto:gaetan.trellu@incloudus.com" target="_blank">gaetan.trellu@incloudus.com</a>> wrote:<br>
> <br>
> Hi Vu Tan,<br>
> <br>
> Masakari documentation doesn't really exist... I had to figured some <br>
> stuff by myself to make it works into Kolla project.<br>
> <br>
> On controller nodes you need:<br>
> <br>
> - pacemaker<br>
> - corosync<br>
> - masakari-api (openstack/masakari repository)<br>
> - masakari- engine (openstack/masakari repository)<br>
> <br>
> On compute nodes you need:<br>
> <br>
> - pacemaker-remote (integrated to pacemaker cluster as a resource)<br>
> - masakari- hostmonitor (openstack/masakari-monitor repository)<br>
> - masakari-instancemonitor (openstack/masakari-monitor repository)<br>
> - masakari-processmonitor (openstack/masakari-monitor repository)<br>
> <br>
> For masakari-hostmonitor, the service needs to have access to systemctl <br>
> command (make sure you are not using sysvinit).<br>
> <br>
> For masakari-monitor, the masakari-monitor.conf is a bit different, you <br>
> will have to configure the [api] section properly.<br>
> <br>
> RabbitMQ needs to be configured (as transport_url) on masakari-api and <br>
> masakari-engine too.<br>
> <br>
> Please check this review[1], you will have masakari.conf and <br>
> masakari-monitor.conf configuration examples.<br>
> <br>
> [1] <a href="https://review.opendev.org/#/c/615715" rel="noreferrer" target="_blank">https://review.opendev.org/#/c/615715</a><br>
> <br>
> Gaëtan<br>
> <br>
> On Jul 7, 2019 12:08 AM, Vu Tan <<a href="mailto:vungoctan252@gmail.com" target="_blank">vungoctan252@gmail.com</a>> wrote:<br>
> <br>
> VU TAN <<a href="mailto:VUNGOCTAN252@GMAIL.COM" target="_blank">VUNGOCTAN252@GMAIL.COM</a>><br>
> <br>
> 10:30 AM (35 minutes ago)<br>
> <br>
> to openstack-discuss<br>
> <br>
> Sorry, I resend this email because I realized that I lacked of prefix <br>
> on this email's subject<br>
> <br>
> Hi,<br>
> <br>
> I would like to use Masakari and I'm having trouble finding a step by <br>
> step or other documentation to get started with. Which part should be <br>
> installed on controller, which is should be on compute, and what is the <br>
> prerequisite to install masakari, I have installed corosync and <br>
> pacemaker on compute and controller nodes, , what else do I need to do <br>
> ?  step I have done so far:<br>
> - installed corosync/pacemaker<br>
> - install masakari on compute node on this github repo: <br>
> <a href="https://github.com/openstack/masakari" rel="noreferrer" target="_blank">https://github.com/openstack/masakari</a><br>
> - add masakari in to mariadb<br>
> here is my configuration file of masakari.conf, do you mind to take a <br>
> look at it, if I have misconfigured anything?<br>
> <br>
> [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" rel="noreferrer" target="_blank">http://controller:5000</a><br>
> auth_url = <a href="http://controller:5000" rel="noreferrer" 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</blockquote></div>