Software to automate the management and configuration of any infrastructure or application at scale. Install Salt from the Salt package repositories here:
On several, but not all, of our Windows minions the command 'salt minionname pkg.list_pkgs' returns the error below. However, pkg.list_pkgs versions_as_list=True provides the expected output without an error (Also shown below). This issue has persisted over the past few versions of salt. I have been updating in hopes that the bug will resolve itself, but it hasn't.
USARPADEWRK5222-Telco:
Passed invalid arguments to pkg.list_pkgs: sequence item 0: expected string, int found
List the packages currently installed in a dict::
{'<package_name>': '<version>'}
CLI Example:
.. code-block:: bash
salt '*' pkg.list_pkgs
salt '*' pkg.list_pkgs versions_as_list=True
USARPADEWRK5222-Telco:
----------
7-Zip 15.14:
- 15.14
7-Zip 9.38:
- 9.38.00.0
Adobe AIR:
- 20.0.0.233
Adobe Acrobat Reader DC MUI:
- 15.010.20059
Adobe Flash Player 20 ActiveX:
- 20.0.0.306
Adobe Flash Player 20 NPAPI:
- 20.0.0.306
Adobe Refresh Manager:
- 1.8.0
Adobe Shockwave Player 12.2:
- 12.2.3.183
Autodesk 360:
- 4.0.27.1
Autodesk App Manager:
- 1.1.0
Autodesk AutoCAD Map 3D 2014:
- 16.0.014.2
Autodesk AutoCAD Map 3D 2014 HF1:
- 1
Autodesk AutoCAD Map 3D 2014 Language Pack:
- 16.0.014.2
Autodesk AutoCAD Map 3D 2014 SP1:
- 1
Autodesk AutoCAD Map 3D 2014 SP2:
- 1
Autodesk Autodesk AutoCAD Map 3D 2014:
- 16.1.200.22
Autodesk Content Service:
- 3.1.3.0
Autodesk Content Service Language Pack:
- 3.1.3.0
Autodesk DWF Viewer 7:
- 7.2.0
Autodesk Featured Apps:
- 1.1.0
Autodesk Material Library 2014:
- 4.0.19.0
Autodesk Material Library Base Resolution Image Library 2014:
- 4.0.19.0
Bentley DGN IFilter:
- 1.0.1.11
Bentley DGN Index Service:
- 08.11.09030
Bentley DGN Preview Handler:
- 8.11.8004
Bentley DGN Thumbnail Provider:
- 8.11.7.411
Bentley V8i (SELECTseries 3) - Autodesk® RealDWG™ 2014:
- 08.11.09.459
Cisco WebEx Meeting Center for Firefox or Chrome:
- 29.7.0.6
Cisco WebEx Meeting Center for Internet Explorer:
- 29.8.5.10049
Citrix Authentication Manager:
- 8.0.0.23483
Citrix Receiver:
- 14.4.0.8014
Citrix Receiver (HDX Flash Redirection):
- 14.4.0.8014
Citrix Receiver Inside:
- 4.4.0.65534
Citrix Receiver(Aero):
- 14.4.0.8014
Citrix Receiver(DV):
- 14.4.0.8014
Citrix Receiver(USB):
- 14.4.0.8014
Citrix Web Helper:
- 4.4.0.11833
Configuration Manager Client:
- 5.00.7958.1000
CutePDF Writer 3.0:
- 3.0
Cyient Fonts:
- 1.0.0
DHTML Editing Component:
- 6.02.0002
Definition Update for Microsoft Office 2010 (KB3085607) 32-Bit Edition:
- Not Found
FARO LS 1.1.501.0:
- 5.1.0.30630
GPL Ghostscript:
- 9.18
Google Chrome:
- 48.0.2564.116
Google Earth:
- 7.1.5.1557
Google Update Helper:
- 1.3.25.11
HDR Preview:
- 1.0.0.2
Java 7 Update 55:
- 7.0.550
Java Auto Updater:
- 2.1.9.8
LogMeIn Client:
- 1.3.1675
MicroStation V8i (SELECTseries 3) 08.11.09.459:
- 08.11.09.459
Microsoft Office Excel MUI (English) 2010:
- 14.0.7015.1000
Microsoft Office OneNote MUI (English) 2010:
- 14.0.7015.1000
Microsoft Office Outlook MUI (English) 2010:
- 14.0.7015.1000
Microsoft Office PowerPoint MUI (English) 2010:
- 14.0.7015.1000
Microsoft Office Proof (English) 2010:
- 14.0.7015.1000
Microsoft Office Proof (French) 2010:
- 14.0.7015.1000
Microsoft Office Proof (Spanish) 2010:
- 14.0.7015.1000
Microsoft Office Proofing (English) 2010:
- 14.0.7015.1000
Microsoft Office Publisher MUI (English) 2010:
- 14.0.7015.1000
Microsoft Office Shared MUI (English) 2010:
- 14.0.7015.1000
Microsoft Office Shared Setup Metadata MUI (English) 2010:
- 14.0.7015.1000
Microsoft Office Standard 2010:
- 14.0.7015.1000
Microsoft Office Word MUI (English) 2010:
- 14.0.7015.1000
Microsoft Policy Platform:
- 1.2.3602.0
Microsoft SQL Server 2012 Native Client :
- 11.0.2100.60
Microsoft Silverlight:
- 5.1.40728.0
Microsoft Visual C++ 2005 Redistributable:
- 8.0.56336
Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17:
- 9.0.30729
Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.4148:
- 9.0.30729.4148
Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.6161:
- 9.0.30729.6161
Microsoft Visual C++ 2010 x86 Redistributable - 10.0.40219:
- 10.0.40219
Microsoft Visual C++ 2012 Redistributable (x86) - 11.0.60610:
- 11.0.60610.1
Microsoft Visual C++ 2012 x86 Additional Runtime - 11.0.60610:
- 11.0.60610
Microsoft Visual C++ 2012 x86 Minimum Runtime - 11.0.60610:
- 11.0.60610
Microsoft Visual J# 2.0 Redistributable Package:
- 2.0.50727
Microsoft Visual J# Version 2.0 Redistributable Package 2.0:
- 2.0
Microsoft Visual Studio 2010 Tools for Office Runtime (x86):
- 10.0.50908
Mozilla Firefox 44.0.2 (x86 en-US):
- 44.0.2
Mozilla Maintenance Service:
- 44.0.2
Notepad++:
- 6.9
OCS:
- 2.1.0.1
Online Plug-in:
- 14.4.0.8014
OptiNT 6.0.0.0:
- 6.0.0.0
Oracle Client 10.2.0.4 y:
- 10.2.0.4
PDF-Viewer:
- 2.5.308.1
PDF-XChange 4 Pro:
- 4.0.164.0
Salt Minion 2015.8.7:
- 2015.8.7
Security Update for Microsoft .NET Framework 4.5.2 (KB3023224):
- 1
Security Update for Microsoft .NET Framework 4.5.2 (KB3035490):
- 1
Security Update for Microsoft .NET Framework 4.5.2 (KB3037581):
- 1
Security Update for Microsoft .NET Framework 4.5.2 (KB3074230):
- 1
Security Update for Microsoft .NET Framework 4.5.2 (KB3074550):
- 1
Security Update for Microsoft Excel 2010 (KB3085609) 32-Bit Edition:
- Not Found
Security Update for Microsoft Office 2010 (KB2553313) 32-Bit Edition:
- Not Found
Security Update for Microsoft Office 2010 (KB2598244) 32-Bit Edition:
- Not Found
Security Update for Microsoft Office 2010 (KB2687423) 32-Bit Edition:
- Not Found
Security Update for Microsoft Office 2010 (KB2810073) 32-Bit Edition:
- Not Found
Security Update for Microsoft Office 2010 (KB2850016) 32-Bit Edition:
- Not Found
Security Update for Microsoft Office 2010 (KB2880971) 32-Bit Edition:
- Not Found
Security Update for Microsoft Office 2010 (KB2881071) 32-Bit Edition:
- Not Found
Security Update for Microsoft Office 2010 (KB2920748) 32-Bit Edition:
- Not Found
Security Update for Microsoft Office 2010 (KB2965310) 32-Bit Edition:
- Not Found
Security Update for Microsoft Office 2010 (KB3054848) 32-Bit Edition:
- Not Found
Security Update for Microsoft Office 2010 (KB3054965) 32-Bit Edition:
- Not Found
Self-service Plug-in:
- 4.4.0.11833
Service Pack 2 for Microsoft Office 2010 (KB2687455) 32-Bit Edition:
- Not Found
SketchUp Import for AutoCAD 2014:
- 1.1.0
Trend Micro OfficeScan Client:
- 10.6.5900
Update for Microsoft Excel 2010 (KB2589348) 32-Bit Edition:
- Not Found
Update for Microsoft Filter Pack 2.0 (KB2881026) 32-Bit Edition:
- Not Found
Update for Microsoft InfoPath 2010 (KB2817369) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2553140) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2553347) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2553388) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2589298) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2589318) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2589352) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2589375) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2589386) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2597087) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2597089) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2687275) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2794737) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2825635) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2883019) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2889828) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB2910896) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB3054873) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB3054886) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB3055034) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB3055042) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB3055047) 32-Bit Edition:
- Not Found
Update for Microsoft Office 2010 (KB3085512) 32-Bit Edition:
- Not Found
Update for Microsoft OneNote 2010 (KB2956075) 32-Bit Edition:
- Not Found
Update for Microsoft OneNote 2010 (KB2965297) 32-Bit Edition:
- Not Found
Update for Microsoft Outlook 2010 (KB3085604) 32-Bit Edition:
- Not Found
Update for Microsoft Outlook Social Connector 2010 (KB2553308) 32-Bit Edition:
- Not Found
Update for Microsoft PowerPoint 2010 (KB2880517) 32-Bit Edition:
- Not Found
Update for Microsoft PowerPoint 2010 (KB3085513) 32-Bit Edition:
- Not Found
Update for Microsoft Word 2010 (KB3085599) 32-Bit Edition:
- Not Found
VBA (2627.01):
- 6.03.00.9402
VZUID:
- 2.4
VirtViewer 0.6.0--1.fc20.berrange1390586094 (32-bit):
- 0.6.-1
Visual Basic for Applications (R) Core:
- 6.5.10.32
Visual Basic for Applications (R) Core - English:
- 6.5.10.32
Visualization Content:
- 8.11.9.454
WinSCP 5.7.6:
- 5.7.6
i-model ODBC Driver for Windows 7:
- 01.00.00020
logmein_client:
- 4.1.4380
mscommunicator:
- 3.5.6907.268
net_framework:
- 4.5.51209
swMSM:
- 12.0.0.1
Minions are all external to the master and access the master via the internet.
LOGS
Here are the trace logs from the minion for pkg.list_pkgs:
[root@usarpavmsrv0008 ~]# salt --versions-report
Salt Version:
Salt: 2015.8.7
Dependency Versions:
Jinja2: 2.7.3
M2Crypto: 0.21.1
Mako: Not Installed
PyYAML: 3.11
PyZMQ: 14.7.0
Python: 2.7.5 (default, Nov 20 2015, 02:00:19)
RAET: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
libgit2: Not Installed
libnacl: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
python-gnupg: Not Installed
smmap: Not Installed
timelib: Not Installed
System Versions:
dist: centos 7.2.1511 Core
machine: x86_64
release: 3.10.0-327.10.1.el7.x86_64
system: CentOS Linux 7.2.1511 Core
MINION:
C:\Windows\system32>c:\salt\salt-call.bat --versions-report
Salt Version:
Salt: 2015.8.7
Dependency Versions:
Jinja2: 2.7.3
M2Crypto: Not Installed
Mako: Not Installed
PyYAML: 3.11
PyZMQ: 14.7.0
Python: 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)]
RAET: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.2
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.4.2
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
libgit2: Not Installed
libnacl: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
python-gnupg: 0.3.7
smmap: Not Installed
timelib: Not Installed
System Versions:
dist:
machine: x86
release: 7
system: 7 6.1.7601 SP1 Multiprocessor Free
Description of Issue/Question
On several, but not all, of our Windows minions the command 'salt minionname pkg.list_pkgs' returns the error below. However, pkg.list_pkgs versions_as_list=True provides the expected output without an error (Also shown below). This issue has persisted over the past few versions of salt. I have been updating in hopes that the bug will resolve itself, but it hasn't.
Minions are all external to the master and access the master via the internet.
LOGS
Here are the trace logs from the minion for pkg.list_pkgs:
Here are the trace logs from the minion for pkg.list_pkgs versions_as_list=True:
Versions Report
MASTER
MINION: