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 1898548 - "dnf install @perl-App-cpanminus:1.7044/common" fails on installing a source package
Summary: "dnf install @perl-App-cpanminus:1.7044/common" fails on installing a source ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dnf
Version: 8.3
Hardware: x86_64
OS: Linux
medium
unspecified
Target Milestone: rc
: 8.0
Assignee: Jaroslav Mracek
QA Contact: Eva Mrakova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-17 13:49 UTC by Mikhail Campos
Modified: 2021-05-18 15:02 UTC (History)
4 users (show)

Fixed In Version: dnf-4.4.2-5.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:01:28 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Enabled repos and dnf version (1.69 KB, text/plain)
2020-11-18 13:02 UTC, Mikhail Campos
no flags Details
Updated dnf (1.70 KB, text/plain)
2020-11-18 13:37 UTC, Mikhail Campos
no flags Details
Other dnf-related info (408 bytes, text/plain)
2020-11-18 14:02 UTC, Mikhail Campos
no flags Details
additional info log (1.12 KB, text/plain)
2020-11-19 11:16 UTC, Mikhail Campos
no flags Details
Repo info (2.50 KB, text/plain)
2020-11-19 12:14 UTC, Mikhail Campos
no flags Details

Description Mikhail Campos 2020-11-17 13:49:58 UTC
Description of problem:
I've noticed, that RHEL modulemd contains src.rpm for some reason like:

document: modulemd
version: 2
data:
  name: perl-App-cpanminus
  stream: 1.7044
  version: 8030020200313075600
  context: 3a33b840
...
        ref: stream-1.127-rhel-8.3.0
        arches: [aarch64, i686, ppc64le, s390x, x86_64]
  artifacts:
    rpms:
    ...
    - perl-App-cpanminus-0:1.7044-5.module+el8.2.0+4278+abcfa81a.src
    ...
    - perl-CPAN-Meta-Check-0:0.014-6.module+el8.2.0+4278+abcfa81a.src
    ...

But same time I have this:
$ dnf install @perl-App-cpanminus:1.7044/common

Error: Will not install a source rpm package (perl-App-cpanminus-1.7044-5.module+el8.2.0+4278+abcfa81a.src).

Did I miss some dnf.conf config options?

Version-Release number of selected component (if applicable):
el8.* modules

How reproducible:
Always

Steps to Reproduce:
1. dnf install @perl-App-cpanminus:1.7044/common

Actual results:
Error: Will not install a source rpm package (perl-App-cpanminus-1.7044-5.module+el8.2.0+4278+abcfa81a.src).

Expected results:
Installation OK

Comment 1 Petr Pisar 2020-11-18 11:32:02 UTC
I cannot reproduce it. What dnf version do you have installed? Do you have enables sources repositories?

Comment 2 Mikhail Campos 2020-11-18 13:02:07 UTC
Created attachment 1730542 [details]
Enabled repos and dnf version

The source repos are enabled. But why this should affect the installation of a modular packages? I do not really understand, src.rpm's do not even have MODULARITYLABEL rpm tag by the nature.
So, what is the reason of this?

Comment 3 Petr Pisar 2020-11-18 13:23:21 UTC
Enabling the source repositories should not affected it. I've just tried with enabled source repositories and it did not change anything for me.
However, I can see that your dnf is not up to date. The latest one in RHEL 8.3 is dnf-4.2.23-4.el8. Also your libdnf is old. Could you update them?
Also does the issue only exhibit with this one module, or does it happen for you with other modules?

If you install "@perl-App-cpanminus:1.7044/common", then DNF should install all packages listed in the "common" profile of "1.7044" stream of "perl-App-cpanminus" module. And that is "perl-App-cpanminus" package. The "artifacts" section only enumerates what packages belongs to what module build. The list is used for making the packages available. (Because otherwise modular packages are not available to the DNF dependency solver.) The list is not used for installing anything.

Comment 4 Mikhail Campos 2020-11-18 13:37:28 UTC
Created attachment 1730546 [details]
Updated dnf

After updating dnf, we have the same issue

Comment 5 Petr Pisar 2020-11-18 13:54:02 UTC
Do you have up-to-date dependencies of DNF?

# rpm -q libmodulemd librepo python3-hawkey
libmodulemd-2.9.4-2.el8.x86_64
librepo-1.12.0-2.el8.x86_64
python3-hawkey-0.48.0-5.el8.x86_64

Maybe it's some incompatibility in python3-dnf-plugin-spacewalk that I do not have installed.

Comment 6 Petr Pisar 2020-11-18 13:59:18 UTC
Neither installing python3-dnf-plugin-spacewalk helps me to reproduce it.
Frankly I cannot see anything specific to perl-App-cpanminus:1.7044 in this bug report. All modules looks like that. Reassigning to DNF.

