Closed racooper closed 4 years ago
@racooper Thanks for the report. Are you by chance using the aggregation feature with pkg
state? Can you see if you have the state_aggregate: True
in the minion configuration? Thanks!
In configuration, it's set to:
#state_aggregate: False
in both minion and master configs, which I presume is the default. It's not a setting I changed.
We found that our salt master config has enabled:
state_aggregate:
- pkgs
it was in a different part of the config file than the commented out default. We found that disabling that setting does resolve the reported issue, but states take noticeably longer to run (which makes sense). I still think it's a bug to merge pkg states if there are unmet dependencies.
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.
I have the following state defined:
When the state is run, it tries to merge the two pkg.installed states even though the second one (katello-agent) has requisites that have not been met. So the ultimate output actually wants to install katello-agent twice; first with subscription-manager (which fails, because katello-client-repo has not been run yet), then at the end which also fails, because the initial pkg.install fails since katello-agent fails.
This is using Salt 2018.3 on CentOS 7.