Restoring vSphere snapshots fails in OpenShift 4

Solution In Progress - Updated -

Issue

  • When trying to restore a snapshot the PVC is stuck in Pending state with error:

    LAST SEEN   TYPE      REASON                   OBJECT                                  MESSAGE
    59m         Warning   ProvisioningFailed       persistentvolumeclaim/patatapps   failed to provision volume with StorageClass "datastore-01": rpc error: code = InvalidArgument desc = datastore URL "ds:///vmfs/volumes/63f8a0ec-d7328fb8-c718-d89d67f39fa7/" given in storage class does not match the snapshot datastore URL "ds:///vmfs/volumes/66ffbc5e-b2014056-8e42-d89d67f39fa7/".
    
  • Trying to restore into a different vSphere CSI storageClass fails with:

    48s         Warning   ProvisioningFailed       persistentvolumeclaim/postre-db-sql   failed to provision volume with StorageClass "thin-dc-2": rpc error: code = Internal desc = failed to create volume. Error: failed to create volume with fault: "(*types.LocalizedMethodFault)(0xc000eef420)({\n DynamicData: (types.DynamicData) {\n },\n Fault: (types.CnsFault) {\n  BaseMethodFault: (types.BaseMethodFault) <nil>,\n  Reason: (string) (len=85) \"No compatible datastore found for storagePolicy: bf40faab-73df-4d9a-aa2d-eacdce27d22a\"\n },\n LocalizedMessage: (string) (len=101) \"CnsFault error: No compatible datastore found for storagePolicy: bf40faab-73df-4d9a-aa2d-eacdce27d22a\"\n})\n"  
    
  • Not able to restore volumesnapshot into a new PVC volume.

  • A third-party migrated the recently created snapshot to a different datastore as part of its configuration.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • VMware vSphere

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