Bug 1973579

Summary: compose/commit: may end up creating a rpmdb under /var
Product: Red Hat Enterprise Linux 8 Reporter: Luca BRUNO <lucab>
Component: rpm-ostreeAssignee: Luca BRUNO <lucab>
Status: CLOSED ERRATA QA Contact: Micah Abbott <miabbott>
Severity: high Docs Contact:
Priority: high    
Version: 8.5CC: jlebon, tgunders, xiaofwan
Target Milestone: betaKeywords: Triaged
Target Release: 8.5   
Hardware: Unspecified   
OS: All   
Whiteboard:
Fixed In Version: rpm-ostree-2021.5-2.el8 Doc Type: Bug Fix
Doc Text:
This fixes `rpm-ostree compose commit` to use the proper location for rpmdb.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 18:46:52 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 Luca BRUNO 2021-06-18 08:17:16 UTC
In some circumstances, rpm-ostree compose commit may end up creating a new rpmdb hierarchy under /var in the final commit.

See https://github.com/coreos/rpm-ostree/issues/2904 for more details.

This current behavior is troublesome because it depends on host configuration and does not seem overridable at runtime, so this surfaces only in some environments (e.g. under osbuild).

Comment 1 Xiaofeng Wang 2021-06-18 08:44:47 UTC
That'll cause issue https://bugzilla.redhat.com/show_bug.cgi?id=1959907
Reproduce and verify this issue, please see issue above for details.

Comment 7 Xiaofeng Wang 2021-06-21 13:58:13 UTC
Verified on rpm-ostree-2021.5-2.el8.x86_64 and rpm-ostree-libs-2021.5-2.el8.x86_64.

Comment 9 errata-xmlrpc 2021-11-09 18:46:52 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 (rpm-ostree bug fix and enhancement 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-2021:4272