Bug 1915685

Summary: Message for not supported template is not clear enough
Product: OpenShift Container Platform Reporter: Rastislav Wagner <rawagner>
Component: Console Kubevirt PluginAssignee: Rastislav Wagner <rawagner>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7CC: aos-bugs, gouyang, yzamir
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:52:40 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
template without support none

Description Rastislav Wagner 2021-01-13 08:52:19 UTC
Description of problem:
When user tries to create VM from template which does not have support defined, a modal is opened but the message should be:

The support level is not defined in the template yaml. To mark this template as supported, add these two annotations to the template yaml:
template.kubevirt.io/provider: Your Company Name
template.kubevirt.io/provider-support-level: Full


How reproducible:
always


Steps to Reproduce:
1. choose template which does not have support
2. click create
3. see message in modal

Comment 2 Guohua Ouyang 2021-01-21 06:00:24 UTC
@Rastislav,
The annotations are added to template now, but there is no way to pop-up such message on the latest UI, could you take a look?
Can we verify this by just checking the annotations in yaml?

Comment 3 Rastislav Wagner 2021-01-21 07:39:25 UTC
I think the downstream build currently has only templates with Full and Community support. So in order to see the message about non-supported template you have to:

1. create new template
2. edit the new template YAML - remove labels template.kubevirt.io/provider, template.kubevirt.io/provider-support-level, template.kubevirt.io/provider, template.kubevirt.ui/parent-provider and template.kubevirt.ui/parent-support-level
3. try to create VM from the edited template and you should see the message as described by this bug

Comment 4 Guohua Ouyang 2021-01-21 12:15:02 UTC
Created attachment 1749370 [details]
template without support

Comment 5 Guohua Ouyang 2021-01-21 12:15:56 UTC
(In reply to Rastislav Wagner from comment #3)
> I think the downstream build currently has only templates with Full and
> Community support. So in order to see the message about non-supported
> template you have to:
> 
> 1. create new template
> 2. edit the new template YAML - remove labels template.kubevirt.io/provider,
> template.kubevirt.io/provider-support-level, template.kubevirt.io/provider,
> template.kubevirt.ui/parent-provider and
> template.kubevirt.ui/parent-support-level
> 3. try to create VM from the edited template and you should see the message
> as described by this bug

I've tried these steps, see the attachment in c#3, it does not work for me.

Comment 8 errata-xmlrpc 2021-02-24 15:52:40 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