Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1874289

Summary: Failed to provision volume with StorageClass "thin": No VM found
Product: OpenShift Container Platform Reporter: Kevin Chung <kechung>
Component: DocumentationAssignee: Lindsey Barbee-Vargas <lbarbeev>
Status: CLOSED CURRENTRELEASE QA Contact: Qin Ping <piqin>
Severity: high Docs Contact: Vikram Goyal <vigoyal>
Priority: high    
Version: 4.5CC: amsingh, aos-bugs, chuffman, hekumar, jdockter, jokerman, mdunnett, oarribas, simon
Target Milestone: ---Keywords: UpcomingSprint
Target Release: 4.5.z   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-24 21:23:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kevin Chung 2020-08-31 22:37:10 UTC
Description of problem:

I am working with a customer who has OpenShift 4.5 installed via VMware IPI, and persistent storage in VMware.  When they attempt to spin up pods with persistent storage, the new PersistentVolumeClaim stays in a Pending state and fails with a "Failed to provision volume with StorageClass "thin": No VM found" error.  

The customer has tested this multiple times, with the following observations.  The first time around, they had issue with Prometheus and Alert Manager but not ElasticSearch, and rebuilt their cluster.  This second time, they now have the observed issue with ElasticSearch but not Prometheus/Alert Manager.  The customer is consistently facing this issue, is now blocked, and has agreed to keep this cluster in the current state to troubleshoot further.

I've beem unable to reproduce their issue in my own lab, but I've noted two things: a) they are using VMware 6.5.0 (not 6.7U2 or higher), and b) they performed LUN snapshots and restored the OpenShift VMs from those snapshots prior to performing an upgrade / deleting pods.

Version-Release number of selected component (if applicable):
- OpenShift 4.5.5
- VMware ESXi, 6.5.0, 7388607
- VMware VMs are on Hardware version 13
- ElasticSearch is 4.5-stable from OperatorHub

How reproducible:

Consistently receiving this error in their cluster, and currently unable to recover from this state.

Steps to Reproduce:
1. Deploy ElasticSearch on OpenShift, confirm pods are up and running.
2. Shut down OpenShift VMs
3. Storage team performs snapshot of datastore - LUN backup
4. Start VMs and confirm OpenShift cluster is up and running
5. Manually test by deleting an ElasticSearch pod and see if the new pod and PVC stays pending with this error.  The customer also encountered this issue when they performed an OpenShift minor version upgrade as well each time (which results in the pod being deleted/recreated).

Actual results:
PersistentVolumeClaim stays in Pending state with "Failed to provision volume with StorageClass "thin" error.

Expected results:
PersistentVolumeClaim is able to bind to PersistentVolume via dynamic storage provisioning.

Additional info:

Comment 23 Lindsey Barbee-Vargas 2020-10-30 19:30:07 UTC
Made changes as described: Adding information regarding backing up VMware vSphere volumes. This info was in 3.11 docs, but was not included in 4.x. Moving this bug to MODIFIED. 

This can be reviewed here: https://github.com/openshift/openshift-docs/pull/26960

Comment 24 Lindsey Barbee-Vargas 2020-11-24 21:23:20 UTC
The new "Backing up VMware vSphere volumes" section was added to the "Installing on vSphere" assemblies, in addition to the "Persistent storage using VMware vSphere volumes" assembly.

Verified fix is published and live on docs.openshift.com [4.4]:
https://docs.openshift.com/container-platform/4.4/storage/persistent_storage/persistent-storage-vsphere.html#vsphere-pv-backup_persistent-storage-efs
https://docs.openshift.com/container-platform/4.4/installing/installing_vsphere/installing-vsphere.html
https://docs.openshift.com/container-platform/4.4/installing/installing_vsphere/installing-vsphere-network-customizations.html
https://docs.openshift.com/container-platform/4.4/installing/installing_vsphere/installing-restricted-networks-vsphere.html

Verified fix is published and live on docs.openshift.com [4.5]:
https://docs.openshift.com/container-platform/4.5/storage/persistent_storage/persistent-storage-vsphere.html#vsphere-pv-backup_persistent-storage-efs
https://docs.openshift.com/container-platform/4.5/installing/installing_vsphere/installing-vsphere-installer-provisioned.html
https://docs.openshift.com/container-platform/4.5/installing/installing_vsphere/installing-vsphere-installer-provisioned-customizations.html
https://docs.openshift.com/container-platform/4.5/installing/installing_vsphere/installing-vsphere-installer-provisioned-network-customizations.html
https://docs.openshift.com/container-platform/4.5/installing/installing_vsphere/installing-vsphere.html
https://docs.openshift.com/container-platform/4.5/installing/installing_vsphere/installing-vsphere-network-customizations.html
https://docs.openshift.com/container-platform/4.5/installing/installing_vsphere/installing-restricted-networks-vsphere.html


Verified fix is published and live on docs.openshift.com [4.6]:
https://docs.openshift.com/container-platform/4.6/storage/persistent_storage/persistent-storage-vsphere.html#vsphere-pv-backup_persistent-storage-efs
https://docs.openshift.com/container-platform/4.6/installing/installing_vsphere/installing-vsphere-installer-provisioned.html
https://docs.openshift.com/container-platform/4.6/installing/installing_vsphere/installing-vsphere-installer-provisioned-customizations.html
https://docs.openshift.com/container-platform/4.6/installing/installing_vsphere/installing-vsphere-installer-provisioned-network-customizations.html
https://docs.openshift.com/container-platform/4.6/installing/installing_vsphere/installing-vsphere.html
https://docs.openshift.com/container-platform/4.6/installing/installing_vsphere/installing-vsphere-network-customizations.html
https://docs.openshift.com/container-platform/4.6/installing/installing_vsphere/installing-restricted-networks-vsphere.html


NOTE: This update was also applied to 4.7.