Bug 1985164

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: YaoJinbo <jyao>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.8CC: aos-bugs, danken, gouyang, tnisan, ycui
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2009224 (view as bug list) Environment:
Last Closed: 2021-10-18 17:40:51 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:
Bug Depends On:    
Bug Blocks: 2009224    
Attachments:
Description Flags
error on restore snapshot none

Description Guohua Ouyang 2021-07-23 03:41:09 UTC
Created attachment 1804725 [details]
error on restore snapshot

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:

Comment 2 Guohua Ouyang 2021-08-09 04:42:26 UTC
verified on master

Comment 4 Dan Kenigsberg 2021-09-30 08:20:34 UTC
@gouyang the fix seems simple enough. Can we request a backport to 4.8?

Comment 5 Guohua Ouyang 2021-09-30 08:27:19 UTC
(In reply to Dan Kenigsberg from comment #4)
> @gouyang the fix seems simple enough. Can we request a backport
> to 4.8?

Done: https://bugzilla.redhat.com/show_bug.cgi?id=2009224

Comment 7 errata-xmlrpc 2021-10-18 17:40:51 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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security 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:3759