'FailedMount .... not registered' events during CronJob pod creation on OpenShift Container Platform 4.

Solution Verified - Updated -

Issue

Cronjob issue is related to **FailedMount** .... **not registered** events that are generated when a CronJob pod is created to run its task.

The events are similar to the following:

LAST SEEN   TYPE      REASON             OBJECT                                    MESSAGE
3h          Normal    Scheduled          pod/<name-of-the-cron-pod>--1-vbwfs   Successfully assigned <namespace>/<name-of-the-cron-pod>--1-vbwfs to <node-name>
3h          Normal    AddedInterface     pod/<name-of-the-cron-pod>--1-vbwfs   Add eth0 [XX.XX.XX.XX/XX] from openshift-sdn
3h          Normal    Pulling            pod/<name-of-the-cron-pod>--1-vbwfs   Pulling image "openshift/origin-cli:latest"
3h          Normal    Pulled             pod/<name-of-the-cron-pod>--1-vbwfs   Successfully pulled image "openshift/origin-cli:latest" in 1.211170383s
3h          Normal    Created            pod/<name-of-the-cron-pod>--1-vbwfs   Created container <name>
3h          Normal    Started            pod/<name-of-the-cron-pod>--1-vbwfs   Started container <name-of-cron-container>
178m        Warning   FailedMount        pod/<name-of-the-cron-pod>--1-vbwfs   MountVolume.SetUp failed for volume "<secret-name>" : object "<namespace>"/"<secret>" not registered
178m        Warning   FailedMount        pod/<name-of-the-cron-pod>--1-vbwfs   MountVolume.SetUp failed for volume "<config-map-map>-volume" : object "<namespace>"/"<config-map>" not registered
178m        Warning   FailedMount        pod/<name-of-the-cron-pod>--1-vbwfs   MountVolume.SetUp failed for volume "kube-api-access-ts9c2" : [object "<namespace>"/"kube-root-ca.crt" not registered, object "<namespace>"/"<secret>" not registered]
178m        Warning   FailedMount        pod/<name-of-the-cron-pod>--1-vbwfs   MountVolume.SetUp failed for volume "<config-map-name>" : object "<namespace>"/"<config-map>" not registered
3h          Normal    SuccessfulCreate   job/<name-of-the-cron-pod>            Created pod: <name-of-the-cron-pod>--1-vbwfs
178m        Normal    Completed          job/<name-of-the-cron-pod>            Job completed

As shown in the previous namespace events, errors are occurred showing that volumes are not mounted to the created pod.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.9
    • 4.10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content