Bug 2062312

Summary: MCC bootstrap command lacks template flag
Product: OpenShift Container Platform Reporter: Dan Mace <dmace>
Component: Machine Config OperatorAssignee: Dan Mace <dmace>
Machine Config Operator sub component: Machine Config Operator QA Contact: Rio Liu <rioliu>
Status: CLOSED WONTFIX Docs Contact:
Severity: medium    
Priority: unspecified CC: aos-bugs, kgarriso, mkrejci, openshift-bugzilla-robot, rioliu, team-mco
Version: 4.11   
Target Milestone: ---   
Target Release: 4.8.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2062310 Environment:
Last Closed: 2022-03-17 13:35:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2062310    
Bug Blocks:    

Description Dan Mace 2022-03-09 14:28:13 UTC
+++ This bug was initially created as a clone of Bug #2062310 +++

+++ This bug was initially created as a clone of Bug #2062290 +++

+++ This bug was initially created as a clone of Bug #2062007 +++

Description of problem:

The `machine-config-controller bootstrap` subcommand uses the `--template` flag default value, but the flag is only associated with the `start` subcommand internally, so end users can't actually override the hard-coded default value when running the `bootstrap` command.

Version-Release number of MCO (Machine Config Operator) (if applicable):

Platform (AWS, VSphere, Metal, etc.): All

Are you certain that the root cause of the issue being reported is the MCO (Machine Config Operator)?
(Y/N/Not sure): Y

How reproducible:

Run `machine-config-controller bootstrap --template`.

Did you catch this issue by running a Jenkins job? If yes, please list: No

Steps to Reproduce:

Run `machine-config-controller bootstrap --template ...`.

Actual results:

Command fails because the `--template` flag is unrecognized.

Expected results:

Should work with the value I provided.

Additional info:

This was encountered performing integration work for HyperShift.

Comment 1 Kirsten Garrison 2022-03-12 00:15:35 UTC
*** Bug 2062313 has been marked as a duplicate of this bug. ***

Comment 2 Dan Mace 2022-03-17 13:35:03 UTC
We don't need a 4.8 backport after all.