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 and params core.http action paramer type from string to object.
    • 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)