v2.5.1
https://stackstorm.com/2017/12/19/early-christmas-stackstorm-patch-release-2-5-1/
Added
-
Add new
log_level
runner parameter to Python runner. With this parameter, user can control which log messages generated by Python runner actions are output to actionstderr
. For backward compatibility reasons it defaults todebug
.
This functionality comes handy in situations when an action depends on an external library which logs a lot of information underdebug
, but you only want to see messages with log levelerror
or higher (or similar). (new feature) #3824 -
Add stevedore related metadata to Python package setup.py files for runner packages. This way runners can be installed using pip and dynamically enumerated and loaded using stevedore and corresponding helper functions.
All runners are now also fully fledged Python packages (previously they were single module
Python packages which caused various install and distribution related issues when installing
them via pip) (new feature) -
Add new
search
rule criteria comparison operator. Please refer to the documentation for
usage. (new feature) #3833Contributed by @ahubl-mz.
-
Added flag
--auto-dict
tost2 run
andst2 execution re-run
commands. This flag must now
be specified in order to automatically convert list items to dicts based on presence of colon
(:
) in all of the list items (new feature) #3909
Changed
-
Update the output of
st2 execution {run,get}
CLI command to colorize the value of the
status
attribute (green forsucceeded
, red forfailed
, etc. aka the same as for the
output ofst2 execution list
command). (improvement) #3810Contributed by Nick Maludy (Encore Technologies).
-
Update log messages in the datastore service to correctly use
DEBUG
log level instead of
AUDIT
. #3845
Fixed
- Fix log messages generated by Python runner actions to include the correct action class name.
Previously they always incorrectly used "ABCMeta" instead of the actual action class name. (bug fix) #3824 - Fix
st2 execution tail [last]
CLI command so it doesn't throw an exception if there are no executions in the database. (bug fix) #3760 #3802 - Fix a bug with datastore service used inside the Python runner actions not correctly scoping the auth token to the user who triggered the action. Token was incorrectly scoped to
api_service
user without any permissions. (bug fix) #3823 #3535 - Fix edge case for workflows stuck in running state. When Mistral receives a connection error from the st2 API on requesting action execution, there's a duplicate action execution stuck in requested state. This leads to the st2resultstracker assuming the workflow is still running.
- Fix a regression and a bug with no API validation being performed and API returning 500 instead of 400 status code if user didn't include any request payload (body) when hitting POST and PUT API endpoints where body is mandatory. (bug fix) #3864
- Fix a bug in Python runner which would cause action log messages to be duplicated in action stderr output when utilizing action service / datastore service inside actions. (bug fix) #3893