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.
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:
2016-03-01 11:17:18 [salt.transport.zeromq][DEBUG ] Initializing new AsyncZeroMQReqChannel for ('c:\\salt\\conf\\pki\\minion', 'USARPADEWRK5222-Telco', 'tcp://my.public.ip:4506', 'aes')
2016-03-01 11:17:18 [salt.crypt ][DEBUG ] Initializing new SAuth for ('c:\\salt\\conf\\pki\\minion', 'USARPADEWRK5222-Telco', 'tcp://my.public.ip:4506')
2016-03-01 11:17:19 [salt.minion ][TRACE ] ret_val = None
2016-03-01 11:18:50,580 [salt.transport.mixins.auth][TRACE ][5196] Decoding payload: {'load': 'E\xf2\xbf\x05\xf9\xaeB\xbf\x9cE\xd8P\xe2\xf8t{\xe0\xe6B\x8f1)9\xc4CDFo\x9e\xa2\x01\xa8\x02\xe2(I\x83g\xc7\xd6\xc2h\xaeq\x95\x01`\x96\xc2i\x9d1t\x923jh"\xa4I\x01\x14\xe2\x9b\xebU\x0b\xaeY\x17d\xa7\xa4=q\x80\x89\xe3\xd6\xc7m4\xba\xedu\xf2H+\xb0\x93PO\x85\xcbt/ETyQ6\xe3\xe8b\x1c\xf9\x0f\xcae\x92\xf8\xf9.\x17\xcb\'s\x8a\x0e\x8e\x19.\x05\xfe\x03\xb4\r\xf4\xbd@\x81\xae\xde0\x9co\xa1\xa3\x18W2g\xa8\xfa\xa5\xda\x06\x02t\xa0\xa9#\xe4)\x1b[\xdb\xaaS\x89\xff\n<1\x88-G\xe8r\x9c\x95\x0fj\x82NA', 'enc': 'aes'}
2016-03-01 11:18:50,596 [salt.minion ][INFO ][5196] User root Executing command pkg.list_pkgs with jid 20160301121944087131
2016-03-01 11:18:50,596 [salt.minion ][DEBUG ][5196] Command details {'tgt_type': 'glob', 'jid': '20160301121944087131', 'tgt': 'USARPADEWRK5222-Telco', 'ret': '', 'user': 'root', 'arg': [], 'fun': 'pkg.list_pkgs'}
2016-03-01 11:18:56 [salt.config ][DEBUG ] Reading configuration from C:\salt\conf\minion
2016-03-01 11:18:56 [salt.utils ][TRACE ] 'dmidecode' could not be found in the following search path: ['C:\\Program Files\\Autodesk\\Autodesk AutoCAD Map 3D 2014\\en-US', 'C:\\Program Files\\Autodesk\\Autodesk AutoCAD Map 3D 2014', 'C:\\Program Files\\Common Files\\Autodesk Shared', 'C:\\Program Files\\Optisys\\Bin', 'C:\\oracle\\product\\11.2.0\\bin', 'C:\\oracle\\product\\10.2.0\\bin', 'C:\\Windows\\system32', 'C:\\Windows', 'C:\\Windows\\System32\\Wbem', 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\', 'C:\\ProgramData\\chocolatey\\bin', '', 'C:\\salt\\bin\\lib\\site-packages\\pywin32_system32', '/bin', '/sbin', '/usr/bin', '/usr/sbin', '/usr/local/bin', 'C:\\salt\\bin\\lib\\site-packages\\pywin32_system32']
2016-03-01 11:18:56 [salt.utils ][TRACE ] 'smbios' could not be found in the following search path: ['C:\\Program Files\\Autodesk\\Autodesk AutoCAD Map 3D 2014\\en-US', 'C:\\Program Files\\Autodesk\\Autodesk AutoCAD Map 3D 2014', 'C:\\Program Files\\Common Files\\Autodesk Shared', 'C:\\Program Files\\Optisys\\Bin', 'C:\\oracle\\product\\11.2.0\\bin', 'C:\\oracle\\product\\10.2.0\\bin', 'C:\\Windows\\system32', 'C:\\Windows', 'C:\\Windows\\System32\\Wbem', 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\', 'C:\\ProgramData\\chocolatey\\bin', '', 'C:\\salt\\bin\\lib\\site-packages\\pywin32_system32', '/bin', '/sbin', '/usr/bin', '/usr/sbin', '/usr/local/bin', 'C:\\salt\\bin\\lib\\site-packages\\pywin32_system32']
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.hwaddr_interfaces grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.hostname grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.get_master grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.pythonversion grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.path grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.get_server_id grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.ip6 grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.ip4 grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.saltversion grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.saltpath grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.pythonexecutable grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.fqdn_ip4 grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.fqdn_ip6 grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.ip6_interfaces grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.ip4_interfaces grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.append_domain grain
2016-03-01 11:18:56 [salt.loader ][TRACE ] Loading core.os_data grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.zmqversion grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.saltversioninfo grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.pythonpath grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.id_ grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.locale_info grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.get_machine_id grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.ip_interfaces grain
2016-03-01 11:18:57 [salt.loaded.int.grains.disks][TRACE ] Disk grain does not support OS
2016-03-01 11:18:57 [salt.config ][DEBUG ] Reading configuration from C:\salt\conf\minion
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.hwaddr_interfaces grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.hostname grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.get_master grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.pythonversion grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.path grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.get_server_id grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.ip6 grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.ip4 grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.saltversion grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.saltpath grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.pythonexecutable grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.fqdn_ip4 grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.fqdn_ip6 grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.ip6_interfaces grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.ip4_interfaces grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.append_domain grain
2016-03-01 11:18:57 [salt.loader ][TRACE ] Loading core.os_data grain
2016-03-01 11:18:58 [salt.loader ][TRACE ] Loading core.zmqversion grain
2016-03-01 11:18:58 [salt.loader ][TRACE ] Loading core.saltversioninfo grain
2016-03-01 11:18:58 [salt.loader ][TRACE ] Loading core.pythonpath grain
2016-03-01 11:18:58 [salt.loader ][TRACE ] Loading core.id_ grain
2016-03-01 11:18:58 [salt.loader ][TRACE ] Loading core.locale_info grain
2016-03-01 11:18:58 [salt.loader ][TRACE ] Loading core.get_machine_id grain
2016-03-01 11:18:58 [salt.loader ][TRACE ] Loading core.ip_interfaces grain
2016-03-01 11:18:58 [salt.loaded.int.grains.disks][TRACE ] Disk grain does not support OS
2016-03-01 11:18:58 [salt.minion ][INFO ] Starting a new job with PID 7724
2016-03-01 11:18:58 [salt.loader ][TRACE ] Loaded win_pkg as virtual pkg
2016-03-01 11:18:58 [salt.utils.lazy][DEBUG ] LazyLoaded pkg.list_pkgs
2016-03-01 11:18:58 [salt.utils.lazy][DEBUG ] LazyLoaded pkg_resource.add_pkg
2016-03-01 11:18:58 [salt.minion ][WARNING ] 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
Traceback (most recent call last):
File "C:\salt\bin\lib\site-packages\salt\minion.py", line 1071, in _thread_return
return_data = func(*args, **kwargs)
File "C:\salt\bin\lib\site-packages\salt\modules\win_pkg.py", line 246, in list_pkgs
__salt__['pkg_resource.stringify'](ret)
File "C:\salt\bin\lib\site-packages\salt\modules\pkg_resource.py", line 256, in stringify
pkgs[key] = ','.join(pkgs[key])
TypeError: sequence item 0: expected string, int found
2016-03-01 11:18:58 [salt.minion ][DEBUG ] Minion return retry timer set to 10 seconds (randomized)
2016-03-01 11:18:58 [salt.minion ][INFO ] Returning information for job: 20160301121944087131
2016-03-01 11:18:58 [salt.transport.zeromq][DEBUG ] Initializing new AsyncZeroMQReqChannel for ('c:\\salt\\conf\\pki\\minion', 'USARPADEWRK5222-Telco', 'tcp://my.public.ip:4506', 'aes')
2016-03-01 11:18:58 [salt.crypt ][DEBUG ] Initializing new SAuth for ('c:\\salt\\conf\\pki\\minion', 'USARPADEWRK5222-Telco', 'tcp://my.public.ip:4506')
2016-03-01 11:18:58 [salt.transport.zeromq][DEBUG ] Initializing new AsyncZeroMQReqChannel for ('c:\\salt\\conf\\pki\\minion', 'USARPADEWRK5222-Telco', 'tcp://my.public.ip:4506', 'clear')
2016-03-01 11:18:58 [salt.crypt ][DEBUG ] Decrypting the current master AES key
2016-03-01 11:18:58 [salt.crypt ][DEBUG ] Loaded minion key: c:\salt\conf\pki\minion\minion.pem
2016-03-01 11:19:00 [salt.minion ][TRACE ] ret_val = None
Here are the trace logs from the minion for pkg.list_pkgs versions_as_list=True:
2016-03-01 11:20:38,330 [salt.transport.mixins.auth][TRACE ][5196] Decoding payload: {'load': "jg\x8b\xbc\xf0\xfe\x86L\xcb\x15\x95\xbe\xe3\xae\xa9\x1a;\t\x18W\xce|`oF\xd6c\xc9\x04\x15\x17\x19\xaa\x8fRN\xeb\xa9r\xb5\xfakM\x0bO'\xc1w\xce\x9f\xd1p\xaf\xa7f\xae\xf0\xa0,\t\x94\x04p\x9a/`\xdc\x8e\xff\xbf\x04%\x9f\x85\xe9;\xc6\x15\xd6\xf8\x90\xdcM\xe7\x9b\xca=\xc3p2\xd4G\x07\x13\xaa\xd7/Iu86q\xb4\xea\xd0\\D1\x01\xc9\x912\x0b\x0e\xb3\x83K\xfe\xd2\xe9\xc7\x0b\xec8S\xa9\xde\xce\xbb\xe8\xdaQ\xa4\xdf7*\xf0\x170I\xd0\t\xf9c|\x92\xa2\xb1\xde\x1e\xc9\xbd\x05c\x97\xf9\x8a_\n\x15q\x8a\xfe\xe6\x97p\xd7\x90\x9d\xdc\xaa\x8cL\xbb\xcf\xc0\xf2]\xc7\xbf\xa4Y\xc8\x7fE\x82\xc0\xed\xbc\x92\xb3\x1c", 'enc': 'aes'}
2016-03-01 11:20:38,330 [salt.minion ][INFO ][5196] User root Executing command pkg.list_pkgs with jid 20160301122131823777
2016-03-01 11:20:38,330 [salt.minion ][DEBUG ][5196] Command details {'tgt_type': 'glob', 'jid': '20160301122131823777', 'tgt': 'USARPADEWRK5222-Telco', 'ret': '', 'user': 'root', 'arg': [{'versions_as_list': True, '__kwarg__': True}], 'fun': 'pkg.list_pkgs'}
2016-03-01 11:20:40 [salt.config ][DEBUG ] Reading configuration from C:\salt\conf\minion
2016-03-01 11:20:40 [salt.utils ][TRACE ] 'dmidecode' could not be found in the following search path: ['C:\\Program Files\\Autodesk\\Autodesk AutoCAD Map 3D 2014\\en-US', 'C:\\Program Files\\Autodesk\\Autodesk AutoCAD Map 3D 2014', 'C:\\Program Files\\Common Files\\Autodesk Shared', 'C:\\Program Files\\Optisys\\Bin', 'C:\\oracle\\product\\11.2.0\\bin', 'C:\\oracle\\product\\10.2.0\\bin', 'C:\\Windows\\system32', 'C:\\Windows', 'C:\\Windows\\System32\\Wbem', 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\', 'C:\\ProgramData\\chocolatey\\bin', '', 'C:\\salt\\bin\\lib\\site-packages\\pywin32_system32', '/bin', '/sbin', '/usr/bin', '/usr/sbin', '/usr/local/bin', 'C:\\salt\\bin\\lib\\site-packages\\pywin32_system32']
2016-03-01 11:20:40 [salt.utils ][TRACE ] 'smbios' could not be found in the following search path: ['C:\\Program Files\\Autodesk\\Autodesk AutoCAD Map 3D 2014\\en-US', 'C:\\Program Files\\Autodesk\\Autodesk AutoCAD Map 3D 2014', 'C:\\Program Files\\Common Files\\Autodesk Shared', 'C:\\Program Files\\Optisys\\Bin', 'C:\\oracle\\product\\11.2.0\\bin', 'C:\\oracle\\product\\10.2.0\\bin', 'C:\\Windows\\system32', 'C:\\Windows', 'C:\\Windows\\System32\\Wbem', 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\', 'C:\\ProgramData\\chocolatey\\bin', '', 'C:\\salt\\bin\\lib\\site-packages\\pywin32_system32', '/bin', '/sbin', '/usr/bin', '/usr/sbin', '/usr/local/bin', 'C:\\salt\\bin\\lib\\site-packages\\pywin32_system32']
2016-03-01 11:20:40 [salt.loader ][TRACE ] Loading core.hwaddr_interfaces grain
2016-03-01 11:20:40 [salt.loader ][TRACE ] Loading core.hostname grain
2016-03-01 11:20:40 [salt.loader ][TRACE ] Loading core.get_master grain
2016-03-01 11:20:40 [salt.loader ][TRACE ] Loading core.pythonversion grain
2016-03-01 11:20:40 [salt.loader ][TRACE ] Loading core.path grain
2016-03-01 11:20:40 [salt.loader ][TRACE ] Loading core.get_server_id grain
2016-03-01 11:20:40 [salt.loader ][TRACE ] Loading core.ip6 grain
2016-03-01 11:20:40 [salt.loader ][TRACE ] Loading core.ip4 grain
2016-03-01 11:20:40 [salt.loader ][TRACE ] Loading core.saltversion grain
2016-03-01 11:20:40 [salt.loader ][TRACE ] Loading core.saltpath grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.pythonexecutable grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.fqdn_ip4 grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.fqdn_ip6 grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.ip6_interfaces grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.ip4_interfaces grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.append_domain grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.os_data grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.zmqversion grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.saltversioninfo grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.pythonpath grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.id_ grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.locale_info grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.get_machine_id grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.ip_interfaces grain
2016-03-01 11:20:41 [salt.loaded.int.grains.disks][TRACE ] Disk grain does not support OS
2016-03-01 11:20:41 [salt.config ][DEBUG ] Reading configuration from C:\salt\conf\minion
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.hwaddr_interfaces grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.hostname grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.get_master grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.pythonversion grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.path grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.get_server_id grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.ip6 grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.ip4 grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.saltversion grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.saltpath grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.pythonexecutable grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.fqdn_ip4 grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.fqdn_ip6 grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.ip6_interfaces grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.ip4_interfaces grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.append_domain grain
2016-03-01 11:20:41 [salt.loader ][TRACE ] Loading core.os_data grain
2016-03-01 11:20:42 [salt.loader ][TRACE ] Loading core.zmqversion grain
2016-03-01 11:20:42 [salt.loader ][TRACE ] Loading core.saltversioninfo grain
2016-03-01 11:20:42 [salt.loader ][TRACE ] Loading core.pythonpath grain
2016-03-01 11:20:42 [salt.loader ][TRACE ] Loading core.id_ grain
2016-03-01 11:20:42 [salt.loader ][TRACE ] Loading core.locale_info grain
2016-03-01 11:20:42 [salt.loader ][TRACE ] Loading core.get_machine_id grain
2016-03-01 11:20:42 [salt.loader ][TRACE ] Loading core.ip_interfaces grain
2016-03-01 11:20:42 [salt.loaded.int.grains.disks][TRACE ] Disk grain does not support OS
2016-03-01 11:20:42 [salt.minion ][INFO ] Starting a new job with PID 9132
2016-03-01 11:20:42 [salt.loader ][TRACE ] Loaded win_pkg as virtual pkg
2016-03-01 11:20:42 [salt.utils.lazy][DEBUG ] LazyLoaded pkg.list_pkgs
2016-03-01 11:20:42 [salt.utils.lazy][DEBUG ] LazyLoaded pkg_resource.add_pkg
2016-03-01 11:20:42 [salt.minion ][DEBUG ] Minion return retry timer set to 8 seconds (randomized)
2016-03-01 11:20:42 [salt.minion ][INFO ] Returning information for job: 20160301122131823777
2016-03-01 11:20:42 [salt.transport.zeromq][DEBUG ] Initializing new AsyncZeroMQReqChannel for ('c:\\salt\\conf\\pki\\minion', 'USARPADEWRK5222-Telco', 'tcp://my.public.ip:4506', 'aes')
2016-03-01 11:20:42 [salt.crypt ][DEBUG ] Initializing new SAuth for ('c:\\salt\\conf\\pki\\minion', 'USARPADEWRK5222-Telco', 'tcp://my.public.ip:4506')
2016-03-01 11:20:42 [salt.transport.zeromq][DEBUG ] Initializing new AsyncZeroMQReqChannel for ('c:\\salt\\conf\\pki\\minion', 'USARPADEWRK5222-Telco', 'tcp://my.public.ip:4506', 'clear')
2016-03-01 11:20:42 [salt.crypt ][DEBUG ] Decrypting the current master AES key
2016-03-01 11:20:42 [salt.crypt ][DEBUG ] Loaded minion key: c:\salt\conf\pki\minion\minion.pem
2016-03-01 11:20:44 [salt.minion ][TRACE ] ret_val = None
Versions Report
MASTER
[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: