Bug 1853516

Summary: The baremetal asset credentials aren't injected.
Product: Red Hat Advanced Cluster Management for Kubernetes Reporter: Alexander Chuzhoy <sasha>
Component: Cluster LifecycleAssignee: Hao Liu <haoli>
Status: CLOSED CURRENTRELEASE QA Contact: magchen@redthat.com <magchen>
Severity: unspecified Docs Contact: Christopher Dawson <cdawson>
Priority: unspecified    
Version: rhacm-2.0CC: cvultur, gghezzo
Target Milestone: ---Keywords: AutomationBlocker, DeliveryBlocker
Target Release: rhacm-2.0Flags: gghezzo: rhacm-2.0+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhacm-2.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-21 22:49:05 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 Alexander Chuzhoy 2020-07-02 21:22:35 UTC
Version:

2.0.0-SNAPSHOT-2020-07-02-15-26-48

Cluster version is 4.5.0-rc.4



Steps to reproduce:

Attempt to create a baremetal cluster

Result:
The baremetal assets user and password in the generated <clustername>-install-config secret aren't set and cluster deployment fails early with the following log:

REDACTED LINE OF OUTPUT
time="2020-07-02T20:22:10Z" level=error msg="error after waiting for command completion" error="exit status 1" installID=bhqf4kw7
time="2020-07-02T20:22:10Z" level=error msg="error generating installer assets" error="exit status 1" installID=bhqf4kw7
time="2020-07-02T20:22:10Z" level=info msg="reading installer log" installID=bhqf4kw7
time="2020-07-02T20:22:10Z" level=info msg="saving installer output" installID=bhqf4kw7
time="2020-07-02T20:22:10Z" level=debug msg="installer console log: REDACTED LINE OF OUTPUT\n" installID=bhqf4kw7
time="2020-07-02T20:22:10Z" level=info msg="updating clusterprovision" installID=bhqf4kw7
time="2020-07-02T20:22:10Z" level=fatal msg="runtime error" error="exit status 1"



If we disable the log redaction, we'll see:
time="2020-07-02T20:50:41Z" level=debug msg="installer console log: level=fatal msg=\"failed to fetch Master Machines: failed to load asset \\\"Install Config\\\": invalid \\\"install-config.yaml\\\" file: [platform.baremetal.hosts[0].BMC.Username: Required value: missing Username, platform.baremetal.hosts[0].BMC.Password: Required value: missing Password, platform.baremetal.hosts[1].BMC.Username: Required value: missing Username, platform.baremetal.hosts[1].BMC.Password: Required value: missing Password, platform.baremetal.hosts[2].BMC.Username: Required value: missing Username, platform.baremetal.hosts[2].BMC.Password: Required value: missing Password, platform.baremetal.hosts[3].BMC.Username: Required value: missing Username, platform.baremetal.hosts[3].BMC.Password: Required value: missing Password, platform.baremetal.hosts[4].BMC.Username: Required value: missing Username, platform.baremetal.hosts[4].BMC.Password: Required value: missing Password]\"\n" installID=h2ssqpn4
time="2020-07-02T20:50:41Z" level=info msg="updating clusterprovision" installID=h2ssqpn4
time="2020-07-02T20:50:41Z" level=fatal msg="runtime error" error="exit status 1





Workaround:
After filling all the fields, edit the generated yaml and set username and password to their actual values and click on "create cluster".

Comment 1 Alexander Chuzhoy 2020-07-03 13:18:44 UTC
*** Bug 1853605 has been marked as a duplicate of this bug. ***

Comment 2 Alexander Chuzhoy 2020-07-08 14:44:17 UTC
This seem to work fine with snapshot: 2.0.0-SNAPSHOT-2020-07-07-22-44-12

Comment 3 Alexander Chuzhoy 2020-07-08 17:21:34 UTC
Verified based on comment #2

Comment 4 Ginny Ghezzo 2020-09-21 22:49:05 UTC
This was delivered in ACM 2.0. I am reconciling our books.