Repository navigation
Description
We're ready to prepare the StackStorm v3.4 release and start pre-release testing..
Release Process Preparation
Per Release Management Schedule @blag is the Release Manager and @amanda11 assisting for v3.4. They will freeze the master for the major repositories in StackStorm org, follow the StackStorm Release Process which is now available to public, accompanied by the Useful Info for Release managers. Communication is happening in #releasemgmt and #development Slack channels.
The first step is pre-release manual user-acceptance testing for v3.4dev.
Why Manual testing?
StackStorm is very serious about testing and has a lot of it: Unit tests, Integration, Deployment/Integrity checks, Smoke tests and eventually end-2-end tests when automation spins up new AWS instance for each OS/flavor we support, installs real st2 like user would and runs set of st2tests (for each st2 PR, nightly, periodically, during release).
See st2ci and st2cd for more examples and workflows about how StackStorm automation is used to test StackStorm (dogfooding).
That's a perfect way to verify what we already know and codify expectations about how StackStorm should function.
However it's not enough.
There are always new unknowns to discover, edge cases to experience and tests to add. Hence, manual Exploratory Testing is an exercise where entire team gathers together and starts trying (or breaking) new features before the new release. Because we're all different, perceive software differently and try different things we might find new bugs, improper design, oversights, edge cases and more.
This is how StackStorm previously managed to land less major/critical bugs into production.
TL;DR
Install StackStorm v3.4dev unstable packages, try random things in random environments (different OS) and report any regressions found comparing to v3.3 (and/or v3.2 if you are still running ST2 Enterprise):
curl -sSL https://stackstorm.com/packages/install.sh | bash -s -- --user=st2admin --password=Ch@ngeMe --unstableYou can also run StackStorm on a specific OS with st2vagrant:
git clone https://github.com/StackStorm/st2vagrant.git
cd st2vagrant
VERSION=3.4dev vagrant up # Default OS is Ubuntu Xenial (16.04)
BOX=ubuntu/bionic64 VERSION=3.4dev vagrant up # Ubuntu Bionic 18.04
BOX=centos/7 VERSION=3.4dev vagrant up # CentOS 7
BOX=centos/8 VERSION=3.4dev vagrant up # CentOS 8Extra points for PR hotfixes and adding new or missing test cases.
Specific things to check
- Run the self-verification script - see instructions here
- Ensure that the st2resultstracker service doesn't exist and NOT running
- Ensure that StackStorm is running on Python 3 -
st2 --version
- Test the web UI and the integrated flow UI - see instructions here
- Test Ubuntu16.04 or CentOS7/RHEL7 installation and upgrade as they've moved from py2 to py3
- If you have a pack that utilizes Python modules from
actions/lib, please ensure that those actions still work. In the Python 2.7 removal, we adjusted how we handle this code, so we want to ensure that we do not have any regressions. - If you have access to a Windows server, please test out a few actions from the Windows pack. We have not been testing this in our end-to-end tests because the Windows instances were not responding to WinRM queries, so we want to ensure no regressions (this might be related to the
actions/libissue, we haven't troubleshooted this enough to be sure). - If you are using either the LDAP authentication or the RBAC authorization backends, please enable those backends and ensure that the integration continues to work.
- LDAP backend (https://docs.stackstorm.com/latest/authentication.html#ldap)
- - users can login with their LDAP credentials
- RBAC backend (https://docs.stackstorm.com/latest/rbac.html#enabling-rbac)
- users without permission grants are not allowed to access resources
- users with permission grants are allowed to access protected resources
- if you are also running ChatOps, ensure that the
!help(with st2chatops/hubot-stackstorm) or!st2help(with err-stackstorm) commands work. See 500 on actionalias help endpoint with action_alias_help permission grant st2-rbac-backend#47 for more information.
- LDAP backend (https://docs.stackstorm.com/latest/authentication.html#ldap)
- StackStorm upgrade from 3.3 to 3.4, following the Upgrade Instructions: https://docs.stackstorm.com/latest/install/upgrades.html#v3-4
If you have successful test results, please post a summary of what all you tested (OSes, what features you tested).
If you run into any bugs, please open them in the respective repositories and link to this issue from there. I will add them to the list at the bottom of this description.
If you have any issues running StackStorm or running the tests, please post down below.
Major changes
- Removed Python 2.7 support for all OSes
- CentOS7/RHEL7 migrated from py2 to py3
- Ubuntu 16.04 LTS migrated from py2 to py3
- Integrated ST2 RBAC backend
- Integrated LDAP authentication backend
- Integrated Workflow Designer (st2flow) into Workflow Composer (st2web)
- Added notification support for err-stackstorm
- Updated deprecation warning for Python 2 packs
- Added a
timeoutparameter topacks.install - Updated dependencies
- Pack files are now interpreted as UTF-8 instead of ASCII
- Fixed broken
st2 action-alias executecommand - Removed st2resultstracker
Full Changelog
Changes which are recommended to ack, explore, check and try in a random way.
st2
Added
-
Added support for GitLab SSH URLs on pack install and download actions. (improvement) #5050
Contributed by @asthLucas -
Added st2-rbac-backend pip requirements for RBAC integration. (new feature) #5086
Contributed by @hnanchahal -
Added notification support for err-stackstorm. (new feature) #5051
-
Added st2-auth-ldap pip requirements for LDAP auth integartion. (new feature) #5082
Contributed by @hnanchahal
Changed
-
Updated deprecation warning for python 2 pack installs, following python 2 support removal. #5099
Contributed by @amanda11 -
Improve the st2-self-check script to echo to stderr and exit if it isn't run with a
ST2_AUTH_TOKEN or ST2_API_KEY environment variable. (improvement) #5068 -
Added timeout parameter for packs.install action to help with long running installs that exceed the
default timeout of 600 sec which is defined by the python_script action runner (improvement) #5084Contributed by @hnanchahal
-
Upgraded cryptography version to 3.2 to avoid CVE-2020-25659 (security) #5095
-
Converted most CI jobs from Travis to GitHub Actions (all except Integration tests).
-
Updated cryptography dependency to version 3.3.2 to avoid CVE-2020-36242 (security) #5151
Fixed
-
Pin chardet version as newest version was incompatible with pinned requests version #5101
Contributed by @amanda11 -
Fixed issue were st2tests was not getting installed using pip because no version was specified.
Contributed by @anirudhbagri -
Added monkey patch fix to st2stream to enable it to work with mongodb via SSL. (bug fix) #5078 #5091
-
Fix nginx buffering long polling stream to client. Instead of waiting for closed connection
wait for final event to be sent to client. (bug fix) #4842 #5042Contributed by @guzzijones
-
StackStorm now explicitly decodes pack files as utf-8 instead of implicitly as ascii (bug fix)
#5106, #5107 -
Fix incorrect array parameter value casting when executing action via chatops or using
POST /aliasexecution/match_and_executeAPI endpoint. The code would incorrectly assume the
value is always a string, but that may not be the cast - they value could already be a list and
in this case we don't want any casting to be performed. (bug fix) #5141Contributed by @Kami.
-
Fix
@parameter_name=/path/to/file/foo.jsonnotation in thest2 runcommand which didn't
work correctly because it didn't convert read bytes to string / unicode type. (bug fix) #5140Contributed by @Kami.
-
Fix broken
st2 action-alias executecommand and make sure it works
correctly. (bug fix) #5138Contributed by @Kami.
Removed
-
Removed --python3 pack install option #5100
Contributed by @amanda11 -
Removed submit-debug-info tool and the st2debug component #5103
-
Removed check-licence script (cleanup) #5092
Contributed by @kroustou
-
Updated Makefile and CI to use Python 3 only, removing Python 2 (cleanup) #5090
Contributed by @blag
-
Remove st2resultstracker from st2ctl, the development environment and the st2actions setup.py (cleanup) #5108
Contributed by @winem
orquesta 1.3.0
Added
- Implement the orquesta-rehearse command to run unit tests for workflow. (new feature, beta)
Contributed by AJ (guzzijones)
Changed
- Remove mistral fixtures because they were used as ref to support multiple specs. Mistral is
deprecated in StackStorm and there's no intention to support it here. A mistral to orquesta
workflow conversion tool is available at https://github.com/StackStorm/orquestaconvert.
Fixed
- Fix the custom flake8 extensions to check import statements. (bug fix)
- Fix the deprecation warning that flags are not at the start of the expression. (bug fix)
st2chatops
No changes
StackStorm Exchange
- Removed Python 2.7 support and testing from almost all packs
- Added environment variable flag to avoid publishing test packs to exchange.stackstorm.com
Conclusion
Please report findings here and bugs/regressions in respective repositories.
Depending on severity and importance bugs might be fixed before the release or postponed to the next release if they're very minor and not a release blocker.
Issues Found During Release
PRs Merged for Release
TODOs
- Blog post for release
- Blog post for exchange/community update
Activity
himadriganguly commentedon Feb 20, 2021
st2ctl status showing
in the result above it is showing st2chatops not running.
sudo service st2chatops statusEven after the machine restart, the same thing happens.
blag commentedon Feb 20, 2021
@himadriganguly Thank you for testing v3.4a!
That's normal when you haven't configured st2chatops by modifying
/opt/stackstorm/chatops/st2chatops.env. The default StackStorm installation will not configure ChatOps for you since that is an optional component that requires integration with an external service.We should try to improve that situation in the future, but for v3.4 I'm not considering that a bug.
If you have configured st2chatops, then that's definitely a bug. In which case, please post your
st2chatops.envfile (but remember to redact any API keys or Slack tokens) so we can figure out if it's a bug in your configuration or in st2chatops.himadriganguly commentedon Feb 20, 2021
Running Self-Verification Result
Click to expand!
himadriganguly commentedon Feb 20, 2021
@blag Thank you for the explanation. I will be testing other things according to the checklist and will post the details. I will try to contribute as much as I can.
winem commentedon Feb 20, 2021
Just a short update since I ran into an issue with the load_diag workflow in the Linux pack and I'll look into that now:
Update: The issue with the load_diag workflow isn't a regression or issue specific to st2 3.4 and there are already open issues that cover these issues. So I'll proceed.
Kami commentedon Feb 20, 2021
I run tests on Ubuntu Xenial (16.04) here are the issues I found:
st2 run core.local cmd='python --version'returns Python 2This may or may not be expected and desired, depending on how we envision whole Python 3 story. It returns python 2 since system default python binary in
PATHis used instead of python binary from/opt/stackstorm/st2/bin.It does appear to be working fine for python runner actions though (which is likely the only thing we care about) -
st2 run examples.python_runner_print_python_version,/opt/stackstorm/st2/bin/python --version.As far as core.local "issue" goes, we need to decide what's the desired and expected behavior. I believe we should not add
/opt/stackstorm/st2/bin/toPATHfor core.local actions - core local actions should observe same PATH rules as any other script which is manually ran from a shell session on that server.In short, we only care about python version being used for Python runner actions and StackStorm services.
If that's the case, testing instructions need to be updated.
st2CLI doesn't seem to work out of the boxIt could be that this has been broken for a long time already, but I do know it worked at some point in the distant past (perhaps we just don't source source the bash completion script by default, didn't dig in).
arm4b commentedon Feb 21, 2021
@Kami I agree about
1)/opt/stackstorm/st2/bin/pythonis something to verify for the new py env.I've updated the instructions so the expectation is to make sure that
st2 --versionis showing py3.winem commentedon Feb 21, 2021
I'm done with the tests of fresh st2 installations on CentOS7 and Ubuntu 16.04 now as well. I created an issue + PR for a small issue with the install script on Ubuntu 16.04 and can also confirm topics reported by @Kami
This means:
I also did a cross-check with st2 v3.3 and the st2 auto-completion does not work, too. So this is not a new issue.
I'll proceed with tests upgrading st2 v3.3 to 3.4 on both OS.
amanda11 commentedon Feb 22, 2021
Started testing on CentOS 8.
Found issue that the ansible install docs page hasn't been updated given the EWC donated features - PR in progress
Also should get StackStorm/st2docs#1022 reviewed and merged, as the matching code is merged but not the doc PR.
arm4b commentedon Feb 22, 2021
@Kami @winem Good find about the auto-completion, fresh perspective always helps 👍
Would be nice to document the bug somewhere so we could fix it in the next release.
amanda11 commentedon Feb 22, 2021
StackStorm/st2docs#1055 - doc change about EWC components
24 remaining items
winem commentedon Mar 1, 2021
The error I saw was not related to these properties. But I was able to confirm that there is a very specific error message for these cases which is good!
To make it short: Both of my the 2 issues are obsolete now.
The issue saving the workflow was caused by a permission issue. Investigation has shown that files of packs that were installed during the self-verification are owned by root:root while those of packs installed via the UI or
st2 pack installare owned by root:st2packs. The FlowUI process running under the st2 user does not have the required write permission on those workflows installed during the self-verification.@amanda11 to me, it looks like we're fine with testing CentOS7 and U16 now. Do you see further test cases? If yes, just let me know and I'll proceed with them.
blag commentedon Mar 1, 2021
@amanda11 The task delay and retry PRs for st2web are StackStorm/st2web#858 and StackStorm/st2web#859, respectively. They will likely go into v3.5. 😕
amanda11 commentedon Mar 1, 2021
@winem I think we've hit everything we need to, unless I'm missing something.
The only thing of concern to me, is whether the issues mentioned on docker are blocking or not.
@armab Do you have a view on that?
Neither myself or @blag are that familiar on the docker use-cases.
Other than that I think we've tested all the scenarios, and fixed the regressions....
amanda11 commentedon Mar 1, 2021
Yeah - I see they were in progress. And those problems existed in EWC - so agree not blocking for 3.4 release.
arm4b commentedon Mar 1, 2021
Thanks! There is no blocker from the Docker side for starting a release.
In fact, all the deployment methods (Puppet, Ansible, Docker, K8s, Vagrant) really come as a secondary comparing to
st2core, unless there's some terribly wrong that's failing CI and needs fixing.So we're good from that standpoint 👍
minsis commentedon Mar 1, 2021
Ok I'm going to try and explain this the best I can here, sorry if it seems like ramblings.
Something happened with my docker setup when I enabled RBAC with LDAP. I'm still trying to troubleshoot why this is happening but one of the containers is continually trying to authenticate my user and basically locked out my account. My password was reset by our IT team but my account is continually locked out (probably due to caching) and I had to disable LDAP to get this to stop.
Here's the events in order:
So I'm not exactly sure where or why this happened. I looked at the logs of all the other containers and none of them were trying to auth my account. It was solely the auth container that was trying to auth my account every 5 seconds.
minsis commentedon Mar 1, 2021
So I have LDAP disabled and then reenabled RBAC only and its now failing again due to invalid login. So something has to be cached in the database and even with LDAP disabled its still trying to reauth me to the LDAP backend
I'm guessing even though enabled = False, its still trying to auth to ldap since backend is still set to ldap. Other than this issue I'm not even sure how to clear the cache to stop it from trying to auth with my old LDAP login.
arm4b commentedon Mar 1, 2021
Thanks, @minsis.
Looks like you already documented the Feature request/Issue in the respective Docker repository: StackStorm/st2-docker#219.
There is a somewhat similar WIP PR contribution in the K8s from the Community: StackStorm/stackstorm-k8s#182 Though both are not tied to any release.
Because Docker and K8s might need proper implementation in the future, keeping in mind their multi-container specifics, I'd recommend testing LDAP/RBAC with the VM at this moment, following documentation:
minsis commentedon Mar 1, 2021
The st-docker#219 issue is just for getting a volume added to store the rbac role files.
The current issue here is that something has broken with LADP and RBAC to where its locking out LDAP accounts because it tries to reauth every 5s (which I also put in an issue on that repo) on a cached credential. I'm just not sure where to go from here in terms of troubleshooting. Every time I turn on LDAP/RBAC it tries to auth my old credentials that are cached somewhere and I can't seem to clear them out.
I would love to test directly on a VM, but at work I have limited resources and it takes our provisioning department weeks to get something built out.
blag commentedon Mar 1, 2021
You can spin up a VM locally with st2vagrant and configure it that way.
amanda11 commentedon Mar 2, 2021
Since Saturday install on EL8 failing. Looks to be that we are picking up a new version of rabbitmq, which requires a new version of erlang, and that version of erlang is not available in CentOS or the epel repos.
https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.8.13
Also affecting old releases, unless pin rabbitmq version...
guzzijones commentedon Mar 2, 2021
I upgraded our dev box.
no module named redisstack trace. pip install redis intructionsguzzijones commentedon Mar 2, 2021
FWIW, I am on Centos 7 which now uses python3. I fired off a few large workflows and they all seem to be working as expected.
guzzijones commentedon Mar 3, 2021
Probably worth mentioning that if on a distro with python2.7 as the default that all sensor packs will need to be changed to python version 3 in the pack.yaml and reinstalled