Skip to content

Commit fc3b855

Browse files
authored
Merge branch 'master' into master
2 parents a264010 + 00f71ef commit fc3b855

File tree

1,298 files changed

+2952
-14396
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,298 files changed

+2952
-14396
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: .

.travis.yml

Lines changed: 6 additions & 6 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

@@ -92,7 +92,7 @@ install:
9292
before_script:
9393
# Use a custom mongod.conf which uses various speed optimizations
9494
- sudo cp scripts/travis/mongod.conf /etc/mongod.conf
95-
# 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
9696
- sudo rm -rf /var/lib/mongodb ; sudo mkdir /var/lib/mongodb ; sudo chown -R mongodb:mongodb /var/lib/mongodb
9797
- sudo service mongod restart ; sleep 5
9898
- 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: 73 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,50 @@ Added
88
~~~~~
99
* Add make command to autogen JSON schema from the models of action, rule, etc. Add check
1010
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
16+
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+
* Remove authentication headers ``St2-Api-Key``, ``X-Auth-Token`` and ``Cookie`` from webhook payloads to
52+
prevent them from being stored in the database. (security bug fix) 4983
53+
54+
Contributed by @potato and @knagy
1155

1256
Fixed
1357
~~~~~
@@ -26,25 +70,47 @@ Fixed
2670
Contributed by Nick Maludy (@nmaludy Encore Technologies)
2771
* Fix a bug where passing an empty list to a with items task in a subworkflow causes
2872
the parent workflow to be stuck in running status. (bug fix) #4954
29-
3073
* Fixed a bug in the example nginx HA template declared headers twice (bug fix) #4966
3174
Contributed by @punkrokk
75+
3276
* Fixed a bug in the ``paramiko_ssh`` runner where SSH sockets were not getting cleaned
3377
up correctly, specifically when specifying a bastion host / jump box. (bug fix) #4973
3478

3579
Contributed by Nick Maludy (@nmaludy Encore Technologies)
80+
* Fixed a bytes/string encoding bug in the ``linux.dig`` action so it should work on Python 3
81+
(bug fix) #4993
3682

37-
* Fixed a bug where authentication headers sent to a webhook trigger got stored in the database.
38-
39-
Contributed by @potato and @knagy
83+
* 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
4084

85+
Contributed by @punkrokk
86+
* Fixed bug where action information in RuleDB object was not being parsed properly
87+
because mongoengine EmbeddedDocument objects were added to JSON_UNFRIENDLY_TYPES and skipped.
88+
Removed this and added if to use to_json method so that mongoengine EmbeddedDocument
89+
are parsed properly.
90+
91+
Contributed by Bradley Bishop (@bishopbm1 Encore Technologies)
92+
* Fix a regression when updated ``dnspython`` pip dependency resulted in
93+
st2 services unable to connect to mongodb remote host (bug fix) #4997
94+
* Fixed a regression in the ``linux.dig`` action on Python 3. (bug fix) #4993
95+
96+
Contributed by @blag
4197

98+
Removed
99+
~~~~~~~
100+
101+
* Removed ``Mistral`` workflow engine (deprecation) #5011
102+
103+
Contributed by Amanda McGuinness (@amanda11 Ammeon Solutions)
104+
* Removed ``CentOS 6``/``RHEL 6`` support #4984
105+
106+
Contributed by Amanda McGuinness (@amanda11 Ammeon Solutions)
107+
* Removed our fork of ``codecov-python`` for CI and have switched back to the upstream version (improvement) #5002
108+
42109
3.2.0 - April 27, 2020
43110
----------------------
44111

45112
Added
46113
~~~~~
47-
48114
* Add support for blacklisting / whitelisting hosts to the HTTP runner by adding new
49115
``url_hosts_blacklist`` and ``url_hosts_whitelist`` runner attribute. (new feature)
50116
#4757
@@ -115,8 +181,8 @@ Fixed
115181
* Fix the action query when filtering tags. The old implementation returned actions which have the
116182
provided name as action name and not as tag name. (bug fix) #4828
117183

118-
Reported by @AngryDeveloper and contributed by Marcel Weinberg (@winem)
119-
* Fix the passing of arrays to shell scripts where the arrays where not detected as such by the
184+
Reported by @AngryDeveloper and contributed by Marcel Weinberg (@winem)
185+
* Fix the passing of arrays to shell scripts where the arrays where not detected as such by the
120186
st2 action_db utility. This caused arrays to be passed as Python lists serialized into a string.
121187

122188
Reported by @kingsleyadam #4804 and contributed by Marcel Weinberg (@winem) #4861

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)