+++ This bug was initially created as a clone of Bug #1982143 +++ Description of problem: In VirtualMachine status.volumeSnapshotStatuses[*].reason for some volumes types is wrong, for example ConfigMap volumes don't need storage class, but the reason for it's none snapshot state is that it's lacking storage class. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. create a virtual machine with ephimeral, configMap (or other none snpashotable disk) 2. check VirtualMachine status.volumeSnapshotStatuses[*].reason 3. Actual results: "Volume type has no StorageClass defined" Expected results: "Snapshots are not supported for [containerDisk/CloudInit ...] volumes" (or a similar mreason) Additional info: list of volume types: https://kubevirt.io/user-guide/virtual_machines/disks_and_volumes/#volumes cloudInitNoCloud not? cloudInitConfigDrive not? persistentVolumeClaim snapshotable? dataVolume snapshotable? ephemeral not? containerDisk not? emptyDisk not? hostDisk not? configMap not? secret not? serviceAccount not? downwardMetrics not? --- Additional comment from on 2021-07-14 12:06:28 UTC --- Adam, This BZ appears to be more storage related than virt. What do you think? --- Additional comment from on 2021-07-15 13:41:24 UTC --- Adam, I've re-assigned this BZ to storage as it appears to fall under that umbrella. Please feel free to re-assign this if you feel this action was in error. --- Additional comment from Adam Litke on 2021-08-04 17:31:18 UTC --- Won't make it in time for 4.8.1. Pushing out. --- Additional comment from Yan Du on 2021-08-25 12:25:51 UTC --- Hi, Shelly, do we have any update for the bug? --- Additional comment from on 2021-08-25 12:40:41 UTC --- yeah I just tried the new automation in my PR lets see if it will update the link
verified on CNV 4.9.0 1. create a vm with none snpashotable disk 2. check VirtualMachine status.volumeSnapshotStatuses[*].reason: Volume Snapshot Statuses: Enabled: false Name: containerdisk Reason: Snapshot is not supported for this volumeSource type [containerdisk]
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Virtualization 4.9.0 Images security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:4104