Repository navigation
Closed
Description
The following steps was reproduced on Fedora 20 but can be similarly done on any other OS.
Setup
Create a simple state file which installs any uninstalled package (here: bind):
# path: /srv/salt/deleteme.sls
install_dns_server:
pkg.installed:
- name: bind
Use this state in orchestration:
# path: /srv/salt/deleteme_orchestration.sls
install_dns_server_with_orchestration:
salt.state:
- tgt: 'minion_id'
- sls: deleteme
Now make sure that yum somehow fails to install any package. For example, you may set wrong DNS in /etc/resolv.conf or add a non-existing proxy to /etc/yum.conf like here:
# Proxy settings
proxy=http://whatever:8000/
proxy_username=whatever
proxy_password=whatever
Try running yum install bind manually to confirm it fails.
Problem
Run orchestrate runner:
salt-run -l debug state.orchestrate deleteme_orchestration > results.yaml
The debug output does not produce any [ERROR ].
Check results:
# results.yaml
control:
----------
ID: install_dns_server_with_orchestration
Function: salt.state
Result: True
Comment: States ran successfully.
Changes:
Summary
------------
Succeeded: 1
Failed: 0
------------
Total: 1
This is clearly _false_ because:
rpm -qi bind
package bind is not installed
Moreover, running the initial state using salt-call fails perfectly:
salt-call -l debug state.sls deleteme > results.yaml
...
[INFO ] Executing command 'repoquery --queryformat="%{NAME}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-%{REPOID}" --all --pkgnarrow=installed' in directory '/root'
[ERROR ] The following packages failed to install/update: bind.
...
Check results:
# results.yaml
local:
----------
ID: install_dns_server
Function: pkg.installed
Name: bind
Result: False
Comment: The following packages failed to install/update: bind.
Changes:
Summary
------------
Succeeded: 0
Failed: 1
------------
Total: 1
Versions
Both master and minion are deployed on the same Fedora 20 x86_64 host.
salt --versions-report
Salt: 2014.1.4
Python: 2.7.5 (default, Feb 19 2014, 13:47:28)
Jinja2: 2.7.1
M2Crypto: 0.21.1
msgpack-python: 0.1.13
msgpack-pure: Not Installed
pycrypto: 2.6.1
PyYAML: 3.10
PyZMQ: 13.0.2
ZMQ: 3.2.4
Metadata
Metadata
Assignees
Labels
Corerelates to code central or existential to SaltP3Priority 3bugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work aroundstale
Activity
[-]The orchestrate runner says "States ran successfully." while states clearly failed.[/-][+]The orchestrate runner falsely reports "States ran successfully." while the states clearly failed.[/+]basepi commentedon Jun 4, 2014
Would you mind testing this on the
developversion? The orchestrate runner (and the associated saltmod states) have had many improvements in thedevelopversion, and not all have been backported.uvsmtid commentedon Jun 6, 2014
I tested it on the same host where it fails using
developbranch and it works. And here is the catch: it actually works on another host with exactly the same--versions-report. Two hosts: same OS, same Salt, same states. One repeatedly fails, another repeatedly succeeds using default RPM. No prove, but it may be related to how Salt handles some special cases (or yum does not return failure under certain conditions).Is there a link to some sort of the timeline for any new Salt release?
I would like to re-test it where it fails after update to new package.
basepi commentedon Jun 6, 2014
Very strange.
The next feature release should go into "release candidate" mode in the next couple of weeks.
dstokes commentedon Jul 28, 2014
seeing the same issue with regard to minions not returning. if a minion or minions fail to respond, the state is marked as successfull
basepi commentedon Aug 1, 2014
@dstokes I think this is fixed in the
developbranch, as well as the2014.7branch. Any chance you can test one of those places to verify?dstokes commentedon Aug 1, 2014
@basepi i was seeing the error on 2014.7 if memory servers, but let me see if i can verify..
basepi commentedon Aug 1, 2014
I will say, it's confusing right now because 2014.1.7 is the currently-released version of salt, and 2014.7.0 is the upcoming feature release. Too many 7s. =)
dstokes commentedon Aug 26, 2014
i'm seeing this issue in 2014.7.0rc1 as well. the issue is easily reproducible by using targets in your states that don't match any minions. not sure if "success" is the intended functionality there, but it also seems to happen when minions fail to respond in the timeout.
basepi commentedon Aug 26, 2014
Thanks for the update. We definitely need to get that fixed.
24 remaining items
jjc001 commentedon Nov 13, 2015
I am getting the same problem with the orchestrate runner when timeouts occur with long running formulas and with minions not responding with version Beryllium 2015.8.1. Any ideas when it will be fixed?
basepi commentedon Nov 13, 2015
No update yet, unfortunately.
rhertzog commentedon Oct 13, 2016
I believe that I have a similar issue where an orchestration state is marked completed before having received the answers of all minions. I perform a long-running task on 3 minions and want to wait that they completed on all three before running another task on another minion. The long-running task takes respectively, 2h, 2h and 7 hours. But after 4.5 hours, the state ends and is marked as completed. And the second task is started while the 7 hour one is not yet over. And the 7h task is completing successfully as all the files it is generating are created in the end. It just looks like that the master hit some timeout waiting for the result of the minion's job...
I looked hard in the documentation but I could not find any timeout to configure here. Maybe there's something else explaining why the master lost track of the minion's job but I don't know what. I'm happy to make some tries if it can help. I could not find anything relevant in the log file. The last time the master makes a request about the long-running job it looks like exactly all the former requests:
Here minion B is the one with the 7h task not yet completed while minion A and C have already completed.
stale commentedon Oct 19, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.