Bug 2159442
Summary: | VMSnapshot breaks after OCP Upgrade 4.10.z -> 4.11.z | ||
---|---|---|---|
Product: | Container Native Virtualization (CNV) | Reporter: | Jenia Peimer <jpeimer> |
Component: | Storage | Assignee: | skagan |
Status: | CLOSED WONTFIX | QA Contact: | Jenia Peimer <jpeimer> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 4.10.8 | CC: | alitke, apinnick, pousley, skagan, yadu |
Target Milestone: | --- | ||
Target Release: | 4.11.3 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Known Issue | |
Doc Text: |
Cause: OCP is upgraded to 4.11 without upgrading OCP-Virt
Consequence: OCP expects api version v1 for snapshot objects but OCP-Virt is still using version v1beta1. This causes a failure when attempting to restore a VM Snapshot
Workaround (if any): Upgrade OCP-Virt to 4.11
Result: VM Snapshot Restore will work as expected
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2023-01-18 14:32:07 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
Jenia Peimer
2023-01-09 15:46:55 UTC
There's no VolumeSnapshotSlass for storage class 'ocs-storagecluster-ceph-rbd' with provisioner 'openshift-storage.rbd.csi.ceph.com' (but there was before the upgrade) [cnv-qe-jenkins@c01-ocp411-upg-bl777-executor ~]$ oc get volumesnapshotclass NAME DRIVER DELETIONPOLICY AGE ocs-storagecluster-cephfsplugin-snapclass openshift-storage.cephfs.csi.ceph.com Delete 30h ocs-storagecluster-rbdplugin-snapclass openshift-storage.rbd.csi.ceph.com Delete 30h standard-csi cinder.csi.openstack.org Delete 31h [cnv-qe-jenkins@c01-ocp411-upg-bl777-executor ~]$ oc get sc | grep ocs local-block-ocs kubernetes.io/no-provisioner Delete WaitForFirstConsumer false 30h ocs-storagecluster-ceph-rbd openshift-storage.rbd.csi.ceph.com Delete Immediate true 30h ocs-storagecluster-cephfs openshift-storage.cephfs.csi.ceph.com Delete Immediate true 30h I mean THERE IS a VolumeSnapshotClass, please don't mind my previous comment :) Shelly, could you please take a look? The bug happens when upgrading OCP to 4.11 without upgrading CNV also. In such case the informers in CNV are expected to be in v1beta1 version while the OCP upgrade updated them to be v1. This discrepancy causes the informers to not be enabled in the virt-controller which makes the vm snapshot appear as not ready and the vmsnapshotstatus to show no available volumesnapshotclass the snapshot itself is still valid and upgrading the CNV to 4.11 should solve the issue. This issue can be solved by upgrading CNV to an already available version. Therefore, there is nothing more we can do except recommend this upgrade. OCP and OCP-Virt Y-stream versions should always be matching anyway. Verified that upgrading the CNV will solve the issue. 1. Created a VM and a VMSnapshot 2. Upgraded the OCP 4.10 -> 4.11 3. Upgraded the CNV 4.10 -> 4.11 4. The VMSnapshot became ReadyToUse: true 5. Created the VirtualMachineRestore, it became Completed, and the restored VM was Running. |