Skip to content

Commit c9cd1fe

Browse files
committed
Merge pull request #2497 from StackStorm/v1.3.2
V1.3.2
2 parents 44a7e8a + 8407255 commit c9cd1fe

File tree

11 files changed

+32
-74
lines changed

11 files changed

+32
-74
lines changed

CHANGELOG.rst

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
1.3.2 - February 12, 2016
5+
-------------------------
6+
* Remove get_open_ports action from Linux pack.
7+
48
1.3.1 - January 25, 2016
59
------------------------
610

circle.yml

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Setup in CircleCI account the following ENV variables:
2-
# BINTRAY_ORGANIZATION
2+
# IS_PRODUCTION (default: 0)
3+
# IS_ENTERPRISE (default: 0)
4+
# BINTRAY_ORGANIZATION (default: stackstorm)
35
# BINTRAY_ACCOUNT
46
# BINTRAY_API_KEY
7+
# PACKAGECLOUD_ORGANIZATION (default: stackstorm)
8+
# PACKAGECLOUD_TOKEN
59
# DOCKER_USER
610
# DOCKER_EMAIL
711
# DOCKER_PASSWORD
@@ -10,7 +14,7 @@ general:
1014
branches:
1115
only:
1216
- master
13-
- /v[0-9]+(\.[0-9]+)*/
17+
- /v[0-9]+\.[0-9]+/
1418
build_dir: st2-packages
1519
artifacts:
1620
- ~/packages
@@ -47,6 +51,8 @@ dependencies:
4751
pre:
4852
- sudo .circle/configure-services.sh
4953
- sudo .circle/fix-cache-permissions.sh
54+
- sudo apt-get -y install parallel jq
55+
- gem install package_cloud
5056
- sudo pip install docker-compose
5157
- docker-compose version
5258
- docker version
@@ -73,16 +79,16 @@ deployment:
7379
owner: StackStorm
7480
branch:
7581
- master
76-
- /v[0-9]+(\.[0-9]+)*/
82+
- /v[0-9]+\.[0-9]+/
7783
commands:
7884
# Deploy to Bintray all artifacts for respective distros in parallel
7985
- |
8086
DISTROS=($DISTROS)
81-
for i in $(seq 0 $((CIRCLE_NODE_TOTAL-1))); do
82-
echo Deploying Bintray artifacts for "${DISTROS[$i]}" ...
83-
.circle/bintray.sh deploy ${DISTROS[$i]}_staging ~/packages/${DISTROS[$i]} &
84-
done
85-
wait
87+
parallel -v -j0 --line-buffer .circle/bintray.sh deploy {}_staging ~/packages/{} ::: ${DISTROS[@]::$CIRCLE_NODE_TOTAL}
88+
# Deploy to PackageCloud all artifacts for respective distros in parallel
89+
- |
90+
DISTROS=($DISTROS)
91+
parallel -v -j0 --line-buffer .circle/packagecloud.sh deploy {} ~/packages/{} ::: ${DISTROS[@]::$CIRCLE_NODE_TOTAL}
8692
- .circle/docker.sh deploy st2actionrunner st2api st2auth st2exporter st2notifier st2resultstracker st2rulesengine st2sensorcontainer
8793
- .circle/save_payload.py ~/packages
8894

@@ -91,4 +97,4 @@ experimental:
9197
branches:
9298
only:
9399
- master
94-
- /v[0-9]+(\.[0-9]+)*/
100+
- /v[0-9]+\.[0-9]+/

contrib/linux/actions/get_open_ports.py

-34
This file was deleted.

contrib/linux/actions/get_open_ports.yaml

-10
This file was deleted.

contrib/linux/requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
# used by file watcher sensor
22
pyinotify>=0.9.5,<=0.10
33
-e git+https://github.com/Kami/logshipper.git@stackstorm_patched#egg=logshipper
4-
# used by nmap actions
5-
python-nmap>=0.3.4,<0.4

fixed-requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ lockfile>=0.10.2,<0.11
1515
python-gnupg>=0.3.7,<0.4
1616
jsonpath-rw>=1.3.0
1717
pyinotify>=0.9.5,<=0.10
18-
python-nmap>=0.3.4,<0.4
1918
semver>=2.1.2
2019
tooz==1.20.0
2120
stevedore>=1.7.0,<1.8

requirements.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# Don't edit this file. It's generated automatically!
22
apscheduler>=3.0.0rc1
3+
bcrypt
34
bencode<1.1,>=1.0
45
eventlet>=0.13.0
56
git+https://github.com/Kami/logshipper.git@stackstorm_patched#egg=logshipper
67
git+https://github.com/StackStorm/fabric.git@stanley-patched#egg=fabric
78
git+https://github.com/StackStorm/pecan.git@st2-patched#egg=pecan
8-
git+https://github.com/StackStorm/[email protected].1#egg=python-mistralclient
9+
git+https://github.com/StackStorm/[email protected].2#egg=python-mistralclient
910
git+https://github.com/StackStorm/st2-auth-backend-flat-file.git@master#egg=st2-auth-backend-flat-file
1011
gitpython==0.3.2.1
12+
gunicorn
1113
ipaddr
1214
jinja2
1315
jsonpath-rw>=1.3.0
@@ -26,7 +28,6 @@ pymongo<3.0
2628
python-dateutil
2729
python-gnupg<0.4,>=0.3.7
2830
python-json-logger
29-
python-nmap<0.4,>=0.3.4
3031
pyyaml<4.0,>=3.11
3132
requests[security]<3.0,>=2.7.0
3233
retrying

st2actions/in-requirements.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ eventlet
55
git+https://github.com/StackStorm/fabric.git@stanley-patched#egg=fabric
66
jinja2
77
kombu
8-
git+https://github.com/StackStorm/[email protected].1#egg=python-mistralclient
8+
git+https://github.com/StackStorm/[email protected].2#egg=python-mistralclient
99
oslo.config
1010
oslo.utils
1111
requests
@@ -16,7 +16,6 @@ python-json-logger
1616
gitpython
1717
lockfile
1818
# needed by core "linux" pack - TODO: create virtualenv for linux pack on postinst
19-
python-nmap
2019
pyinotify
2120
git+https://github.com/Kami/logshipper.git@stackstorm_patched#egg=logshipper
2221
# required by pack_mgmt/setup_virtualenv.py#L135

st2client/st2client/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
__version__ = '1.3.1'
16+
__version__ = '1.3.2'

st2common/bin/st2ctl

+7-12
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33

44
LOGFILE="/dev/null"
5-
COMPONENTS="st2actionrunner st2api st2auth st2garbagecollector st2notifier st2resultstracker "
6-
COMPONENTS+="st2rulesengine st2sensorcontainer st2web mistral mistral-api"
5+
COMPONENTS="st2actionrunner st2api st2auth st2garbagecollector st2notifier st2resultstracker st2rulesengine st2sensorcontainer mistral"
76
STANCONF="/etc/st2/st2.conf"
8-
WEBUI_PORT=${WEBUI_PORT:-8080}
97

108
# Ensure global environment is sourced if exists
119
# Does not happen consistently with all OSes we support.
@@ -76,8 +74,10 @@ function st2stop() {
7674
function service_manager() {
7775
if [ -d /run/systemd/system ]; then
7876
systemctl "${2}" "${1}"
79-
elif command -v service 2>/dev/null; then
77+
elif command -v service > /dev/null 2>&1; then
8078
service "${1}" "${2}"
79+
elif [ -x /etc/init.d/${1} ]; then
80+
/etc/init.d/${1} "${2}"
8181
else
8282
echo -e "\e[31mError: Unsupported service manager in the system! \e[0m\n"
8383
exit 1
@@ -140,15 +140,10 @@ function clean_logs() {
140140

141141
function getpids() {
142142
echo "##### st2 components status #####"
143+
COMPONENTS=${COMPONENTS/mistral/mistral-server mistral-api}
143144

144145
for COM in ${COMPONENTS}; do
145-
if [[ "${COM}" == "st2web" && -z "${ST2_DISABLE_HTTPSERVER}" ]]; then
146-
PID=`ps ax | grep -v grep | egrep "SimpleHTTPServer $WEBUI_PORT\$" | awk '{print $1}'`
147-
elif [[ "${COM}" == "mistral" ]]; then
148-
PID=`ps ax | grep -v grep | grep -v postgres | grep "${COM}" | awk '{print $1}'`
149-
else
150-
PID=`ps ax | grep -v grep | grep -v st2ctl | grep "${COM}" | awk '{print $1}'`
151-
fi
146+
PID=`ps ax | grep -v grep | grep -v st2ctl | grep "${COM}" | awk '{print $1}'`
152147

153148
if [[ ! -z ${PID} ]]; then
154149
for p in ${PID}; do
@@ -172,7 +167,7 @@ case ${1} in
172167
st2stop
173168
;;
174169
restart)
175-
must_be_root
170+
must_be_root
176171
st2stop
177172
sleep 1
178173
st2start

st2common/st2common/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
__version__ = '1.3.1'
16+
__version__ = '1.3.2'

0 commit comments

Comments
 (0)