pkg.installed sources exception on SmartOS
Starting with a state like this:
foo:
pkg.installed:
- sources:
- foo: salt://foo.tgz
Generates this output:
----------
ID: foo
Function: pkg.installed
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "salt/state.py", line 1371, in call
File "salt/states/pkg.py", line 470, in installed
File "salt/modules/pkgin.py", line 336, in install
File "salt/modules/pkgin.py", line 233, in list_pkgs
ValueError: need more than 1 value to unpack
Changes:
However, the package does get successfully installed and subsequent runs of highstate don't throw an exception. This behavior is on 2014.1
# salt --versions
Salt: 2014.1.0
Python: 2.7.6 (default, Feb 19 2014, 13:37:36)
Jinja2: 2.7.1
M2Crypto: 0.21.1
msgpack-python: 0.1.13
msgpack-pure: Not Installed
pycrypto: 2.6.1
PyYAML: 3.10
PyZMQ: 13.1.0
ZMQ: 3.2.4
Interesting, thanks for the report.
@njones11 it would be helpful if you could run the minion with debug logging (by setting log_level_logfile: debug in the minon config file, and restarting the salt-minion service), and post the debug logging from when this state is run.
@njones11 Can you please provide the additional information that was requested?
I'll try to get you guys updated traces this week when I'm back at work. Thanks for looking into it!
I have the same issue on a Salt 2014.1.0 master with Open Suse 12.2. The only difference is that in our case the package doesn't get installed.
Sorry for the slow follow up on this, but I'm no longer seeing this on 2014.1.5 on SmartOS. So as far as I can tell, it has been fixed.