-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] got multiple values for keyword argument 'saltenv' #64118
Comments
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
Is this an upgrade from an older salt version? Did it work previously? |
I was on salt 3005.1 previously and it worked fine before the upgrade to 3006. |
Likely related to this? |
Same issue. Almalinux 8.7 on 3006.0, clean install, was working on 3004.2 and 3005.1 classic, Python3.7. Tested with Vagrant + QEMU. |
Accidentally opened duplicate #64157. Same issue on Debian 11 amd64 with the following config: mystate:
pkg.installed:
- sources:
- libmypkg1: 'salt:/path/to/libmypkg1_0.1.0-1_amd64.deb'
- mypkg: 'salt://path/to/mypkg_0.1.0-1_amd64.deb' |
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
Same issue running Amazon Linux 2, determined this is a minion issue. Salt-master running 3005.1 and minion 3006 and still shows issue. # Install of DrawIO
install_drawio:
pkg.installed:
- name: draw.io
- sources:
- draw.io: <Location>*.rpm
- user: ...
- group: ... |
Fixed in #64179 |
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
…212844) (#590) * fix passing wrong keyword arguments to cp.cache_file in pkg.installed with sources * Drop `**kwargs` usage and be explicit about the supported keyword arguments. Signed-off-by: Pedro Algarvio <palgarvio@vmware.com> * Add regression test for saltstack/salt#64118 Signed-off-by: Pedro Algarvio <palgarvio@vmware.com> * Add changelog file Signed-off-by: Pedro Algarvio <palgarvio@vmware.com> --------- Signed-off-by: Pedro Algarvio <palgarvio@vmware.com> Co-authored-by: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> Co-authored-by: Pedro Algarvio <palgarvio@vmware.com>
Description
Getting error TypeError: salt.loaded.int.module.cp.cache_file() got multiple values for keyword argument 'saltenv'
when trying to install an rpm from an outside source using pkgs.installed state.
Setup
master and minion both are Rocky 9 on 3006.0
SLS:
Getting error:
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
Try to install package from outside source.
Versions Report
Salt Version:
Salt: 3006.0
Python Version:
Python: 3.10.11 (main, Apr 14 2023, 05:57:16) [GCC 11.2.0]
Dependency Versions:
cffi: 1.14.6
cherrypy: unknown
dateutil: 2.8.1
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 3.1.2
libgit2: Not Installed
looseversion: 1.0.2
M2Crypto: Not Installed
Mako: Not Installed
msgpack: 1.0.2
msgpack-pure: Not Installed
mysql-python: Not Installed
packaging: 22.0
pycparser: 2.21
pycrypto: Not Installed
pycryptodome: 3.9.8
pygit2: Not Installed
python-gnupg: 0.4.8
PyYAML: 5.4.1
PyZMQ: 23.2.0
relenv: 0.11.2
smmap: Not Installed
timelib: 0.2.4
Tornado: 4.5.3
ZMQ: 4.3.4
System Versions:
dist: rocky 9.1 Blue Onyx
locale: utf-8
machine: x86_64
release: 5.14.0-162.23.1.el9_1.x86_64
system: Linux
version: Rocky Linux 9.1 Blue Onyx
Additional context
I also get the same issue with local files like:
The text was updated successfully, but these errors were encountered: