Bug 1928244

Summary: repoquery does not support * in --repo, but other commands do
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: dnf5Assignee: rpm-software-management
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: dmach, jkolarik, jmracek, jrohel, lhrazky, mblaha, mhatina, msuchy, nsella, packaging-team-maint, pkratoch, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Miro Hrončok 2021-02-12 17:31:33 UTC
dnf repoquery does not respect --repo='*' or generally * in the repo argument.

The repos are fetched, but no results are found:

[root@77c10ef6464e /]# dnf repoquery --repo='*' -a
Fedora 35 openh264 (From Cisco) - x86_64         30 kB/s |  70 kB     00:02    
Errors during downloading metadata for repository 'fedora-cisco-openh264':
  - Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-35&arch=x86_64 (IP: 140.211.169.206)
  - Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-35&arch=x86_64 (IP: 185.141.165.254)
Error: Failed to download metadata for repo 'fedora-cisco-openh264': Cannot prepare internal mirrorlist: Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-35&arch=x86_64 (IP: 185.141.165.254)
Fedora 35 openh264 (From Cisco) - x86_64 - Debu  78 kB/s |  70 kB     00:00    
Errors during downloading metadata for repository 'fedora-cisco-openh264-debuginfo':
  - Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-debug-35&arch=x86_64 (IP: 185.141.165.254)
Error: Failed to download metadata for repo 'fedora-cisco-openh264-debuginfo': Cannot prepare internal mirrorlist: Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=fedora-cisco-openh264-debug-35&arch=x86_64 (IP: 185.141.165.254)
Fedora Modular 35 - x86_64                      475 kB/s | 188 kB     00:00    
Fedora Modular 35 - x86_64 - Debug               77 kB/s |  43 kB     00:00    
Fedora Modular 35 - Source                      8.7 kB/s | 3.8 kB     00:00    
Fedora - Modular Rawhide - Developmental packag 498 kB/s | 134 kB     00:00    
Fedora - Modular Rawhide - Debug                 19 kB/s | 4.8 kB     00:00    
Fedora - Modular Rawhide - Source               7.3 kB/s | 4.8 kB     00:00    
Fedora - Rawhide - Developmental packages for t 4.7 MB/s |  73 MB     00:15    
Fedora - Rawhide - Debug                        5.1 MB/s |  33 MB     00:06    
Fedora - Rawhide - Source                       1.8 MB/s | 7.2 MB     00:04    
Fedora Modular 35 - x86_64 - Updates             81 kB/s | 134 kB     00:01    
Fedora Modular 35 - x86_64 - Updates - Debug    9.1 kB/s | 4.8 kB     00:00    
Fedora Modular 35 - Updates Source               11 kB/s | 4.8 kB     00:00    
Fedora Modular 35 - x86_64 - Test Updates       256 kB/s | 134 kB     00:00    
Fedora Modular 35 - x86_64 - Test Updates Debug  10 kB/s | 4.8 kB     00:00    
Fedora Modular 35 - Test Updates Source         7.6 kB/s | 4.8 kB     00:00    
Fedora 35 - x86_64 - Test Updates               912 kB/s | 1.7 MB     00:01    
Fedora 35 - x86_64 - Test Updates Debug         5.0 kB/s | 4.9 kB     00:00    
Fedora 35 - Test Updates Source                 5.7 kB/s | 4.9 kB     00:00    
Fedora 35 - x86_64 - Updates                    889 kB/s | 1.7 MB     00:01    
Fedora 35 - x86_64 - Updates - Debug            4.4 kB/s | 4.9 kB     00:01    
Fedora 35 - Updates Source                      8.3 kB/s | 4.9 kB     00:00    
Fedora 35 - x86_64                              689 kB/s | 1.7 MB     00:02    
Fedora 35 - x86_64 - Debug                      4.9 kB/s | 4.9 kB     00:00    
Fedora 35 - Source                              6.0 kB/s | 4.9 kB     00:00    
Ignoring repositories: fedora-cisco-openh264, fedora-cisco-openh264-debuginfo


[root@77c10ef6464e /]# dnf repoquery --repo='*' -a | wc -l
Fedora 35 openh264 (From Cisco) - x86_64         21 kB/s |  70 kB     00:03    
Errors during downloading metadata ...
Ignoring repositories: fedora-cisco-openh264, fedora-cisco-openh264-debuginfo
Last metadata expiration check: 0:00:47 ago on Fri Feb 12 17:27:39 2021.
0

[root@77c10ef6464e /]# dnf repoquery --repo='*-source' -a | wc -l
Last metadata expiration check: 0:01:50 ago on Fri Feb 12 17:27:39 2021.
0

[root@77c10ef6464e /]# dnf repoquery --repo='fedora-source' -a | wc -l
Last metadata expiration check: 0:01:55 ago on Fri Feb 12 17:27:39 2021.
21857



Other commands, however do respect this:

[root@77c10ef6464e /]# dnf list packages --repo='*' '*' | wc -l
Errors during downloading metadata ...
Ignoring repositories: fedora-cisco-openh264, fedora-cisco-openh264-debuginfo
464752

[root@77c10ef6464e /]# dnf list packages --repo='*-source' '*' | wc -l
87590

[root@77c10ef6464e /]# dnf list packages --repo='fedora-source' '*' | wc -l
22011



This happens with dnf-4.5.2-1.fc33.noarch on Fedora 33 as well as with dnf-4.6.0-1.fc34.noarch on Rawhide.

Comment 1 Ben Cotton 2021-11-04 16:05:07 UTC
This message is a reminder that Fedora 33 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '33'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 33 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Miro Hrončok 2021-11-05 09:51:51 UTC
Also relevant on Fedora 34 and possibly newer.

BTW This has been "Triaged" months ago, what does that mean? As a reported, I have no idea.

Comment 3 Lukáš Hrázký 2021-11-05 10:40:41 UTC
> This has been "Triaged" months ago, what does that mean?

It means we know about it and it's in our backlog. Realistically (though likely not hard to fix) this isn't high on our priority list.

Comment 4 Ben Cotton 2022-05-12 16:30:20 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 5 Miro Hrončok 2022-05-12 17:46:42 UTC
Still relevant.

Comment 6 amatej 2022-05-16 05:19:57 UTC
*** Bug 2007139 has been marked as a duplicate of this bug. ***

Comment 7 Ben Cotton 2022-11-29 16:52:00 UTC
This message is a reminder that Fedora Linux 35 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 35 on 2022-12-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '35'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 35 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 8 Ben Cotton 2023-04-25 16:41:45 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 9 Jaroslav Mracek 2023-05-17 15:14:32 UTC
The issue is fixed in DNF5

Comment 10 Jaroslav Mracek 2023-05-17 15:18:27 UTC
The question is what is expected behavior when I use `dnf5 repoquery --repo=fedora* dnf --installed`?

What about to move the issue to DNF5 component, because it will replace DNF in Fedora 39 and it is already available in Fedora 38.

Comment 11 Miro Hrončok 2023-05-17 19:49:13 UTC
(In reply to Jaroslav Mracek from comment #10)
> The question is what is expected behavior when I use `dnf5 repoquery
> --repo=fedora* dnf --installed`?

Same as `dnf5 repoquery --repo=fedora{,-{debuginfo,source,...}}  dnf --installed`. I might not understand the question.


> What about to move the issue to DNF5 component, because it will replace DNF
> in Fedora 39 and it is already available in Fedora 38.

Done.

Comment 12 Fedora Release Engineering 2023-08-16 07:04:43 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.