Skip to content

[BUG] salt.parallel_runners is broken (missing LoaderContext) #66022

@max-arnold

Description

@max-arnold

Description

# test_orch.sls
parallel-state:
   salt.parallel_runners:
     - runners:
         my_runner_1:
           - name: test.stdout_print
salt-run state.orch test_orch

[ERROR   ] An exception occurred in this state: Traceback (most recent call last):
  File "/home/vagrant/repo/salt/state.py", line 2429, in call
    ret = self.states[cdata["full"]](
  File "/home/vagrant/repo/salt/loader/lazy.py", line 160, in __call__
    ret = self.loader.run(run_func, *args, **kwargs)
  File "/home/vagrant/repo/salt/loader/lazy.py", line 1233, in run
    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
  File "/home/vagrant/repo/salt/loader/lazy.py", line 1248, in _run_as
    return _func_or_method(*args, **kwargs)
  File "/home/vagrant/repo/salt/loader/lazy.py", line 1281, in wrapper
    return f(*args, **kwargs)
  File "/home/vagrant/repo/salt/states/saltmod.py", line 913, in parallel_runners
    outputs = _parallel_map(call_runner, list(runners.values()))
  File "/home/vagrant/repo/salt/states/saltmod.py", line 97, in _parallel_map
    raise exc_value.with_traceback(exc_traceback)
  File "/home/vagrant/repo/salt/states/saltmod.py", line 83, in run_thread
    outputs[index] = func(inputs[index])
  File "/home/vagrant/repo/salt/states/saltmod.py", line 904, in call_runner
    return __salt__["saltutil.runner"](
  File "/home/vagrant/repo/salt/loader/context.py", line 85, in __getitem__
    return self.value()[item]
TypeError: 'NoneType' object is not subscriptable

Setup

  • VM
  • virtualenv
  • salt 3007.0rc1+375.g540b8ab548 (Chlorine)

Metadata

Metadata

Assignees

Labels

Bugbroken, incorrect, or confusing behavior

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy