IBM Maximo: Install MAS - Grafana task not ready
Problem Description
The Grafana task fails to reach the READY state.
The task status displays NOTREADY.
Root Cause
The issue occurs because the Grafana images cannot be pulled from Docker Hub (hub.docker.com), typically due to missing or invalid authentication.
Solution
Before the Error Occurs
When the grafana5 namespace is created, configure access to Docker Hub by creating and linking a pull secret:
DOCKER_USERNAME='your user' DOCKER_PASSWORD='your password' DOCKER_EMAIL='your email address' oc create secret docker-registry dockerhub-pull --docker-server=https://index.docker.io/v1/ \ --docker-username=$DOCKER_USERNAME --docker-password=$DOCKER_PASSWORD \ --docker-email=$DOCKER_EMAIL -n grafana5 oc secrets link mas-grafana-sa dockerhub-pull --for=pull -n grafana5
After the Error Occurs
If the error has already happened, create and link the secret, then restart the Grafana deployment:
DOCKER_USERNAME='your user' DOCKER_PASSWORD='your password' DOCKER_EMAIL='your email address' oc create secret docker-registry dockerhub-pull --docker-server=https://index.docker.io/v1/ \ --docker-username=$DOCKER_USERNAME --docker-password=$DOCKER_PASSWORD \ --docker-email=$DOCKER_EMAIL -n grafana5 oc secrets link mas-grafana-sa dockerhub-pull --for=pull -n grafana5 oc rollout restart deployment/mas-grafana-deployment -n grafana5