<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">To see the details of an alarm, use “fm alarm-list --uuid” to find the uuid and then use the uuid with the “fm alarm-show” command.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">To find out why the stx-openstack apply failed, take a look at the /var/log/armada/stx-openstack-apply.log file.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Bart<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
</span><span style="font-size:10.0pt;font-family:SimSun">钱江</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> [mailto:qianjiang@baicells.com]
<br>
<b>Sent:</b> September 20, 2019 12:07 AM<br>
<b>To:</b> starlingx-discuss<br>
<b>Subject:</b> [Starlingx-discuss] command "fm alarm-show 800.011" doesn't work<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black">Hi, <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black">I got an error during applying the openstack application. I don't know how to check the log, later I find "fm" command may work.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black;background:white">[sysadmin@controller-0 ~(keystone_admin)]$ fm alarm-list<br>
+----------+---------------------------------------------------------------------+--------------------------------------+----------+-----------------------+<br>
| Alarm ID | Reason Text | Entity ID | Severity | Time Stamp |<br>
+----------+---------------------------------------------------------------------+--------------------------------------+----------+-----------------------+<br>
| 200.001 | controller-0 was administratively locked to take it out-of-service. | host=controller-0 | warning | 2019-09-20T03:36:20. |<br>
| | | | | 251464 |<br>
| | | | | |<br>
| </span><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:red;background:white">750.002 | Application Apply Failure | k8s_application=stx-openstack | major </span><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black;background:white">
| 2019-09-20T02:03:28. |<br>
| | | | | 153979 |</span><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black">Then, I use "fm alarm-show" to get details<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black;background:white">[sysadmin@controller-0 ~(keystone_admin)]$ fm alarm-show 750.002<br>
</span><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:red;background:white">Alarm not found: 750.002</span><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black">It says, the alarm is not found, isn't the "750.002" uuid?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black">Or is there another way to check the log of an applicaiton failure?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black;background:white">[sysadmin@controller-0 ~(keystone_admin)]$ system application-show stx-openstack<br>
+---------------+------------------------------------------+<br>
| Property | Value |<br>
+---------------+------------------------------------------+<br>
| active | False |<br>
| app_version | 1.0-18-centos-stable-latest |<br>
| created_at | 2019-09-19T06:44:02.827627+00:00 |<br>
| manifest_file | stx-openstack.yaml |<br>
| manifest_name | armada-manifest |<br>
| name | stx-openstack |<br>
| progress | </span><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:red;background:white">operation aborted, check logs for detail
</span><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black;background:white">|<br>
| status | </span><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:red;background:white">apply-failed </span><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black;background:white">
|<br>
| updated_at | 2019-09-20T02:03:28.251645+00:00 |<br>
+---------------+------------------------------------------+</span><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>