You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The pkg.latest state calls the pkg.latest_version execution module during the course of operation. When it does that, all pkgs are passed to the pkg.latest_version module at once. However, on Debian machines, the aptpkg.latest_version module which accepts the package list performs a call to apt-cache policy on the command line for every package.
Steps to Reproduce the behavior
# create a list of all installed packages
dpkg -l | grep ^ii | awk '{print $2}'> all_pkgs
# note that the package list is large
wc -l all_pkgs
415 all_pkgs
# time the operationtime salt-call pkg.latest_version $(paste -sd"" all_pkgs)
...
real 0m9.154s
user 0m6.935s
sys 0m2.196s
Expected behavior
The apt-cache policy call can accept the entire package list at once, then the output can be parsed as a whole.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
Salt: 3006.0+0na.6c81943Dependency Versions:
cffi: 1.15.1cherrypy: Not Installeddateutil: Not Installeddocker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 3.1.2libgit2: Not Installedlooseversion: 1.0.3M2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.4msgpack-pure: Not Installedmysql-python: Not Installedpackaging: 23.0pycparser: 2.21pycrypto: 2.6.1pycryptodome: 3.17pygit2: Not InstalledPython: 3.7.3 (default, Oct 31 2022, 14:04:00)python-gnupg: Not InstalledPyYAML: 6.0PyZMQ: 20.0.0smmap: Not Installedtimelib: Not InstalledTornado: 4.5.3ZMQ: 4.3.3System Versions:
dist: debian 10 busterlocale: UTF-8machine: x86_64release: 4.19.0-23-amd64system: Linuxversion: Debian GNU/Linux 10 buster
The text was updated successfully, but these errors were encountered:
Description
The
pkg.latest
state calls thepkg.latest_version
execution module during the course of operation. When it does that, allpkgs
are passed to thepkg.latest_version
module at once. However, on Debian machines, theaptpkg.latest_version
module which accepts the package list performs a call toapt-cache policy
on the command line for every package.Steps to Reproduce the behavior
Expected behavior
The
apt-cache policy
call can accept the entire package list at once, then the output can be parsed as a whole.Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: