Skip to content

Instantly share code, notes, and snippets.

@Spankalish
Created March 3, 2016 19:38
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 Spankalish/22fcde979c681acc9ae4 to your computer and use it in GitHub Desktop.
Save Spankalish/22fcde979c681acc9ae4 to your computer and use it in GitHub Desktop.
[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 ] 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 ] Please install 'virt-what' to improve results of the 'virtual' grain.
[DEBUG ] Initializing new SAuth for ('/etc/salt/pki/minion', 'minion1', 'tcp://10.0.15.10:4506')
[DEBUG ] Generated random reconnect delay between '1000ms' and '11000ms' (1865)
[DEBUG ] Setting zmq_reconnect_ivl to '1865ms'
[DEBUG ] Setting zmq_reconnect_ivl_max to '11000ms'
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion1', 'tcp://10.0.15.10:4506', 'aes')
[DEBUG ] Initializing new SAuth for ('/etc/salt/pki/minion', 'minion1', 'tcp://10.0.15.10:4506')
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion1', 'tcp://10.0.15.10:4506', 'clear')
[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 ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] LazyLoaded state.highstate
[DEBUG ] LazyLoaded grains.get
[DEBUG ] LazyLoaded saltutil.is_running
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion1', 'tcp://10.0.15.10:4506', 'aes')
[DEBUG ] Initializing new SAuth for ('/etc/salt/pki/minion', 'minion1', 'tcp://10.0.15.10:4506')
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion1', 'tcp://10.0.15.10:4506', 'aes')
[DEBUG ] Initializing new SAuth for ('/etc/salt/pki/minion', 'minion1', 'tcp://10.0.15.10:4506')
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[INFO ] Loading fresh modules for state activity
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] In saltenv 'base', looking at rel_path u'top.sls' to resolve u'salt://top.sls'
[DEBUG ] In saltenv 'base', ** considering ** path u'/var/cache/salt/minion/files/base/top.sls' to resolve u'salt://top.sls'
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache u'salt://top.sls'
[DEBUG ] compile template: /var/cache/salt/minion/files/base/top.sls
[DEBUG ] Jinja search path: ['/var/cache/salt/minion/files/base']
[PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/base/top.sls' using 'jinja' renderer: 0.00490498542786
[DEBUG ] Rendered data from file: /var/cache/salt/minion/files/base/top.sls:
base:
'*':
- all_base
'minion*':
- nginx
#LB config
#'LB':
# -LB
[DEBUG ] LazyLoaded config.get
[DEBUG ] Results of YAML rendering:
OrderedDict([('base', OrderedDict([('*', ['all_base']), ('minion*', ['nginx'])]))])
[PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/base/top.sls' using 'yaml' renderer: 0.00514101982117
[DEBUG ] compound_match: minion1 ? *
[DEBUG ] compound_match minion1 ? "*" => "True"
[DEBUG ] compound_match: minion1 ? minion*
[DEBUG ] compound_match minion1 ? "minion*" => "True"
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] LazyLoaded saltutil.sync_all
[DEBUG ] Syncing all
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/beacons'
[INFO ] Syncing beacons for environment 'base'
[INFO ] Loading cache from salt://_beacons, for base)
[DEBUG ] LazyLoaded cp.cache_dir
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion1', 'tcp://10.0.15.10:4506', 'aes')
[DEBUG ] Initializing new SAuth for ('/etc/salt/pki/minion', 'minion1', 'tcp://10.0.15.10:4506')
[INFO ] Caching directory u'_beacons/' for environment 'base'
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_beacons'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/modules'
[INFO ] Syncing modules for environment 'base'
[INFO ] Loading cache from salt://_modules, for base)
[INFO ] Caching directory u'_modules/' for environment 'base'
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_modules'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/states'
[INFO ] Syncing states for environment 'base'
[INFO ] Loading cache from salt://_states, for base)
[INFO ] Caching directory u'_states/' for environment 'base'
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_states'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/sdb'
[INFO ] Syncing sdb for environment 'base'
[INFO ] Loading cache from salt://_sdb, for base)
[INFO ] Caching directory u'_sdb/' for environment 'base'
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_sdb'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/grains'
[INFO ] Syncing grains for environment 'base'
[INFO ] Loading cache from salt://_grains, for base)
[INFO ] Caching directory u'_grains/' for environment 'base'
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_grains'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/renderers'
[INFO ] Syncing renderers for environment 'base'
[INFO ] Loading cache from salt://_renderers, for base)
[INFO ] Caching directory u'_renderers/' for environment 'base'
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_renderers'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/returners'
[INFO ] Syncing returners for environment 'base'
[INFO ] Loading cache from salt://_returners, for base)
[INFO ] Caching directory u'_returners/' for environment 'base'
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_returners'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/output'
[INFO ] Syncing output for environment 'base'
[INFO ] Loading cache from salt://_output, for base)
[INFO ] Caching directory u'_output/' for environment 'base'
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_output'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/utils'
[INFO ] Syncing utils for environment 'base'
[INFO ] Loading cache from salt://_utils, for base)
[INFO ] Caching directory u'_utils/' for environment 'base'
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_utils'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/log_handlers'
[INFO ] Syncing log_handlers for environment 'base'
[INFO ] Loading cache from salt://_log_handlers, for base)
[INFO ] Caching directory u'_log_handlers/' for environment 'base'
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_log_handlers'
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/proxy'
[INFO ] Syncing proxy for environment 'base'
[INFO ] Loading cache from salt://_proxy, for base)
[INFO ] Caching directory u'_proxy/' for environment 'base'
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_proxy'
[DEBUG ] Refreshing modules...
[INFO ] Loading fresh modules for state activity
[DEBUG ] LazyLoaded jinja.render
[DEBUG ] LazyLoaded yaml.render
[DEBUG ] LazyLoaded saltutil.refresh_modules
[DEBUG ] LazyLoaded event.fire
[DEBUG ] SaltEvent PUB socket URI: ipc:///var/run/salt/minion/minion_event_c5a7daa544_pub.ipc
[DEBUG ] SaltEvent PULL socket URI: ipc:///var/run/salt/minion/minion_event_c5a7daa544_pull.ipc
[DEBUG ] Sending event - data = {'_stamp': '2016-03-03T19:37:20.418047'}
[DEBUG ] In saltenv 'base', looking at rel_path u'all_base.sls' to resolve u'salt://all_base.sls'
[DEBUG ] In saltenv 'base', ** considering ** path u'/var/cache/salt/minion/files/base/all_base.sls' to resolve u'salt://all_base.sls'
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache u'salt://all_base.sls'
[DEBUG ] compile template: /var/cache/salt/minion/files/base/all_base.sls
[DEBUG ] Jinja search path: ['/var/cache/salt/minion/files/base']
[PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/base/all_base.sls' using 'jinja' renderer: 0.0010039806366
[DEBUG ] Rendered data from file: /var/cache/salt/minion/files/base/all_base.sls:
git:
pkg.installed:
- name: git
[DEBUG ] LazyLoaded config.get
[DEBUG ] Results of YAML rendering:
OrderedDict([('git', OrderedDict([('pkg.installed', [OrderedDict([('name', 'git')])])]))])
[PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/base/all_base.sls' using 'yaml' renderer: 0.0042200088501
[DEBUG ] Could not find file from saltenv 'base', u'salt://nginx.sls'
[DEBUG ] In saltenv 'base', looking at rel_path u'nginx/init.sls' to resolve u'salt://nginx/init.sls'
[DEBUG ] In saltenv 'base', ** considering ** path u'/var/cache/salt/minion/files/base/nginx/init.sls' to resolve u'salt://nginx/init.sls'
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache u'salt://nginx/init.sls'
[DEBUG ] compile template: /var/cache/salt/minion/files/base/nginx/init.sls
[DEBUG ] Jinja search path: ['/var/cache/salt/minion/files/base']
[PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/base/nginx/init.sls' using 'jinja' renderer: 0.00103616714478
[DEBUG ] Rendered data from file: /var/cache/salt/minion/files/base/nginx/init.sls:
nginx:
pkg.installed:
- name: nginx
nginx_run:
service.running:
- watch:
- pkg: nginx
- file: /etc/nginx/nginx.conf
# -require:
# -file: /etc/nginx/nginx.conf
# - pkg: nginx
/etc/nginx/nginx.conf:
file:
- managed
- source: salt://nginx/nginx.conf
- user: root
- group: root
- mode: 644
[DEBUG ] Results of YAML rendering:
OrderedDict([('nginx', OrderedDict([('pkg.installed', [OrderedDict([('name', 'nginx')])])])), ('nginx_run', OrderedDict([('service.running', [OrderedDict([('watch', [OrderedDict([('pkg', 'nginx')]), OrderedDict([('file', '/etc/nginx/nginx.conf')])])])])])), ('/etc/nginx/nginx.conf', OrderedDict([('file', ['managed', OrderedDict([('source', 'salt://nginx/nginx.conf')]), OrderedDict([('user', 'root')]), OrderedDict([('group', 'root')]), OrderedDict([('mode', 644)])])]))])
[PROFILE ] Time (in seconds) to render '/var/cache/salt/minion/files/base/nginx/init.sls' using 'yaml' renderer: 0.023166179657
[DEBUG ] LazyLoaded pkg.install
[DEBUG ] LazyLoaded pkg.installed
[DEBUG ] Error loading module.victorops: No VictorOps api key found.
[DEBUG ] Error loading module.ipmi: No module named pyghmi.ipmi
[DEBUG ] Error loading module.rh_service: Cannot load rh_service module: OS not in set(['SUSE Enterprise Server', 'SUSE', 'RedHat', 'CentOS', 'CloudLinux', 'McAfee OS Server', 'XenServer', 'Amazon', 'OEL', 'ScientificLinux', 'ALT', 'Fedora'])
[DEBUG ] Error loading module.win_status: Cannot load win_status module on non-windows
[DEBUG ] Error loading module.ifttt: IFTTT Secret Key Unavailable, not loading.
[DEBUG ] Error loading module.glusterfs: glusterfs server is not installed
[DEBUG ] Error loading module.npm: npm execution module could not be loaded because the npm binary could not be located
[DEBUG ] You should upgrade pyOpenSSL to at least 0.14.1 to enable the use of X509 extensions in the tls module
[DEBUG ] Error loading module.vsphere: Missing dependency: The vSphere module requires the pyVmomi Python module.
[DEBUG ] Error loading module.dockerng: Docker module could not get imported
[DEBUG ] Error loading module.nacl: libnacl import error, perhaps missing python libnacl package
[DEBUG ] Error loading module.boto_cloudwatch: The boto_cloudwatch module cannot be loaded: boto libraries are unavailable.
[DEBUG ] Error loading module.x509: Could not load x509 module, m2crypto unavailable
[DEBUG ] Could not LazyLoad pkg.ex_mod_init
[INFO ] Running state [git] at time 19:37:21.050544
[INFO ] Executing state pkg.installed for git
[INFO ] Executing command ['dpkg-query', '--showformat', '${Status} ${Package} ${Version} ${Architecture}\n', '-W'] in directory '/home/vagrant'
[DEBUG ] Could not LazyLoad pkg.normalize_name
[INFO ] Package git is already installed
[INFO ] Completed state [git] at time 19:37:21.458313
[INFO ] Running state [nginx] at time 19:37:21.458786
[INFO ] Executing state pkg.installed for nginx
[DEBUG ] Could not LazyLoad pkg.normalize_name
[DEBUG ] Could not LazyLoad pkg.check_db
[DEBUG ] Could not LazyLoad pkg.normalize_name
[INFO ] Executing command 'apt-get -q update' in directory '/home/vagrant'
[INFO ] Executing command ['apt-get', '-q', '-y', '-o', 'DPkg::Options::=--force-confold', '-o', 'DPkg::Options::=--force-confdef', 'install', 'nginx'] in directory '/home/vagrant'
[ERROR ] Command ['apt-get', '-q', '-y', '-o', 'DPkg::Options::=--force-confold', '-o', 'DPkg::Options::=--force-confdef', 'install', 'nginx'] failed with return code: 100
[ERROR ] output: Reading package lists...
Building dependency tree...
Reading state information...
nginx is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
fontconfig-config : Depends: fonts-dejavu-core but it is not going to be installed or
ttf-bitstream-vera but it is not going to be installed or
fonts-freefont-ttf but it is not going to be installed or
gsfonts-x11 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
[INFO ] Executing command ['dpkg-query', '--showformat', '${Status} ${Package} ${Version} ${Architecture}\n', '-W'] in directory '/home/vagrant'
[ERROR ] The following packages failed to install/update: nginx
[INFO ] Completed state [nginx] at time 19:37:28.084922
[DEBUG ] LazyLoaded service.running
[DEBUG ] LazyLoaded file.managed
[INFO ] Running state [/etc/nginx/nginx.conf] at time 19:37:28.096018
[INFO ] Executing state file.managed for /etc/nginx/nginx.conf
[INFO ] File /etc/nginx/nginx.conf is in the correct state
[INFO ] Completed state [/etc/nginx/nginx.conf] at time 19:37:28.123034
[DEBUG ] File /var/cache/salt/minion/accumulator/139677008841104 does not exist, no need to cleanup.
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'minion1', 'tcp://10.0.15.10:4506', 'aes')
[DEBUG ] Initializing new SAuth for ('/etc/salt/pki/minion', 'minion1', 'tcp://10.0.15.10:4506')
[DEBUG ] LazyLoaded highstate.output
local:
----------
ID: git
Function: pkg.installed
Result: True
Comment: Package git is already installed
Started: 19:37:21.050544
Duration: 407.769 ms
Changes:
----------
ID: nginx
Function: pkg.installed
Result: False
Comment: The following packages failed to install/update: nginx
Started: 19:37:21.458786
Duration: 6626.136 ms
Changes:
----------
ID: /etc/nginx/nginx.conf
Function: file.managed
Result: True
Comment: File /etc/nginx/nginx.conf is in the correct state
Started: 19:37:28.096018
Duration: 27.016 ms
Changes:
----------
ID: nginx_run
Function: service.running
Result: False
Comment: One or more requisite failed: nginx.nginx
Started:
Duration:
Changes:
Summary for local
------------
Succeeded: 2
Failed: 2
------------
Total states run: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment