Cinder PV fails with already attached to instance in OpenShift 4

Solution Unverified - Updated -

Issue

  • Pod fails to attach Cinder Persistent Volume
  • Pod fails with errors:

    AttachVolume.Attach failed for volume "pvc-aaxf3f528-9a9x-6930-240x-cf72x9379c0e" : rpc error: code = Internal 
    desc = [ControllerPublishVolume] Attach Volume failed with error failed to attach 427f9519-4491-43c4-94b0- 
    456f785b7ea8 volume to c14f7206-e9df-431b-893f-2ac9e05ea21e compute: Bad request with: [POST 
    https://openstack-api.org:13774/v2.1/servers/c14f7206-e9df-431b-893f-2ac9e05ea21e/os- 
    volume_attachments], error message: {"badRequest": {"code": 400, "message": "Invalid input received: Invalid 
    volume: Volume 427f9519-4491-43c4-94b0-456f785b7ea8 status must be available or downloading to reserve, but the 
    current status is attaching. (HTTP 400) (Request-ID: req-x8sad9as-f8bf-a3dc-a3d5-l0ask45dofc)"}} 
    
  • Checking the status of a volumeAttachment we can see the status attachError:

    status:
    attachError:
    message: 'rpc error: code = Internal desc = [ControllerPublishVolume] Attach Volume
      failed with error failed to attach 427f9519-4491-43c4-94b0-456f785b7ea8 volume
      to 687fe52d-f15b-417d-9816-d2c8a7fa706a compute: Bad request with: [POST 
    https://openstack-api.org:13774/v2.1/servers/614xe89d-55a3-12ax-f3b5-d2c8a7fa706a/os- 
    volume_attachments],
      error message: {"badRequest": {"code": 400, "message": "Invalid volume: volume
      427f9519-4491-43c4-94b0-456f785b7ea8 is already attached to instance c14f7206-e9df-431b-893f-2ac9e05ea21e"}}'
    time: "2024-05-02T07:41:57Z"
    attached: false
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Red Hat OpenStack Platform (RHOSP)

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