Troubleshooting issues in installation

Known issues in the installation of Cloud Automation Manager. It also includes known issues with storage/persistant volumes (PVs) setup or NFS configuration in Cloud Automation Manager.

Internal service error : rpc error: code = Unknown desc = jobs.batch “cam-api-secret-gen-job” already exists


root@csz25087:~# kubectl -n services get pods
NAME                           READY   STATUS      RESTARTS   AGE
cam-api-secret-gen-job-n5d87   0/1     Completed   0          24m

To resolve this issue:

  1. Run the following command:
    kubectl -n services delete job cam-api-secret-gen-job
    
  2. Install Cloud Automation Manager.
Events:
  Type     Reason            Age                From               Message
  ----     ------            ----               ----               -------
  Warning  FailedScheduling  71s (x2 over 71s)  default-scheduler  0/1 nodes are available: 1 node(s) didn't match node selector.

To resolve this issue, review the input parameter for the 'Worker node architecture' and check if one of the supported architectures are selected/entered correctly:

Events:
 Type     Reason     Age                   From                   Message
  ----     ------     ----                  ----                   -------
  Warning  Unhealthy  86s (x375 over 126m)  kubelet, 9.30.255.175  Readiness probe failed: HTTP probe failed with statuscode: 404

To confirm the issue, search for the following error messages:

The error messages can be found in the /[export folder]/CAM_logs/cam-tenant-api/ or run logs

 kubectl -n services logs -f <tenant-pod-name>
[2020-03-12T21:01:26.977] [INFO] init-platform-security - Onboarding CAM Service into ICP
[2020-03-12T21:01:27.554] [ERROR] init-platform-security - Failed to get IAM access token. { statusCode: 400,
 body: '{"context":{"requestId":"f0cef458b1c6463cb6daed3597445d42","requestType":"incoming.OIDC_Token","userAgent":"NotSet","clientIp":"9.30.255.175","instanceId":"NotSet/999999","threadId":"ac73","host":"auth-idp-kngmb","startTime":"12.03.2020 21:01:14:952 UTC","endTime":"12.03.2020 21:01:15:176 UTC","elapsedTime":"224","locale":"c.u_US"},"errorCode":"BXNIM0415E","errorMessage":"Provided API key could not be found","errorDetails":"BXNIM0102E: Unable to find Object. Object Type: \'ApiKey\' with ID: \'JZWSw9rwauvmAKVcuzYdY09hzO51jCyGHci-12yb0kje\' not found."}' }
[2020-03-12T21:01:27.557] [ERROR] init-platform-security - Error occurred while onboarding CAM into IAM. { Error: [object Object]
  at /usr/src/app/lib/icp/platform-security.js:319:19

This issue is resolved by deleting the invalid API key from the MCM console and creating a new one API key.

Error: validation failed: unable to recognize "": no matches for kind "ClusterServiceBroker" in version "servicecatalog.k8s.io/v1beta1"

The service catalog for OpenShift Container Paltform is not installed by default. To resolve the issue, see Install the service catalog for OpenShift Container Platform