StackStorm / st2

StackStorm (aka "IFTTT for Ops") is event-driven automation for auto-remediation, incident responses, troubleshooting, deployments, and more for DevOps and SREs. Includes rules engine, workflow, 160 integration packs with 6000+ actions (see https://exchange.stackstorm.org) and ChatOps. Installer at https://docs.stackstorm.com/install/index.html
https://stackstorm.com/
Apache License 2.0
6.08k stars 747 forks source link

Actionchain failing #5641

Closed Anz14 closed 2 years ago

Anz14 commented 2 years ago

I have stackstorm configured in Ubuntu VM. And I'm integrating stackstorm with alert-manager for alert auto remediation. I'm getting the below error while executing the actionchain.

Error:

"error": "Failed to run task \"kafka_demo_disk_action\". Parameter rendering failed.. Failed rendering value for action parameter \"triggers\" in task \"kafka_demo_disk_action\" (template string={{trigger}}): 'trigger' is undefined",

"traceback": "Traceback (most recent call last):\n File \"/opt/stackstorm/st2/lib/python3.8/site-packages/action_chain_runner/action_chain_runner.py\", line 813, in _resolve_params\n rendered_params = jinja_utils.render_values(\n File \"/opt/stackstorm/st2/lib/python3.8/site-packages/st2common/util/jinja.py\", line 149, in render_values\n raise e\n File \"/opt/stackstorm/st2/lib/python3.8/site-packages/st2common/util/jinja.py\", line 144, in render_values\n rendered_v = env.from_string(v).render(super_context)\n File \"/opt/stackstorm/st2/lib/python3.8/site-packages/jinja2/environment.py\", line 1090, in render\n self.environment.handle_exception()\n File \"/opt/stackstorm/st2/lib/python3.8/site-packages/jinja2/environment.py\", line 832, in handle_exception\n reraise(*rewrite_traceback_stack(source=source))\n File \"/opt/stackstorm/st2/lib/python3.8/site-packages/jinja2/_compat.py\", line 28, in reraise\n raise value.with_traceback(tb)\n File \"