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

Bug 2105341

Summary: Bootstrap Gather Fails when cluster.tfvars.json is not available in Azure
Product: OpenShift Container Platform Reporter: Patrick Dillon <padillon>
Component: InstallerAssignee: Brent Barbachem <bbarbach>
Installer sub component: openshift-installer QA Contact: MayXu <maxu>
Status: CLOSED ERRATA Docs Contact: Mike Pytlak <mpytlak>
Severity: high    
Priority: medium CC: bbarbach, mpytlak
Version: 4.11   
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
* Previously, gathering bootstrap logs was not possible until the control plane machines were running. With this update, gathering bootstrap logs now only requires that the bootstrap machine be available. (link:https://bugzilla.redhat.com/show_bug.cgi?id=2105341[*BZ#2105341*])
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-17 19:51:48 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 Patrick Dillon 2022-07-08 15:25:16 UTC
Troubleshooting an install, the user was unable to gather boostrap logs with the error: 

FATAL could not find outputs file "cluster.tfvars.json": stat cluster.tfvars.json: no such file or directory

Bootstrap logs should be gatherable with just the bootstrap node; we shouldn't require control plane nodes. 

We have required masters since gather was created, so I might be missing something; but requiring control plane nodes could also be an assumption from AWS, where control plane nodes are created before the bootstrap node. 


The relevant failing call begins here: https://github.com/openshift/installer/blob/master/cmd/openshift-install/gather.go#L119

The ultimate cause of the failure I was troubleshooting was a bad pull secret. So this issue should be reproduceable when using a bad pull secret in Azure. 

The relevant slack thread is here:
https://coreos.slack.com/archives/CHFF1LCUR/p1657178183932829

Comment 2 MayXu 2022-07-28 08:38:09 UTC
check with 4.12.0-0.nightly-2022-07-27-133042 

no cluster.tfvars.json, Bootstrap logs should be gathered with just the bootstrap node.

Comment 5 errata-xmlrpc 2023-01-17 19:51:48 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 (Moderate: OpenShift Container Platform 4.12.0 bug fix and security update), 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/RHSA-2022:7399