<div dir="ltr"><span style="font-family:"";font-size:14px">I think the config '</span><span style="font-family:"";font-size:14px">nova_proxy_admin_pass </span><span style="font-family:"";font-size:14px">' </span><span style="font-family:"";font-size:10.5pt;line-height:1.5;background-color:window">in </span><span style="font-family:"";font-size:10.5pt;line-height:1.5;background-color:window"><span class="gmail-il">trove</span>.taskmanager.manager.<wbr>Manager#__init__ means the admin_token in keytone.conf for the admin user, not</span><div><span style="font-family:"";font-size:10.5pt;line-height:1.5;background-color:window">the password.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 1, 2017 at 11:36 AM, Zhang Fan <span dir="ltr"><<a href="mailto:zh.f@outlook.com" target="_blank">zh.f@outlook.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div><span></span>Hi guys,</div>
<div><br>
</div>
<div>Branch is stable/ocata. </div>
<div><br>
</div>
<hr style="width:210px;height:1px" color="#b5c4df" size="1" align="left">
<div><span>
<div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt">
<div>Best wishes.</div>
</div>
</span></div>
<blockquote style="margin-top:0px;margin-bottom:0px;margin-left:0.5em">
<div> </div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<div style="PADDING-RIGHT:8px;PADDING-LEFT:8px;FONT-SIZE:12px;FONT-FAMILY:tahoma;COLOR:#000000;BACKGROUND:#efefef;PADDING-BOTTOM:8px;PADDING-TOP:8px">
<div><b>From:</b> <a href="mailto:zh.f@outlook.com" target="_blank">Zhang Fan</a></div>
<div><b>Date:</b> 2017-08-01 10:21</div>
<div><b>To:</b> <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack</a></div>
<div><b>Subject:</b> [Openstack] [OpenStack][Trove]Trove taskmanager unauthorized error.</div>
</div>
</div><div><div class="h5">
<div>
<div class="m_341115062898506719FoxDiv20170801113611934531">
<div><span></span>Hi guys, </div>
<div><br>
</div>
<div>I recently met an error when creating a trove instance. Here are log details [1]. I checked<span style="font-size:10.5pt;line-height:1.5;background-color:window"> trove-taskmanager.conf again and again to make sure the trove_auth_url and many other
 options were currect. But this error was still raised.  So I went to the codes to confirm that novaclient was ok, added some codes to log variables but found a strange logic--</span></div>
<div><span style="font-size:10.5pt;line-height:1.5;background-color:window"><br>
</span></div>
<div><span style="font-size:10.5pt;line-height:1.5;background-color:window">In function </span><span style="font-family:'';font-size:10.5pt;line-height:1.5;background-color:window">trove.common.remote.<wbr>nova_client, Line 104, auth_token is assigned
 with context.auth_token, but context.auth_token is assigned with CONF.nova_proxy_admin_pass in </span><span style="font-family:'';font-size:10.5pt;line-height:1.5;background-color:window">trove.taskmanager.manager.<wbr>Manager#__init__ , Line 48.  And log
 infos [2] show that auth_token is my nova_proxy_admin_pass.  I go to the /novaclient/client.py , Line 136 shows that if auth_token has value, then token is assigned with auth_token, but auth_token is actually a admin pass.</span></div>
<div><span style="font-family:'';font-size:10.5pt;line-height:1.5;background-color:window"><br>
</span></div>
<div><span style="font-family:'';font-size:10.5pt;line-height:1.5;background-color:window">That's really weird. </span></div>
<div><span style="font-family:'';font-size:10.5pt;line-height:1.5;background-color:window"><br>
</span></div>
<div>After changing <span style="font-size:10.5pt;line-height:1.5;background-color:window">trove.common.remote.<wbr>nova_client, Line 104, "auth_token = context.auth_token" into "password = context.auth_token", it seems right with auth_token "</span><span style="font-family:'';font-size:10.5pt;line-height:1.5;background-color:window">2017-07-31 18:28:25.818 5504 <wbr>INFO trove.common.remote [-] <wbr>ZHF - auth_token--><wbr>gAAAAABZfvn8K8E9q5vNkgyvByLmNw<wbr>ytd0MmubrGckaZk6HVnYpgzQzfg_<wbr>FUjLLpDyR9MF9OPACDuQAPS9vu4VIL<wbr>NBZdXbz3ViTSD2DL6m_<wbr>4ujWLcwMm6TlrS_<wbr>1Es1jtKxp4ynuhFx9ENacobj2NdGOH<wbr>VZGQvXMyXgk0LIOOdoP7vIwOyQGOm0<wbr>AD3-vGfWTuODiCE6On_bMm</span><span style="background-color:window;font-size:10.5pt;line-height:1.5">".</span></div>
<div><span style="font-family:'';font-size:10.5pt;line-height:1.5;background-color:window"><br>
</span></div>
<div>So I am wondering that would you guys please help me with the unauthorized error and the nova_client weird logic? I am not sure it is an issue, but it seems odd. </div>
<div><br>
</div>
<div>Fan Zhang.</div>
<div><br>
</div>
<div>[1]. <span style="font-family:'';font-size:10.5pt;line-height:1.5;background-color:window"></span><a href="http://paste.ubuntu.com/25210882/" style="font-family:'';font-size:10.5pt;line-height:1.5;background-color:window" target="_blank">http://paste.ubuntu.com/<wbr>25210882/</a><span style="font-family:'';font-size:10.5pt;line-height:1.5;background-color:window"> </span></div>
<div><span style="font-family:'';font-size:10.5pt;line-height:1.5;background-color:window">[2]. </span><span style="font-family:'';font-size:10.5pt;line-height:1.5;background-color:window"></span><a href="http://paste.ubuntu.com/25211836/" style="font-family:'';font-size:10.5pt;line-height:1.5;background-color:window" target="_blank">http://paste.ubuntu.com/<wbr>25211836/</a><span style="font-family:'';font-size:10.5pt;line-height:1.5;background-color:window"> </span></div>
<div><br>
</div>
<span></span>
<hr style="width:210px;height:1px" color="#b5c4df" size="1" align="left">
<div><span>
<div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt">
<div>Best wishes.</div>
<div><br>
</div>
<div><br>
</div>
</div>
</span></div>
</div>
</div>
</div></div></blockquote>
</div>

<br>______________________________<wbr>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div>Services Computing Technology and System Lab && Cluster and Grid Computing Lab.<br>School of Computer Science and Technology,<br>Huazhong University of Science and Technology,<br>Wuhan,430074,China.</div></div>
</div>