salt: salt.runner + state.orchestrate + parallel: True - is not parallel
Description of Issue
I’m trying to write an orchestration that could be executed in parallel when possible. And even I set parallel: True
it executed serially.
Setup
I’m trying to do something like this: https://gist.github.com/Oloremo/f786f71044233e0db423d1d873e6c4ab
Steps to Reproduce Issue
I prepared a script to create salt orch structure: https://gist.github.com/Oloremo/90b600f60c48da051023a33da50ce5f7
cd to your salt file_root. and run the provided script.
Directory delme
will be created in it and populated with 6 files needed for parallel test.
After you’re free to run something like
salt-run state.orchestrate delme.service_orch -l debug 2>&1 | egrep 'Running state|Completed state'
Expected: serviceB and serviceC to be run in parallel. Reality: All services run serially one after another.
At first, I thought it’s because I’m running 2 states on a single minion. But feel free to modify targets from the example above so serviceB and serviceC will be run on different minions - and the results will be the same.
Versions Report
Salt Version:
Salt: 2019.2.0
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.10.1
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.6.2
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 3.6.8 (default, Aug 7 2019, 17:28:10)
python-gnupg: 0.4.5
PyYAML: 5.1.2
PyZMQ: 18.0.2
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.1
System Versions:
dist: centos 7.5.1804 Core
locale: UTF-8
machine: x86_64
release: 3.10.0-862.3.2.el7.x86_64
system: Linux
version: CentOS Linux 7.5.1804 Core
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 16 (10 by maintainers)
@gabrielgt Sad 😦
Mind to raise another issue and link it to this one and to the other mentioned here?