ocs-external-storagecluster-ceph-rbd": rpc error: code = Internal desc = failed to create rbd image: rbd: ret=-22, Invalid argument

Solution In Progress - Updated -

Issue

While installing Red Hat OpenShift Data Foundation (ODF) or Red Hat OpenShift Container Storage using Red Hat Ceph Storage (RHCS) in external mode an erasure-coded pool was setup as the default data pool during the Ceph cluster creation. Noobaa will use RBD which by default does not work with erasure-code pools.

  • erasure-coded pools by default do not support omap. To work for RBD or CephFS an additional parameter must be set (see resolution).

When trying to create the PVC for Noobaa it would hang in the pending state, with the following errors:

E0123 15:48:01.294750       1 utils.go:210] ID: 19 Req-ID: pvc-5bc7c09d-0216-4946-85d7-0dfb5f27b3a0 GRPC error: rpc error: code = InvalidArgument desc = failed to fetch monitor list using clusterID (openshift-test): missing configuration for cluster ID "openshift-test"

E0123 15:48:03.760918       1 utils.go:210] ID: 21 Req-ID: pvc-5bc7c09d-0216-4946-85d7-0dfb5f27b3a0 GRPC error: rpc error: code = Internal desc = failed to create rbd image: rbd: ret=-22, Invalid argument

E0123 15:48:01.295455       1 controller.go:957] error syncing claim "5bc7c09d-0216-4946-85d7-0dfb5f27b3a0": failed to provision volume with StorageClass "ocs-external-storagecluster-ceph-rbd": rpc error: code = InvalidArgument desc = failed to fetch monitor list using clusterID (openshift-test): missing configuration for cluster ID "openshift-test"

I0123 15:48:01.295558       1 event.go:298] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"openshift-test", Name:"db-noobaa-db-pg-3", UID:"5bc7c09d-0216-4946-85d7-0dfb5f27b3a0", APIVersion:"v1", ResourceVersion:"466828", FieldPath:""}): type: 'Warning' reason: 'ProvisioningFailed' failed to provision volume with StorageClass "ocs-external-storagecluster-ceph-rbd": rpc error: code = InvalidArgument desc = failed to fetch monitor list using clusterID (openshift-test): missing configuration for cluster ID "openshift-test"

E0123 15:48:03.761653       1 controller.go:957] error syncing claim "5bc7c09d-0216-4946-85d7-0dfb5f27b3a0": failed to provision volume with StorageClass "ocs-external-storagecluster-ceph-rbd": rpc error: code = Internal desc = failed to create rbd image: rbd: ret=-22, Invalid argument

Environment

  • Red Hat OpenShift Data Foundation (ODF)
    • Attempting to Install
  • Red Hat Ceph Storage (RHCS) externally hosted
    • Existing cluster

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