-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ansible_rulebook.rule_set_runner - ERROR - Error calling action run_playbook #614
Comments
@charlespick Since you are using a local playbook file, it would have to be copied into the project directory for the ansible-runner. Can you add copy_files: True as an option like shown here
|
Hi @mkanoor |
Is it possible that there is a playbook in your collection with the same name? |
say-what.yml
Try to execute this rulebook To trigger the rule book use following command. |
Hi @nageshredhat We need the output of your ansible-rulebook cmd as well as the output of the |
I have same issue, rather than raising new issue, thought to discuss here, here is my rulebook
command to run this rulebook
Here is the error keep repeating
It started ok and after couple of minutes, I am getting this error and it keeps repeating itself. Please advise. |
Are all those attributes defined in the event payload. You can just use the to see what it prints that way we will know if its missing fields in the substitution. In Jinja you can put a default value like
|
thanks for the response @mkanoor , I will try that out, thanks for the advise, but is this related to the issue I am having ? |
@muhammad-rafi When you change it to this
We will at least know if the issue is related to the attribute missing in the Jinja substitution. The default debug action prints the entire payload. |
@mkanoor I have changed it to this as too by you but I was not getting missing values, the issue is, it starts OK in the beginning and the after couple of I starts getting the following
besides this I have another rule for the playbook to run and same issue if I enable that rule too.
please advise. |
@mkanoor I have tried this suggested as well, it does print the entire payload but again same issue happening after couple of minutes |
@muhammad-rafi It seems like some sort of a memory leak in the aiokafka or the kafka source plugin. How many events do you think are getting sent across? Is there a lot of events coming along and since they don't get ack'ed is the same event repeating. If you ran ansible-rulebook with the -vv option you will see the event coming in. |
thanks @mkanoor I have a same doubt, this may be happening, I may be dealing with 1000+ interesting events, I was looking for some work around to slow it down or control the memory option with ansible rulebook. Let me know please if you have any suggestions |
just to add, on the kafka we dont see any issue, it must be at my end. |
@mkanoor any other thoughts on this one please ? this is still an issue |
@muhammad-rafi Do you see the memory increasing for the python process? How many events are being processed? |
Please confirm the following
Bug Summary
I'm using Webhook event source to trigger ansible rulebook from the the command line using another locally installed service. The first time it triggers it almost always works but subsequent triggers I sometimes get an error (below)
Environment
1.0.3
Executable location = /usr/local/bin/ansible-rulebook
Drools_jpy version = 0.3.7
Java home = /usr/lib/jvm/java-17-openjdk-amd64
Java version = 17.0.8.1
Python version = 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
Ubuntu 22.04.3 LTS on ESXi AMD64
Steps to reproduce
Using this rulebook:
Actual results
Expected results
Playbook should execute reliably
Additional information
The text was updated successfully, but these errors were encountered: