Bug 2105341 - Bootstrap Gather Fails when cluster.tfvars.json is not available in Azure
Summary: Bootstrap Gather Fails when cluster.tfvars.json is not available in Azure
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.11
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: 4.12.0
Assignee: Brent Barbachem
QA Contact: MayXu
Mike Pytlak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-08 15:25 UTC by Patrick Dillon
Modified: 2023-01-17 19:52 UTC (History)
2 users (show)

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*])
Clone Of:
Environment:
Last Closed: 2023-01-17 19:51:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift installer pull 6168 0 None open BUG 2105341: Remove required check for control planes in boostrap gather 2022-07-26 14:08:06 UTC
Red Hat Product Errata RHSA-2022:7399 0 None None None 2023-01-17 19:52:34 UTC

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


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