<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">
Hi Greg,</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">
Looks like you don’t have “devstack-masakari” host registered in Masakari database.</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">
Currently operator have to add all the hosts from failover-segment manually to Masakari database.</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">
You can use below command:</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">
Register failover-segment to Masakari database:</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">
<b>openstack segment create <name> <recovery_method> <service_type></b></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">
Register hosts under the created segment to Masakari database:</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">
<b>openstack segment host create <name> <type> <control_attributes> <segment-id></b></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69);">
There is a work in progress on auto compute node registration.</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(228, 175, 10);">
<span style="color: #454545">Please refer: <a href="https://blueprints.launchpad.net/masakari-monitors/+spec/auto-compute-node-registration" id="LPlnk866217" previewremoved="true">
<span style="color: #e4af0a">https://blueprints.launchpad.net/masakari-monitors/+spec/auto-compute-node-registration</span></a></span><br>
</p>
<p></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;">
Thank you,</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: "Helvetica Neue"; color: rgb(69, 69, 69); min-height: 14px;">
Dinesh Bhor</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Waines, Greg <Greg.Waines@windriver.com><br>
<b>Sent:</b> 13 December 2017 19:26:32<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> Re: [openstack-dev] [masakari] problems starting up masakari instance monitoring in devstack @ master</font>
<div> </div>
</div>
<style>
<!--
@font-face
{font-family:"Courier New"}
@font-face
{font-family:Wingdings}
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
@font-face
{font-family:Menlo}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman"}
a:x_link, span.x_MsoHyperlink
{color:blue;
text-decoration:underline}
a:x_visited, span.x_MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
p.x_MsoListParagraph, li.x_MsoListParagraph, div.x_MsoListParagraph
{margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman"}
p.x_p1, li.x_p1, div.x_p1
{margin:0cm;
margin-bottom:.0001pt;
background:#FEF49C;
font-size:9.0pt;
font-family:Menlo;
color:black}
p.x_p2, li.x_p2, div.x_p2
{margin:0cm;
margin-bottom:.0001pt;
background:#FEF49C;
font-size:9.0pt;
font-family:Menlo;
color:black}
span.x_EmailStyle20
{font-family:Calibri;
color:windowtext}
span.x_EmailStyle21
{font-family:Calibri;
color:windowtext}
span.x_s1
{color:#26B41B}
span.x_s3
{color:#4D2CDC}
span.x_s2
{}
span.x_apple-converted-space
{}
span.x_EmailStyle26
{font-family:Calibri;
color:windowtext}
span.x_EmailStyle27
{font-family:Calibri;
color:windowtext}
span.x_EmailStyle28
{font-family:Calibri;
color:windowtext}
span.x_EmailStyle29
{font-family:Calibri;
color:windowtext}
span.x_EmailStyle30
{font-family:Calibri;
color:windowtext}
span.x_msoIns
{text-decoration:underline;
color:teal}
.x_MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.x_WordSection1
{}
ol
{margin-bottom:0cm}
ul
{margin-bottom:0cm}
-->
</style>
<div lang="EN-US" link="blue" vlink="purple" style="background-color:white">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">ok ... i changed all the domain related attributes in /etc/masakarimonitors/masakarimonitors.conf to be set to ‘default’ .</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">I seemed to get further,</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">but now get the following error when instancemonitor tries to send a notification:</span></p>
<p class="x_MsoNormal"><b><span style="font-size:11.0pt; font-family:Calibri"> Bad Request (HTTP 400) (Request-ID: req-556c6c4d-0e12-414e-ac8c-8ef3a61d4864), Host with name devstack-masakari could not be found.</span></b></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">however:</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">- devstack-masakari is in the /etc/hosts</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">- nova hypervisor-list shows devstack-masakari as a hypervisor hostname</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">- i am running both hostmonitor, processmonitor and instancemonitor</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">any ideas ?</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">see details below,</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Greg.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-13 13:50:34.353 7637 INFO masakarimonitors.instancemonitor.libvirt_handler.callback [-] Libvirt Event: type=VM, hostname=devstack-masakari,
uuid=6ae0b09b-3e93-4f0c-b81b-fa140636f267, time=2017-12-13 13:50:34.353037, event_id=LIFECYCLE, detail=STOPPED_DESTROYED)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-13 13:50:34.353 7637 INFO masakarimonitors.ha.masakari [-] Send a notification. {'notification': {'hostname': 'devstack-masakari', 'type':
'VM', 'payload': {'instance_uuid': '6ae0b09b-3e93-4f0c-b81b-fa140636f267', 'vir_domain_event': 'STOPPED_DESTROYED', 'event': 'LIFECYCLE'}, 'generated_time': datetime.datetime(2017, 12, 13, 13, 50, 34, 353037)}}</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-13 13:50:34.461 7637 WARNING masakarimonitors.ha.masakari [-] Retry sending a notification. (HttpException: Bad Request (HTTP 400) (Request-ID:
req-556c6c4d-0e12-414e-ac8c-8ef3a61d4864), Host with name devstack-masakari could not be found.): HttpException: HttpException: Bad Request (HTTP 400) (Request-ID: req-556c6c4d-0e12-414e-ac8c-8ef3a61d4864), Host with name devstack-masakari could not be found.</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">^C2017-12-13 13:50:42.462 7637 INFO oslo_service.service [-] Caught SIGINT signal, instantaneous exiting</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">root@devstack-masakari:~# </span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">root@devstack-masakari:~# ping devstack-masakari</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">PING localhost (127.0.0.1) 56(84) bytes of data.</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.049 ms</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.022 ms</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">^C</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">--- localhost ping statistics ---</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2 packets transmitted, 2 received, 0% packet loss, time 999ms</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">rtt min/avg/max/mdev = 0.022/0.035/0.049/0.014 ms</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">root@devstack-masakari:~# </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><b><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B">stack@devstack-masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">:</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#4D2CDC">~</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">$
nova hypervisor-list</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">+--------------------------------------+---------------------+-------+---------+</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">| ID | Hypervisor hostname | State | Status |</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">+--------------------------------------+---------------------+-------+---------+</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">| 5fb1b09b-e5f5-465a-828a-2101135ff700 | devstack-masakari | up | enabled |</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">+--------------------------------------+---------------------+-------+---------+</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><b><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B">stack@devstack-masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">:</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#4D2CDC">~</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">$ </span><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B"></span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span style="font-family:Calibri; color:black">From: </span>
</b><span style="font-family:Calibri; color:black">Greg Waines <Greg.Waines@windriver.com><br>
<b>Reply-To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Date: </b>Wednesday, December 13, 2017 at 8:17 AM<br>
<b>To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Subject: </b>Re: [openstack-dev] [masakari] problems starting up masakari instance monitoring in devstack @ master</span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">So i believe the error is:</span></p>
<p class="x_MsoNormal"><span style="font-size:9.0pt; font-family:Menlo; color:black">HttpException: HttpException: Expecting to find domain in project.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">I have attached the /etc/masakarimonitors/masakarimonitors.conf file and the /etc/masakari/masakari.conf file .</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">See the domain related attributes in each file below.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Is the Default vs default causing this problem ?</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Are there other domain related attributes that should be set to default ?</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><b><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B">stack@devstack-masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">:</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#4D2CDC">~</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">$
fgrep -i domain /etc/masakari/masakari.conf </span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">project_</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">_name
= Default</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">user_</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">_name
= Default</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black"> </span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><b><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B">stack@devstack-masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">:</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#4D2CDC">~</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">$
fgrep -i domain /etc/masakarimonitors/masakarimonitors.conf </span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">#logging_user_identity_format = %(user)s %(tenant)s %(</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">)s
%(user_</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">)s %(project_</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">)s</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">#
</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">Domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black"> ID to scope to (string value)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">#</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">_id
= <None></span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">#
</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">Domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black"> name to scope to (string value)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">#</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">_name
= <None></span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">#
</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">Domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black"> ID containing project (string value)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">#project_</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">_id
= <None></span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">#
</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">Domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black"> name containing project (string value)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">#project_</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">_name
= <None></span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">project_</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">_name
= default</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black"># Optional
</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black"> ID to use with v3 and v2 parameters. It will be used for both</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black"># the user and project
</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black"> in v3 and ignored in v2 authentication. (string</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">#default_</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">_id
= <None></span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black"># Optional
</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black"> name to use with v3 API and v2 parameters. It will be used for</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black"># both the user and project
</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black"> in v3 and ignored in v2 authentication.</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">#default_</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">_name
= <None></span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black"># User's
</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black"> id (string value)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">#user_</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">_id
= <None></span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black"># User's
</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black"> name (string value)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">#user_</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">_name
= <None></span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black"># Indicate whether this resource may be shared with the
</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">domain</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black"> received in the</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><b><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B">stack@devstack-masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">:</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#4D2CDC">~</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">$ </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Greg.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span style="font-family:Calibri; color:black">From: </span>
</b><span style="font-family:Calibri; color:black">Greg Waines <Greg.Waines@windriver.com><br>
<b>Reply-To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Date: </b>Tuesday, December 12, 2017 at 7:19 AM<br>
<b>To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Subject: </b>Re: [openstack-dev] [masakari] problems starting up masakari instance monitoring in devstack @ master</span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Any thoughts on what i don’t have setup correctly wrt the masakari client from the errors below ?</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Greg.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span style="font-family:Calibri; color:black">From: </span>
</b><span style="font-family:Calibri; color:black">Greg Waines <Greg.Waines@windriver.com><br>
<b>Reply-To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Date: </b>Monday, December 11, 2017 at 8:05 AM<br>
<b>To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Subject: </b>Re: [openstack-dev] [masakari] problems starting up masakari instance monitoring in devstack @ master</span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">I started up a VM and then deleted the VM ... and got some errors that make me think i don’t have the masakari client setup correctly.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Any ideas ?</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Greg.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">i.e.</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><b><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B">stack@devstack-masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">:</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#4D2CDC">~/devstack</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">$
nova list</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black"> </span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black"> </span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">+--------------------------------------+-------------+--------+------------+-------------+---------------------------------------------------------+</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">| ID | Name | Status | Task State | Power State | Networks
|</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">+--------------------------------------+-------------+--------+------------+-------------+---------------------------------------------------------+</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">| de8922c6-450d-4e2e-954d-ee4bd05ab909 | vm-1-cirros | ACTIVE | - | Running | private=10.0.0.10, fd1a:8f71:1a96:0:f816:3eff:fe5e:f315
|</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">+--------------------------------------+-------------+--------+------------+-------------+---------------------------------------------------------+</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><b><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B">stack@devstack-masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">:</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#4D2CDC">~/devstack</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">$ </span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><b><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B">stack@devstack-masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">:</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#4D2CDC">~/devstack</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">$
nova delete vm-1-cirros</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">Request to delete server vm-1-cirros has been accepted.</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><b><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B">stack@devstack-masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">:</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#4D2CDC">~/devstack</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">$
2017-12-11 12:58:28.319 25974 INFO masakarimonitors.instancemonitor.libvirt_handler.callback [-] Libvirt Event: type=VM, hostname=devstack-masakari, uuid=de8922c6-450d-4e2e-954d-ee4bd05ab909, time=2017-12-11 12:58:28.318781, event_id=LIFECYCLE, detail=STOPPED_DESTROYED)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 12:58:28.319 25974 INFO masakarimonitors.ha.masakari [-] Send a notification. {'notification': {'hostname': 'devstack-masakari', 'type':
'VM', 'payload': {'instance_uuid': 'de8922c6-450d-4e2e-954d-ee4bd05ab909', 'vir_domain_event': 'STOPPED_DESTROYED', 'event': 'LIFECYCLE'}, 'generated_time': datetime.datetime(2017, 12, 11, 12, 58, 28, 318781)}}</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 12:58:28.351 25974 WARNING masakarimonitors.ha.masakari [-] Retry sending a notification. (HttpException: Expecting to find domain in
project. The server could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-feaa30f9-fbb2-4259-8851-488ff7ab82f9), Expecting to find domain in project. The server
could not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.): HttpException: HttpException: Expecting to find domain in project. The server could not comply with the request since it is either
malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-feaa30f9-fbb2-4259-8851-488ff7ab82f9), Expecting to find domain in project. The server could not comply with the request since it is either malformed or otherwise
incorrect. The client is assumed to be in error.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">... several times ... and then eventually</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari Traceback (most recent call last):</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/masakarimonitors/ha/masakari.py",
line 91, in send_notification</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari payload=event['notification']['payload'])</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/masakariclient/sdk/ha/v1/_proxy.py",
line 65, in create_notification</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari return self._create(_notification.Notification, **attrs)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/openstack/proxy2.py", line 194, in
_create</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari return res.create(self._session)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/openstack/resource2.py", line 588,
in create</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari json=request.body, headers=request.headers)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 848,
in post</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari return self.request(url, 'POST', **kwargs)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/openstack/session.py", line 64, in
map_exceptions_wrapper</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari return func(*args, **kwargs)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/openstack/session.py", line 352,
in request</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari return super(Session, self).request(*args, **kwargs)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 573,
in request</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari auth_headers = self.get_auth_headers(auth)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 900,
in get_auth_headers</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari return auth.get_headers(self, **kwargs)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/plugin.py", line 95,
in get_headers</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari token = self.get_token(session)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py",
line 88, in get_token</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari return self.get_access(session).auth_token</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py",
line 134, in get_access</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari self.auth_ref = self.get_auth_ref(session)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/generic/base.py",
line 198, in get_auth_ref</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari return self._plugin.get_auth_ref(session, **kwargs)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/v3/base.py",
line 165, in get_auth_ref</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari authenticated=False, log=False, **rkwargs)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 848,
in post</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari return self.request(url, 'POST', **kwargs)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python2.7/dist-packages/openstack/session.py", line 66, in
map_exceptions_wrapper</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari raise exceptions.from_exception(e)</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari HttpException: HttpException: Expecting to find domain in project. The server could
not comply with the request since it is either malformed or otherwise incorrect. The client is assumed to be in error. (HTTP 400) (Request-ID: req-3640dd4f-b9d9-4a10-ae37-43a0e202393f), Expecting to find domain in project. The server could not comply with
the request since it is either malformed or otherwise incorrect. The client is assumed to be in error.</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">2017-12-11 13:00:28.536 25974 ERROR masakarimonitors.ha.masakari </span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><b><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B">stack@devstack-masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">:</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#4D2CDC">~/devstack</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">$ </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Greg.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span style="font-family:Calibri; color:black">From: </span>
</b><span style="font-family:Calibri; color:black">Greg Waines <Greg.Waines@windriver.com><br>
<b>Reply-To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Date: </b>Monday, December 11, 2017 at 7:52 AM<br>
<b>To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Subject: </b>Re: [openstack-dev] [masakari] problems starting up masakari instance monitoring in devstack @ master</span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Went back and started up corosync and pacemaker and now masakari-instancemonitor starts successfully.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><b><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B">stack@devstack-masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">:</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#4D2CDC">~/masakari-monitors</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">$
sudo masakari-instancemonitor &</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">[1] 25973</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><b><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B">stack@devstack-masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">:</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#4D2CDC">~/masakari-monitors</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">$
2017-12-11 12:47:49.483 25974 INFO masakarimonitors.service [-] Starting masakarimonitors-instancemonitor</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black"> </span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><b><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B">stack@devstack-masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">:</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#4D2CDC">~/masakari-monitors</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">$ </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">I don’t see any log file in /var/log for masakari-instancemonitor or masakari-engine ?</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">All processes seem to be up and running fine:</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><b><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B">stack@devstack-masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">:</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#4D2CDC">~/masakari-monitors</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">$
ps -ef | fgrep masakari</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">stack 11625 1 0 12:29 ? 00:00:10 /usr/bin/python /usr/local/bin/</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">-api
--config-file=/etc/</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">/</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">.conf
--debug</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">stack 11778 1 0 12:29 ? 00:00:02 /usr/bin/python /usr/local/bin/</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">-engine
--config-file=/etc/</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">/</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">.conf
--debug</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">stack 12005 11625 0 12:29 ? 00:00:00 /usr/bin/python /usr/local/bin/</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">-api
--config-file=/etc/</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">/</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">.conf
--debug</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">stack 12006 11625 0 12:29 ? 00:00:00 /usr/bin/python /usr/local/bin/</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">-api
--config-file=/etc/</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">/</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">.conf
--debug</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">root 19336 1 0 12:19 ? 00:00:05 /opt/stack/bin/etcd --name devstack-</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">
--data-dir /opt/stack/data/etcd --initial-cluster-state new --initial-cluster-token etcd-cluster-01 --initial-cluster devstack-</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">=http://10.10.10.7:2380
--initial-advertise-peer-urls http://10.10.10.7:2380 --advertise-client-urls http://10.10.10.7:2379 --listen-peer-urls http://0.0.0.0:2380 --listen-client-urls http://10.10.10.7:2379</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">root 25973 25760 0 12:47 pts/0 00:00:00 sudo
</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">-instancemonitor</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">root 25974 25973 0 12:47 pts/0 00:00:00 /usr/bin/python /usr/local/bin/</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">-instancemonitor</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">stack 26123 25760 0 12:50 pts/0 00:00:00 grep -F --color=auto
</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b></p>
<p class="x_MsoNormal" style="background:#FEF49C"><span style="font-size:9.0pt; font-family:Menlo; color:black">rabbitmq 26477 26348 0 12:06 ? 00:00:15 /usr/lib/erlang/erts-7.3/bin/beam.smp -W w -A 64 -P 1048576 -K true -B i -- -root /usr/lib/erlang
-progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/rabbitmq/lib/rabbitmq_server-3.5.7/sbin/../ebin -noshell -noinput -s rabbit boot -sname rabbit@devstack-</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">
-boot start_sasl -kernel inet_default_connect_options [{nodelay,true}] -sasl errlog_type error -sasl sasl_error_logger false -rabbit error_logger {file,"/var/log/rabbitmq/rabbit@devstack-</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">.log"}
-rabbit sasl_error_logger {file,"/var/log/rabbitmq/rabbit@devstack-</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">-sasl.log"} -rabbit enabled_plugins_file
"/etc/rabbitmq/enabled_plugins" -rabbit plugins_dir "/usr/lib/rabbitmq/lib/rabbitmq_server-3.5.7/sbin/../plugins" -rabbit plugins_expand_dir "/var/lib/rabbitmq/mnesia/rabbit@devstack-</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">-plugins-expand"
-os_mon start_cpu_sup false -os_mon start_disksup false -os_mon start_memsup false -mnesia dir "/var/lib/rabbitmq/mnesia/rabbit@devstack-</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#BD311B">masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">"
-kernel inet_dist_listen_min 25672 -kernel inet_dist_listen_max 25672</span></p>
<p class="x_MsoNormal" style="background:#FEF49C"><b><span style="font-size:9.0pt; font-family:Menlo; color:#26B41B">stack@devstack-masakari</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">:</span><b><span style="font-size:9.0pt; font-family:Menlo; color:#4D2CDC">~/masakari-monitors</span></b><span style="font-size:9.0pt; font-family:Menlo; color:black">$ </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Greg.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span style="font-family:Calibri; color:black">From: </span>
</b><span style="font-family:Calibri; color:black">Greg Waines <Greg.Waines@windriver.com><br>
<b>Reply-To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Date: </b>Monday, December 11, 2017 at 7:38 AM<br>
<b>To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Subject: </b>Re: [openstack-dev] [masakari] problems starting up masakari instance monitoring in devstack @ master</span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Actually, i’m guessing this is wrong because masakari-instancemonitor fails to start when i use these instructions.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_p1"><span class="x_s1"><b>stack@devstack-masakari</b></span><span class="x_s2">:</span><span class="x_s3"><b>~/masakari-monitors</b></span><span class="x_s2">$ sudo masakari-instancemonitor &</span></p>
<p class="x_p1"><span class="x_s2">[1] 22959</span></p>
<p class="x_p1"><span class="x_s1"><b>stack@devstack-masakari</b></span><span class="x_s2">:</span><span class="x_s3"><b>~/masakari-monitors</b></span><span class="x_s2">$ Traceback (most recent call last):</span></p>
<p class="x_p1"><span class="x_apple-converted-space"> </span><span class="x_s2">File "/usr/local/bin/masakari-instancemonitor", line 10, in <module></span></p>
<p class="x_p1"><span class="x_apple-converted-space"> </span><span class="x_s2">sys.exit(main())</span></p>
<p class="x_p1"><span class="x_apple-converted-space"> </span><span class="x_s2">File "/usr/local/lib/python2.7/dist-packages/masakarimonitors/cmd/instancemonitor.py", line 31, in main</span></p>
<p class="x_p1"><span class="x_apple-converted-space"> </span><span class="x_s2">config.parse_args(sys.argv)</span></p>
<p class="x_p1"><span class="x_apple-converted-space"> </span><span class="x_s2">File "/usr/local/lib/python2.7/dist-packages/masakarimonitors/config.py", line 32, in parse_args</span></p>
<p class="x_p1"><span class="x_apple-converted-space"> </span><span class="x_s2">default_config_files=default_config_files)</span></p>
<p class="x_p1"><span class="x_apple-converted-space"> </span><span class="x_s2">File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2495, in __call__</span></p>
<p class="x_p1"><span class="x_apple-converted-space"> </span><span class="x_s2">self._check_required_opts()</span></p>
<p class="x_p1"><span class="x_apple-converted-space"> </span><span class="x_s2">File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 3134, in _check_required_opts</span></p>
<p class="x_p1"><span class="x_apple-converted-space"> </span><span class="x_s2">raise RequiredOptError(opt.name, group)</span></p>
<p class="x_p1"><span class="x_s2">oslo_config.cfg.RequiredOptError: value required for option auth-url in group [api]</span></p>
<p class="x_p2"> </p>
<p class="x_p1"><span class="x_s2">[1]+</span><span class="x_apple-converted-space">
</span><span class="x_s2">Exit 1</span><span class="x_apple-converted-space">
</span><span class="x_s2">sudo masakari-instancemonitor</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Greg.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span style="font-family:Calibri; color:black">From: </span>
</b><span style="font-family:Calibri; color:black">Greg Waines <Greg.Waines@windriver.com><br>
<b>Reply-To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Date: </b>Monday, December 11, 2017 at 7:17 AM<br>
<b>To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Subject: </b>Re: [openstack-dev] [masakari] problems starting up masakari instance monitoring in devstack @ master</span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">thanks Honjo,</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">I’ll try this out now.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">I’m assuming that it is ok to start ONLY the instance-monitor if that’s all i want to test.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Is that correct ?</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">In that case, following the instructions you pointed me at,
</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">I would do the following:</span></p>
<p class="x_MsoListParagraph" style="text-indent:-18.0pt"><span style="font-family:Symbol"><span style="">·<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">setup devstack</span></p>
<p class="x_MsoListParagraph" style="margin-left:72.0pt; text-indent:-18.0pt"><span style="font-family:"Courier New""><span style="">o<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">i.e. with ‘enable_plugin masakari git://git.openstack.org/openstack/masakari’</span></p>
<p class="x_MsoListParagraph" style="text-indent:-18.0pt"><span style="font-family:Symbol"><span style="">·<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoListParagraph" style="text-indent:-18.0pt"><span style="font-family:Symbol"><span style="">·<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">( don’t need corosync and pacemaker )</span></p>
<p class="x_MsoListParagraph" style="text-indent:-18.0pt"><span style="font-family:Symbol"><span style="">·<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoListParagraph" style="text-indent:-18.0pt"><span style="font-family:Symbol"><span style="">·<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">install & startup client</span></p>
<p class="x_MsoListParagraph" style="margin-left:72.0pt; text-indent:-18.0pt"><span style="font-family:"Courier New""><span style="">o<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">cd</span></p>
<p class="x_MsoListParagraph" style="margin-left:72.0pt; text-indent:-18.0pt"><span style="font-family:"Courier New""><span style="">o<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">git clone https://github.com/openstack/python-masakariclient.git</span></p>
<p class="x_MsoListParagraph" style="margin-left:72.0pt; text-indent:-18.0pt"><span style="font-family:"Courier New""><span style="">o<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">cd python-masakariclient</span></p>
<p class="x_MsoListParagraph" style="margin-left:72.0pt; text-indent:-18.0pt"><span style="font-family:"Courier New""><span style="">o<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">sudo python setup.py build</span></p>
<p class="x_MsoListParagraph" style="margin-left:72.0pt; text-indent:-18.0pt"><span style="font-family:"Courier New""><span style="">o<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">sudo python setup.py install</span></p>
<p class="x_MsoListParagraph" style="text-indent:-18.0pt"><span style="font-family:Symbol"><span style="">·<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoListParagraph" style="text-indent:-18.0pt"><span style="font-family:Symbol"><span style="">·<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">install & startup instance monitor</span></p>
<p class="x_MsoListParagraph" style="margin-left:72.0pt; text-indent:-18.0pt"><span style="font-family:"Courier New""><span style="">o<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">cd</span></p>
<p class="x_MsoListParagraph" style="margin-left:72.0pt; text-indent:-18.0pt"><span style="font-family:"Courier New""><span style="">o<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">git clone https://github.com/openstack/masakari-monitors.git</span></p>
<p class="x_MsoListParagraph" style="margin-left:72.0pt; text-indent:-18.0pt"><span style="font-family:"Courier New""><span style="">o<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">sudo mkdir /etc/masakarimonitors</span></p>
<p class="x_MsoListParagraph" style="margin-left:72.0pt; text-indent:-18.0pt"><span style="font-family:"Courier New""><span style="">o<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">cd masakari-monitors</span></p>
<p class="x_MsoListParagraph" style="margin-left:72.0pt; text-indent:-18.0pt"><span style="font-family:"Courier New""><span style="">o<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">sudo python setup.py build</span></p>
<p class="x_MsoListParagraph" style="margin-left:72.0pt; text-indent:-18.0pt"><span style="font-family:"Courier New""><span style="">o<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">sudo python setup.py install</span></p>
<p class="x_MsoListParagraph" style="margin-left:72.0pt; text-indent:-18.0pt"><span style="font-family:"Courier New""><span style="">o<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoListParagraph" style="margin-left:72.0pt; text-indent:-18.0pt"><span style="font-family:"Courier New""><span style="">o<span style="font:7.0pt "Times New Roman"">
</span></span></span><span style="font-size:11.0pt; font-family:Calibri">sudo masakari-instancemonitor &</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Is this correct ?</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri">Greg.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt; font-family:Calibri"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b><span style="font-family:Calibri; color:black">From: </span>
</b><span style="font-family:Calibri; color:black">Rikimaru Honjo <honjo.rikimaru@po.ntt-tx.co.jp><br>
<b>Reply-To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Date: </b>Thursday, December 7, 2017 at 12:24 AM<br>
<b>To: </b>"openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org><br>
<b>Subject: </b>Re: [openstack-dev] [masakari] problems starting up masakari instance monitoring in devstack @ master</span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">Hello Greg,</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">I forgot to tell you.</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">Please use process_list.yaml instead of proc.list.sample.</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">On 2017/12/07 14:03, Rikimaru Honjo wrote:</p>
</div>
<blockquote id="x_MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="border:none; border-left:solid #B5C4DF 4.5pt; padding:0cm 0cm 0cm 4.0pt; margin-left:3.75pt; margin-top:5.0pt; margin-right:0cm; margin-bottom:5.0pt">
<div>
<p class="x_MsoNormal">Hello Greg,</p>
</div>
<div>
<p class="x_MsoNormal">Please use masakarimonitors.conf instead of hostmonitor.conf and processmonitor.conf.</p>
</div>
<div>
<p class="x_MsoNormal">You can generate it by "tox -egenconfig".</p>
</div>
<div>
<p class="x_MsoNormal">hostmonitor.conf and processmonitor.conf are used for monitors implemented by shell script.</p>
</div>
<div>
<p class="x_MsoNormal">masakarimonitors.conf is a configuration file for monitors implemented by python that you installed.</p>
</div>
<div>
<p class="x_MsoNormal">And, we are preparing setting guides.</p>
</div>
<div>
<p class="x_MsoNormal">Please see it if you are good.</p>
</div>
<div>
<p class="x_MsoNormal">masakari:</p>
</div>
<div>
<p class="x_MsoNormal"><a href="https://review.openstack.org/#/c/489570/">https://review.openstack.org/#/c/489570/</a></p>
</div>
<div>
<p class="x_MsoNormal">masakari-monitors:</p>
</div>
<div>
<p class="x_MsoNormal"><a href="https://review.openstack.org/#/c/489095/">https://review.openstack.org/#/c/489095/</a></p>
</div>
<div>
<p class="x_MsoNormal">Best regards,</p>
</div>
<div>
<p class="x_MsoNormal">On 2017/12/06 22:48, Waines, Greg wrote:</p>
</div>
<blockquote id="x_MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="border:none; border-left:solid #B5C4DF 4.5pt; padding:0cm 0cm 0cm 4.0pt; margin-left:3.75pt; margin-top:5.0pt; margin-right:0cm; margin-bottom:5.0pt">
<div>
<p class="x_MsoNormal">I am just getting started working with masakari.</p>
</div>
<div>
<p class="x_MsoNormal">I am working on master.</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">I have setup Masakari in Devstack (see details at end of email) ... which starts up masakari-engine and masakari-api processes.</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">I have git cloned the masakari-monitors and started them up (roughly) following the instructions at
<a href="https://github.com/openstack/masakari-monitors">https://github.com/openstack/masakari-monitors</a> .</p>
</div>
<div>
<p class="x_MsoNormal">Specifically:</p>
</div>
<div>
<p class="x_MsoNormal"># install & startup monitors</p>
</div>
<div>
<p class="x_MsoNormal">cd</p>
</div>
<div>
<p class="x_MsoNormal">git clone <a href="https://github.com/openstack/masakari-monitors.git">
https://github.com/openstack/masakari-monitors.git</a></p>
</div>
<div>
<p class="x_MsoNormal">cd masakari-monitors</p>
</div>
<div>
<p class="x_MsoNormal">sudo python setup.py install</p>
</div>
<div>
<p class="x_MsoNormal">cd</p>
</div>
<div>
<p class="x_MsoNormal">sudo mkdir /etc/masakarimonitors</p>
</div>
<div>
<p class="x_MsoNormal">sudo cp ~/masakari-monitors/etc/masakarimonitors/hostmonitor.conf.sample /etc/masakarimonitors/hostmonitor.conf</p>
</div>
<div>
<p class="x_MsoNormal">sudo cp ~/masakari-monitors/etc/masakarimonitors/processmonitor.conf.sample /etc/masakarimonitors/processmonitor.conf</p>
</div>
<div>
<p class="x_MsoNormal">sudo cp ~/masakari-monitors/etc/masakarimonitors/proc.list.sample /etc/masakarimonitors/proc.list</p>
</div>
<div>
<p class="x_MsoNormal">cd ~/masakari-monitors/masakarimonitors/cmd</p>
</div>
<div>
<p class="x_MsoNormal">sudo masakari-processmonitor.sh /etc/masakarimonitors/processmonitor.conf /etc/masakarimonitors/proc.list &</p>
</div>
<div>
<p class="x_MsoNormal">sudo masakari-hostmonitor.sh /etc/masakarimonitors/hostmonitor.conf &</p>
</div>
<div>
<p class="x_MsoNormal">sudo /usr/bin/python ./instancemonitor.py &</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">However the instancemonitor.py starts and exits ... and does not appear to start any process(es) ... with no error messages and no log file.</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">Is this the correct way to startup masakari instance monitoring ?</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">Greg.</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">My Masakari setup in Devstack</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">sudo useradd -s /bin/bash -d /opt/stack -m stack</p>
</div>
<div>
<p class="x_MsoNormal">echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack</p>
</div>
<div>
<p class="x_MsoNormal">sudo su - stack</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">git clone <a href="https://github.com/openstack-dev/devstack">
https://github.com/openstack-dev/devstack</a></p>
</div>
<div>
<p class="x_MsoNormal">cd devstack</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"> local.conf file:</p>
</div>
<div>
<p class="x_MsoNormal">[[local|localrc]]</p>
</div>
<div>
<p class="x_MsoNormal">ADMIN_PASSWORD=admin</p>
</div>
<div>
<p class="x_MsoNormal">DATABASE_PASSWORD=admin</p>
</div>
<div>
<p class="x_MsoNormal">RABBIT_PASSWORD=admin</p>
</div>
<div>
<p class="x_MsoNormal">SERVICE_PASSWORD=admin</p>
</div>
<div>
<p class="x_MsoNormal"># setup Neutron services</p>
</div>
<div>
<p class="x_MsoNormal">disable_service n-net</p>
</div>
<div>
<p class="x_MsoNormal">enable_service q-svc</p>
</div>
<div>
<p class="x_MsoNormal">enable_service q-agt</p>
</div>
<div>
<p class="x_MsoNormal">enable_service q-dhcp</p>
</div>
<div>
<p class="x_MsoNormal">enable_service q-l3</p>
</div>
<div>
<p class="x_MsoNormal">enable_service q-meta</p>
</div>
<div>
<p class="x_MsoNormal"># ceilometer</p>
</div>
<div>
<p class="x_MsoNormal">enable_plugin ceilometer <a href="https://git.openstack.org/openstack/ceilometer">
https://git.openstack.org/openstack/ceilometer</a></p>
</div>
<div>
<p class="x_MsoNormal">enable_plugin aodh <a href="https://git.openstack.org/openstack/aodh">
https://git.openstack.org/openstack/aodh</a></p>
</div>
<div>
<p class="x_MsoNormal"># heat</p>
</div>
<div>
<p class="x_MsoNormal">enable_plugin heat <a href="https://git.openstack.org/openstack/heat">
https://git.openstack.org/openstack/heat</a></p>
</div>
<div>
<p class="x_MsoNormal"># vitrage</p>
</div>
<div>
<p class="x_MsoNormal">enable_plugin vitrage <a href="https://git.openstack.org/openstack/vitrage">
https://git.openstack.org/openstack/vitrage</a></p>
</div>
<div>
<p class="x_MsoNormal">enable_plugin vitrage-dashboard <a href="https://git.openstack.org/openstack/vitrage-dashboard">
https://git.openstack.org/openstack/vitrage-dashboard</a></p>
</div>
<div>
<p class="x_MsoNormal"># masakari</p>
</div>
<div>
<p class="x_MsoNormal">enable_plugin masakari git://git.openstack.org/openstack/masakari</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">./stack.sh</p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">__________________________________________________________________________</p>
</div>
<div>
<p class="x_MsoNormal">OpenStack Development Mailing List (not for usage questions)</p>
</div>
<div>
<p class="x_MsoNormal">Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org">
OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe</p>
</div>
<div>
<p class="x_MsoNormal"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
</blockquote>
</blockquote>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">-- </p>
</div>
<div>
<p class="x_MsoNormal">_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/</p>
</div>
<div>
<p class="x_MsoNormal">Rikimaru Honjo</p>
</div>
<div>
<p class="x_MsoNormal">E-mail:<a href="mailto:honjo.rikimaru@po.ntt-tx.co.jp">honjo.rikimaru@po.ntt-tx.co.jp</a></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal">__________________________________________________________________________</p>
</div>
<div>
<p class="x_MsoNormal">OpenStack Development Mailing List (not for usage questions)</p>
</div>
<div>
<p class="x_MsoNormal">Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org">
OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe</p>
</div>
<div>
<p class="x_MsoNormal"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
</div>
</div>
<br clear="both">
______________________________________________________________________<BR>
Disclaimer: This email and any attachments are sent in strictest confidence<BR>
for the sole use of the addressee and may contain legally privileged,<BR>
confidential, and proprietary data. If you are not the intended recipient,<BR>
please advise the sender by replying promptly to this email and then delete<BR>
and destroy this email and any attachments without any further use, copying<BR>
or forwarding.<BR>
</body>
</html>