vmware-archive/halite

state.sls shows failed when it succeeds

derekbelrose opened this issue · 4 comments

Running a command such as state.sls shows failed when it succeeds.

Information:
vim-enhanced is not installed
/etc/vimrc is non existent

vim.sls

vim-enhanced:
 pkg.installed

/etc/vimrc:
 file.managed:
  - source: salt://vim/vimrc
  - mode: 644
  - user: root
  - group: root

New command:
glob * state.sls vim

Results are red, assuming it means bad.

Event pane:

 _stamp: 2014-02-10_11:51:21.642090 
cmd: _return 
fun: state.sls 
id: saltstack.local 
jid: 20140210115113144736 
out: highstate 
retcode: 2 
return: 
    file_|-/etc/vimrc_|-/etc/vimrc_|-managed: 
         __run_num__: 1 
        changes: 
             diff: New file 
             mode: 644 
        comment: File /etc/vimrc updated 
        name: /etc/vimrc 
        result: true 

     pkg_|-vim-enhanced_|-vim-enhanced_|-installed: 
          __run_num__: 0 
          changes: vim-enhanced: 
               new: 7.2.411-1.8.el6 
               old: 
               comment: The following packages were installed/updated: vim-enhanced. 
               name: vim-enhanced 
               result: true 
     stamp: 2014-02-10_11:51:21.642090 
     success: true

This is running salt-master 0.17.4 (epel) and halite 0.1.15 installed through pip on CentOS 6 x86_64

@derekbelrose It looks like this might be a minion version issue. I saw this on 0.17.4 but not on 2014.1.0-692-g776cdcc. It was probably fixed in the more recent versions.

What version of salt are the minions running? salt \* grains.get saltversion should print version information for all minions.

I can confirm that this behaviour is gone with the most recent version of salt (2014.1.1).

Thanks for confirming that @gpkvt

I will close this issue for now.