Bug 1853516 - The baremetal asset credentials aren't injected.
Summary: The baremetal asset credentials aren't injected.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: Cluster Lifecycle
Version: rhacm-2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: rhacm-2.0
Assignee: Hao Liu
QA Contact: magchen@redthat.com
Christopher Dawson
URL:
Whiteboard:
: 1853605 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-02 21:22 UTC by Alexander Chuzhoy
Modified: 2021-08-12 16:01 UTC (History)
2 users (show)

Fixed In Version: rhacm-2.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-21 22:49:05 UTC
Target Upstream Version:
Embargoed:
gghezzo: rhacm-2.0+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github open-cluster-management backlog issues 3289 0 None None None 2020-09-21 22:48:24 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.