Bug 2009224

Summary: Regular user cannot restore VM snapshot
Product: OpenShift Container Platform Reporter: Guohua Ouyang <gouyang>
Component: Console Kubevirt PluginAssignee: Aviv Turgeman <aturgema>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: high Docs Contact:
Priority: medium    
Version: 4.8CC: aos-bugs, aturgema, danken, gouyang, tnisan, ycui, yzamir
Target Milestone: ---   
Target Release: 4.8.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1985164 Environment:
Last Closed: 2021-11-23 11:33:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1985164    
Bug Blocks:    

Description Guohua Ouyang 2021-09-30 08:25:45 UTC
+++ This bug was initially created as a clone of Bug #1985164 +++

Description of problem:
While restore a snapshot it meets an error:
Danger alert:An error occurred
virtualmachinerestores.snapshot.kubevirt.io "rhel6-itchy-quail-2021-7-23-restore-c6f9mc" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: , <nil>

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Login with a regular user
2. Create a VM which can take snapshot
3. Take a snapshot and then try to restore the snapshot

Actual results:


Expected results:


Additional info:

--- Additional comment from OpenShift Automated Release Tooling on 2021-08-04 13:36:12 CST ---

Elliott changed bug status from MODIFIED to ON_QA.

--- Additional comment from Guohua Ouyang on 2021-08-09 12:42:26 CST ---

verified on master

--- Additional comment from errata-xmlrpc on 2021-09-07 16:58:25 CST ---

This bug has been added to advisory RHEA-2021:81213 by OpenShift Release Team Bot (ocp-build/buildvm.openshift.eng.bos.redhat.com)

--- Additional comment from Dan Kenigsberg on 2021-09-30 16:20:34 CST ---

@gouyang the fix seems simple enough. Can we request a backport to 4.8?

Comment 2 Ying Cui 2021-11-10 02:15:37 UTC
Could you have a look at this bug? from QE point of view, we would like to backport to 4.8.z as early as possible. Thanks.

Comment 3 Yaacov Zamir 2021-11-10 13:46:17 UTC
Aviv can you manually backport:
https://github.com/openshift/console/pull/9693

auto backport filed: https://github.com/openshift/console/pull/9693#issuecomment-965174630

Comment 5 Guohua Ouyang 2021-11-12 08:38:58 UTC
verifed on upstream release-4.8

Comment 8 errata-xmlrpc 2021-11-23 11:33:27 UTC
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 (OpenShift Container Platform 4.8.21 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/RHBA-2021:4716