Bug 2037908

Summary: [4.7] ostree-finalize-staged.service failed while upgrading a rhcos node to 4.6.17
Product: OpenShift Container Platform Reporter: RHCOS Bug Bot <rhcos-bot>
Component: RHCOSAssignee: Colin Walters <walters>
Status: CLOSED ERRATA QA Contact: Aashish Radhakrishnan <aaradhak>
Severity: high Docs Contact:
Priority: medium    
Version: 4.6.zCC: dornelas, jligon, miabbott, mrussell, nstielau, oarribas
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2037907
: 2037909 (view as bug list) Environment:
Last Closed: 2022-01-19 13:30:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2037907    
Bug Blocks: 2037909    

Description RHCOS Bug Bot 2022-01-06 19:39:22 UTC
Backport the fix for bug 1945274 to 4.7.

Comment 1 Micah Abbott 2022-01-07 17:02:06 UTC
RHCOS 47.84.202201071525-0 built on Jan 7 2022 includes `ostree-2020.7-6.el8_4`.

This version of RHCOS should appear in an OCP 4.7.z release in the near future.

Comment 4 Aashish Radhakrishnan 2022-01-13 23:11:51 UTC
Verified on RHCOS - 47.84.202201101903-0

[core@localhost ~]$ rpm -q ostree strace
ostree-2020.7-6.el8_4.x86_64
strace-5.7-2.1.el8_4.x86_64
[core@localhost ~]$ sudo rpm-ostree override replace strace-5.13-2.el8.x86_64.rpm
Checking out tree 3caac84... done
No enabled rpm-md repositories.
Importing rpm-md... done
Resolving dependencies... done
Applying 1 override
Processing packages... done
Running pre scripts... done
Running post scripts... done
Running posttrans scripts... done
Writing rpmdb... done
Writing OSTree commit... done
Staging deployment... done
Upgraded:
  strace 5.7-2.1.el8_4 -> 5.13-2.el8
Run "systemctl reboot" to start a reboot
[core@localhost ~]$ sudo reboot
Connection to 192.168.122.84 closed by remote host.
Connection to 192.168.122.84 closed.
[aaradhak@aaradhak ~]$ ssh core.122.84
Red Hat Enterprise Linux CoreOS 47.84.202201101903-0
  Part of OpenShift 4.7, RHCOS is a Kubernetes native operating system
  managed by the Machine Config Operator (`clusteroperator/machine-config`).

WARNING: Direct SSH access to machines is not recommended; instead,
make configuration changes via `machineconfig` objects:
  https://docs.openshift.com/container-platform/4.7/architecture/architecture-rhcos.html

---
Last login: Thu Jan 13 22:59:36 2022 from 192.168.122.1
[core@localhost ~]$ rpm -q strace
strace-5.13-2.el8.x86_64
[core@localhost ~]$ ls
strace-5.13-2.el8.x86_64.rpm
[core@localhost ~]$ journalctl -b "-1" -u ostree-finalize-staged.service
-- Logs begin at Thu 2022-01-13 22:48:48 UTC, end at Thu 2022-01-13 23:04:14 UT>
Jan 13 23:03:01 localhost systemd[1]: Started OSTree Finalize Staged Deployment.
Jan 13 23:03:23 localhost systemd[1]: Stopping OSTree Finalize Staged Deploymen>
Jan 13 23:03:23 localhost ostree[1639]: Finalizing staged deployment
Jan 13 23:03:24 localhost ostree[1639]: Copying /etc changes: 8 modified, 0 rem>
Jan 13 23:03:24 localhost ostree[1639]: Copying /etc changes: 8 modified, 0 rem>
Jan 13 23:03:25 localhost ostree[1639]: Bootloader updated; bootconfig swap: ye>
Jan 13 23:03:25 localhost ostree[1639]: Bootloader updated; bootconfig swap: ye>
Jan 13 23:03:25 localhost systemd[1]: ostree-finalize-staged.service: Succeeded.
Jan 13 23:03:25 localhost systemd[1]: Stopped OSTree Finalize Staged Deployment.
lines 1-10/10 (END)

Comment 6 errata-xmlrpc 2022-01-19 13:30:41 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.41 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.

https://access.redhat.com/errata/RHBA-2022:0117