Volumes stuck in attaching state and volume limitation from CSINode object exceeded in OpenShift Container Platform 4
Issue
-
When creating many pods with generic ephemeral volumes configured, we find pods stuck in
ContainerCreating
state and events reported as shown below.AttachVolume.Attach failed for volume "pvc-1dafe8d0-942c-46ee-9e75-eef46d532a06" : rpc error: code = Internal desc = Could not attach volume "vol-<random>" to node "i-<random>": attachment of disk "vol-<random>" failed, expected device to be attached but was attaching
-
When scaling a new Node in OpenShift 4, we can observe pods being assigned shortly after it reports
Ready
state that exceed the configured limit for volumes withinCSINode
object.
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4.15
- 4.16
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.