Bug 1915685 - Message for not supported template is not clear enough
Summary: Message for not supported template is not clear enough
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-13 08:52 UTC by Rastislav Wagner
Modified: 2021-02-24 15:52 UTC (History)
3 users (show)

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


Attachments (Terms of Use)
template without support (2.37 MB, application/octet-stream)
2021-01-21 12:15 UTC, Guohua Ouyang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 7820 0 None closed Bug 1915685: Tweak message for not supported template 2021-01-20 07:20:34 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:52:56 UTC

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


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