Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Salt archive.extracted state error trace
[MYBOX] root@mybox:~# salt-call -l trace state.sls common.rkhunter
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG ] Including configuration from '/etc/salt/minion.d/enviroment.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/enviroment.conf
[DEBUG ] Including configuration from '/etc/salt/minion.d/mysql_connection_info.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/mysql_connection_info.conf
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: mybox
[TRACE ] The required configuration section, 'fluent_handler', was not found the in the configuration. Not loading the fluent logging handlers module.
[TRACE ] None of the required configuration sections, 'logstash_udp_handler' and 'logstash_zmq_handler', were found in the configuration. Not loading the Logstash logging handlers module.
[DEBUG ] Configuration file path: /etc/salt/minion
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from '/etc/salt/minion.d/_schedule.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/_schedule.conf
[DEBUG ] Including configuration from '/etc/salt/minion.d/enviroment.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/enviroment.conf
[DEBUG ] Including configuration from '/etc/salt/minion.d/mysql_connection_info.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/mysql_connection_info.conf
[TRACE ] 'drill' could not be found in the following search path: '['/usr/local/sbin', '/usr/local/bin', '/usr/sbin', '/usr/bin', '/sbin', '/bin']'
[TRACE ] 'esxcli' could not be found in the following search path: '['/usr/local/sbin', '/usr/local/bin', '/usr/sbin', '/usr/bin', '/sbin', '/bin']'
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Depends decorator instantiated with dep list of (False,)
[TRACE ] Error loading grains.napalm: "napalm"" (/usr/lib/python2.7/dist-packages/salt/grains/napalm.pyc) cannot be loaded: NAPALM is not installed or not running in a (proxy) minion
[TRACE ] Loading core.append_domain grain
[TRACE ] Loading core.dns grain
[DEBUG ] /etc/resolv.conf: The domain and search keywords are mutually exclusive.
[TRACE ] Loading core.get_machine_id grain
[TRACE ] Loading core.get_master grain
[TRACE ] Loading core.get_server_id grain
[TRACE ] Loading core.hostname grain
[TRACE ] Loading core.hwaddr_interfaces grain
[TRACE ] Loading core.id_ grain
[TRACE ] Loading core.ip4_interfaces grain
[TRACE ] Loading core.ip6_interfaces grain
[TRACE ] Loading core.ip_fqdn grain
[TRACE ] Loading core.ip_interfaces grain
[TRACE ] Loading core.linux_distribution grain
[TRACE ] Loading core.locale_info grain
[TRACE ] Loading core.os_data grain
[TRACE ] DMI system-uuid value Not Settable is an invalid UUID
[TRACE ] DMI system-uuid value Not Settable is an invalid UUID
[TRACE ] 'zpool' could not be found in the following search path: '['/usr/local/sbin', '/usr/local/bin', '/usr/sbin', '/usr/bin', '/sbin', '/bin']'
[TRACE ] 'virt-what' could not be found in the following search path: '['/usr/local/sbin', '/usr/local/bin', '/usr/sbin', '/usr/bin', '/sbin', '/bin']'
[DEBUG ] Please install 'virt-what' to improve results of the 'virtual' grain.
[TRACE ] Loading core.path grain
[TRACE ] Loading core.pythonexecutable grain
[TRACE ] Loading core.pythonpath grain
[TRACE ] Loading core.pythonversion grain
[TRACE ] Loading core.saltpath grain
[TRACE ] Loading core.saltversion grain
[TRACE ] Loading core.saltversioninfo grain
[TRACE ] Loading core.zmqversion grain
[TRACE ] Loading disks.disks grain
[TRACE ] Device ram11 reports itself as an HDD
[TRACE ] Device ram2 reports itself as an HDD
[TRACE ] Device loop1 reports itself as an HDD
[TRACE ] Device nbd3 reports itself as an SSD
[TRACE ] Device ram0 reports itself as an HDD
[TRACE ] Device nbd15 reports itself as an SSD
[TRACE ] Device nbd1 reports itself as an SSD
[TRACE ] Device sdb reports itself as an HDD
[TRACE ] Device ram9 reports itself as an HDD
[TRACE ] Device nbd13 reports itself as an SSD
[TRACE ] Device ram7 reports itself as an HDD
[TRACE ] Device loop6 reports itself as an HDD
[TRACE ] Device nbd8 reports itself as an SSD
[TRACE ] Device nbd11 reports itself as an SSD
[TRACE ] Device ram14 reports itself as an HDD
[TRACE ] Device ram5 reports itself as an HDD
[TRACE ] Device md0 reports itself as an HDD
[TRACE ] Device loop4 reports itself as an HDD
[TRACE ] Device nbd6 reports itself as an SSD
[TRACE ] Device ram12 reports itself as an HDD
[TRACE ] Device ram3 reports itself as an HDD
[TRACE ] Device loop2 reports itself as an HDD
[TRACE ] Device nbd4 reports itself as an SSD
[TRACE ] Device ram10 reports itself as an HDD
[TRACE ] Device ram1 reports itself as an HDD
[TRACE ] Device loop0 reports itself as an HDD
[TRACE ] Device nbd2 reports itself as an SSD
[TRACE ] Device nbd14 reports itself as an SSD
[TRACE ] Device nbd0 reports itself as an SSD
[TRACE ] Device sda reports itself as an HDD
[TRACE ] Device ram8 reports itself as an HDD
[TRACE ] Device loop7 reports itself as an HDD
[TRACE ] Device nbd9 reports itself as an SSD
[TRACE ] Device nbd12 reports itself as an SSD
[TRACE ] Device ram15 reports itself as an HDD
[TRACE ] Device ram6 reports itself as an HDD
[TRACE ] Device loop5 reports itself as an HDD
[TRACE ] Device nbd7 reports itself as an SSD
[TRACE ] Device nbd10 reports itself as an SSD
[TRACE ] Device ram13 reports itself as an HDD
[TRACE ] Device ram4 reports itself as an HDD
[TRACE ] Device loop3 reports itself as an HDD
[TRACE ] Device nbd5 reports itself as an SSD
[TRACE ] Loading extra.config grain
[TRACE ] Loading extra.shell grain
[TRACE ] Loading mdadm.mdadm grain
[TRACE ] Loading minion_process.grains grain
[TRACE ] Loading opts.opts grain
[DEBUG ] Connecting to master. Attempt 1 of 1
[DEBUG ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'mybox', 'tcp://192.168.205.166:4506')
[DEBUG ] Generated random reconnect delay between '1000ms' and '11000ms' (7608)
[DEBUG ] Setting zmq_reconnect_ivl to '7608ms'
[DEBUG ] Setting zmq_reconnect_ivl_max to '11000ms'
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'mybox', 'tcp://192.168.205.166:4506', 'clear')
[TRACE ] Inserted key into loop_instance_map id 140169185134280 for key ('/etc/salt/pki/minion', 'mybox', 'tcp://192.168.205.166:4506', 'clear') and process 12304
[DEBUG ] Decrypting the current master AES key
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] Determining pillar cache
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'mybox', 'tcp://192.168.205.166:4506', 'aes')
[DEBUG ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'mybox', 'tcp://192.168.205.166:4506')
[TRACE ] Inserted key into loop_instance_map id 140169185133560 for key ('/etc/salt/pki/minion', 'mybox', 'tcp://192.168.205.166:4506', 'aes') and process 12304
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] LazyLoaded state.sls
[DEBUG ] LazyLoaded saltutil.is_running
[DEBUG ] LazyLoaded grains.get
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'mybox', 'tcp://192.168.205.166:4506', 'aes')
[DEBUG ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'mybox', 'tcp://192.168.205.166:4506')
[TRACE ] Inserted key into loop_instance_map id 140169150296360 for key ('/etc/salt/pki/minion', 'mybox', 'tcp://192.168.205.166:4506', 'aes') and process 12304
[INFO ] Loading fresh modules for state activity
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] In saltenv 'xenial', looking at rel_path 'common/rkhunter.sls' to resolve 'salt://common/rkhunter.sls'
[DEBUG ] In saltenv 'xenial', ** considering ** path '/var/cache/salt/minion/files/xenial/common/rkhunter.sls' to resolve 'salt://common/rkhunter.sls'
[DEBUG ] compile template: /var/cache/salt/minion/files/xenial/common/rkhunter.sls
[DEBUG ] Jinja search path: ['/var/cache/salt/minion/files/xenial']
[PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/xenial/common/rkhunter.sls' using 'jinja' renderer: 0.00437211990356
[DEBUG ] Rendered data from file: /var/cache/salt/minion/files/xenial/common/rkhunter.sls:
rkhunter_installer:
archive.extracted:
- name: /tmp/
- source: salt://files/rkhunter-1.4.4.tar.gz
- if_missing: /usr/local/bin/rkhunter
- keep: false
# cmd.run:
# - name: ./installer.sh --install
# - cwd: /tmp/rkhunter-1.4.4/
# - creates: /usr/local/bin/rkhunter
# file.managed:
# - name: /etc/rkhunter.conf
# - source: salt://files/etc/rkhunter.conf
# - mode: 400
# - check_command: rkhunter --propupd
#rkhunter --propupd: cmd.run
[DEBUG ] LazyLoaded config.get
[DEBUG ] Results of YAML rendering:
OrderedDict([('rkhunter_installer', OrderedDict([('archive.extracted', [OrderedDict([('name', '/tmp/')]), OrderedDict([('source', 'salt://files/rkhunter-1.4.4.tar.gz')]), OrderedDict([('if_missing', '/usr/local/bin/rkhunter')]), OrderedDict([('keep', False)])])]))])
[PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/xenial/common/rkhunter.sls' using 'yaml' renderer: 0.00693321228027
[DEBUG ] LazyLoaded archive.extracted
[INFO ] Running state [/tmp/] at time 11:17:00.121892
[INFO ] Executing state archive.extracted for [/tmp/]
[DEBUG ] LazyLoaded file.source_list
[DEBUG ] LazyLoaded file.cached
[DEBUG ] LazyLoaded cp.is_cached
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'mybox', 'tcp://192.168.205.166:4506', 'aes')
[DEBUG ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'mybox', 'tcp://192.168.205.166:4506')
[TRACE ] Inserted key into loop_instance_map id 140169149921904 for key ('/etc/salt/pki/minion', 'mybox', 'tcp://192.168.205.166:4506', 'aes') and process 12304
[DEBUG ] In saltenv 'xenial', looking at rel_path 'files/rkhunter-1.4.4.tar.gz' to resolve 'salt://files/rkhunter-1.4.4.tar.gz'
[DEBUG ] In saltenv 'xenial', ** considering ** path '/var/cache/salt/minion/files/xenial/files/rkhunter-1.4.4.tar.gz' to resolve 'salt://files/rkhunter-1.4.4.tar.gz'
[DEBUG ] file.cached: {'comment': 'File is cached to /var/cache/salt/minion/files/xenial/files/rkhunter-1.4.4.tar.gz', 'changes': {}, 'name': 'salt://files/rkhunter-1.4.4.tar.gz', 'result': True}
[ERROR ] An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1851, in call
**cdata['kwargs'])
File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1795, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/states/archive.py", line 986, in extracted
existing_cached_source_sum = _read_cached_checksum(cached)
File "/usr/lib/python2.7/dist-packages/salt/states/archive.py", line 115, in _read_cached_checksum
checksum_file = _checksum_file_path(path)
File "/usr/lib/python2.7/dist-packages/salt/states/archive.py", line 66, in _checksum_file_path
relpath = '.'.join((os.path.relpath(path, __opts__['cachedir']), 'hash'))
File "/usr/lib/python2.7/posixpath.py", line 428, in relpath
raise ValueError("no path specified")
ValueError: no path specified
[INFO ] Completed state [/tmp/] at time 11:17:00.153074 duration_in_ms=31.182
[DEBUG ] File /var/cache/salt/minion/accumulator/140169150315408 does not exist, no need to cleanup.
[DEBUG ] LazyLoaded config.option
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'mybox', 'tcp://192.168.205.166:4506', 'aes')
[DEBUG ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'mybox', 'tcp://192.168.205.166:4506')
[TRACE ] Inserted key into loop_instance_map id 140169150263168 for key ('/etc/salt/pki/minion', 'mybox', 'tcp://192.168.205.166:4506', 'aes') and process 12304
[DEBUG ] LazyLoaded highstate.output
[TRACE ] data = {'local': {'archive_|-rkhunter_installer_|-/tmp/_|-extracted': {'comment': u'An exception occurred in this state: Traceback (most recent call last):\n File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1851, in call\n **cdata[\'kwargs\'])\n File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1795, in wrapper\n return f(*args, **kwargs)\n File "/usr/lib/python2.7/dist-packages/salt/states/archive.py", line 986, in extracted\n existing_cached_source_sum = _read_cached_checksum(cached)\n File "/usr/lib/python2.7/dist-packages/salt/states/archive.py", line 115, in _read_cached_checksum\n checksum_file = _checksum_file_path(path)\n File "/usr/lib/python2.7/dist-packages/salt/states/archive.py", line 66, in _checksum_file_path\n relpath = \'.\'.join((os.path.relpath(path, __opts__[\'cachedir\']), \'hash\'))\n File "/usr/lib/python2.7/posixpath.py", line 428, in relpath\n raise ValueError("no path specified")\nValueError: no path specified\n', 'name': '/tmp/', 'start_time': '11:17:00.121892', 'result': False, 'duration': u'31.182 ms', '__run_num__': 0, '__sls__': u'common.rkhunter', 'changes': {}, '__id__': 'rkhunter_installer'}}}
local:
----------
ID: rkhunter_installer
Function: archive.extracted
Name: /tmp/
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1851, in call
**cdata['kwargs'])
File "/usr/lib/python2.7/dist-packages/salt/loader.py", line 1795, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/salt/states/archive.py", line 986, in extracted
existing_cached_source_sum = _read_cached_checksum(cached)
File "/usr/lib/python2.7/dist-packages/salt/states/archive.py", line 115, in _read_cached_checksum
checksum_file = _checksum_file_path(path)
File "/usr/lib/python2.7/dist-packages/salt/states/archive.py", line 66, in _checksum_file_path
relpath = '.'.join((os.path.relpath(path, __opts__['cachedir']), 'hash'))
File "/usr/lib/python2.7/posixpath.py", line 428, in relpath
raise ValueError("no path specified")
ValueError: no path specified
Started: 11:17:00.121892
Duration: 31.182 ms
Changes:
Summary for local
------------
Succeeded: 0
Failed: 1
------------
Total states run: 1
Total run time: 31.182 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.