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 1958148

Summary: dnf install @<module-spec> crash on module without default profile
Product: Red Hat Enterprise Linux 8 Reporter: Thibault HEINRICH <thibault>
Component: mod_auth_openidcAssignee: Tomas Halman <thalman>
Status: CLOSED ERRATA QA Contact: Scott Poore <spoore>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: aboscatt, james.antill, mbanas, spoore, thalman
Target Milestone: betaKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 09:21:48 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 Thibault HEINRICH 2021-05-07 10:30:03 UTC
Description of problem:

When sending 

Version-Release number of selected component (if applicable):

4.2 (RHEL8)
4.7 (Fedora33)

How reproducible:

sending
dnf install @mod_auth_openidc


Steps to Reproduce:
1. 


Actual results:

Dnf crash with message
No profiles for module mod_auth_openidc:2.3
Error: Unable to find a match

Expected results:

module installed 

Additional info:

Same result specifying stream
dnf install @mod_auth_openidc:2.3

Same error for any "profile-less" module

This behavior makes Ansible dnf module crash with theses modules.

Comment 1 Thibault HEINRICH 2021-05-18 14:02:04 UTC
For the mod_auth_openidc module, looking at the artifacts associated with each version on that same stream makes me guess that one should be "devel" when the other is more "common"

Comment 2 Jaroslav Mracek 2021-05-19 14:39:10 UTC
May I ask you for additional data. The output from `sudo dnf module list mod_auth_openidc` can help me to understand the problem.

Comment 3 Thibault HEINRICH 2021-05-21 07:26:47 UTC
Here are outputs from a RHEL8.2. for Fedora, since Fedora 34 the package mod_auth_openidc is available on mainstream (no module) from the "updates" repo. 

# dnf module list mod_auth_openidc
...
Name             Stream Profiles Summary                                              
mod_auth_openidc 2.3             Apache module suporting OpenID Connect authentication



# dnf module info mod_auth_openidc
...   
Name             : mod_auth_openidc
Stream           : 2.3
Version          : 8020020200604180605
Context          : 4cda2c84
Architecture     : x86_64
Profiles         : 
Default profiles : 
Repo             : rhel-8-for-x86_64-appstream-rpms
Summary          : Apache module suporting OpenID Connect authentication
Description      : This module enables an Apache 2.x web server to operate as an OpenID Connect Relying Party and/or OAuth 2.0 Resource Server.
Requires         : platform:[el8]
Artifacts        : cjose-0:0.6.1-2.module+el8+2454+f890a43a.src
                 : cjose-0:0.6.1-2.module+el8+2454+f890a43a.x86_64
                 : cjose-debuginfo-0:0.6.1-2.module+el8+2454+f890a43a.x86_64
                 : cjose-debugsource-0:0.6.1-2.module+el8+2454+f890a43a.x86_64
                 : cjose-devel-0:0.6.1-2.module+el8+2454+f890a43a.x86_64
                 : mod_auth_openidc-0:2.3.7-4.module+el8.2.0+6919+ac02cfd2.3.src
                 : mod_auth_openidc-0:2.3.7-4.module+el8.2.0+6919+ac02cfd2.3.x86_64
                 : mod_auth_openidc-debuginfo-0:2.3.7-4.module+el8.2.0+6919+ac02cfd2.3.x86_64
                 : mod_auth_openidc-debugsource-0:2.3.7-4.module+el8.2.0+6919+ac02cfd2.3.x86_64

Name             : mod_auth_openidc
Stream           : 2.3
Version          : 820181213140451
Context          : 9edba152
Architecture     : x86_64
Profiles         : 
Default profiles : 
Repo             : rhel-8-for-x86_64-appstream-rpms
Summary          : Apache module suporting OpenID Connect authentication
Description      : This module enables an Apache 2.x web server to operate as an OpenID Connect Relying Party and/or OAuth 2.0 Resource Server.
Requires         : platform:[el8]
Artifacts        : cjose-0:0.6.1-2.module+el8+2454+f890a43a.x86_64
                 : cjose-devel-0:0.6.1-2.module+el8+2454+f890a43a.x86_64
                 : mod_auth_openidc-0:2.3.7-3.module+el8+2454+f890a43a.x86_64

Comment 4 Thibault HEINRICH 2021-05-21 07:30:27 UTC
This output is from a RHEL 8.3, sorry

Comment 5 Jaroslav Mracek 2021-06-01 15:14:51 UTC
Now I see. It looks like that module `mod_auth_openidc` does not have any profile therefore there is nothing to install. It means that `dnf install @mod_auth_openidc` cannot install any rpm and most of users expect that install command will delivery something. Therefore it is correct that dnf finish with an error.

In case that you want to only make content of module available, please use `dnf module enable mod_auth_openidc`. Then you can install `cjose` or other package from the module.

I suggest that you expects that `dnf install @mod_auth_openidc` will install some content. It requires that maintainers of module `mod_auth_openidc` will create a profile. The best would be to mark such a profile as default. Therefore I am changing the component to module because from DNF perspective it works like expected.

Comment 6 Thibault HEINRICH 2021-06-02 09:11:14 UTC
Indeed, Redhat module maintainers should define some profiles for `mod_auth_openidc` module. 

I'm suprised that there's no policy to avoid such "unprofiled" module.

As I said before, as a consequence, Ansible `ansible.builtin.dnf` module crash with unprofiled modules.

Comment 16 Scott Poore 2022-05-19 22:34:51 UTC
Marking verified as the module info has been fixed in the profile.

# dnf module info mod_auth_openidc
Last metadata expiration check: 1:01:28 ago on Thu 19 May 2022 05:23:21 PM EDT.
Name             : mod_auth_openidc
Stream           : 2.3 [d][a]
Version          : 8070020220413132751
Context          : 3b9f49c4
Architecture     : x86_64
Profiles         : default [d]
Default profiles : default
Repo             : rhel-8.7-AppStream
Summary          : Apache module suporting OpenID Connect authentication
Description      : This module enables an Apache 2.x web server to operate as an OpenID Connect Relying Party and/or OAuth 2.0 Resource Server.
Requires         : platform:[el8]
Artifacts        : cjose-0:0.6.1-2.module+el8+2454+f890a43a.src
                 : cjose-0:0.6.1-2.module+el8+2454+f890a43a.x86_64
                 : cjose-debuginfo-0:0.6.1-2.module+el8+2454+f890a43a.x86_64
                 : cjose-debugsource-0:0.6.1-2.module+el8+2454+f890a43a.x86_64
                 : cjose-devel-0:0.6.1-2.module+el8+2454+f890a43a.x86_64
                 : mod_auth_openidc-0:2.4.9.4-1.module+el8.7.0+14797+4085fcb6.src
                 : mod_auth_openidc-0:2.4.9.4-1.module+el8.7.0+14797+4085fcb6.x86_64
                 : mod_auth_openidc-debuginfo-0:2.4.9.4-1.module+el8.7.0+14797+4085fcb6.x86_64
                 : mod_auth_openidc-debugsource-0:2.4.9.4-1.module+el8.7.0+14797+4085fcb6.x86_64

Comment 19 errata-xmlrpc 2022-11-08 09:21:48 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 (mod_auth_openidc:2.3 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-2022:7480