Bug 1469860 - Validation Credentials fails for OSP 10 Provider with AD "domain" user
Validation Credentials fails for OSP 10 Provider with AD "domain" user
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers (Show other bugs)
Unspecified Unspecified
unspecified Severity urgent
: GA
: 5.9.0
Assigned To: Tzu-Mainn Chen
Ido Ovadia
: TestOnly, ZStream
: 1455829 (view as bug list)
Depends On:
Blocks: 1470812 1476270
  Show dependency treegraph
Reported: 2017-07-11 22:38 EDT by myoder
Modified: 2018-03-06 09:55 EST (History)
10 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1470812 1476270 (view as bug list)
Last Closed: 2018-03-06 09:55:45 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: Bug
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack

Attachments (Terms of Use)

  None (edit)
Description myoder 2017-07-11 22:38:46 EDT
Description of problem:
With an existing OSP 10 provider configured, we are attempting to change the service user to an account with rights to more domains/tenants/projects.

With the matching credentials, said user can log in and access Horizon. CF reports bad username or password.

The domain ID is correct ; same result if inputted the domain by name.

DEBUG fog.log output:

[----] D, [2017-07-11T12:15:59.568816 #15132:4e65ec] DEBUG -- : excon.request   

[----] E, [2017-07-11T12:16:00.146692 #15132:4e65ec] ERROR -- : excon.error     #<Excon::Error::Unauthorized: Expected([201]) <=> Actual(401 Unauthorized)
  :body          => "{\"error\": {\"message\": \"The request you have made requires authentication.\", \"code\": 401, \"title\": \"Unauthorized\"}}"
  :cookies       => [
  :headers       => {
    "Content-Length"         => "114"
    "Content-Type"           => "application/json"
    "Date"                   => "Tue, 11 Jul 2017 16:17:54 GMT"
    "Server"                 => "Apache"
    "Vary"                   => "X-Auth-Token"
    "WWW-Authenticate"       => "Keystone uri=\"\""
    "x-openstack-request-id" => "req-bee78d73-234a-449f-a413-c098dbc66965"
  :host          => ""
  :local_address => ""
  :local_port    => 45516
  :path          => "/v3/auth/tokens"
  :port          => 13000
  :reason_phrase => "Unauthorized"
  :remote_ip     => ""
  :status        => 401
  :status_line   => "HTTP/1.1 401 Unauthorized\r\n"

Version-Release number of selected component (if applicable):
OSP 10
CFME 5.8

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:
Comment 3 Tzu-Mainn Chen 2017-07-12 18:22:32 EDT
Can we see a full evm.log? Also, is it possible to see what happens if a new provider is added with the new user? That can help us figure out whether it's an issue with the user, or specifically with changing the user for a provider.
Comment 4 Marek Aufart 2017-07-13 09:13:13 EDT
I created a PR [1] which should bring CF token auth call closer to Openstack client one.

Could the change be tested on your side? The only needed change is in file openstack_handle/handle.rb from PR bellow.

[1] https://github.com/ManageIQ/manageiq-providers-openstack/pull/64/files#diff-0
Comment 6 Marek Aufart 2017-07-14 04:23:10 EDT
*** Bug 1455829 has been marked as a duplicate of this bug. ***
Comment 8 Ido Ovadia 2018-02-19 09:49:02 EST

Note You need to log in before you can comment on or make changes to this bug.