FailedAttachVolume: Invalid configuration for device '0' in OCP 4
Issue
- There are
events
in theproject
that thepod
can not start with the following message:
2020-11-23T08:15:50.122833856Z I1123 08:15:50.122794 1 event.go:278] Event(v1.ObjectReference{Kind:"Pod", Namespace:"test-namespace", Name:"testapp-1-xxxxx", UID:"ba8b8da6-c736-4e9e-aa86-ecb9d402e3fb", APIVersion:"v1", ResourceVersion:"215143534", FieldPath:""}): type: 'Warning' reason: 'FailedAttachVolume' AttachVolume.Attach failed for volume "pvc-xxxxxxxx" : Invalid configuration for device '0'.
- Alerts that contain the message
Invalid configuration for device '0'
are also showing in the vSphere platform.
Environment
-
Red Hat OpenShift Container Platform (RHOCP)
- 4.x
-
VMware vSphere
- 6.5 and later
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.