<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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (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:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 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:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:186064023;
        mso-list-type:hybrid;
        mso-list-template-ids:21379330 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1
        {mso-list-id:326789300;
        mso-list-template-ids:-45737372;}
@list l1:level1
        {mso-level-start-at:3;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l2
        {mso-list-id:608050115;
        mso-list-template-ids:-1824784058;}
@list l2:level1
        {mso-level-start-at:2;
        mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l3
        {mso-list-id:1095246641;
        mso-list-type:hybrid;
        mso-list-template-ids:-28172372 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l3:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l3:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l3:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l3:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l3:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l3:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l3:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l3:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l3:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l4
        {mso-list-id:1202403870;
        mso-list-template-ids:-1107109928;}
@list l5
        {mso-list-id:1461801797;
        mso-list-template-ids:-1773470566;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi Bart,<o:p></o:p></p>
<p class="MsoNormal">Please see my reply inline.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For the admin password info in pod secrets, I am not sure when and how it is used.
<o:p></o:p></p>
<p class="MsoNormal">Openstack services communicate with each other don’t use admin auth. So no other issue is found yet after admin password change.<o:p></o:p></p>
<p class="MsoNormal">I will do more test later.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Best Regards<o:p></o:p></p>
<p class="MsoNormal">Shuicheng<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Wensley, Barton <Barton.Wensley@windriver.com> <br>
<b>Sent:</b> Thursday, August 6, 2020 9:20 PM<br>
<b>To:</b> starlingx-discuss@lists.starlingx.io<br>
<b>Subject:</b> Re: [Starlingx-discuss] Solution for LP1887755: openstack app's admin account gets locked after change password<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Resending with only the mailing list in the “To” as it wouldn’t go through otherwise.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Wensley, Barton <br>
<b>Sent:</b> August 6, 2020 9:17 AM<br>
<b>To:</b> Lin, Shuicheng <<a href="mailto:shuicheng.lin@intel.com">shuicheng.lin@intel.com</a>>; Hu, Yong <<a href="mailto:yong.hu@intel.com">yong.hu@intel.com</a>>; Sun, Austin <<a href="mailto:austin.sun@intel.com">austin.sun@intel.com</a>>; Liu, ZhipengS
 <<a href="mailto:zhipengs.liu@intel.com">zhipengs.liu@intel.com</a>>; Church, Robert <<a href="mailto:Robert.Church@windriver.com">Robert.Church@windriver.com</a>>; Friesen, Chris <<a href="mailto:Chris.Friesen@windriver.com">Chris.Friesen@windriver.com</a>>;
 Kung, John <<a href="mailto:John.Kung@windriver.com">John.Kung@windriver.com</a>>; Ning, Antai (Andy) <<a href="mailto:Andy.Ning@windriver.com">Andy.Ning@windriver.com</a>>; Penney, Don <<a href="mailto:Don.Penney@windriver.com">Don.Penney@windriver.com</a>>;
<a href="mailto:starlingx-discuss@lists.starlingx.io">starlingx-discuss@lists.starlingx.io</a><br>
<b>Cc:</b> Khalil, Ghada <<a href="mailto:Ghada.Khalil@windriver.com">Ghada.Khalil@windriver.com</a>>; Miller, Frank <<a href="mailto:Frank.Miller@windriver.com">Frank.Miller@windriver.com</a>>; Wold, Saul <<a href="mailto:saul.wold@intel.com">saul.wold@intel.com</a>>;
 Rowsell, Brent <<a href="mailto:Brent.Rowsell@windriver.com">Brent.Rowsell@windriver.com</a>><br>
<b>Subject:</b> RE: Solution for LP1887755: openstack app's admin account gets locked after change password<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Shuicheng,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Your overall approach of creating a new stx-admin user to allow the platform to access the stx-openstack services sounds reasonable to me. I’d like some more details though – see my questions in
 your email below.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Another question – how will the pod based openstack services handle the change to the admin password? That needs to be understood as well.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Bart<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Lin, Shuicheng <<a href="mailto:shuicheng.lin@intel.com">shuicheng.lin@intel.com</a>>
<br>
<b>Sent:</b> August 5, 2020 8:24 PM<br>
<b>To:</b> Hu, Yong <<a href="mailto:yong.hu@intel.com">yong.hu@intel.com</a>>; Sun, Austin <<a href="mailto:austin.sun@intel.com">austin.sun@intel.com</a>>; Liu, ZhipengS <<a href="mailto:zhipengs.liu@intel.com">zhipengs.liu@intel.com</a>>; Church, Robert
 <<a href="mailto:Robert.Church@windriver.com">Robert.Church@windriver.com</a>>; Friesen, Chris <<a href="mailto:Chris.Friesen@windriver.com">Chris.Friesen@windriver.com</a>>; Wensley, Barton <<a href="mailto:Barton.Wensley@windriver.com">Barton.Wensley@windriver.com</a>>;
 Kung, John <<a href="mailto:John.Kung@windriver.com">John.Kung@windriver.com</a>>; Ning, Antai (Andy) <<a href="mailto:Andy.Ning@windriver.com">Andy.Ning@windriver.com</a>>; Penney, Don <<a href="mailto:Don.Penney@windriver.com">Don.Penney@windriver.com</a>>;
<a href="mailto:starlingx-discuss@lists.starlingx.io">starlingx-discuss@lists.starlingx.io</a><br>
<b>Cc:</b> Khalil, Ghada <<a href="mailto:Ghada.Khalil@windriver.com">Ghada.Khalil@windriver.com</a>>; Miller, Frank <<a href="mailto:Frank.Miller@windriver.com">Frank.Miller@windriver.com</a>>; Wold, Saul <<a href="mailto:saul.wold@intel.com">saul.wold@intel.com</a>>;
 Rowsell, Brent <<a href="mailto:Brent.Rowsell@windriver.com">Brent.Rowsell@windriver.com</a>><br>
<b>Subject:</b> RE: Solution for LP1887755: openstack app's admin account gets locked after change password<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal">+ mail list.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Best Regards<o:p></o:p></p>
<p class="MsoNormal">Shuicheng<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Lin, Shuicheng <br>
<b>Sent:</b> Wednesday, August 5, 2020 7:04 PM<br>
<b>To:</b> Hu, Yong <<a href="mailto:yong.hu@intel.com">yong.hu@intel.com</a>>; Sun, Austin <<a href="mailto:austin.sun@intel.com">austin.sun@intel.com</a>>; Liu, ZhipengS <<a href="mailto:zhipengs.liu@intel.com">zhipengs.liu@intel.com</a>>; Church, Robert
 <<a href="mailto:Robert.Church@windriver.com">Robert.Church@windriver.com</a>>; Friesen, Chris <<a href="mailto:Chris.Friesen@windriver.com">Chris.Friesen@windriver.com</a>>; Wensley, Barton <<a href="mailto:Barton.Wensley@windriver.com">Barton.Wensley@windriver.com</a>>;
 'Kung, John' <<a href="mailto:John.Kung@windriver.com">John.Kung@windriver.com</a>>; Ning, Antai (Andy) <<a href="mailto:Andy.Ning@windriver.com">Andy.Ning@windriver.com</a>>; Penney, Don <<a href="mailto:Don.Penney@windriver.com">Don.Penney@windriver.com</a>><br>
<b>Cc:</b> Khalil, Ghada <<a href="mailto:Ghada.Khalil@windriver.com">Ghada.Khalil@windriver.com</a>>; 'Miller, Frank' <<a href="mailto:Frank.Miller@windriver.com">Frank.Miller@windriver.com</a>>; Wold, Saul <<a href="mailto:saul.wold@intel.com">saul.wold@intel.com</a>>;
 Rowsell, Brent <<a href="mailto:Brent.Rowsell@windriver.com">Brent.Rowsell@windriver.com</a>><br>
<b>Subject:</b> Solution for LP1887755: openstack app's admin account gets locked after change password<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal">Please help loop in any person who have interest for this issue.<o:p></o:p></p>
<p class="MsoNormal">Here is the LP link: <a href="https://bugs.launchpad.net/starlingx/+bug/1887755">
https://bugs.launchpad.net/starlingx/+bug/1887755</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The issue is that there are 2 admin account in STX. 1 for host keystone, 1 for openstack app’s keystone.<o:p></o:p></p>
<p class="MsoNormal">Both account’s password could be changed independently.<o:p></o:p></p>
<p class="MsoNormal">For this LP issue, it is openstack app’s admin account password is changed, but host flock service doesn’t know it, and try to access openstack app’s keystone with the old password, and lead to account be locked by keystone.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">There are 2  problems here:<o:p></o:p></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l3 level1 lfo3">Host flock service doesn’t know openstack app’s admin password is changed.<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l3 level1 lfo3">Host flock service cannot get the new password.<o:p></o:p></li></ol>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So, in order to solve the issue, I plan to create a new account like “stx_admin” in openstack app, which will be used by flock service to communicate with openstack app.<o:p></o:p></p>
<p class="MsoNormal">For this “stx_admin” account, it will share the same password as host admin account. And password info will be synced with the host admin account.
<o:p></o:p></p>
<p class="MsoNormal">So the behavior will like below:<o:p></o:p></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo6">Admin account “stx_admin” will be created automatically when stx-openstack app is applied.<o:p></o:p></li></ol>
<p class="MsoNormal"><b><i>[Bart] Will this be done through the helm charts in the stx-openstack application? I’d prefer not to use underscores in user names – I think stxadmin or stx-admin would be better.<o:p></o:p></i></b></p>
<p class="MsoNormal">[Shuicheng] Let me try to create the account by helm charts. Otherwise, I need create it by openstack client cmd after application is applied.<o:p></o:p></p>
<p class="MsoNormal">               I will use stxadmin as the name. Thanks for the suggestion.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<ol style="margin-top:0in" start="2" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo6">“stx_admin” password info will be updated automatically when host admin account’s password is changed.<o:p></o:p></li></ol>
<p class="MsoNormal"><b><i>[Bart] What mechanism will be used to do this?<o:p></o:p></i></b></p>
<p class="MsoNormal"><i>[Shuicheng] There is a keystone listener in sysinv which could receive notification when admin password is changed. So we could sync the new password to stxadmin account by sysinv.<o:p></o:p></i></p>
<p class="MsoNormal"><i>               I need save stxadmin current password in keyring also, in order to communicate with keystone to update the new password.<o:p></o:p></i></p>
<p class="MsoNormal"><i>               BTW, I am not sure whether this sync is must or not. There are 2 ways to handle the password of stxadmin.<o:p></o:p></i></p>
<ol style="margin-top:0in" start="2" type="1">
<ol style="margin-top:0in" start="1" type="a">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level2 lfo6"><i>Create stxadmin account with a random complex password,  and leave it unchanged.<o:p></o:p></i></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level2 lfo6"><i>Use host admin password, and update it when host admin’s password is changed.<o:p></o:p></i></li></ol>
</ol>
<p class="MsoNormal" style="margin-left:.5in"><i>1<sup>st</sup> method will make code simpler and easy to maintain. What is your suggestion for it? Thanks.<o:p></o:p></i></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<ol style="margin-top:0in" start="3" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo6">Host flock service like nfv_vim/pci-irq-affinity-agent will use “stx_admin” account to communicate with stx-openstack app.<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo6">“stx_admin” account and admin account in openstack app are independent of each other.<o:p></o:p></li></ol>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Please share me your opinion of this solution, and whether there is any other better solution.<o:p></o:p></p>
<p class="MsoNormal">I am going to implement it if there is no objection.<o:p></o:p></p>
<p class="MsoNormal">Thanks.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best Regards<o:p></o:p></p>
<p class="MsoNormal">Shuicheng<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>