[FEATURE REQUEST] Add a way to filter by minion_id in jobs.list_jobs #60182
Labels
Pending-Discussion
The issue or pull request needs more discussion before it can be closed or merged
Milestone
Is your feature request related to a problem? Please describe.
When we want to investigate a problem on a minion, one of the first thing to do is to check if something changed that could cause the problem. To do that, we could use he jobs.list_jobs function.
The problem is that, when we use a grain or a pillar as a filter, there is no way to filter using the minion id:
To get the information we want, we need to know the exact target that was used to call the function:
On our infrastructure, we have a lot of use-cases that require using different targets to deploy or changes (progressive deployment, apply changes only on minion providing certain services, etc).
Describe the solution you'd like
Add a way to list jobs using the minion_id:
Describe alternatives you've considered
We could index the minion output to an elasticsearch cluster and use that to search the changes instead. One of the difficulty would be to parse the output and adapt it so it can be easily indexed.
There is already an elasticsearch returner but it looks a bit dated and the json output module would need to be adapted.
Additional context
Please Note
The text was updated successfully, but these errors were encountered: