Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1424588

Summary: microdnf appears to not work with Software Collections
Product: Red Hat Enterprise Linux 7 Reporter: Ben Breard <bbreard>
Component: libdnfAssignee: Honza Silhan <jsilhan>
Status: CLOSED NEXTRELEASE QA Contact: Martin Jenner <mjenner>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.3CC: ajia, walters
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: libdnf-0.7.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-24 16:56:02 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:
Bug Depends On:    
Bug Blocks: 1400827    

Description Ben Breard 2017-02-17 17:42:06 UTC
Description of problem:

When the container host is properly registered to I'm unable to install rpms from software collections.

Version-Release number of selected component (if applicable):
Using 7.3.3 bits from here: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=12513629

How reproducible:

100%

Steps to Reproduce:
1. subscribe a RHEL or RHEL Atomic Host system 
2. Run the rhel7-atomic container
3. run bash-4.2# microdnf --enablerepo=rhel-7-server-rpms --enablerepo=rhel-server-rhscl-7-rpms --enablerepo=rhel-7-server-optional-rpms install httpd24 --nodocs


Actual results:

Downloading metadata...
Downloading metadata...

(microdnf:223): libdnf-WARNING **: Skipping refresh of rhel-server-rhscl-7-rpms: Failed to download gpg key for repo 'rhel-server-rhscl-7-rpms': Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release [Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release]
error: No package matches 'httpd24'



Expected results:

Install the packages.

Additional info:

Comment 3 Honza Silhan 2017-02-24 16:56:02 UTC
I've rebased libdnf to 0.7.4 [1] and it's done/tracked within bug 1409914

[1] https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=539490

Comment 4 Martin Jenner 2017-02-24 19:03:57 UTC
I verified this using following snippet Dockerfile

....
FROM registry.access.stage.redhat.com/rhel7-atomic

# - Temporary command until new rhel7-atomic image is built

RUN rpm -Uvh http://download.eng.bos.redhat.com/brewroot/packages/microdnf/2/2.el7.1.1/x86_64/microdnf-2-2.el7.1.1.x86_64.rpm http://download.eng.bos.redhat.com/brewroot/packages/libdnf/0.7.4/2.el7.el/x86_64/libdnf-0.7.4-2.el7.el.x86_64.rpm

RUN microdnf install --enablerepo=rhel-7-server-rpms --enablerepo=rhel-server-rhscl-7-rpms httpd24 && microdnf clean all
....

no longer hit the issues.

Comment 5 Colin Walters 2017-02-24 19:12:57 UTC
\o/