Skip to content

reactor/orchestrate race condition on salt['pillar.get'] #23373

Closed

Description

@tnypex

Hi all,

with 2015.2.0rc2

I have the following reactor sls that calls an orchestrate runner:

{% set fun = data.get('fun', {}) %}
{% set id = data.get('id', {}) %}
{% if fun == "test.ping" %}
orchestrate_test_{{id}}:
  runner.state.orchestrate:
    - mods: orchestration.test
    - pillar: { target_server: {{id}} }
{% endif %}

When running test.ping on multiple minions (3 in this case)
the reactor sls is rendered fine 3 times :

2015-05-05 15:52:40,038 [salt.template                              ][DEBUG   ][25815] Rendered data from file: /srv/salt/base/reactor/jobs_ret.sls:


orchestrate_test_minion1:
  runner.state.orchestrate:
    - mods: orchestration.test
    - pillar: { target_server: minion1 }
2015-05-05 15:52:40,128 [salt.template                              ][DEBUG   ][25815] Rendered data from file: /srv/salt/base/reactor/jobs_ret.sls:


orchestrate_test_minion2:
  runner.state.orchestrate:
    - mods: orchestration.test
    - pillar: { target_server: minion2 }
2015-05-05 15:52:40,261 [salt.template                              ][DEBUG   ][25815] Rendered data from file: /srv/salt/base/reactor/jobs_ret.sls:


orchestrate_test_minion3:
  runner.state.orchestrate:
    - mods: orchestration.test
    - pillar: { target_server: minion3 }

however, the orchestrate runners will not always get the correct pillar data (it will sometimes get an empty value, sometimes an other orchestrate runner's pillar data, sometimes the expected value) :

The orchestrate sls:

{% set tgs = salt['pillar.get']('target_server') %}

test:
  salt.function:
    - name: test.arg
    - tgt: {{ tgs }}
2015-05-05 15:52:45,024 [salt.template                              ][DEBUG   ][25815] Rendered data from file: /var/cache/salt/master/files/base/orchestration/test.sls:


test:
  salt.function:
    - name: test.arg
    - tgt: minion1
2015-05-05 15:52:45,025 [salt.template                              ][DEBUG   ][25815] Rendered data from file: /var/cache/salt/master/files/base/orchestration/test.sls:


test:
  salt.function:
    - name: test.arg
    - tgt: minion1
2015-05-05 15:52:45,275 [salt.template                              ][DEBUG   ][25815] Rendered data from file: /var/cache/salt/master/files/base/orchestration/test.sls:


test:
  salt.function:
    - name: test.arg
    - tgt: minion3

There are also sometimes some RuntimeError: Set changed size during iteration exceptions raised such as:

2015-05-05 15:52:48,917 [salt.loader                                ][ERROR   ][25815] Failed to read the virtual function for states: xmpp
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/salt/loader.py", line 1098, in process_virtual
    virtual = mod.__virtual__()
  File "/usr/lib/python2.6/site-packages/salt/states/xmpp.py", line 25, in __virtual__
    return 'xmpp' if 'xmpp.send_msg' in __salt__ else False
  File "/usr/lib64/python2.6/_abcoll.py", line 342, in __contains__
    self[key]
  File "/usr/lib/python2.6/site-packages/salt/utils/lazy.py", line 85, in __getitem__
    if self._load(key):
  File "/usr/lib/python2.6/site-packages/salt/loader.py", line 1024, in _load
    ret = _inner_load(mod_name)
  File "/usr/lib/python2.6/site-packages/salt/loader.py", line 1013, in _inner_load
    if self._load_module(name) and key in self._dict:
  File "/usr/lib/python2.6/site-packages/salt/loader.py", line 990, in _load_module
    Depends.enforce_dependencies(self._dict, self.tag)
  File "/usr/lib/python2.6/site-packages/salt/utils/decorators/__init__.py", line 81, in enforce_dependencies
    for module, func, fallback_function in dependent_set:
RuntimeError: Set changed size during iteration

Activity

  1. added
    bug
    Core
    severity-high
    P4
    on May 6, 2015
  2. added this to the Approved milestone on May 6, 2015
  3. jfindlay commented on May 6, 2015

    @jfindlay
    Contributor

    @tnypex, thanks for the report.

  4. cachedout commented on May 6, 2015

    @cachedout
    Contributor

    My first thought here is that we might be hitting an issue with threading in the reactor, though it doesn't quite seem clear how that might be affecting things. We'll need to carefully step through the code here to see what's happening.

  5. cachedout commented on May 6, 2015

    @cachedout
    Contributor

    @tnypex There should be some lines in your debug log that start with ThreadPool executing func: .... Can you paste those? They'll be right after those rendering lines you already pasted.

  6. tnypex commented on May 7, 2015

    @tnypex
    Author

    Here they are:

    2015-05-05 15:52:40,066 [salt.utils.process                         ][DEBUG   ][25815] ThreadPool executing func: <bound method RunnerClient.low of <salt.runner.RunnerClient object at 0x7fbaf0c47a90>> with args:('state.orchestrate', {'mods': 'orchestration.test', 'name': 'orchestrate_test_minion1', 'pillar': OrderedDict([('target_server', 'minion1')]), 'state': 'runner', '__id__': 'orchestrate_test_minion1', '__user__': 'Reactor', '__sls__': '/srv/salt/base/reactor/jobs_ret.sls', 'order': 1, 'user': 'Reactor'}) kwargs{}
    
    2015-05-05 15:52:40,180 [salt.utils.process                         ][DEBUG   ][25815] ThreadPool executing func: <bound method RunnerClient.low of <salt.runner.RunnerClient object at 0x7fbaf0c47a90>> with args:('state.orchestrate', {'mods': 'orchestration.test', 'name': 'orchestrate_test_minion2', 'pillar': OrderedDict([('target_server', 'minion2')]), 'state': 'runner', '__id__': 'orchestrate_test_minion2', '__user__': 'Reactor', '__sls__': '/srv/salt/base/reactor/jobs_ret.sls', 'order': 1, 'user': 'Reactor'}) kwargs{}
    
    2015-05-05 15:52:40,333 [salt.utils.process                         ][DEBUG   ][25815] ThreadPool executing func: <bound method RunnerClient.low of <salt.runner.RunnerClient object at 0x7fbaf0c47a90>> with args:('state.orchestrate', {'mods': 'orchestration.test', 'name': 'orchestrate_test_minion3', 'pillar': OrderedDict([('target_server', 'minion3')]), 'state': 'runner', '__id__': 'orchestrate_test_minion3', '__user__': 'Reactor', '__sls__': '/srv/salt/base/reactor/jobs_ret.sls', 'order': 1, 'user': 'Reactor'}) kwargs{}
    
  7. tnypex commented on May 7, 2015

    @tnypex
    Author

    I don't really know what I am doing :), but it looks like the following fixes this issue.
    Maybe it will ring some bells

    diff -u reactor.py_orig reactor.py
    --- reactor.py_orig     2015-05-07 15:56:28.748606678 +0200
    +++ reactor.py  2015-05-07 15:44:34.142703862 +0200
    @@ -216,7 +216,7 @@
             if 'runner' not in self.client_cache:
                 self.client_cache['runner'] = salt.runner.RunnerClient(self.opts)
             try:
    -            self.pool.fire_async(self.client_cache['runner'].low, args=(fun, kwargs))
    +            self.pool.fire_async(self.client_cache['runner'].async, args=(fun, kwargs))
             except SystemExit:
                 log.warning('Attempt to exit in reactor by runner. Ignored')
             except Exception as exc:
    
  8. added
    Confirmed
    on Sep 29, 2015
  9. added this to the B 11 milestone on Sep 30, 2015
  10. 32 remaining items

  11. added
    fixed-pls-verify
    on Nov 17, 2015
  12. cachedout commented on Nov 19, 2015

    @cachedout
    Contributor

    We didn't hear back here, so I'm going to go ahead and close this since it does appear to be fixed. If not, please leave a comment here and we'll happily re-open it.

  13. tnypex commented on Nov 26, 2015

    @tnypex
    Author

    Hi,

    Sorry for the delay, I tested from develop but the issue is still present in orchestrate runners started by the reactor.

  14. reopened this on Nov 30, 2015
  15. DmitryKuzmenko commented on Dec 1, 2015

    @DmitryKuzmenko
    Contributor

    @jacksontj will you look at this or I should take care?

  16. jacksontj commented on Dec 3, 2015

    @jacksontj
    Contributor

    From my local testing I can't reproduce the same changed size during iteration error, but I do run into some issues getting your SLSs to run. The first one seems to be an oddity with pillar.get from jinja. For example, with the following SLS:

    {% set tgs = salt['pillar.get']('target_server') %}
    
    test:
      salt.function:
        - name: test.arg
        - tgt: {{ tgs }}
    

    if "target_server" is not in the pillar, I'd expect it to come back as None or empty string-- but for some reason its coming back as an empty dict and I'm getting exceptions like:

    [ERROR   ] Failed matching available minions with glob pattern: {}
    Traceback (most recent call last):
      File "/home/jacksontj/src/salt/salt/utils/minions.py", line 626, in check_minions
        minions = check_func(expr, greedy)
      File "/home/jacksontj/src/salt/salt/utils/minions.py", line 193, in _check_glob_minions
        return fnmatch.filter(files, expr)
      File "/home/jacksontj/.virtualenvs/salt/lib64/python2.7/fnmatch.py", line 50, in filter
        if not pat in _cache:
    TypeError: unhashable type: 'dict'
    

    Although that looks ugly-- its not actually whats broken. After looking some more I see that the minion is throwing an exception:

    Which means its choking on the pub job. I added some prints and it seems that the pub job looks like:

    {
        'tgt_type': 'glob',
        'jid': '',
        'cmd': 'publish',
        'tgt': '*',
        'kwargs': {
            'delimiter': ': ',
            'show_timeout': True,
            'show_jid': False
        },
        'ret': '',
        'user': 'sudo_jacksontj',
        'key': '<SOMEKEY>',
        'arg': [
    
        ],
        'fun': 'test.ping'
    }
    

    And 'ret' is definitely not valid (its supposed to be returners in the pub job, not the return). After tracking that down I found that there was some variable shadowing in states.saltmod (d968d69).

    I've opened a PR with fixes (#29397) can you try with that? And if you do still see issues, mind pasting logs/errors/tracebacks as well?

  17. added a commit that references this issue on Dec 3, 2015
  18. modified the milestones: B 6, B 10 on Dec 14, 2015
  19. cachedout commented on Dec 23, 2015

    @cachedout
    Contributor

    Since we have a fix in and no reply, I am closing this. If it turns out not to be fixed, please comment and we will re-open this.

  20. tnypex commented on Jan 12, 2016

    @tnypex
    Author

    Hi,

    Sorry I should have been more precise on the issue that remains, from the develop branch I still experience mixed up pillar data in orchestrate runners started by the reactor (no more tracebacks).

    the reactor sls is:

    {% set fun = data.get('fun', {}) %}
    {% set arg = data.get('arg', {}) %}
    {% set minions = data.get('minions', {}) %}
    
    
    {% if fun == "test.ping" %}
    {% for minion in minions %}
    orchestrate_handle_test_{{minion}}:
      runner.state.orchestrate:
        - mods: orchestration.test.test
        - pillar: {target_server: {{minion}}}
    
    {% endfor %}
    {% endif %}
    

    and the orchestrate sls:

    notify_test_{{target_server}}:
      salt.function:
        - name: cmd.run
        - tgt: minion1
        - arg:
          - '/tmp/test.ksh  {{ target_server }}'
          - '/tmp/'
          - '/dev/null'
          - 'myid'
    

    When, run test.ping against multiple minions salt '*' test.ping, the reactor sls is correctly rendered but the following orchestrate runners get mixed/inconsistent pillar data, full debug logs pasted below:

    [DEBUG   ] LazyLoaded local_cache.prep_jid
    [DEBUG   ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc
    [DEBUG   ] Sending event - data = {'_stamp': '2016-01-12T11:00:22.995250', 'minions': ['minion1', 'minion2', 'minion3', 'minion4']}
    [DEBUG   ] Sending event - data = {'tgt_type': 'glob', 'jid': '20160112120022993175', 'tgt': '*', '_stamp': '2016-01-12T11:00:22.996043', 'user': 'root', 'arg': [], 'fun': 'test.ping', 'minions': ['minion1', 'minion2', 'minion3', 'minion4']}
    [DEBUG   ] Gathering reactors for tag 20160112120022993175
    [DEBUG   ] Gathering reactors for tag salt/job/20160112120022993175/new
    [DEBUG   ] Compiling reactions for tag salt/job/20160112120022993175/new
    [DEBUG   ] compile template: /srv/salt/base/reactor/jobs.sls
    [INFO    ] User root Published command test.ping with jid 20160112120022993175
    [DEBUG   ] Published command details {'tgt_type': 'glob', 'jid': '20160112120022993175', 'tgt': '*', 'ret': '', 'user': 'root', 'arg': [], 'fun': 'test.ping'}
    [DEBUG   ] Jinja search path: '['/var/cache/salt/master/files/base']'
    [PROFILE ] Time (in seconds) to render '/srv/salt/base/reactor/jobs.sls' using 'jinja' renderer: 0.0269289016724
    [DEBUG   ] Rendered data from file: /srv/salt/base/reactor/jobs.sls:
    
    
    
    
    
    
    
    orchestrate_handle_test_minion1:
      runner.state.orchestrate:
        - mods: orchestration.test.test
        - pillar: {target_server: minion1}
    
    
    orchestrate_handle_test_minion2:
      runner.state.orchestrate:
        - mods: orchestration.test.test
        - pillar: {target_server: minion2}
    
    
    orchestrate_handle_test_minion3:
      runner.state.orchestrate:
        - mods: orchestration.test.test
        - pillar: {target_server: minion3}
    
    
    orchestrate_handle_test_minion4:
      runner.state.orchestrate:
        - mods: orchestration.test.test
        - pillar: {target_server: minion4}
    
    
    
    
    
    
    
    [DEBUG   ] LazyLoaded config.get
    [DEBUG   ] Results of YAML rendering: 
    OrderedDict([('orchestrate_handle_test_minion1', OrderedDict([('runner.state.orchestrate', [OrderedDict([('mods', 'orchestration.test.test')]), OrderedDict([('pillar', OrderedDict([('target_server', 'minion1')]))])])])), ('orchestrate_handle_test_minion2', OrderedDict([('runner.state.orchestrate', [OrderedDict([('mods', 'orchestration.test.test')]), OrderedDict([('pillar', OrderedDict([('target_server', 'minion2')]))])])])), ('orchestrate_handle_test_minion3', OrderedDict([('runner.state.orchestrate', [OrderedDict([('mods', 'orchestration.test.test')]), OrderedDict([('pillar', OrderedDict([('target_server', 'minion3')]))])])])), ('orchestrate_handle_test_minion4', OrderedDict([('runner.state.orchestrate', [OrderedDict([('mods', 'orchestration.test.test')]), OrderedDict([('pillar', OrderedDict([('target_server', 'minion4')]))])])]))])
    [PROFILE ] Time (in seconds) to render '/srv/salt/base/reactor/jobs.sls' using 'yaml' renderer: 0.0187299251556
    [DEBUG   ] ThreadPool executing func: <bound method RunnerClient.low of <salt.runner.RunnerClient object at 0x23d8f10>> with args:('state.orchestrate', {'mods': 'orchestration.test.test', 'name': u'orchestrate_handle_test_minion1', 'pillar': OrderedDict([('target_server', 'minion1')]), 'state': 'runner', '__id__': 'orchestrate_handle_test_minion1', '__user__': 'Reactor', '__sls__': '/srv/salt/base/reactor/jobs.sls', 'order': 1, 'user': 'Reactor'}) kwargs{}
    [DEBUG   ] ThreadPool executing func: <bound method RunnerClient.low of <salt.runner.RunnerClient object at 0x23d8f10>> with args:('state.orchestrate', {'mods': 'orchestration.test.test', 'name': u'orchestrate_handle_test_minion2', 'pillar': OrderedDict([('target_server', 'minion2')]), 'state': 'runner', '__id__': 'orchestrate_handle_test_minion2', '__user__': 'Reactor', '__sls__': '/srv/salt/base/reactor/jobs.sls', 'order': 1, 'user': 'Reactor'}) kwargs{}
    [DEBUG   ] Reading configuration from /etc/salt/master
    [DEBUG   ] ThreadPool executing func: <bound method RunnerClient.low of <salt.runner.RunnerClient object at 0x23d8f10>> with args:('state.orchestrate', {'mods': 'orchestration.test.test', 'name': u'orchestrate_handle_test_minion4', 'pillar': OrderedDict([('target_server', 'minion4')]), 'state': 'runner', '__id__': 'orchestrate_handle_test_minion4', '__user__': 'Reactor', '__sls__': '/srv/salt/base/reactor/jobs.sls', 'order': 1, 'user': 'Reactor'}) kwargs{}
    [DEBUG   ] ThreadPool executing func: <bound method RunnerClient.low of <salt.runner.RunnerClient object at 0x23d8f10>> with args:('state.orchestrate', {'mods': 'orchestration.test.test', 'name': u'orchestrate_handle_test_minion3', 'pillar': OrderedDict([('target_server', 'minion3')]), 'state': 'runner', '__id__': 'orchestrate_handle_test_minion3', '__user__': 'Reactor', '__sls__': '/srv/salt/base/reactor/jobs.sls', 'order': 1, 'user': 'Reactor'}) kwargs{}
    [DEBUG   ] Reading configuration from /etc/salt/master
    [DEBUG   ] Reading configuration from /etc/salt/master
    [DEBUG   ] Reading configuration from /etc/salt/master
    [DEBUG   ] Guessing ID. The id can be explicitly set in /etc/salt/minion
    [DEBUG   ] Guessing ID. The id can be explicitly set in /etc/salt/minion
    [DEBUG   ] Guessing ID. The id can be explicitly set in /etc/salt/minion
    [DEBUG   ] Guessing ID. The id can be explicitly set in /etc/salt/minion
    [INFO    ] Found minion id from generate_minion_id(): saltmaster
    [DEBUG   ] Reading configuration from /etc/salt/master
    [INFO    ] Found minion id from generate_minion_id(): saltmaster
    [DEBUG   ] Reading configuration from /etc/salt/master
    [INFO    ] Found minion id from generate_minion_id(): saltmaster
    [INFO    ] Found minion id from generate_minion_id(): saltmaster
    [DEBUG   ] Reading configuration from /etc/salt/master
    [DEBUG   ] Reading configuration from /etc/salt/master
    [DEBUG   ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc
    [DEBUG   ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc
    [DEBUG   ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc
    [DEBUG   ] Sending event - data = {'fun': 'runner.state.orchestrate', 'jid': '20160112120024318919', 'user': 'Reactor', '_stamp': '2016-01-12T11:00:24.326944'}
    [DEBUG   ] LazyLoaded state.orchestrate
    [DEBUG   ] Error loading runners.nacl: libnacl import error, perhaps missing python libnacl package
    [DEBUG   ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc
    [DEBUG   ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc
    [DEBUG   ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc
    [DEBUG   ] Sending event - data = {'fun': 'runner.state.orchestrate', 'jid': '20160112120024365367', 'user': 'Reactor', '_stamp': '2016-01-12T11:00:24.385043'}
    [DEBUG   ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc
    [DEBUG   ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc
    [DEBUG   ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc
    [DEBUG   ] Sending event - data = {'fun': 'runner.state.orchestrate', 'jid': '20160112120024412357', 'user': 'Reactor', '_stamp': '2016-01-12T11:00:24.428243'}
    /usr/lib/python2.6/site-packages/salt/client/mixins.py:333: DeprecationWarning: kwargs must be passed inside the low under "kwargs"
    [DEBUG   ] Reading configuration from /etc/salt/master
    [DEBUG   ] Reading configuration from /etc/salt/master
    [DEBUG   ] Reading configuration from /etc/salt/master
    [DEBUG   ] Guessing ID. The id can be explicitly set in /etc/salt/minion
    [DEBUG   ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc
    [DEBUG   ] Guessing ID. The id can be explicitly set in /etc/salt/minion
    [DEBUG   ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc
    [DEBUG   ] Guessing ID. The id can be explicitly set in /etc/salt/minion
    [DEBUG   ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc
    [DEBUG   ] Sending event - data = {'fun': 'runner.state.orchestrate', 'jid': '20160112120024506091', 'user': 'Reactor', '_stamp': '2016-01-12T11:00:24.523897'}
    [DEBUG   ] Reading configuration from /etc/salt/master
    [DEBUG   ] Guessing ID. The id can be explicitly set in /etc/salt/minion
    [INFO    ] Found minion id from generate_minion_id(): saltmaster
    [DEBUG   ] Reading configuration from /etc/salt/master
    [INFO    ] Found minion id from generate_minion_id(): saltmaster
    [DEBUG   ] Reading configuration from /etc/salt/master
    [INFO    ] Found minion id from generate_minion_id(): saltmaster
    [DEBUG   ] Reading configuration from /etc/salt/master
    [INFO    ] Found minion id from generate_minion_id(): saltmaster
    [DEBUG   ] Reading configuration from /etc/salt/master
    [DEBUG   ] LazyLoaded jinja.render
    [DEBUG   ] LazyLoaded jinja.render
    [DEBUG   ] LazyLoaded yaml.render
    [DEBUG   ] LazyLoaded yaml.render
    [DEBUG   ] LazyLoaded state.sls
    [DEBUG   ] LazyLoaded saltutil.is_running
    [DEBUG   ] LazyLoaded state.sls
    [DEBUG   ] LazyLoaded saltutil.is_running
    [DEBUG   ] LazyLoaded jinja.render
    [DEBUG   ] LazyLoaded grains.get
    [DEBUG   ] LazyLoaded yaml.render
    [DEBUG   ] LazyLoaded state.sls
    [DEBUG   ] LazyLoaded saltutil.is_running
    [DEBUG   ] LazyLoaded roots.envs
    [DEBUG   ] LazyLoaded jinja.render
    [DEBUG   ] LazyLoaded roots.envs
    [DEBUG   ] LazyLoaded grains.get
    [DEBUG   ] LazyLoaded yaml.render
    [DEBUG   ] Could not LazyLoad roots.init
    [DEBUG   ] Updating roots fileserver cache
    [DEBUG   ] LazyLoaded state.sls
    [DEBUG   ] LazyLoaded saltutil.is_running
    [DEBUG   ] Could not LazyLoad roots.init
    [DEBUG   ] Updating roots fileserver cache
    [DEBUG   ] LazyLoaded roots.envs
    [DEBUG   ] LazyLoaded grains.get
    [DEBUG   ] Could not LazyLoad roots.init
    [DEBUG   ] Updating roots fileserver cache
    [DEBUG   ] LazyLoaded roots.envs
    [DEBUG   ] Could not LazyLoad roots.init
    [DEBUG   ] Updating roots fileserver cache
    [DEBUG   ] LazyLoaded jinja.render
    [DEBUG   ] LazyLoaded yaml.render
    [INFO    ] Loading fresh modules for state activity
    [DEBUG   ] LazyLoaded jinja.render
    [DEBUG   ] LazyLoaded yaml.render
    [INFO    ] Loading fresh modules for state activity
    [DEBUG   ] LazyLoaded jinja.render
    [DEBUG   ] LazyLoaded yaml.render
    [DEBUG   ] In saltenv 'base', looking at rel_path 'orchestration/test/test.sls' to resolve 'salt://orchestration/test/test.sls'
    [DEBUG   ] In saltenv 'base', ** considering ** path '/var/cache/salt/master/files/base/orchestration/test/test.sls' to resolve 'salt://orchestration/test/test.sls'
    [DEBUG   ] LazyLoaded jinja.render
    [INFO    ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://orchestration/test/test.sls'
    [DEBUG   ] compile template: /var/cache/salt/master/files/base/orchestration/test/test.sls
    [DEBUG   ] LazyLoaded yaml.render
    [DEBUG   ] Jinja search path: '['/var/cache/salt/master/files/base']'
    [DEBUG   ] In saltenv 'base', looking at rel_path 'orchestration/test/test.sls' to resolve 'salt://orchestration/test/test.sls'
    [DEBUG   ] In saltenv 'base', ** considering ** path '/var/cache/salt/master/files/base/orchestration/test/test.sls' to resolve 'salt://orchestration/test/test.sls'
    [DEBUG   ] LazyLoaded pillar.get
    [PROFILE ] Time (in seconds) to render '/var/cache/salt/master/files/base/orchestration/test/test.sls' using 'jinja' renderer: 0.0154371261597
    [INFO    ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://orchestration/test/test.sls'
    [DEBUG   ] Rendered data from file: /var/cache/salt/master/files/base/orchestration/test/test.sls:
    
    
    
    notify_test_minion1:
      salt.function:
        - name: cmd.run
        - tgt: minion1
        - arg:
          - '/tmp/test.ksh minion1'
          - '/tmp/'
          - '/dev/null'
          - 'myid'
    
    
    
    [DEBUG   ] compile template: /var/cache/salt/master/files/base/orchestration/test/test.sls
    [DEBUG   ] Jinja search path: '['/var/cache/salt/master/files/base']'
    [DEBUG   ] LazyLoaded config.get
    [DEBUG   ] Results of YAML rendering: 
    OrderedDict([('notify_test_minion1', OrderedDict([('salt.function', [OrderedDict([('name', 'cmd.run')]), OrderedDict([('tgt', 'minion1')]), OrderedDict([('arg', ['/tmp/test.ksh minion1', '/tmp/', '/dev/null', 'myid'])])])]))])
    [PROFILE ] Time (in seconds) to render '/var/cache/salt/master/files/base/orchestration/test/test.sls' using 'jinja' renderer: 0.0174221992493
    [PROFILE ] Time (in seconds) to render '/var/cache/salt/master/files/base/orchestration/test/test.sls' using 'yaml' renderer: 0.0254518985748
    [DEBUG   ] Rendered data from file: /var/cache/salt/master/files/base/orchestration/test/test.sls:
    
    
    
    notify_test_minion1:
      salt.function:
        - name: cmd.run
        - tgt: minion1
        - arg:
          - '/tmp/test.ksh minion1'
          - '/tmp/'
          - '/dev/null'
          - 'myid'
    
    
    
    [DEBUG   ] LazyLoaded config.option
    [DEBUG   ] Results of YAML rendering: 
    OrderedDict([('notify_test_minion1', OrderedDict([('salt.function', [OrderedDict([('name', 'cmd.run')]), OrderedDict([('tgt', 'minion1')]), OrderedDict([('arg', ['/tmp/test.ksh minion1', '/tmp/', '/dev/null', 'myid'])])])]))])
    [DEBUG   ] LazyLoaded salt.function
    [PROFILE ] Time (in seconds) to render '/var/cache/salt/master/files/base/orchestration/test/test.sls' using 'yaml' renderer: 0.0123250484467
    [INFO    ] Running state [cmd.run] at time 12:00:26.056375
    [DEBUG   ] LazyLoaded salt.function
    [INFO    ] Executing state salt.function for cmd.run
    [INFO    ] Running state [cmd.run] at time 12:00:26.061644
    [INFO    ] Executing state salt.function for cmd.run
    [DEBUG   ] Reading configuration from /etc/salt/master
    [DEBUG   ] LazyLoaded saltutil.cmd
    [DEBUG   ] Reading configuration from /etc/salt/master
    [DEBUG   ] Missing configuration file: /root/.saltrc
    [DEBUG   ] Missing configuration file: /root/.saltrc
    [DEBUG   ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc
    [DEBUG   ] MasterEvent PUB socket URI: /var/run/salt/master/master_event_pub.ipc
    [DEBUG   ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc
    [DEBUG   ] MasterEvent PULL socket URI: /var/run/salt/master/master_event_pull.ipc
    [DEBUG   ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/master', 'saltmaster_master', 'tcp://127.0.0.1:4506', 'clear')
    [DEBUG   ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pub.ipc
    [DEBUG   ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/master', 'saltmaster_master', 'tcp://127.0.0.1:4506', 'clear')
    [DEBUG   ] LazyLoaded local_cache.prep_jid
    [DEBUG   ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pub.ipc
    [DEBUG   ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc
    [DEBUG   ] Sending event - data = {'_stamp': '2016-01-12T11:00:26.319562', 'minions': ['minion1']}
    [DEBUG   ] Sending event - data = {'tgt_type': 'glob', 'jid': '20160112120026315063', 'tgt': 'minion1', '_stamp': '2016-01-12T11:00:26.323314', 'user': 'root', 'arg': ['/tmp/test.ksh minion1', '/tmp/', '/dev/null', 'myid'], 'fun': 'cmd.run', 'minions': ['minion1']}
    [DEBUG   ] Gathering reactors for tag 20160112120026315063
    [DEBUG   ] Gathering reactors for tag salt/job/20160112120026315063/new
    [DEBUG   ] Compiling reactions for tag salt/job/20160112120026315063/new
    [INFO    ] User root Published command cmd.run with jid 20160112120026315063
    [DEBUG   ] Published command details {'tgt_type': 'glob', 'jid': '20160112120026315063', 'tgt': 'minion1', 'ret': '', 'user': 'root', 'arg': ['/tmp/test.ksh minion1', '/tmp/', '/dev/null', 'myid'], 'fun': 'cmd.run'}
    [DEBUG   ] compile template: /srv/salt/base/reactor/jobs.sls
    [DEBUG   ] LazyLoaded local_cache.prep_jid
    [DEBUG   ] Jinja search path: '['/var/cache/salt/master/files/base']'
    [DEBUG   ] Initializing new IPCClient for path: /var/run/salt/master/master_event_pull.ipc
    [DEBUG   ] Sending event - data = {'_stamp': '2016-01-12T11:00:26.342095', 'minions': ['minion1']}
    [DEBUG   ] LazyLoaded local_cache.get_load
    [DEBUG   ] Sending event - data = {'tgt_type': 'glob', 'jid': '20160112120026336813', 'tgt': 'minion1', '_stamp': '2016-01-12T11:00:26.346361', 'user': 'root', 'arg': ['/tmp/test.ksh minion1', '/tmp/', '/dev/null', 'myid'], 'fun': 'cmd.run', 'minions': ['minion1']}
    [DEBUG   ] get_iter_returns for jid 20160112120026315063 sent to set(['minion1']) will timeout at 12:00:31.345095
    [INFO    ] User root Published command cmd.run with jid 20160112120026336813
    [DEBUG   ] Published command details {'tgt_type': 'glob', 'jid': '20160112120026336813', 'tgt': 'minion1', 'ret': '', 'user': 'root', 'arg': ['/tmp/test.ksh minion1', '/tmp/', '/dev/null', 'myid'], 'fun': 'cmd.run'}
    [PROFILE ] Time (in seconds) to render '/srv/salt/base/reactor/jobs.sls' using 'jinja' renderer: 0.0436570644379
    [DEBUG   ] Rendered data from file: /srv/salt/base/reactor/jobs.sls:
    
    
    
    
    
    
    
    
    
    
    [DEBUG   ] LazyLoaded local_cache.get_load
    [DEBUG   ] Results of YAML rendering: 
    {}
    [PROFILE ] Time (in seconds) to render '/srv/salt/base/reactor/jobs.sls' using 'yaml' renderer: 0.00289511680603
    [DEBUG   ] get_iter_returns for jid 20160112120026336813 sent to set(['minion1']) will timeout at 12:00:31.380916
    [DEBUG   ] Gathering reactors for tag 20160112120026336813
    [DEBUG   ] Gathering reactors for tag salt/job/20160112120026336813/new
    [DEBUG   ] Compiling reactions for tag salt/job/20160112120026336813/new
    [DEBUG   ] compile template: /srv/salt/base/reactor/jobs.sls
    [DEBUG   ] Jinja search path: '['/var/cache/salt/master/files/base']'
    [PROFILE ] Time (in seconds) to render '/srv/salt/base/reactor/jobs.sls' using 'jinja' renderer: 0.0241320133209
    [DEBUG   ] Rendered data from file: /srv/salt/base/reactor/jobs.sls:
    
    
    
    
    
    
    
    
    
    
    [DEBUG   ] Results of YAML rendering: 
    {}
    [PROFILE ] Time (in seconds) to render '/srv/salt/base/reactor/jobs.sls' using 'yaml' renderer: 0.00102591514587
    [DEBUG   ] LazyLoaded jinja.render
    [DEBUG   ] LazyLoaded yaml.render
    [INFO    ] Loading fresh modules for state activity
    [DEBUG   ] LazyLoaded jinja.render
    [DEBUG   ] LazyLoaded yaml.render
    [INFO    ] Loading fresh modules for state activity
    [DEBUG   ] LazyLoaded jinja.render
    [DEBUG   ] LazyLoaded yaml.render
    [DEBUG   ] In saltenv 'base', looking at rel_path 'orchestration/test/test.sls' to resolve 'salt://orchestration/test/test.sls'
    [DEBUG   ] In saltenv 'base', ** considering ** path '/var/cache/salt/master/files/base/orchestration/test/test.sls' to resolve 'salt://orchestration/test/test.sls'
    [INFO    ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://orchestration/test/test.sls'
    [DEBUG   ] compile template: /var/cache/salt/master/files/base/orchestration/test/test.sls
    [DEBUG   ] LazyLoaded jinja.render
    [DEBUG   ] Jinja search path: '['/var/cache/salt/master/files/base']'
    [DEBUG   ] LazyLoaded yaml.render
    [DEBUG   ] LazyLoaded pillar.get
    [PROFILE ] Time (in seconds) to render '/var/cache/salt/master/files/base/orchestration/test/test.sls' using 'jinja' renderer: 0.00727510452271
    [DEBUG   ] In saltenv 'base', looking at rel_path 'orchestration/test/test.sls' to resolve 'salt://orchestration/test/test.sls'
    [DEBUG   ] Rendered data from file: /var/cache/salt/master/files/base/orchestration/test/test.sls:
    
    
    
    notify_test_minion3:
      salt.function:
        - name: cmd.run
        - tgt: minion1
        - arg:
          - '/tmp/test.ksh minion3'
          - '/tmp/'
          - '/dev/null'
          - 'myid'
    
    
    
    [DEBUG   ] In saltenv 'base', ** considering ** path '/var/cache/salt/master/files/base/orchestration/test/test.sls' to resolve 'salt://orchestration/test/test.sls'
    [INFO    ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://orchestration/test/test.sls'
    [DEBUG   ] compile template: /var/cache/salt/master/files/base/orchestration/test/test.sls
    [DEBUG   ] LazyLoaded config.get
    [DEBUG   ] Results of YAML rendering: 
    OrderedDict([('notify_test_minion3', OrderedDict([('salt.function', [OrderedDict([('name', 'cmd.run')]), OrderedDict([('tgt', 'minion1')]), OrderedDict([('arg', ['/tmp/test.ksh minion3', '/tmp/', '/dev/null', 'myid'])])])]))])
    [DEBUG   ] Jinja search path: '['/var/cache/salt/master/files/base']'
    [PROFILE ] Time (in seconds) to render '/var/cache/salt/master/files/base/orchestration/test/test.sls' using 'yaml' renderer: 0.0101249217987
    [PROFILE ] Time (in seconds) to render '/var/cache/salt/master/files/base/orchestration/test/test.sls' using 'jinja' renderer: 0.00700879096985
    [DEBUG   ] LazyLoaded config.option
    [DEBUG   ] Rendered data from file: /var/cache/salt/master/files/base/orchestration/test/test.sls:
    
    
    
    notify_test_minion3:
      salt.function:
        - name: cmd.run
        - tgt: minion1
        - arg:
          - '/tmp/test.ksh minion3'
          - '/tmp/'
          - '/dev/null'
          - 'myid'
    
    
    
  21. basepi commented on Jan 12, 2016

    @basepi
    Contributor

    @tnypex I'm thinking that since we've fixed part of this issue we should open a new issue for the remaining piece and link back to this issue, so "what's left" is clearer. Thoughts?

  22. added a commit that references this issue on Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ConfirmedCoreP4Runnersbugfixed-pls-verifyseverity-high

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions