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

Bug 1771245

Summary: UI created template cannot be used in cli
Product: OpenShift Container Platform Reporter: Guohua Ouyang <gouyang>
Component: Console Kubevirt PluginAssignee: Yaacov Zamir <yzamir>
Status: CLOSED ERRATA QA Contact: Nelly Credi <ncredi>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.3.0CC: aos-bugs, rhrazdil, yzamir
Target Milestone: ---   
Target Release: 4.3.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: 2020-01-23 11:12:18 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 Guohua Ouyang 2019-11-12 03:07:25 UTC
Description of problem:
Create a template 'ccc' from template wizard on web console, try to use it from cli get below error:

$ oc process ccc -p NAME=test123 | oc create -f -
The  "" is invalid: spec.running: One of Running or RunStrategy must be specified

Add "running: false" to the template can make it work.
----------------------
  spec:
    running: false
    template:
----------------------

Version-Release number of selected component (if applicable):
4.3.0-0.nightly-2019-11-02-092336

How reproducible:
100%

Steps to Reproduce:
1. Create a template 'ccc' from ui
2. Use it to create VM from cli via `oc process ccc -p NAME=test123 | oc create -f -`
3.

Actual results:


Expected results:


Additional info:

Comment 1 Yaacov Zamir 2019-11-12 13:13:45 UTC
submitted upstream:
https://github.com/openshift/console/pull/3355

Comment 2 Yaacov Zamir 2019-11-14 07:13:27 UTC
merged upstream:
https://github.com/openshift/console/pull/3355

Comment 4 Radim Hrazdil 2019-11-29 11:50:25 UTC
Verified
4.3.0-0.nightly-2019-11-21-122827

Comment 6 errata-xmlrpc 2020-01-23 11:12:18 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, 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/RHBA-2020:0062