Incorrect WKC URL configuration
Resolve the errors that occur due to an incorrect WKC URL configuration.
The following errors occur:
HTTPSConnectionPool(host='machine.ibm.com', port=443): Max retries exceeded with url: /v2/catalogs (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f63e7973c18>: Failed to establish a new connection: [Errno -2] Name or service not known',))
2020-07-09 22:59:29,412 - WKCConnector - ERROR - Cannot communicate with WKC to retrieve catalog information. Check config URIs.
A possible reason for the error is that invalid values are defined for the environment variable
WKC_BASE_URI
. You can get similar errors if you define incorrect values for the
WKC_AUTH_URI
environment variable.
Run the following command to check and confirm the configuration of the said environment variables in the pod helm chart: oc edit deployment spectrum-discover-wkcconnector.
The following error occurs, when incorrect API key is provided for WKC
cloud
connections:
2020-09-28 13:29:30,189 - WKCConnector - ERROR - Supplied API Key failed with response code 400
2020-09-28 13:29:30,190 - WKCConnector - ERROR - Unable to connect to WKC, resetting agent registration
The following error occurs, when incorrect user/password is provided
for WKC on-premises
connections:
2020-09-28 13:34:24,530 - WKCConnector - INFO - API Key not set, checking for user/password
2020-09-28 13:34:24,767 - WKCConnector - ERROR - User authentication failed with response code 401
2020-09-28 13:34:24,768 - WKCConnector - ERROR - Unable to connect to WKC, resetting agent registration