OpenShift install fails at step "Wait for the ServiceMonitor CRD to be created"

Solution Verified - Updated -

Issue

When attempting to install OpenShift, the installer fails with the error:

[...]
FAILED - RETRYING: Wait for the ServiceMonitor CRD to be created (1 retries left).
fatal: [server.example.com]: FAILED! => {"attempts": 30, "changed": true, "cmd": ["oc", "get", "crd", "servicemonitors.monitoring.coreos.com", "-n", "openshift-monitoring", "--config=/tmp/openshift-cluster-monitoring-ansible-9R9c7p/admin.kubeconfig"], "delta": "0:00:00.257955", "end": "2019-01-01 00:00:27.965253", "msg": "non-zero return code", "rc": 1, "start": "2019-01-01 00:00:27.707298", "stderr": "No resources found.\nError from server (NotFound): customresourcedefinitions.apiextensions.k8s.io \"servicemonitors.monitoring.coreos.com\" not found", "stderr_lines": ["No resources found.", "Error from server (NotFound): customresourcedefinitions.apiextensions.k8s.io \"servicemonitors.monitoring.coreos.com\" not found"], "stdout": "", "stdout_lines": []}
        to retry, use: --limit @/usr/share/ansible/openshift-ansible/playbooks/openshift-monitoring/config.retry

Environment

  • Red Hat OpenShift Container Platform (OCP) 3.x
    • Disconnected installation

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