Cloudera Cloud Factory and Anywhere Cloud endpoints fail
after registry credential expiry
Cloudera Cloud Factory and Anywhere Cloud endpoints
fail to pull container images after the registry credentials for
container.repository.cloudera.com expire, because each cluster stores those credentials in a
separate Kubernetes secret that you must update independently.
Condition
When paywall credentials for container.repository.cloudera.com expire
or rotate without updating cluster secrets, Cloudera Cloud Factory and
Anywhere Cloud clusters cannot pull container images.
Because Cloudera Cloud Factory and Anywhere Cloud
store registry credentials in separate Kubernetes secrets, updating only the Cloudera Cloud Factory secret does not restore Anywhere Cloud endpoints.
You might observe the following symptoms:
Cloudera Cloud Factory or Anywhere Cloud Flow
Designer endpoints are unreachable.
Pods, such as taikun-db-pg and pgbouncer, remain
in ImagePullBackOff,
ErrImagePull, or
CrashLoopBackOff states.
Running the kubectl describe pod command displays an HTTP 403
Forbidden error on a HEAD request to
container.repository.cloudera.com.
The Kubernetes API server and etcd experience heavy load from failing
taikun-alert-poller, billing, showback, and stripe job
pods.
The following example shows a typical pod failure event:
Warning Failed 34m (x37 over 3h19m) kubelet spec.containers{pgbouncer}:
Failed to pull image "container.repository.cloudera.com/cloudera_thirdparty/percona/percona-pgbouncer:1.24.1":
failed to resolve image: unexpected status from HEAD request to
https://container.repository.cloudera.com/v2/cloudera_thirdparty/percona/percona-pgbouncer/manifests/1.24.1:
403 Forbidden
Cause
The platform registry pull secrets contain expired or invalid credentials for
container.repository.cloudera.com, which causes
authenticated manifest requests to fail with an HTTP 403 Forbidden status:
Cloudera Cloud Factory cluster – uses the regcred
secret in the flux-system namespace, which Kyverno and Flux
propagate to the taikun namespace and other management
namespaces.
Anywhere Cloud experience cluster – uses the
awc-console-registry-creds secret in the
awc-core namespace for Flow Designer workloads, which is
isolated from Cloudera Cloud Factoryflux-system secret propagation.
Additionally, failing taikun-alert-poller, billing, showback, and
stripe CronJob pods generate excessive API server and etcd load that delays
cluster recovery until you suspend the jobs and remove the stuck pods.
Recovering the Cloudera Cloud Factory management cluster
Before you begin, ensure that you have kubectl
access and valid kubeconfig contexts for both the Cloudera Cloud Factory management cluster and the Anywhere Cloud cluster, and that you have obtained the
updated container.repository.cloudera.com username and password
from the Cloudera paywall or CHAMP. Run all commands in this procedure against the
management cluster context.
List the CronJobs in the taikun namespace by running the
following command:
kubectl get cronjobs -n taikun
Suspend the polling and billing CronJobs to reduce load on the Kubernetes
API server and etcd:
Run all commands in this procedure against the Anywhere Cloud cluster context. Updating the
regcred secret in the Cloudera Cloud Factoryflux-system namespace does not update the Anywhere Cloud cluster.
Validate the refreshed registry credentials against
container.repository.cloudera.com by running the
following command:
Inspect the existing awc-console-registry-creds secret
in the awc-core namespace:
kubectl get secret awc-console-registry-creds -n awc-core
kubectl get secret awc-console-registry-creds -n awc-core \
-o jsonpath='{.data.\.dockerconfigjson}' | base64 -d
Create a YAML manifest file named
awc-console-registry-creds.yaml using the
identical username and password applied to the Cloudera Cloud Factory cluster: