Skip to content

Commit 200b50f

Browse files
authored
Merge branch 'master' into master
2 parents 8d49cf8 + 00f71ef commit 200b50f

File tree

1,323 files changed

+4413
-14494
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,323 files changed

+4413
-14494
lines changed

.circle/configure-postgres.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Setup in CircleCI account the following ENV variables:
2-
# PACKAGECLOUD_ORGANIZATION (default: stackstorm)
2+
# PACKAGECLOUD_ORGANIZATION (default: stackstorm)
33
# PACKAGECLOUD_TOKEN
44
version: 2
55
jobs:
@@ -44,7 +44,7 @@ jobs:
4444
integration:
4545
docker:
4646
- image: circleci/python:2.7
47-
- image: mongo:3.4
47+
- image: mongo:4.0
4848
- image: rabbitmq:3
4949
working_directory: ~/st2
5050
steps:
@@ -57,8 +57,8 @@ jobs:
5757
name: Install Mongo Shell
5858
command: |
5959
set -x
60-
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
61-
echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.4 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
60+
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
61+
echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/4.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
6262
sudo apt-get -qq -y update
6363
sudo apt-get -qq -y install mongodb-org-shell
6464
- run:
@@ -80,7 +80,7 @@ jobs:
8080
lint:
8181
docker:
8282
- image: circleci/python:2.7
83-
- image: mongo:3.4
83+
- image: mongo:4.0
8484
- image: rabbitmq:3
8585
working_directory: ~/st2
8686
steps:
@@ -107,7 +107,7 @@ jobs:
107107

108108
# Build & Test st2 packages
109109
packages:
110-
parallelism: 5
110+
parallelism: 4
111111
# 4CPUs & 8GB RAM CircleCI machine
112112
# sadly, it doesn't work with 'setup_remote_docker'
113113
resource_class: large
@@ -116,7 +116,7 @@ jobs:
116116
- image: circleci/python:2.7
117117
working_directory: ~/st2
118118
environment:
119-
- DISTROS: "xenial bionic el6 el7 el8"
119+
- DISTROS: "xenial bionic el7 el8"
120120
- ST2_PACKAGES_REPO: https://github.com/StackStorm/st2-packages
121121
- ST2_PACKAGES: "st2"
122122
- ST2_CHECKOUT: 0
@@ -232,7 +232,7 @@ jobs:
232232
- image: circleci/ruby:2.4
233233
working_directory: /tmp/deploy
234234
environment:
235-
- DISTROS: "xenial bionic el6 el7 el8"
235+
- DISTROS: "xenial bionic el7 el8"
236236
steps:
237237
- attach_workspace:
238238
at: .

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# https://stackstorm.com/2020/06/12/sponsoring-stackstorm/
2+
# FAQ: https://stackstorm.com/donate/
3+
# Expenses: https://github.com/StackStorm/discussions/issues/36
4+
community_bridge: stackstorm

.github/ISSUE_TEMPLATE/support_request.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ about: Post any support requests on our community forum - https://forum.stacksto
44

55
---
66

7-
**PLEASE READ**: If you are a paid Extreme Workflow (EWC) customer, please contant [Extreme
8-
Network GTAC](https://gtacknowledge.extremenetworks.com/articles/How_To/How-to-contact-Extreme-Networks-Global-Technical-Assistance-Center-GTAC)
9-
or send an email to support@stackstorm.com
7+
**PLEASE READ**: If you are a paid Extreme Workflow (EWC) customer, please contact [Extreme
8+
Network GTAC](https://gtacknowledge.extremenetworks.com/articles/How_To/How-to-contact-Extreme-Networks-Global-Technical-Assistance-Center-GTAC).
109

11-
For free community support, please use out forum at [https://forum.stackstorm.com](https://forum.stackstorm.com)
10+
For free community support, please use our forum at [https://forum.stackstorm.com](https://forum.stackstorm.com)

.travis.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
# If you rename or reorder make targets in TASK, you may need to adjust:
3737
# scripts/travis/install-requirements.sh
3838
# scripts/travis/run-nightly-make-task-if-exists.sh
39-
- name: "Unit Tests (Python 2.7 MongoDB 3.4)"
39+
- name: "Unit Tests (Python 2.7 MongoDB 4.0)"
4040
python: 2.7
4141
env: TASK=ci-unit CACHE_NAME=py2 COMMAND_THRESHOLD=700
4242

@@ -59,11 +59,11 @@ jobs:
5959
addons:
6060
apt:
6161
sources:
62-
- sourceline: 'deb [arch=amd64] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse'
63-
key_url: 'https://www.mongodb.org/static/pgp/server-3.4.asc'
62+
- sourceline: 'deb [arch=amd64] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse'
63+
key_url: 'https://www.mongodb.org/static/pgp/server-4.0.asc'
6464
packages:
65-
- mongodb-org-server=3.4.*
66-
- mongodb-org-shell=3.4.*
65+
- mongodb-org-server=4.0.*
66+
- mongodb-org-shell=4.0.*
6767
- rabbitmq-server
6868
- libffi-dev
6969

@@ -79,12 +79,6 @@ cache:
7979
# are updated so it's disabled
8080
#- .tox/
8181

82-
before_install:
83-
# If you update these versions, make sure you update the versions in the .st2client-install-check
84-
# and the requirements targets in the Makefile to match
85-
- pip install --upgrade "pip==20.0.2"
86-
- sudo pip install --upgrade "virtualenv==16.6.0"
87-
8882
install:
8983
- ./scripts/travis/install-requirements.sh
9084
# prep a travis-specific dev conf file that uses travis instead of stanley
@@ -98,7 +92,7 @@ install:
9892
before_script:
9993
# Use a custom mongod.conf which uses various speed optimizations
10094
- sudo cp scripts/travis/mongod.conf /etc/mongod.conf
101-
# Clean up any old MongoDB 3.4 data files laying around and make sure mongodb user can write to it
95+
# Clean up any old MongoDB 4.0 data files laying around and make sure mongodb user can write to it
10296
- sudo rm -rf /var/lib/mongodb ; sudo mkdir /var/lib/mongodb ; sudo chown -R mongodb:mongodb /var/lib/mongodb
10397
- sudo service mongod restart ; sleep 5
10498
- sudo service mongod status

ADOPTERS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ This is an alphabetical list of known [StackStorm](https://stackstorm.com/) adop
22

33
<!-- Max 3 Github lines for each adopter! -->
44

5+
* [Adobe](https://www.adobe.com/) - Multinational computer software company. After evaluating both SaltStack and Rundeck, Adobe chose StackStorm towards their journey to self-healing infrastructure. As a result, SRE team could resolve thousands of alerts and fix 70% of the outages automatically without human intervention. [[ DevOpsDays Notes ](https://threadreaderapp.com/thread/1098901714567081984.html)] [[ DevOpsCon Talk ](https://devopscon.io/monitoring-traceability-diagnostics/workflow-engines-our-journey-towards-a-self-healing-infrastructure/)]
56
* [Bitovi](https://www.bitovi.com/) - Consulting company, implemented an Automation solution based on StackStorm API with HA capabilities and custom UI for a Fortune top 10 organization. [[ Blog ](https://www.bitovi.com/blog/stackstorm-solves-devops-automation-for-enterprise-client)] [[ Case study ](https://stackstorm.com/case-study-bitovi/)]
67
* [DMM.com](https://dmm-corp.com/en/) - Large content provider in Japan. StackStorm is used in Operations helping to maintain online services and development at scale. [[ Case study ](https://stackstorm.com/case-study-dmm/)]
78
* [Dimension Data](https://www.dimensiondata.com/en/about-us) - Global systems integrator and IT services provider, using StackStorm for Datacenter Orchestration as well as Infrastructure, Networking, Security Automation for their large clients and government projects. [[ Case study ](https://stackstorm.com/case-study-dimension-data/)]
89
* [Encore](https://www.encore.tech/) - Data Center, Cloud Computing, IT solutions company ​leverages StackStorm in enterprise scale IT infrastructure for VM & server provisioning, automation, network diagnosis, configuration and orchestration​ on customers' public and private clouds. [[ Blog ](https://encoretechnologies.github.io/blog/2018/03/stackstorm-changed-our-lives/)] [[ Case study ](https://stackstorm.com/case-study-encore/)]
910
* [Fastly](https://www.fastly.com) - Edge Cloud Platform, implemented StackStorm as part of a bigger global network automation architecture aimed at providing an interface to network operations and traffic engineering changes triggered both manually or in response to events on hundreds of devices spread across dozens of sites.
10-
* [Hewlett Packard Enterprise](https://www.hpe.com/) - Enterprise IT company that integrated StackStorm into its Composable Fabric Manager software. StackStorm is used for driving fabric and application automation based on integrations with VMware vSphere/NSX, HPE OneView/SimpliVity, Nutanix, Kubernetes, and OpenShift.
11+
* [Hewlett Packard Enterprise](https://www.hpe.com/) - Enterprise IT company that integrated StackStorm into its Composable Fabric Manager software. StackStorm is used for driving fabric and application automation based on integrations with VMware vSphere/NSX, HPE OneView/SimpliVity, Nutanix, Kubernetes, and OpenShift. [[ Blog ](https://developer.hpe.com/blog/master-the-automation-universe-the-easy-way-part-1-introduction-to-stack)]
1112
* [NL-ix](https://www.nl-ix.net/about/company/) - One of the top five internet exchange in the world where StackStorm is used as Automation Orchestrator, event-driven engine for route server configuration. [[ Case study ](https://stackstorm.com/case-study-nlix/)]
1213
* [Netflix](https://media.netflix.com/en/about-netflix) - Worldwide media services provider relies on Event-Driven Automation when remediation tasks and runbooks executed in response to alerts. Custom solution built on top StackStorm helped to self-heal NFLX infra at a big scale, saving SRE's sleep. [[ Slides ](https://www.slideshare.net/InfoQ/winston-helping-netflix-engineers-sleep-at-night)] [[ Blog ](https://medium.com/netflix-techblog/introducing-winston-event-driven-diagnostic-and-remediation-platform-46ce39aa81cc)] [[ Case study ](https://stackstorm.com/case-study-netflix/)]
1314
* [Pearson](https://www.pearson.com/corporate/about-pearson.html) - An international education company serving more than 75 million learners uses containers, Kubernetes, StackStorm and other open source technologies to streamline their development, operations and delivery of the new products. [[ Case study ](https://stackstorm.com/case-study-pearson/)]

CHANGELOG.rst

Lines changed: 109 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,107 @@ in development
66

77
Added
88
~~~~~
9+
* Add make command to autogen JSON schema from the models of action, rule, etc. Add check
10+
to ensure update to the models require schema to be regenerated. (new feature)
11+
* Improved st2sensor service logging message when a sensor will not be loaded when assigned to a
12+
different partition (@punkrokk) #4991
13+
* Add support for a configurable connect timeout for SSH connections as requested in #4715
14+
by adding the new configuration parameter ``ssh_connect_timeout`` to the ``ssh_runner``
15+
group in st2.conf. (new feature) #4914
916

17+
This option was requested by Harry Lee (@tclh123) and contributed by Marcel Weinberg (@winem).
18+
* Added a FAQ for the default user/pass for the `tools/launch_dev.sh` script and print out the
19+
default pass to screen when the script completes. (improvement) #5013
20+
21+
Contributed by @punkrokk
22+
* Added deprecation warning if attempt to install or download a pack that only supports
23+
Python 2. (new feature) #5037
24+
25+
Contributed by @amanda11
26+
* Added deprecation warning to each StackStorm service log, if service is running with
27+
Python 2. (new feature) #5043
28+
29+
Contributed by @amanda11
30+
* Added deprecation warning to st2ctl, if st2 python version is Python 2. (new feature) #5044
31+
32+
Contributed by @amanda11
33+
34+
35+
Changed
36+
~~~~~~~
37+
* Switch to MongoDB ``4.0`` as the default version starting with all supported OS's in st2
38+
``v3.3.0`` (improvement) #4972
39+
40+
Contributed by @punkrokk
41+
42+
* Added an enhancement where ST2api.log no longer reports the entire traceback when trying to get a datastore value
43+
that does not exist. It now reports a simplified log for cleaner reading. Addresses and Fixes #4979. (improvement) #4981
44+
45+
Contributed by Justin Sostre (@saucetray)
46+
* The built-in ``st2.action.file_writen`` trigger has been renamed to ``st2.action.file_written``
47+
to fix the typo (bug fix) #4992
48+
* Renamed reference to the RBAC backend/plugin from ``enterprise`` to ``default``. Updated st2api
49+
validation to use the new value when checking RBAC configuration. Removed other references to
50+
enterprise for RBAC related contents. (improvement)
51+
52+
Fixed
53+
~~~~~
54+
* Fixed a bug where `type` attribute was missing for netstat action in linux pack. Fixes #4946
55+
56+
Reported by @scguoi and contributed by Sheshagiri (@sheshagiri)
57+
58+
* Fixed a bug where persisting Orquesta to the MongoDB database returned an error
59+
``message: key 'myvar.with.period' must not contain '.'``. This happened anytime an
60+
``input``, ``output``, ``publish`` or context ``var`` contained a key with a ``.`` within
61+
the name (such as with hostnames and IP addresses). This was a regression introduced by
62+
trying to improve performance. Fixing this bug means we are sacrificing performance of
63+
serialization/deserialization in favor of correctness for persisting workflows and
64+
their state to the MongoDB database. (bug fix) #4932
65+
66+
Contributed by Nick Maludy (@nmaludy Encore Technologies)
67+
* Fix a bug where passing an empty list to a with items task in a subworkflow causes
68+
the parent workflow to be stuck in running status. (bug fix) #4954
69+
* Fixed a bug in the example nginx HA template declared headers twice (bug fix) #4966
70+
Contributed by @punkrokk
71+
72+
* Fixed a bug in the ``paramiko_ssh`` runner where SSH sockets were not getting cleaned
73+
up correctly, specifically when specifying a bastion host / jump box. (bug fix) #4973
74+
75+
Contributed by Nick Maludy (@nmaludy Encore Technologies)
76+
* Fixed a bytes/string encoding bug in the ``linux.dig`` action so it should work on Python 3
77+
(bug fix) #4993
78+
79+
* Fixed a bug where a python3 sensor using ssl needs to be monkey patched earlier. See also #4832, #4975 and gevent/gevent#1016 (bug fix) #4976
80+
81+
Contributed by @punkrokk
82+
* Fixed bug where action information in RuleDB object was not being parsed properly
83+
because mongoengine EmbeddedDocument objects were added to JSON_UNFRIENDLY_TYPES and skipped.
84+
Removed this and added if to use to_json method so that mongoengine EmbeddedDocument
85+
are parsed properly.
86+
87+
Contributed by Bradley Bishop (@bishopbm1 Encore Technologies)
88+
* Fix a regression when updated ``dnspython`` pip dependency resulted in
89+
st2 services unable to connect to mongodb remote host (bug fix) #4997
90+
* Fixed a regression in the ``linux.dig`` action on Python 3. (bug fix) #4993
91+
92+
Contributed by @blag
93+
94+
Removed
95+
~~~~~~~
96+
97+
* Removed ``Mistral`` workflow engine (deprecation) #5011
98+
99+
Contributed by Amanda McGuinness (@amanda11 Ammeon Solutions)
100+
* Removed ``CentOS 6``/``RHEL 6`` support #4984
101+
102+
Contributed by Amanda McGuinness (@amanda11 Ammeon Solutions)
103+
* Removed our fork of ``codecov-python`` for CI and have switched back to the upstream version (improvement) #5002
104+
105+
3.2.0 - April 27, 2020
106+
----------------------
107+
108+
Added
109+
~~~~~
10110
* Add support for blacklisting / whitelisting hosts to the HTTP runner by adding new
11111
``url_hosts_blacklist`` and ``url_hosts_whitelist`` runner attribute. (new feature)
12112
#4757
@@ -66,14 +166,19 @@ Changed
66166
contains various new features and bug fixes. Please review the release notes for the full list of
67167
changes at https://github.com/StackStorm/orquesta/releases/tag/v1.1.0 and the st2 upgrade notes
68168
for potential impact. (improvement)
169+
* Update st2 nginx config to remove deprecated ``ssl on`` option. #4917 (improvement)
69170

70171
Fixed
71172
~~~~~
173+
* Fix a typo that caused an internal server error when filtering actions by tags. Fixes #4918
174+
175+
Reported by @mweinberg-cm and contributed by Marcel Weinberg (@winem)
176+
72177
* Fix the action query when filtering tags. The old implementation returned actions which have the
73178
provided name as action name and not as tag name. (bug fix) #4828
74179

75-
Reported by @AngryDeveloper and contributed by Marcel Weinberg (@winem)
76-
* Fix the passing of arrays to shell scripts where the arrays where not detected as such by the
180+
Reported by @AngryDeveloper and contributed by Marcel Weinberg (@winem)
181+
* Fix the passing of arrays to shell scripts where the arrays where not detected as such by the
77182
st2 action_db utility. This caused arrays to be passed as Python lists serialized into a string.
78183

79184
Reported by @kingsleyadam #4804 and contributed by Marcel Weinberg (@winem) #4861
@@ -138,6 +243,8 @@ Fixed
138243
functions as a result of the change. (bug fix) PR StackStorm/orquesta#191.
139244

140245
Contributed by Hiroyasu Ohyama (@userlocalhost)
246+
* Fix retry in orquesta when a task that has a transition on failure will also be traversed on
247+
retry. (bug fix) PR StackStorm/orquesta#200
141248

142249
Removed
143250
~~~~~~~

GOVERNANCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ With the new Neutral Home we invite everyone: organizations, teams and individua
33

44
# StackStorm Governance
55
This document defines governance policies for the StackStorm project.
6-
It extends [Technical Charter](https://stackstorm.com/wp/wp-content/uploads/2019/10/StackStorm-Technical-Charter-20191004.pdf) for StackStorm within the Linux Foundation.
6+
It extends [Technical Charter](https://stackstorm.com/wp/wp-content/uploads/2020/06/2019-09-03-StackStorm-Project-Technical-Charter.pdf) for StackStorm within the Linux Foundation.
77

88
## Technical Steering Committee (TSC)
99
The Technical Steering Committee is a group of Maintainers (Committers) who have earned the ability to modify (“commit”) sourcecode, documentation or other artifacts.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
same "printed page" as the copyright notice for easier
188188
identification within third-party archives.
189189

190-
Copyright [yyyy] [name of copyright owner]
190+
Copyright 2020 The StackStorm Authors.
191191

192192
Licensed under the Apache License, Version 2.0 (the "License");
193193
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)