New function similar to salt.runners.manage.status, where tgt and tgt_type can be used, but without commands being sent to minions (like alived/allowed/etc) #68081
cstrahan
started this conversation in
Feature Requests
Replies: 1 comment 8 replies
-
salt-run manage.list_state shows connected without reaching out to minion. give that a shot |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Could we have a function similar to
salt.runners.manage.status
, but which doesn't send commands to minions (in the same wayalived
/alowed
/etc work)?To motivate this (or to get alternative suggestions), here's what I'm trying to do:
I have salt minions running in EC2, and when the instances are terminated, I have CloudWatch place these instance termination events in an SQS queue. I then have a script that read from the queue, and then uses the instance-id to look up the respective minion key, similar to:
The problem I'm having is that this results in the salt master attempting to communicate with the host, which shouldn't exist any more. I tried setting the timeout to something low to prevent this from hanging, and that often seems to work. However, for some instance-ids the request results in this response:
Ideally, I would be able to query by the salt-master's in memory cache of last known minion status and grain values without it ever attempting to send requests to the minions.
Is there some existing functionality that I can use that I've missed, or would this be a feature you would consider adding (or accepting as a contribution)?
In case it helps, I'm working with salt version 3004.1.
Beta Was this translation helpful? Give feedback.
All reactions