Skip to content

Instantly share code, notes, and snippets.

Created July 1, 2015 15:19
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 anonymous/4ee2dc03a5f474defb90 to your computer and use it in GitHub Desktop.
Save anonymous/4ee2dc03a5f474defb90 to your computer and use it in GitHub Desktop.
envvars error
try:
ret = salt_client.cmd('*', 'state.highstate',
timeout=kwargs['timeout'],
kwarg={'pillar': envvars})
print "===================DEBUG STUFF========================"
print ret
print "===================DEBUG STUFF========================"
{'Metal-0': {'fun_args': ['/tmp/.vagrant_303cbc__salt/salt_state.tgz', 'test=None', 'pkg_sum=c8c3f4f8416a11e05018a63e9c9ec8c4', 'hash_type=md5'], 'jid': '20150701151218539578', 'return': {'cmd_|-benchmark_exec_|-fio --output-format=json --output=result.json simple.fio_|-run': {'comment': 'Command "fio --output-format=json --output=result.json simple.fio" run', 'name': 'fio --output-format=json --output=result.json simple.fio', 'start_time': '15:12:39.173331', 'result': True, 'duration': 53907.429, '__run_num__': 5, 'changes': {'pid': 14598, 'retcode': 0, 'stderr': '', 'stdout': ''}}, 'pkg_|-benchmark_install_|-benchmark_install_|-installed': {'comment': 'The following packages were installed/updated: fio', 'name': 'benchmark_install', 'start_time': '15:12:19.102164', 'result': True, 'duration': 10127.444, '__run_num__': 2, 'changes': {'fio': {'new': '2.1.3-1', 'old': ''}}}, 'environ_|-optimus_db_port_|-optimus_db_port_|-setenv': {'comment': 'Environ value must be string or dict', 'name': 'optimus_db_port', 'start_time': '15:12:19.100810', 'result': False, 'duration': 0.219, '__run_num__': 0, 'changes': {}}, 'cmd_|-benchmark_parse_|-python parser.py_|-run': {'comment': 'Command "python parser.py" run', 'name': 'python parser.py', 'start_time': '15:13:33.082276', 'result': True, 'duration': 615.933, '__run_num__': 6, 'changes': {'pid': 14788, 'retcode': 0, 'stderr': '', 'stdout': '5594039d232fe439c4fb8a75'}}, 'pkg_|-benchmark_uninstall_|-benchmark_uninstall_|-purged': {'comment': 'All targeted packages were purged.', 'name': 'benchmark_uninstall', 'start_time': '15:13:33.698406', 'result': True, 'duration': 644.5, '__run_num__': 7, 'changes': {'removed': {}, 'installed': {'fio': {'new': '', 'old': '2.1.3-1'}}}}, 'file_|-benchmark_prep2_|-/tmp/fiotest/data_|-directory': {'comment': 'Directory /tmp/fiotest/data updated', 'name': '/tmp/fiotest/data', 'start_time': '15:12:39.171007', 'result': True, 'duration': 1.431, '__run_num__': 4, 'changes': {'/tmp/fiotest/data': 'New Dir'}}, 'file_|-benchmark_clean_|-/tmp/fiotest_|-absent': {'comment': 'Removed directory /tmp/fiotest', 'name': '/tmp/fiotest', 'start_time': '15:13:34.498345', 'result': True, 'duration': 3.726, '__run_num__': 8, 'changes': {'removed': '/tmp/fiotest'}}, 'environ_|-optimus_db_ip_|-optimus_db_ip_|-setenv': {'comment': 'Environ values were set', 'name': 'optimus_db_ip', 'start_time': '15:12:19.101844', 'result': True, 'duration': 0.219, '__run_num__': 1, 'changes': {'optimus_db_ip': '192.168.33.12'}}, 'file_|-benchmark_prep1_|-/tmp/fiotest_|-recurse': {'comment': 'Recursively updated /tmp/fiotest', 'name': '/tmp/fiotest', 'start_time': '15:12:29.348917', 'result': True, 'duration': 9681.316, '__run_num__': 3, 'changes': {'/tmp/fiotest/parser.py': {'diff': 'New file', 'mode': '0644'}, '/tmp/fiotest/simple_cpuloader.fio': {'diff': 'New file', 'mode': '0644'}, '/tmp/fiotest/simple.fio': {'diff': 'New file', 'mode': '0644'}, '/tmp/fiotest/base/parser_base.py': {'diff': 'New file', 'mode': '0644'}, '/tmp/fiotest/base': {'/tmp/fiotest/base': 'New Dir'}, '/tmp/fiotest/base/benchmark_base.py': {'diff': 'New file', 'mode': '0644'}, '/tmp/fiotest/simple_10grwr.fio': {'diff': 'New file', 'mode': '0644'}, '/tmp/fiotest/base/__init__.py': {'diff': 'New file', 'mode': '0644'}, '/tmp/fiotest/benchmark.py': {'diff': 'New file', 'mode': '0644'}}}}, 'retcode': 0, 'fun': 'state.pkg', 'id': 'Metal-0', 'out': 'highstate'}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment