RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2088459 - [osbuild-composer] cannot build an edge container with sssd
Summary: [osbuild-composer] cannot build an edge container with sssd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: osbuild-composer
Version: 9.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Image Builder team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-19 13:41 UTC by Christophe Besson
Modified: 2022-11-15 10:08 UTC (History)
6 users (show)

Fixed In Version: osbuild-composer-51-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-15 09:50:32 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github osbuild osbuild-composer pull 2568 0 None Merged πŸ“¦πŸ”—πŸ“¦ Introduce chain dependency solving 2022-05-23 09:47:20 UTC
Red Hat Issue Tracker RHELPLAN-122598 0 None None None 2022-05-19 13:54:19 UTC
Red Hat Product Errata RHSA-2022:7950 0 None None None 2022-11-15 09:51:02 UTC

Description Christophe Besson 2022-05-19 13:41:05 UTC
Description of problem:
Using a blueprint with the 'sssd' packages leads to a transaction error due to a conditional dependencies. For a weird reason, it happens only while building an edge-container, the issue does not appear with AMI for example.

Version-Release number of selected component (if applicable):
osbuild-composer-46.3-1.el9_0

How reproducible:
Always

Steps to Reproduce:
1. Create and push the below blueprint
name = "sssd-rhel9"
description = "installing sssd fails"
version = "0.0.1"
modules = []
groups = []
distro = "rhel-90"

[[packages]]
name = "sssd"
version = "*"

2. Compose an edge-container
# composer-cli compose start-ostree --ref rhel/9/x86_64/edge sssd-rhel9 edge-container

Actual results:
 :
 :
Pipeline ostree-tree
Stage org.osbuild.rpm
Output:
 :
error: Failed dependencies:
	(libsss_sudo = 2.6.2-4.el9_0 if sudo) is needed by sssd-common-2.6.2-4.el9_0.x86_64
Traceback (most recent call last):
  File "/run/osbuild/bin/org.osbuild.rpm", line 334, in <module>
    r = main(args["tree"], args["inputs"], args["options"])
  File "/run/osbuild/bin/org.osbuild.rpm", line 288, in main
    subprocess.run([
  File "/usr/lib64/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['rpm', '--verbose', '--root', '/run/osbuild/tree', '--nosignature', '--install', '/tmp/manifest.sdfjof_h']' returned non-zero exit status 254.

Additional info:
- Adding the conditional deps in the blueprint fixes the issue (namely libsss_sudo, maybe also sudo)

Comment 1 OndΕ™ej Budai 2022-05-23 09:47:21 UTC
Already fixed upstream https://github.com/osbuild/osbuild-composer/pull/2568 and released in osbuild-composer-51. FWIW, the fix should be available soon in CentOS Stream.

Comment 3 Xiaofeng Wang 2022-05-24 05:59:45 UTC
Pre-verified on upstream scratch build "osbuild-composer-54-1.20220524git5a22291.el9" on PR https://github.com/osbuild/osbuild-composer/pull/2681.

Comment 4 Christophe Besson 2022-06-20 09:40:02 UTC
Adding another case with conditional dependencies.

Stage org.osbuild.rpm
Output:
[/usr/lib/tmpfiles.d/journal-nocow.conf:26] Failed to resolve specifier: uninitialized /etc detected, skipping
All rules containing unresolvable specifiers will be skipped.
Failed to create file /sys/fs/selinux/checkreqprot: Read-only file system
imported gpg key
imported gpg key
imported gpg key
creating a fake machine id
error: Failed dependencies:
        (osbuild-selinux if selinux-policy-targeted) is needed by osbuild-53-2.el8.noarch
        (container-selinux if selinux-policy) is needed by podman-2:4.0.2-6.module+el8.6.0+14877+f643d2d6.x86_64
        (container-selinux >= 2:2.162.1 if selinux-policy) is needed by containers-common-2:1-27.module+el8.6.0+14877+f643d2d6.x86_64
Traceback (most recent call last):
  File "/run/osbuild/bin/org.osbuild.rpm", line 334, in <module>
    r = main(args["tree"], args["inputs"], args["options"])
  File "/run/osbuild/bin/org.osbuild.rpm", line 298, in main
    ], cwd=pkgpath, check=True)
  File "/usr/lib64/python3.6/subprocess.py", line 438, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['rpm', '--verbose', '--root', '/run/osbuild/tree', '--nosignature', '--install', '/tmp/manifest.751bf2bg']' returned non-zero exit status 254.

Comment 7 Xiaofeng Wang 2022-07-07 04:28:11 UTC
Hi Christophe!

No new osbuild and osbuild-composer packages in RHEL 9.0, could you please try it on RHEL 9.1? I verified this issue on RHEL 9.1, issue got fixed.
Verified RHEL 9.1 compose:
    http://download-node-02.eng.bos.redhat.com/rhel-9/nightly/RHEL-9/RHEL-9.1.0-20220706.0
Packages:
    osbuild-59-1.el9.noarch.rpm
    osbuild-composer-55-1.el9.x86_64.rpm
    weldr-client-35.5-2.el9.x86_64.rpm

If issue fixed, could you please update status to VERIFIED or ping me, I'll update the status. Thanks.

Comment 9 errata-xmlrpc 2022-11-15 09:50:32 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 (Low: Image Builder security, 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/RHSA-2022:7950


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