Restoring vSphere snapshots fails in OpenShift 4
Issue
-
When trying to restore a snapshot the
PVCis stuck inPendingstate 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 CSIstorageClassfails 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
volumesnapshotinto a newPVCvolume. - A third-party migrated the recently created
snapshotto a differentdatastoreas 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.