Skip to content

Instantly share code, notes, and snippets.

@duk3luk3
Created October 29, 2013 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duk3luk3/7224861 to your computer and use it in GitHub Desktop.
Save duk3luk3/7224861 to your computer and use it in GitHub Desktop.
12:52:37 (develop) ~/git/salt# service salt-master stop
12:53:58 (develop) ~/git/salt# scripts/salt-master &
[1] 32201
12:55:37 (develop) ~/git/salt# service salt-minion stop
12:56:00 (develop) ~/git/salt# scripts/salt-minion &
[2] 32563
12:56:30 (develop) ~/git/salt# scripts/salt-call state.sls dirty-users.users
[INFO ] Executing command 'ps -efH' in directory '/root'
[INFO ] Loading fresh modules for state activity
[INFO ] Fetching file ** skipped **, latest already in cache 'salt://dirty-users/users.sls'
[INFO ] Fetching file ** skipped **, latest already in cache 'salt://dirty-users/init.sls'
[INFO ] Executing state pkg.installed for nfs-common
[INFO ] Executing command "dpkg-query --showformat='${Status} ${Package} ${Version} ${Architecture}\n' -W" in directory '/root'
[INFO ] Executing command 'grep-available -F Provides -s Package,Provides -e "^.+$"' in directory '/root'
[INFO ] Package nfs-common is already installed
[INFO ] Executing state pkg.installed for nfs-kernel-server
[INFO ] Package nfs-kernel-server is already installed
[INFO ] Executing state file.directory for /etc/exports.d
[INFO ] Directory /etc/exports.d is in the correct state
[INFO ] Executing state file.managed for /etc/exports.d/salt.dirty-users.exports
[INFO ] Fetching file ** skipped **, latest already in cache 'salt://dirty-users/exports'
[ERROR ] An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/salt/state.py", line 1258, in call
*cdata['args'], **cdata['kwargs'])
File "/usr/lib/pymodules/python2.7/salt/states/file.py", line 1131, in managed
contents)
File "/usr/lib/pymodules/python2.7/salt/modules/file.py", line 1941, in manage_file
name_sum = get_hash(name, source_sum['hash_type'])
KeyError: 'hash_type'
local:
----------
State: - pkg
Name: nfs-common
Function: installed
Result: True
Comment: Package nfs-common is already installed
Changes:
----------
State: - pkg
Name: nfs-kernel-server
Function: installed
Result: True
Comment: Package nfs-kernel-server is already installed
Changes:
----------
State: - file
Name: /etc/exports.d
Function: directory
Result: True
Comment: Directory /etc/exports.d is in the correct state
Changes:
----------
State: - file
Name: /etc/exports.d/salt.dirty-users.exports
Function: managed
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/salt/state.py", line 1258, in call
*cdata['args'], **cdata['kwargs'])
File "/usr/lib/pymodules/python2.7/salt/states/file.py", line 1131, in managed
contents)
File "/usr/lib/pymodules/python2.7/salt/modules/file.py", line 1941, in manage_file
name_sum = get_hash(name, source_sum['hash_type'])
KeyError: 'hash_type'
Changes:
----------
State: - service
Name: nfs-kernel-server
Function: running
Result: False
Comment: One or more requisite failed
Changes:
Summary
------------
Succeeded: 3
Failed: 2
------------
Total: 5
12:57:08 (develop) ~/git/salt# [ERROR ] Error in function _mine:
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/salt/master.py", line 1494, in run_func
ret = getattr(self, func)(load)
File "/usr/lib/pymodules/python2.7/salt/master.py", line 960, in _mine
if not self.__verify_minion(load['id'], load['tok']):
KeyError: 'tok'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment