FCDs (first-class-disks) disk in a state attachment fails in OpenShift

Solution Unverified - Updated

Environment

  • Red Hat OpenShift Container Platform 4.13
  • Red Hat OpenShift Container Platform 4.14

Issue

  • After enabling the automatic CSI migration for vSphere I have volumes that fail to attach with the following error:
failed to set control flag keepAfterDeleteVm for volumeID "bf019d24-72e2-4ba0-9b72-10df23a69156" with err: ServerFaultCode: The operation is not allowed in the current state.

Resolution

In order to avoid these known issues please ensure that you've updated to at least vSphere 7.0 Update 3L or 8.0 Update 2 before initiating vSphere CSI migration in 4.13 or upgrading to OCP 4.14 where vSphere migration happens automatically.

If this wasn't done; There is a documented Content from docs.vmware.com is not included.workaround in vSphere driver - 3.0 release notes that can resolve this issue.

Root Cause

After migration to FCDs (first-class-disks) the disk can get in a state where attachment fails (in a perpetual loop).

This is documented as Content from docs.vmware.com is not included.known issues in vSphere driver - 3.0 release notes

Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.