StackStorm/st2

Unhelpful error message when Jinja key doesn't exist

Open

#3,329 opened on 2017年4月4日

GitHub で見る
 (1 comment) (1 reaction) (1 assignee)Python (5,794 stars) (740 forks)batch import
complexity:easygood first issuestale

説明

I came across this error when running some release workflows. The cause of this was that our build infrastructure is currently running an older version of StackStorm (which will very soon be remedied via the new ops work), so the st2kv implemented in https://github.com/StackStorm/st2cd/pull/266 was not a thing. However, this error message didn't help me in any way to come to this conclusion - would be nice to see something different here.

oswaltm@st2-build-node-1:~/.ssh$ st2 execution get 58e3245f27263a3ed14c1d20
id: 58e3245f27263a3ed14c1d20
status: failed
parameters:
  distro: UBUNTU16
  hosts: 10.0.3.228
  license_key: dd7b8714ed903cb58754a6860456144638ecc0ad786d6294
  pkg_env: production
  release: stable
  timeout: 120
result:
  error: Dependecy unsatisfied in st2kv
  traceback: "  File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2api/controllers/v1/actionexecutions.py", line 154, in _schedule_execution
    liveaction_db.context)
  File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/util/param.py", line 187, in render_live_params
    _validate(G)
  File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/util/param.py", line 123, in _validate
    raise ParamException(msg)
"

コントリビューターガイド