<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 14, 2017 at 12:44 AM, Sverker Abrahamsson <span dir="ltr"><<a href="mailto:sverker@abrahamsson.com" target="_blank">sverker@abrahamsson.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Since upgrading my test lab to ovirt 4.2 I can't get ovirt-provider-ovn to work. From ovirt-provider-ovn.log:<br>
<br>
2017-11-14 00:40:15,795 Request: POST : /v2.0///tokens<br>
2017-11-14 00:40:15,795 Request body:<br>
{<br>
"auth" : {<br>
"passwordCredentials" : {<br>
"username" : "admin@internal",<br>
"password" : "xxxxxxxxx"<br>
}<br>
}<br>
}<br>
2017-11-14 00:40:15,819 Starting new HTTPS connection (1): h2-int<br>
2017-11-14 00:40:20,829 "POST /ovirt-engine/sso/oauth/token HTTP/1.1" 400 118<br>
2017-11-14 00:40:20,830 Error during SSO authentication Cannot authenticate user 'admin@internal': The username or password is incorrect.. : access_deniedNone<br>
Traceback (most recent call last):<br>
File "/usr/share/ovirt-provider-ovn<wbr>/handlers/base_handler.py", line 119, in _handle_request<br>
method, path_parts, content)<br>
File "/usr/share/ovirt-provider-ovn<wbr>/handlers/selecting_handler.<wbr>py", line 177, in handle_request<br>
handler, content, parameters<br>
File "/usr/share/ovirt-provider-ovn<wbr>/handlers/keystone.py", line 28, in call_response_handler<br>
return response_handler(content, parameters)<br>
File "/usr/share/ovirt-provider-ovn<wbr>/handlers/keystone_responses.<wbr>py", line 58, in post_tokens<br>
user_password=user_password)<br>
File "/usr/share/ovirt-provider-ovn<wbr>/auth/plugin_facade.py", line 26, in create_token<br>
return auth.core.plugin.create_token(<wbr>user_at_domain, user_password)<br>
File "/usr/share/ovirt-provider-ovn<wbr>/auth/plugins/ovirt/plugin.py"<wbr>, line 48, in create_token<br>
timeout=self._timeout())<br>
File "/usr/share/ovirt-provider-ovn<wbr>/auth/plugins/ovirt/sso.py", line 62, in create_token<br>
username, password, engine_url, ca_file, timeout)<br>
File "/usr/share/ovirt-provider-ovn<wbr>/auth/plugins/ovirt/sso.py", line 54, in wrapper<br>
_check_for_error(response)<br>
File "/usr/share/ovirt-provider-ovn<wbr>/auth/plugins/ovirt/sso.py", line 168, in _check_for_error<br>
result['error'], details))<br>
Unauthorized: Error during SSO authentication Cannot authenticate user 'admin@internal': The username or password is incorrect.. : access_deniedNone<br>
<br>
And in engine.log:<br>
<br>
2017-11-14 00:40:20,828+01 ERROR [org.ovirt.engine.core.sso.uti<wbr>ls.SsoUtils] (default task-16) [] OAuthException access_denied: Cannot authenticate user 'admin@internal': The username or password is incorrect..<br></blockquote><div><br><div style="font-family:arial,helvetica,sans-serif;display:inline" class="gmail_default">Could you please provide full engine logs so we can investigate?<br><br></div> <div style="font-family:arial,helvetica,sans-serif;display:inline" class="gmail_default">Thanks<br><br></div><div style="font-family:arial,helvetica,sans-serif;display:inline" class="gmail_default">Martin<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The password in the request is the same as used to log in to the admin portal and works fine there.<br>
<br>
/Sverker<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font size="1">Martin Perina<br>Associate Manager, Software Engineering<br>Red Hat Czech s.r.o.<br></font></div></div>
</div></div>