Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2051378

Summary: Template wizard is crashed when there are no templates existing
Product: OpenShift Container Platform Reporter: Guohua Ouyang <gouyang>
Component: Console Kubevirt PluginAssignee: Yaacov Zamir <yzamir>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: high    
Version: 4.10CC: aos-bugs, gouyang, lkladnit, rnetser, 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-08-10 10:47:24 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 wizard crashed none

Description Guohua Ouyang 2022-02-07 07:16:06 UTC
Created attachment 1859515 [details]
template wizard crashed

Description of problem:
Delete all templates from 'openshift' ns and try to use template wizard, the wizard is crashed after it's loaded.

For YAML, it shows error: 'Error "Required value" for field "parameters[1].name".'

Version-Release number of selected component (if applicable):
4.10.0-0.nightly-2022-02-06-060618

How reproducible:
100%

Steps to Reproduce:
1. Delete all templates from opneshift ns
2. Use template wizard
3.

Actual results:


Expected results:


Additional info:

Comment 1 Tal Nisan 2022-02-07 14:36:47 UTC
The SSP operator will renew your templates after deleting all of them so reducing severity and marking blocker-

Guohua, how did you manage to delete them without the SSP operator restoring them?

Comment 2 Guohua Ouyang 2022-02-08 01:05:35 UTC
(In reply to Tal Nisan from comment #1)
> The SSP operator will renew your templates after deleting all of them so
> reducing severity and marking blocker-
> 
> Guohua, how did you manage to delete them without the SSP operator restoring
> them?

When editing HCO to deploy templates to a custom namespace, and then delete templates from 'openshift', the SSP operator did not renew templates in 'openshift'.
Reproduce steps:
1. edit hco to add "commonTemplatesNamespace: default" to spec.
$ oc edit hco kubevirt-hyperconverged -n openshift-cnv
spec:
  commonTemplatesNamespace: default
2. delete template from 'openshift'
$ oc delete template --all -n openshift
3. check the UI


@Ruth, do you think is it correct or it's an SSP bug in this case?

Comment 3 Guohua Ouyang 2022-02-08 01:09:56 UTC
(In reply to Guohua Ouyang from comment #2)
> (In reply to Tal Nisan from comment #1)
> > The SSP operator will renew your templates after deleting all of them so
> > reducing severity and marking blocker-
> > 
> > Guohua, how did you manage to delete them without the SSP operator restoring
> > them?
> 
> When editing HCO to deploy templates to a custom namespace, and then delete
> templates from 'openshift', the SSP operator did not renew templates in
> 'openshift'.
> Reproduce steps:
> 1. edit hco to add "commonTemplatesNamespace: default" to spec.
> $ oc edit hco kubevirt-hyperconverged -n openshift-cnv
> spec:
>   commonTemplatesNamespace: default
> 2. delete template from 'openshift'
> $ oc delete template --all -n openshift
> 3. check the UI
> 
> 
> @Ruth, do you think is it correct or it's an SSP bug in this case?

Just tested, after set "commonTemplatesNamespace: default" in HCO, the ssp operator renews templates in "default" ns, so this looks not a bug to me.

Comment 4 Yaacov Zamir 2022-02-15 10:44:53 UTC
submitted upstream
https://github.com/openshift/console/pull/11054

Comment 5 Yaacov Zamir 2022-02-15 12:24:37 UTC
merged upstream
https://github.com/openshift/console/pull/11054

Comment 7 Leon Kladnitsky 2022-02-15 20:09:05 UTC
Verified on master, commit 3018969ac7

Comment 8 Guohua Ouyang 2022-02-16 01:50:38 UTC
> For YAML, it shows error: 'Error "Required value" for field "parameters[1].name".'
This is not fixed, will open a new bug for it.

Comment 9 Guohua Ouyang 2022-02-16 01:53:29 UTC
(In reply to Guohua Ouyang from comment #8)
> > For YAML, it shows error: 'Error "Required value" for field "parameters[1].name".'
> This is not fixed, will open a new bug for it.

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

Comment 10 Guohua Ouyang 2022-02-16 02:33:50 UTC
Another bug related to this: https://bugzilla.redhat.com/show_bug.cgi?id=2054926

Comment 12 errata-xmlrpc 2022-08-10 10:47:24 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 Container Platform 4.11.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-2022:5069