Bug 2025276

Summary: No permissions when trying to clone to a different namespace (as Kubeadmin)
Product: Container Native Virtualization (CNV) Reporter: Yaacov Zamir <yzamir>
Component: User ExperienceAssignee: Ugo Palatucci <upalatuc>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.11.0CC: cnv-qe-bugs, gouyang, tnisan
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-14 19:28:21 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:
Attachments:
Description Flags
Error cloning to new namespace none

Description Yaacov Zamir 2021-11-21 11:50:07 UTC
Created attachment 1842892 [details]
Error cloning to new namespace

Description of problem:
When cloning a Virtual Machine and specifying a different namespace and error accrues.


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


How reproducible:


Steps to Reproduce:
1. Open a clone a virtual machine modal
2. Ask for a different namespace
3.

Actual results:
An error:
Error "Authorization failed, message is: User system:serviceaccount:rhodes:default has insufficient permissions in clone source namespace tal-vms" for field "spec.dataVolumeTemplates[0]".

Expected results:
A vm is clonned

Additional info:

Comment 4 Guohua Ouyang 2022-05-17 07:31:54 UTC
Do we need to handle the clone permission on the UI? If yes, let's move the bug to CNV-UX for investigation.

Comment 5 Yaacov Zamir 2022-05-23 13:23:33 UTC
(In reply to Guohua Ouyang from comment #4)
> Do we need to handle the clone permission on the UI? If yes, let's move the
> bug to CNV-UX for investigation.

moving to CNV

Comment 6 Guohua Ouyang 2022-06-02 03:42:22 UTC
Verified on OCP-v4.11.0-39, a message is added in the modal when select a different namespace during clone.
"Make sure to have clone permissions in the destination namespace. Learn more "

Comment 9 errata-xmlrpc 2022-09-14 19:28:21 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 (Important: OpenShift Virtualization 4.11.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-2022:6526