<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: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:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@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;}
@font-face
        {font-family:"\@PMingLiU";
        panose-1:2 2 5 0 0 0 0 0 0 0;}
/* 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;}
p.gmail-msolistparagraph, li.gmail-msolistparagraph, div.gmail-msolistparagraph
        {mso-style-name:gmail-msolistparagraph;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.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">There is an existing LP with the same cause:
<a href="https://bugs.launchpad.net/starlingx/+bug/1833323">https://bugs.launchpad.net/starlingx/+bug/1833323</a><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">Until it is resolved, issue the following commands if the application status are stuck in applying/removing because sysinv-conductor was abruptly terminated
 (power outage, process restarted by sm due to missing audits, process killed/system boot due to OOM, etc…)<o:p></o:p></span></p>
<p class="MsoNormal">sudo -u postgres psql -d sysinv -c "update kube_app set status='apply-failed' where status='applying';"<o:p></o:p></p>
<p class="MsoNormal">sudo -u postgres psql -d sysinv -c "update kube_app set status='remove-failed' where status='removing';"<o:p></o:p></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">You can then retrigger the application apply/remove.<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">Tee<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>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<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""> Xu, Chenjie [mailto:chenjie.xu@intel.com]
<br>
<b>Sent:</b> June-28-19 3:53 AM<br>
<b>To:</b> Lin, Shuicheng; Ezpeer Chen; </span><span style="font-size:10.0pt;font-family:"PMingLiU","serif"">张鲲鹏</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br>
<b>Cc:</b> starlingx-discuss@lists.starlingx.io<br>
<b>Subject:</b> Re: [Starlingx-discuss] [stx-config] platform-integ-apps was applying with a long time<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">Hi Kunpeng,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">I met the same issue before. As a result of poweroff, the status will always be applying because the job has been killed and the
 status in the database won’t be changed from applying to apply-failed. What’s more, you can’t re-apply because the status is applying.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">I changed the status in the database and then re-apply. Hope the following commands can be useful:<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:15.75pt"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">cat /etc/sysinv/sysinv.conf | grep sql<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:15.75pt"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">connection=postgresql+psycopg2://admin-sysinv:d0df960de712Ti0*@192.168.204.2/sysinv<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:15.75pt"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">psql -h 192.168.204.2 -U admin-sysinv -W sysinv<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">       d0df960de712Ti0*<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:15.75pt"><a name="_MailEndCompose"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">select * from kube_app;</span></a><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:15.75pt"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">update kube_app set status=’apply-failed’ where name=’platform-integ-apps’;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:15.75pt"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">select * from kube_app;<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:15.75pt"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">\q<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent:15.75pt"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">system application-apply platform-integ-apps<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">Best Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">Xu, Chenjie<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><a name="_____replyseparator"></a><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";mso-fareast-language:ZH-CN">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";mso-fareast-language:ZH-CN">
 Lin, Shuicheng [mailto:shuicheng.lin@intel.com] <br>
<b>Sent:</b> Friday, June 28, 2019 3:43 PM<br>
<b>To:</b> Ezpeer Chen <ezpeerchen@gmail.com>; </span><span lang="ZH-CN" style="font-size:11.0pt;font-family:SimSun;mso-fareast-language:ZH-CN">张鲲鹏</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";mso-fareast-language:ZH-CN"> <zhang.kunpeng@99cloud.net><br>
<b>Cc:</b> starlingx-discuss@lists.starlingx.io<br>
<b>Subject:</b> Re: [Starlingx-discuss] [stx-config] platform-integ-apps was applying with a long time<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">Hi Kunpeng,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">You could check /var/log/armada/platform-integ-apps-apply.log, to get details where the process stuck at.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">Best Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN">Shuicheng<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";mso-fareast-language:ZH-CN">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";mso-fareast-language:ZH-CN"> Ezpeer Chen [<a href="mailto:ezpeerchen@gmail.com">mailto:ezpeerchen@gmail.com</a>]
<br>
<b>Sent:</b> Friday, June 28, 2019 3:30 PM<br>
<b>To:</b> </span><span lang="ZH-CN" style="font-size:11.0pt;font-family:SimSun;mso-fareast-language:ZH-CN">张鲲鹏</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";mso-fareast-language:ZH-CN"> <<a href="mailto:zhang.kunpeng@99cloud.net">zhang.kunpeng@99cloud.net</a>><br>
<b>Cc:</b> <a href="mailto:starlingx-discuss@lists.starlingx.io">starlingx-discuss@lists.starlingx.io</a><br>
<b>Subject:</b> Re: [Starlingx-discuss] [stx-config] platform-integ-apps was applying with a long time<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="mso-fareast-language:ZH-CN">Dear Kunpeng,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-fareast-language:ZH-CN">Your progress status is applying.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-fareast-language:ZH-CN">If it shows apply-failed status, then do re-apply.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-fareast-language:ZH-CN">Command:<o:p></o:p></span></p>
</div>
<div>
<p class="gmail-msolistparagraph" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt">
<span style="font-family:"Calibri","sans-serif";mso-fareast-language:ZH-CN"># system application-apply platform-integ-apps<o:p></o:p></span></p>
<p class="gmail-msolistparagraph" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:18.0pt;margin-bottom:.0001pt">
<span style="font-family:"Calibri","sans-serif";mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-fareast-language:ZH-CN">Thanks<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span lang="ZH-CN" style="font-family:SimSun;mso-fareast-language:ZH-CN">张鲲鹏</span><span style="mso-fareast-language:ZH-CN"> <<a href="mailto:zhang.kunpeng@99cloud.net">zhang.kunpeng@99cloud.net</a>>
</span><span lang="ZH-CN" style="font-family:SimSun;mso-fareast-language:ZH-CN">於</span><span style="mso-fareast-language:ZH-CN"> 2019</span><span lang="ZH-CN" style="font-family:SimSun;mso-fareast-language:ZH-CN">年</span><span style="mso-fareast-language:ZH-CN">6</span><span lang="ZH-CN" style="font-family:SimSun;mso-fareast-language:ZH-CN">月</span><span style="mso-fareast-language:ZH-CN">28</span><span lang="ZH-CN" style="font-family:SimSun;mso-fareast-language:ZH-CN">日</span><span lang="ZH-CN" style="mso-fareast-language:ZH-CN">
</span><span lang="ZH-CN" style="font-family:SimSun;mso-fareast-language:ZH-CN">週五</span><span lang="ZH-CN" style="mso-fareast-language:ZH-CN">
</span><span lang="ZH-CN" style="font-family:SimSun;mso-fareast-language:ZH-CN">上午</span><span style="mso-fareast-language:ZH-CN">11:48</span><span lang="ZH-CN" style="font-family:SimSun;mso-fareast-language:ZH-CN">寫道:</span><span style="mso-fareast-language:ZH-CN"><o:p></o:p></span></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="mso-fareast-language:ZH-CN">Hi guys,<br>
<br>
When I use sysinv to bring up the containerized services, platform-integ-apps is stay applying for a long time. I wonder it may be caused by recent poweroff. Now I have reactived the controllers, and can you tell me how to re-apply it?<br>
<br>
[root@controller-0 log(keystone_admin)]# system host-list<br>
+----+--------------+-------------+----------------+-------------+--------------+<br>
| id | hostname     | personality | administrative | operational | availability |<br>
+----+--------------+-------------+----------------+-------------+--------------+<br>
| 1  | controller-0 | controller  | unlocked       | enabled     | available    |<br>
| 2  | controller-1 | controller  | unlocked       | enabled     | available    |<br>
+----+--------------+-------------+----------------+-------------+--------------+<br>
[root@controller-0 log(keystone_admin)]# system application-list<br>
+---------------------+---------------------------+-------------------------------+--------------------+-----------+------------------------------------------------------------------+<br>
| application         | version                   | manifest name                 | manifest file      | status    | progress                                                         |<br>
+---------------------+---------------------------+-------------------------------+--------------------+-----------+------------------------------------------------------------------+<br>
| platform-integ-apps | 1.0-7                     | platform-integration-manifest | manifest.yaml      | applying  | processing chart: stx-rbd-provisioner, overall completion: 50.0% |<br>
| stx-openstack       | 1.0-16-centos-stable-     | armada-manifest               | stx-openstack.yaml | uploading | validating and uploading charts                                  |<br>
|                     | latest                    |                               |                    |           |                                                                  |<br>
|                     |                           |                               |                    |           |                                                                  |<br>
+---------------------+---------------------------+-------------------------------+--------------------+-----------+—————————————————————————————————+<br>
<br>
Thanks<br>
Kunpeng<br>
_______________________________________________<br>
Starlingx-discuss mailing list<br>
<a href="mailto:Starlingx-discuss@lists.starlingx.io" target="_blank">Starlingx-discuss@lists.starlingx.io</a><br>
<a href="http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss" target="_blank">http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss</a><o:p></o:p></span></p>
</blockquote>
</div>
</div>
</body>
</html>