salt icon indicating copy to clipboard operation
salt copied to clipboard

pkg.installed sources exception on SmartOS

Open njones11 opened this issue 12 years ago • 6 comments

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

njones11 avatar Mar 05 '14 20:03 njones11

Interesting, thanks for the report.

basepi avatar Mar 05 '14 21:03 basepi

@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.

terminalmage avatar Apr 20 '14 21:04 terminalmage

@njones11 Can you please provide the additional information that was requested?

terminalmage avatar May 02 '14 23:05 terminalmage

I'll try to get you guys updated traces this week when I'm back at work. Thanks for looking into it!

njones11 avatar May 05 '14 01:05 njones11

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.

annabzz avatar May 15 '14 10:05 annabzz

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.

njones11 avatar Jun 20 '14 17:06 njones11