<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Thanks for your reply, Kristi. I will try and get back to you if needed.</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="color:rgb(102,102,102);font-family:monospace,monospace"><br></span></div><div><span style="color:rgb(102,102,102);font-family:monospace,monospace">---</span><br></div><div><div><font color="#666666" face="monospace, monospace">Lingxian Kong</font></div><div><font color="#666666" face="monospace, monospace">Senior Software Engineer</font></div><div><font color="#666666" face="monospace, monospace">Catalyst Cloud</font></div><div><font color="#666666" face="monospace, monospace"><a href="http://www.catalystcloud.nz" target="_blank">www.catalystcloud.nz</a></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 7, 2020 at 11:30 AM Nikolla, Kristi <<a href="mailto:knikolla@bu.edu">knikolla@bu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Lingxian,<br>
<br>
The issue here is that keystoneauth usually treats all authentication methods the same, and uses them to authenticate and get another token. As you see the error in your log, trust scoped tokens can't create another token, so the authentication fails.<br>
<br>
Some clients provide a mechanism for you to input the token and endpoint_url directly without requiring keystoneauth. See below and try that.<br>
<br>
<a href="https://github.com/openstack/python-neutronclient/blob/master/neutronclient/client.py#L61-L62" rel="noreferrer" target="_blank">https://github.com/openstack/python-neutronclient/blob/master/neutronclient/client.py#L61-L62</a><br>
<br>
Best,<br>
Kristi<br>
<br>
> On May 6, 2020, at 6:37 PM, Lingxian Kong <<a href="mailto:anlin.kong@gmail.com" target="_blank">anlin.kong@gmail.com</a>> wrote:<br>
> <br>
> Hi keystone team,<br>
> <br>
> I met with an issue that can't perform openstack operations using openstack client lib by providing a trust scoped token. However, I can use that token to send HTTP request directly. Here is my code and the error message, <a href="http://dpaste.com/1N6AX0R" rel="noreferrer" target="_blank">http://dpaste.com/1N6AX0R</a><br>
> <br>
> I asked several times in #openstack-keystone IRC channel, but got no response.<br>
> <br>
> ---<br>
> Lingxian Kong<br>
> Senior Software Engineer<br>
> Catalyst Cloud<br>
> <a href="http://www.catalystcloud.nz" rel="noreferrer" target="_blank">www.catalystcloud.nz</a><br>
<br>
</blockquote></div>