Bug 1719624

Summary: Some fields with "generated if empty" info must be set when instantiate some template
Product: OpenShift Container Platform Reporter: Yanping Zhang <yanpzhan>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---   
Target Release: 4.2.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: 2019-06-13 11:51:38 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:

Description Yanping Zhang 2019-06-12 08:32:11 UTC
Description of problem:
On env without TSB enabled, try to instantiate template from "Catalog"->"Developer Catalog" page. "generated if empty" are shown in some fields, leave these fields empty, after click "Create", it prompts "Please fill out this field".
Not all templates have this issue. The issue exist on templates "JBoss EAP 7.2","MongoDB","MySQL","PostgreSQL (Ephemeral)" and so on.

Version-Release number of selected component (if applicable):
console commit 6c3890a47f479a2ef078f694b1c9b80fb8e19c79

How reproducible:
Always

Steps to Reproduce:
1.Choose a template to instantiate, eg "JBoss EAP 7.2", on the instantiating template page, leave those fields with info "generated if empty" empty, click "Create".
2.
3.

Actual results:
1.It prompts "Please fill out this field" for a field with "generated if empty".

Expected results:
1.Should not prompt info. This kind of field should be set automatically when creating.

Additional info:

Comment 1 Samuel Padgett 2019-06-12 15:32:17 UTC
https://github.com/openshift/console/pull/1703

Comment 2 Yanping Zhang 2019-06-13 02:40:26 UTC
Checked on OKD env, with latest console commit: 42f7d978c376fa018b113abd88628358fc54160a
Now instantiate template, and leave field with "generated if empty" empty, could create template instance successfully.
The bug has been fixed, so move it to Verified.