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_openidc | Assignee: | Tomas Halman <thalman> |
| Status: | CLOSED ERRATA | QA Contact: | Scott Poore <spoore> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.3 | CC: | aboscatt, james.antill, mbanas, spoore, thalman |
| Target Milestone: | beta | Keywords: | 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
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" May I ask you for additional data. The output from `sudo dnf module list mod_auth_openidc` can help me to understand the problem. 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
This output is from a RHEL 8.3, sorry 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. 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. 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
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 |