limb
(Gwyn Ciesla)
June 22, 2023, 8:07pm
1
FYI, the recent changeover from dnf to dnf5 in Fedora 39+ has broken pkg.* states for Salt Stack. I’ve created an RH BZ and an upstream bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2216848
opened 07:59PM - 22 Jun 23 UTC
Bug
needs-triage
**Description**
pkg.* uses dnf with no issues for me on Fedora. However, starti… ng with Fedora 39, dnf is obsoleted by dnf5. The command line options are different, so a simple symlink won't work.
**Setup**
install_fedora_packages:
pkg.installed:
- pkgs:
- vim-enhanced
- nmap
- dnf-automatic
- firewalld
Please be as specific as possible and give set-up details.
Install salt-minion on Fedora 39 instance, start minion, accept key on master.
**Steps to Reproduce the behavior**
Apply the above sls.
**Expected behavior**
salt-minion installs packages.
**Screenshots**
----------
ID: install_fedora_packages
Function: pkg.installed
Result: False
Comment: Error occurred installing package(s). Additional info follows:
errors:
- Unknown argument "--allowerasing" for command "dnf5". Add "--help" for more information about the arguments.
Started: 19:45:43.710036
Duration: 1480.451 ms
Changes:
**Versions Report**
Minion is Fedora 39 with same salt version.
Master:
```yaml
Master:
Salt Version:
Salt: 3006.1
Python Version:
Python: 3.11.3 (main, May 24 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)]
Dependency Versions:
cffi: 1.15.1
cherrypy: unknown
dateutil: 2.8.2
docker-py: Not Installed
gitdb: 4.0.9
gitpython: 3.1.30
Jinja2: 3.0.3
libgit2: 1.6.3
looseversion: 1.2.0
M2Crypto: 0.38.0
Mako: 1.2.3
msgpack: 1.0.4
msgpack-pure: Not Installed
mysql-python: Not Installed
packaging: 23.0
pycparser: 2.20
pycrypto: 2.6.1
pycryptodome: 3.17.0
pygit2: 1.12.0
python-gnupg: 0.5.0
PyYAML: 6.0
PyZMQ: 24.0.1
relenv: Not Installed
smmap: 5.0.0
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.4
System Versions:
dist: fedora 38
locale: utf-8
machine: x86_64
release: 6.3.8-200.fc38.x86_64
system: Linux
version: Fedora Linux 38
```
</details>
**Additional context**
With dnf5, the old dnf cannot be installed. This completely breaks any pkg usage on Fedora 39+.
I'm the Fedora Link salt RPM package maintainer.
kparal
(Kamil Páral)
June 23, 2023, 6:38am
2
Thanks. But I’m not sure if this fits into Common Issues . I think we mainly target it as documentation for stable releases, or at least Branched/Beta, not Rawhide. And this is the first time I heard about Salt, so I don’t have a good estimate if it impacts a sizeable portion of our user base. Let’s wait if there are opinions from other people.
Maybe not an issue with fedora, but I would guess its likely to be a big issue for rhel.
lruzicka
(Lukáš Růžička)
June 23, 2023, 7:18am
4
I have just talked with DNF5 developers and they claim that --allowerasing
is still a valid option, but they made it command specific and not global anymore.
Therefore, the correct usage should be dnf5 install --allowerasing <pacakge>
. The syntax with dnf5 --allowerasing install <package>
does not work.
I do not know anything about salt , but can this be controlled from the user’s perspective? If so, just change it. If not, this might be reported to upstream.
The devels promised to document it in a better way.
limb
(Gwyn Ciesla)
June 23, 2023, 2:30pm
5
Entirely likely that I miscategorized this, as it’s my first Discussion post.
mattdm
(Matthew Miller)
June 23, 2023, 2:32pm
6
I don’t think there’s any problem with suggesting it here. It’s a fine place to start for something that might be a widespread problem.
limb
(Gwyn Ciesla)
July 26, 2023, 7:06pm
7
FYI, this is now fixed in rawhide.