Engine fails to deploy: utility image cannot be pulled

An engine instance of Cloudera Migration Assistant does not start when the cluster cannot pull a container image that the instance needs. Check that the cluster can resolve and reach the image registry.

Symptoms

On the Engine instances tab of the Apps page in the Anywhere Cloud Console, the instance does not reach Running. The pods of the instance stay in a state such as Init:ErrImagePull or Init:ImagePullBackOff, and no Cloudera Migration Assistant pod starts.

Cause

Each Cloudera Migration Assistant pod runs a short init container before the main container starts. If the cluster cannot resolve the hostname of the registry that holds an image, or cannot connect to it, Kubernetes cannot pull the image, and the pod does not start.

Solution

  1. List the pods of the instance:
    kubectl -n [***NAMESPACE***] get pods
  2. Show the events of a pod that does not start:
    kubectl -n [***NAMESPACE***] describe pod [***POD-NAME***]
    The events show the image that cannot be pulled and the error, for example, a hostname that cannot be resolved.
  3. Check that the nodes of the cluster can resolve and reach the registry in the error.
  4. After you fix the DNS or network problem, wait until Kubernetes pulls the image again and the status of the instance is Running.
  5. If the registry in the error is not one that your cluster uses, collect the diagnostic bundle, and contact Cloudera Support.
    See Collecting diagnostics and logs.