Comment 7 Mikhail Campos 2020-11-18 14:02:39 UTC
Created attachment 1730562 [details]
Other dnf-related info

It seems that libmodulemd librepo python3-hawkey are same

But I also have python3-dnf-plugin-spacewalk-2.8.5-11 installed

Comment 8 Petr Pisar 2020-11-19 09:24:58 UTC
I have python3-dnf-plugin-spacewalk-2.8.5-11.module+el8.1.0+3455+3ddf2832. But I don't use any Satellite server, thus my spacewalk plugin is not configured.

Are your repositories generated by a Satellite server? Could you show me the complete DNF output when installing the module? I'm especially interested from which repository comes the source package. DNF shows the the repository identifier in the fourth column.

Comment 9 Mikhail Campos 2020-11-19 11:16:21 UTC
Created attachment 1730897 [details]
additional info log

So, the src.rpm is taken from
Repository   : rhel-8-for-x86_64-appstream-source-rpms

I just installed my rhel8, registered and got the error.
Also
# cat /etc/dnf/plugins/spacewalk.conf 

[main]
enabled = 0
gpgcheck = 1
timeout = 120

Comment 10 Petr Pisar 2020-11-19 11:37:54 UTC
What's a URL of the rhel-8-for-x86_64-appstream-source-rpms repository (Repo-baseurl value in "dnf repolist --repoid=rhel-8-for-x86_64-appstream-source-rpms -v" output)?

I have another conjecture. Your rhel-8-for-x86_64-appstream-rpms is missing perl-App-cpanminus package, and thus DNF attempts to install perl-App-cpanminus from another repository and the only package it founds is the source package in rhel-8-for-x86_64-appstream-source-rpms. What repositories reports "dnf info perl-App-cpanminus" command?

Comment 11 Mikhail Campos 2020-11-19 12:14:03 UTC
Created attachment 1730906 [details]
Repo info

Comment 12 Petr Pisar 2020-11-19 13:37:36 UTC
(In reply to Mikhail Campos from comment #11)
> Created attachment 1730906 [details]
> Repo info

This is not a "dnf repolist -v" output.

Comment 13 Mikhail Campos 2020-11-19 13:42:34 UTC
Well, that is exactly as you asked, 2 commands from comment #10

Comment 14 Mikhail Campos 2020-11-19 13:51:58 UTC
Anyway, those repo investigation leads to nothing, that MUST work with any official repo combination enabled/disabled. Especially, for freshly installed rhel from ISO, registered by officially provided guide from access.redhat.com.

As I remeber, those src.rpm in artifacts have not been provided in some rhel8.0/8.1 modules, but now they are for any module. As I said before this looks like "broken logic" for dnf, those src.rpm do not even have modularitylabel, so why do not treat them as those "normal" like in BaseOS I mean ALWAYS visible in dnf ops?

Comment 15 Petr Pisar 2020-11-19 15:07:42 UTC
I see. I downloaded a wrong attachment. If you pasted the outputs into the comments, or named the attachment files differently, it would be easier for me.

You can try passing --disablerepo=\*-source-rpms option to dnf when installing the module. It could help you as a workaround.

Your "dnf info" lists two perl-App-cpanminus packages. For noarch and for src architecture, each from the correct repository.
But both packages have 1.7044-5.module+el8.1.0+2942+5e3df93c version. But that's old version. The latest version and the one your DNF complains about is 1.7044-5.module+el8.2.0+4278+abcfa81a.

Also what puzzles me is that your DNF error reports 1.7044-5.module+el8.2.0+4278+abcfa81a package build which is for perl:5.30 stream. But you stated you have a default installation and the default one has perl:5.26 as the default stream, so DNF should show and install builds for perl:5.26.

I recommend you to contact Red Hat support <https://access.redhat.com/support/>. They should help you with debugging your issue.

Comment 16 Mikhail Campos 2020-11-19 15:31:51 UTC
Oh, well, of course I changed default perl to 5.30. Sorry, I forgot to mention this.

Perhaps, I should try to reproduce it again in more "clean" way starting from the clean installation.

Comment 17 Mikhail Campos 2020-11-20 10:42:33 UTC
OK, after installing rhel8.3 from scratch, I was able to reproduce it only, if src.rpm repos are enabled.
Please, confirm if it's more like a "feature" rather than a bug.
As I see enabling source repos should not affect modular installations.

Comment 18 Petr Pisar 2020-11-20 13:46:19 UTC
In my opinion, this is definitely a bug. But let's wait for DNF developers to evaluate it.

Comment 19 Jaroslav Mracek 2020-11-23 16:07:23 UTC
I create a patch that will resolve the issue.

Comment 27 errata-xmlrpc 2021-05-18 15:01:28 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 (dnf 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:1657


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