K8s Discovery

Ragav4
Tera Contributor

we have all the setup configured for Openshift discovery, I have got the service account redy, bearer token ready, does any have the idea to setup the configuration, 

1 ACCEPTED SOLUTION

HI,

There is some API that is not allowed for that credentials. I dont have access to the instance though. can you raise a HI ticket for this.

Thanks,
Ashutosh

View solution in original post

25 REPLIES 25

Folks, I have done everything perfectly from discovery configuration, but when I run I am getting 401 error credentials issues, I am able to login to the OC client with the service account and able to generate the token but when I try to discover its getting 

Response has error. Status code is 401 . error code: 3 . error message: Method failed: (/api/v1/services) with code: 401 - Invalid username/password combo

2020-06-17 10:24:50: Pattern HTTP GET to https://ocpmst.corp.****.com:8443/api/v1/services?limit=50

2020-06-17 10:24:50: Response has error. Status code is 401 . error code: 3 . error message: Method failed: (/api/v1/services) with code: 401 - Invalid username/password combo

2020-06-17 10:24:50: HTTP response: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Unauthorized","reason":"Unauthorized","code":401

Hi, Do you have rights to perform this operation? Check the rights and credentials properly. Thanks, Ashutosh

yes I have the rights , I am from CMDB discovery team and have the right to perform the actions

Hi Ragav,

Check if the credentials you used to generate Credential Alias has access to perform the actions.

 

Hi,
I am talking about the credentials for connection and not your rights. Account rights for integration.

 

Thanks,
Ashutosh