Bug 2217496
| Summary: | Unknown argument "-C" for command "repoquery". | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Richard W.M. Jones <rjones> |
| Component: | fedora-review | Assignee: | Neal Gompa <ngompa13> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 38 | CC: | admiller, code, jvanek, leamas.alec, michel, mspacek, ngompa13, pingou, rominf |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-07-20 10:56:39 UTC | Type: | --- |
| 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: | 2119984, 2221319, 2221320 | ||
|
Description
Richard W.M. Jones
2023-06-26 12:56:50 UTC
If you hit this bug, the workaround is to use either a copr build or to use an older (pre-dnf5) version of Fedora in mock: fedora-review -b 123123 -m fedora-38-x86_64 While you're at it, egrep has started printed this entirely nonsensical warning: egrep: warning: egrep is obsolescent; using grep -E Should be fixed upstream in dnf5 in 5.0.14: https://github.com/rpm-software-management/dnf5/issues/635 Specifically: https://github.com/rpm-software-management/dnf5/issues/227 That version of dnf5 already appears to be in a Rawhide compose, but I’m still encountering the bug when running “fedora-review -n foobar” from F38 using the default Rawhide chroot. F38 is still on dnf5-5.0.13, but it doesn’t seem like that should be the version that matters. I have similar issue in Fedora f38 with result: INFO: Active plugins: Shell-api, Perl, Generic Unknown argument "-l" for command "repoquery". Add "--help" for more information about the arguments. ERROR: Exception down the road... Command is "mock -r fedora-rawhide-x86_64 --no-cleanup-after --no-clean -qn --enable-network shell dnf repoquery -C -l filesystem" (In reply to Michal Josef Spacek from comment #4) > I have similar issue in Fedora f38 with result: > > INFO: Active plugins: Shell-api, Perl, Generic > Unknown argument "-l" for command "repoquery". Add "--help" for more > information about the arguments. > ERROR: Exception down the road... > > Command is "mock -r fedora-rawhide-x86_64 --no-cleanup-after --no-clean -qn > --enable-network shell dnf repoquery -C -l filesystem" This one was fixed already in dnf5: https://github.com/rpm-software-management/dnf5/pull/707 However I guess that has not made it into Fedora yet because I just saw the same error locally with a completely up to date Rawhide. The issue is already fixed in rawhide (support of `dnf5 repoquery -C`). The feature is present in dnf5-5.0.15 (dnf5-0:5.0.15-4.fc39). I have this issue with dnf5-5.0.15 (dnf5-0:5.0.15-4.fc39) still.
I am running fedora-review -b 2097813 in Fedora F38
Error:
Unknown argument "-l" for command "repoquery". Add "--help" for more information about the arguments.
Error log:
07-19 13:53 root DEBUG Running: mock -r fedora-rawhide-x86_64 --no-cleanup-after --no-clean -qn --enable-network shell dnf repoquery -C -l filesystem
07-19 13:53 root DEBUG Exception down the road...
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/FedoraReview/review_helper.py", line 236, in run
self._do_run(outfile)
File "/usr/lib/python3.11/site-packages/FedoraReview/review_helper.py", line 226, in _do_run
self._do_report(outfile)
File "/usr/lib/python3.11/site-packages/FedoraReview/review_helper.py", line 99, in _do_report
self._run_checks(self.bug.spec_file, self.bug.srpm_file, outfile)
File "/usr/lib/python3.11/site-packages/FedoraReview/review_helper.py", line 117, in _run_checks
self.checks.run_checks(output=output, writedown=not Settings.no_report)
File "/usr/lib/python3.11/site-packages/FedoraReview/checks.py", line 381, in run_checks
run_check(name)
File "/usr/lib/python3.11/site-packages/FedoraReview/checks.py", line 356, in run_check
check.run()
File "/usr/lib/python3.11/site-packages/FedoraReview/check_base.py", line 266, in run
self.run_on_applicable()
File "/usr/lib/python3.11/site-packages/FedoraReview/plugins/generic.py", line 477, in run_on_applicable
filesys_dirs = set(deps.list_paths("filesystem"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/FedoraReview/deps.py", line 291, in list_paths
paths = check_output(cmd, universal_newlines=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['mock', '-r', 'fedora-rawhide-x86_64', '--no-cleanup-after', '--no-clean', '-qn', '--enable-network', 'shell', 'dnf repoquery -C -l filesystem']' returned non-zero exit status 2.
07-19 13:53 root ERROR Exception down the road... (logs in /home/skim/.cache/fedora-review.log)
[skim@man ~]$ mock -r fedora-rawhide-x86_64 --no-cleanup-after --no-clean -qn --enable-network shell 'rpm -qi dnf5'
Name : dnf5
Version : 5.0.15
Release : 4.fc39
Architecture: x86_64
Install Date: Wed Jul 19 13:52:49 2023
Group : Unspecified
Size : 1200894
License : GPL-2.0-or-later
Signature : RSA/SHA256, Tue Jul 11 20:06:56 2023, Key ID 75cf5ac418b8e74c
Source RPM : dnf5-5.0.15-4.fc39.src.rpm
Build Date : Tue Jul 11 19:40:15 2023
Build Host : buildvm-x86-29.iad2.fedoraproject.org
Packager : Fedora Project
Vendor : Fedora Project
URL : https://github.com/rpm-software-management/dnf5
Bug URL : https://bugz.fedoraproject.org/dnf5
Summary : Command-line package manager
Description :
DNF5 is a command-line package manager that automates the process of installing,
upgrading, configuring, and removing computer programs in a consistent manner.
It supports RPM packages, modulemd modules, and comps groups & environments.
The issue is fixed in rawhide, therefore I am closing the issue as nextrelease. The patch should be also available soon in Fedora 38. Just note, this was spotted also on f37, do you plan to do f37 release? That's funny. This error goes away, but there is another one. https://bugzilla.redhat.com/show_bug.cgi?id=2224258 @jvanek I think that your issue is same as my ^, issue on Fedora rawhide in mock. |