Pod creation stuck in ContainerCreating stage due ISCSI Read-only file system Openshift Container Platform (OCP) 3.10

Solution Verified - Updated -

Issue

  • A pod gets stuck in the ContainerCreating stage returning an error similar to the following:

    MountVolume.WaitForAttach failed for volume "pvc-a401b46a-7f6e-11e8-9ea0-fa163e2d3982" : failed to get any path for iscsi 
    disk, last err seen: iscsi: failed to sendtargets to portal 10.0.0.x:3260 output: iscsiadm:  Could not open 
    /var/lib/iscsi/send_targets/10.0.0.x,3260: Read-only file system iscsiadm: Could not add new discovery record.Warning 
    FailedMount 9s kubelet, qe-piqin-node-1. Unable to mount volumes for pod "cinderpd1_test(1616ee93-7f6f-11e8-9ea0-
    fa163e2d3982)": timeout expired waiting for volumes to attach or mount for pod "test"
    

Environment

  • Openshift Container Platform (OCP) 3.10
  • Red Hat Enterprise Linux Atomic Host (RHEL Atomic Host) 7.5
  • Kubernetes v1.10.0
  • Persistent volumes (PVC) using gluster

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