StackStorm v1.2.0 Release Notes
Release Date: 2015-12-07 // over 8 years ago-
โ Added
* โ Add SSH bastion host support to the paramiko SSH runner. Utilizes same connection parameters as the targeted box. (new feature, improvement) #2144, #2150 [Logan Attwood] * โฑ Introduce a new ``timeout`` action execution status which represents an action execution timeout. Previously, executions which timed out had status set to ``failure``. Keep in mind that timeout is just a special type of a failure. (new feature) * ๐ Allow jinja templating to be used in ``message`` and ``data`` field for notifications.(new feature) * โ Add tools for purging executions (also, liveactions with it) and trigger instances older than certain UTC timestamp from the db in bulk. * Introducing ``noop`` runner and ``core.noop`` action. Returns consistent success in a WF regardless of user input. (new feature) * โ Add mock classes (``st2tests.mocks.*``) for easier unit testing of the packs. (new feature) * โ Add a script (``./st2common/bin/st2-run-pack-tests``) for running pack tests. (new feature) * ๐ Support for formatting of alias acknowledgement and result messages in AliasExecution. (new feature) * ๐ Support for "representation+value" format strings in aliases. (new feature) * ๐ Support for disabled result and acknowledgement messages in aliases. (new feature) * โ Add ability to write rule enforcement (models that represent a rule evaluation that resulted in an action execution) to db to help debugging rules easier. Also, CLI bindings to list and view these models are added. (new-feature) ๐ Changed
- ๐จ Refactor retries in the Mistral action runner to use exponential backoff. Configuration options for Mistral have changed. (improvement)
- โก๏ธ Update action chain runner so it performs on-success and on-error task name validation during pre_run time. This way common errors such as typos in the task names can be spotted early on since there is no need to wait for the run time.
- ๐ Change
headers
andparams
core.http
action paramer type fromstring
toobject
. - Don't allow action parameter
type
attribute to be an array since rest of the code doesn't support parameters with multiple types. (improvement) - โก๏ธ Update local runner so all the commands which are executed as a different user and result in using sudo set $HOME variable to the home directory of the target user. (improvement)
- Include state_info for Mistral workflow and tasks in the action execution result. (improvement)
--debug
flag no longer implies profiling mode. If you want to enable profiling mode, you need to explicitly pass--profile
flag to the binary. To reproduce the old behavior, simply pass both flags to the binary ---debug --profile
.- ๐ Modify ActionAliasFormatParser to work with regular expressions and support more flexible parameter matching. (improvement)
- ๐ Move ChatOps pack to st2 core.
- Purge tool now uses delete_by_query and offloads delete to mongo and doesn't perform app side explicit model deletion to improve speed. (improvement)
๐ Fixed
* ๐ Fix trigger parameters validation for system triggers during rule creation - make sure we validate the parameters before creating a TriggerDB object. (bug fix) * ๐ Fix a bug with a user inside the context of the live action which was created using alias execution endpoint incorrectly being set to the system user (``stanley``) instead of the authenticated user which triggered the execution. (bug fix) * ๐ Fix policy loading and registering - make sure we validate policy parameters against the parameters schema when loading / registering policies. (bug fix, improvement) * ๐ Fix policy trigger for action execution cancellation. (bug fix) * ๐ Improve error reporting for static error in ActionChain definition e.g. incorrect reference in default etc. (improvement) * ๐ Fix action chain so it doesn't end up in an infinite loop if an action which is part of the chain is canceled. (bug fix) * ๐ Fix json representation of trace in cli. (bug fix) * Add missing indexes on trigger_instance_d_b collection. (bug fix)