Bug 1916580 - Default yaml is broken for VM and VM template
Summary: Default yaml is broken for VM and VM template
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.0
Assignee: Rastislav Wagner
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-15 06:34 UTC by Guohua Ouyang
Modified: 2021-02-24 15:54 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:53:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
create vm from template (147.96 KB, image/png)
2021-01-15 06:34 UTC, Guohua Ouyang
no flags Details
create vm from yaml (272.85 KB, image/png)
2021-01-18 02:34 UTC, Guohua Ouyang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 7856 0 None open Bug 1916580: Fix default VM Template YAML 2021-01-18 08:55:30 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:54:00 UTC

Description Guohua Ouyang 2021-01-15 06:34:44 UTC
Created attachment 1747689 [details]
create vm from template

Description of problem:
Login with a normal user 'test' and create a template via template wizard, then create a vm from this template, it shows an error:

Error "Authorization failed, message is: User system:serviceaccount:test:default has insufficient permissions in clone source namespace ${SRC_PVC_NAMESPACE}" for field "spec.dataVolumeTemplates[0]".

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

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Rastislav Wagner 2021-01-15 14:36:09 UTC
Can you please provide exact steps how you created the template ? It seems to work fine for me, so Im apparently missing something.

can you post template YAML too ?

Comment 2 Omer Yahud 2021-01-17 08:05:56 UTC
To me it looks like parameter substitution is not happening, ${SRC_PVC_NAMESPACE} should have been replaced with the actual namespace name (openshift-virualization-os-images)

Comment 3 Guohua Ouyang 2021-01-18 02:34:22 UTC
Created attachment 1748348 [details]
create vm from yaml

Comment 4 Guohua Ouyang 2021-01-18 02:35:43 UTC
(In reply to Rastislav Wagner from comment #1)
> Can you please provide exact steps how you created the template ? It seems
> to work fine for me, so Im apparently missing something.
> 
> can you post template YAML too ?

It can be simply reproduced by creating vm from the default yaml(without a change), see the new attachment, it should be the same issue.

Comment 6 Guohua Ouyang 2021-01-21 05:49:57 UTC
fixed on latest UI

Comment 9 errata-xmlrpc 2021-02-24 15:53:46 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.7.0 security, bug fix, and enhancement 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-2020:5633


Note You need to log in before you can comment on or make changes to this bug.