Bug 1970590

Summary: Cluster upgrade halts as machine-config-daemon fails to parse `rpm-ostree status` during cluster upgrades
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Machine Config OperatorAssignee: Colin Walters <walters>
Machine Config Operator sub component: Machine Config Operator QA Contact: Michael Nguyen <mnguyen>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified CC: agogala, dornelas, jerzhang, jligon, lucab, miabbott, mkrejci, mnguyen, mrussell, nstielau, rioliu, rsandu, smilner, walters, wsun
Version: 4.7   
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-03 17:56:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1958812    
Bug Blocks:    

Comment 4 Michael Nguyen 2021-07-27 15:21:39 UTC
Verified on 4.7.0-0.nightly-2021-07-26-204501

ostree admin unlock --hotfix
replaced  /usr/bin/rpm-ostree with script

echo oops 1>&2
exit 1

upgrade from 4.7.0-0.nightly-2021-07-26-204501 to 4.8.0-0.nightly-2021-07-26-182557 and captured the more verbose error handling

I0727 15:17:42.413587   90230 start.go:108] Version: v4.8.0-202107231447.p0.git.29813c8.assembly.stream-dirty (29813c845a4a3ee8e6856713c585aca834e0bf1e)
I0727 15:17:42.416003   90230 start.go:121] Calling chroot("/rootfs")
I0727 15:17:42.416078   90230 rpm-ostree.go:278] Running captured: rpm-ostree status --json
F0727 15:17:42.417786   90230 start.go:150] Failed to initialize single run daemon: error reading osImageURL from rpm-ostree: error running rpm-ostree status --json: exit status 1

Comment 6 errata-xmlrpc 2021-08-03 17:56:24 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 (OpenShift Container Platform 4.7.22 bug fix 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.