VMware Tanzu Application Service for VMs

 View Only

 CF::UAA::NotFound: CF::UAA::NotFound Error while adding the user to role "pks.clusters.admin"

Shanthakumar Karuppusamy's profile image
Broadcom Employee Shanthakumar Karuppusamy posted Jul 19, 2018 11:34 AM

After successfully deployed the PKS, while configuring the user access add ing user to role failing with below error

 

pksadmin@New-PksCli:~$ uaac member add pks.clusters.admin alana

 

CF::UAA::NotFound: CF::UAA::NotFound

 

pksadmin@New-PksCli:~$

 

Shanthakumar Karuppusamy's profile image
Broadcom Employee Shanthakumar Karuppusamy

Attaching the trace for the same

 

pksadmin@New-PksCli:~$ uaac -t member add pks.clusters.admin alana

--->

request: get https://pksopsmgr01.sfo01.rainpole.local/uaa/Groups?filter=displayName+eq+%22pks.clusters.admin%22&startIndex=1

headers: {"authorization"=>"bearer eyJhbGciOiJSUzI1NiIsImtpZCI6ImtleS0xIiwidHlwIjoiSldUIn0.eyJqdGkiOiI0YTM5NmNhZmE0Y2Y0MmY3OTM1YzU4MzlmYzNjZDIwMyIsInN1YiI6IjA2ZjFiODQzLWY2NjktNDQ1ZS04MmUzLTBlMjQ0YTAzNGQxMSIsInNjb3BlIjpbIm9wc21hbi5hZG1pbiIsInNjaW0ubWUiLCJjbGllbnRzLmFkbWluIiwidWFhLmFkbWluIl0sImNsaWVudF9pZCI6Im9wc21hbiIsImNpZCI6Im9wc21hbiIsImF6cCI6Im9wc21hbiIsImdyYW50X3R5cGUiOiJwYXNzd29yZCIsInVzZXJfaWQiOiIwNmYxYjg0My1mNjY5LTQ0NWUtODJlMy0wZTI0NGEwMzRkMTEiLCJvcmlnaW4iOiJ1YWEiLCJ1c2VyX25hbWUiOiJwa3NhZG1pbiIsImVtYWlsIjoiYWRtaW5AdGVzdC5vcmciLCJhdXRoX3RpbWUiOjE1MzE5ODMyNzUsInJldl9zaWciOiJlNzBlYWE0ZCIsImlhdCI6MTUzMTk4MzI3NSwiZXhwIjoxNTMyMDI2NDc1LCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwODAvdWFhL29hdXRoL3Rva2VuIiwiemlkIjoidWFhIiwiYXVkIjpbInNjaW0iLCJvcHNtYW4iLCJjbGllbnRzIiwidWFhIl19.V0BLASLLLfqcJcLk2ChgT_cvPgix9TLLSRZO98tHatNSJJKKqyrx3ce4aWZZjdkpBKqS3L8KCSxG8C0H3STvSldWRUBZ2sWwUGGjRXjrnDNu4AmxBslhTsgVFeG-10JNKgK5uczLrgE_S9xWtVSN3UtCMnQVLhwOvGN9itEWp8ZbSWT-fA94LkanyspGgzD2i7JzZkXpUggQCgZH6eRjjPGl0GSQ1QnpSv3BGufDF8F8cqYjJEglUFj6Bd0s_tBV9estCx-Q1_sXqU9fR31F8uHS32dPZWEbdJojeR8FPcDnTt2HjM_XTT0BiG1D6p2SwpZC3YFWFAUWgu7QjHC5Og", "accept"=>"application/json;charset=utf-8"}

<---

response: 200

headers: {"server"=>"nginx/1.4.6 (Ubuntu)", "date"=>"Thu, 19 Jul 2018 09:09:54 GMT", "content-type"=>"application/json;charset=utf-8", "transfer-encoding"=>"chunked", "connection"=>"keep-alive", "cache-control"=>"no-cache, no-store, max-age=0, must-revalidate", "pragma"=>"no-cache", "expires"=>"0", "strict-transport-security"=>"max-age=31536000 ; includeSubDomains", "x-xss-protection"=>"1; mode=block", "x-frame-options"=>"DENY", "x-content-type-options"=>"nosniff"}

body: {"resources":[],"startIndex":1,"itemsPerPage":100,"totalResults":0,"schemas":["urn:scim:schemas:core:1.0"]}

CF::UAA::NotFound: CF::UAA::NotFound

 

/var/lib/gems/2.3.0/gems/cf-uaac-4.1.0/lib/uaa/cli/common.rb:139:in `scim_get_helper'

/var/lib/gems/2.3.0/gems/cf-uaac-4.1.0/lib/uaa/cli/common.rb:133:in `scim_get_object'

/var/lib/gems/2.3.0/gems/cf-uaac-4.1.0/lib/uaa/cli/group.rb:145:in `add_members'

/var/lib/gems/2.3.0/gems/cf-uaac-4.1.0/lib/uaa/cli/group.rb:189:in `block (2 levels) in <class:GroupCli>'

/var/lib/gems/2.3.0/gems/cf-uaac-4.1.0/lib/uaa/cli/common.rb:75:in `scim_request'

/var/lib/gems/2.3.0/gems/cf-uaac-4.1.0/lib/uaa/cli/group.rb:189:in `block in <class:GroupCli>'

/var/lib/gems/2.3.0/gems/cf-uaac-4.1.0/lib/uaa/cli/base.rb:273:in `block (2 levels) in run'

/var/lib/gems/2.3.0/gems/cf-uaac-4.1.0/lib/uaa/cli/base.rb:259:in `each'

/var/lib/gems/2.3.0/gems/cf-uaac-4.1.0/lib/uaa/cli/base.rb:259:in `block in run'

/var/lib/gems/2.3.0/gems/cf-uaac-4.1.0/lib/uaa/cli/base.rb:258:in `each'

/var/lib/gems/2.3.0/gems/cf-uaac-4.1.0/lib/uaa/cli/base.rb:258:in `run'

/var/lib/gems/2.3.0/gems/cf-uaac-4.1.0/bin/uaac:18:in `<top (required)>'

/usr/local/bin/uaac:23:in `load'

/usr/local/bin/uaac:23:in `<main>'

pksadmin@New-PksCli:~$

 

Shanthakumar Karuppusamy's profile image
Broadcom Employee Shanthakumar Karuppusamy

Solved.

 

Endpoint for UAAC should be PKSAPI server, whereas I have used opsmanager which is incorrect.

 

After changing the endpoint to PKSAPI it started working