Skip to content

Instantly share code, notes, and snippets.

diff --git a/root/opt/stackstorm/packs/netflix_cass/actions/check_node_discovery_gossip.py b/root/opt/stackstorm/packs/netflix_cass/actions/check_node_discovery_gossip.py
index e16a83b..097efae 100644
--- a/root/opt/stackstorm/packs/netflix_cass/actions/check_node_discovery_gossip.py
+++ b/root/opt/stackstorm/packs/netflix_cass/actions/check_node_discovery_gossip.py
@@ -85,11 +85,11 @@ class BaseAction(Action):
@staticmethod
def get_dns_name (result):
- node_id = result['instances'][0]
+ node_id = result['instances'][0][0]
$ st2 --debug rule list
# -------- begin 139853773692176 request ----------
curl -X GET -H 'Accept-Encoding: gzip, deflate, compress' -H 'Accept: */*' -H 'User-Agent: python-requests/2.2.1 CPython/2.7.6 Linux/3.13.0-49-generic' http://localhost:9101/v1/rules
# -------- begin 139853773692176 response ----------
{
"faultstring": "Missing TriggerDB object for rule 56142d81475e061098c481f5"
}
# -------- end 139853773692176 response ------------
ERROR: 400 Client Error: Bad Request
$ st2 --debug run core.local 'hostname'
# -------- begin 139629745963152 request ----------
curl -X GET -H 'Accept-Encoding: gzip, deflate, compress' -H 'Accept: */*' -H 'User-Agent: python-requests/2.2.1 CPython/2.7.6 Linux/3.13.0-49-generic' http://localhost:9101/v1/actions/core.local
# -------- begin 139629745963152 response ----------
{"name": "local", "runner_type": "local-shell-cmd", "tags": [], "enabled": true, "pack": "core", "entry_point": "", "parameters": {"cmd": {"required": true, "type": "string", "description": "Arbitrary Linux command to be executed on the remote host(s)."}, "sudo": {"immutable": true}}, "ref": "core.local", "id": "55fa0c71475e060d20fc325e", "description": "Action that executes an arbitrary Linux command on the localhost."}
# -------- end 139629745963152 response ------------
# -------- begin 139629745966480 request ----------
curl -X GET -H 'Accept-Encoding: gzip, deflate, compress' -H 'Accept: */*' -H 'User-Agent: python-requests/2.2.1 CPython/2.7.6 Linux/3.13.0-49-gen
# Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
> db.live_action_d_b.getIndexes()
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"ns" : "st2.live_action_d_b",
"name" : "_id_"
},
db.action_execution_d_b.getIndices()
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"ns" : "st2.action_execution_d_b",
"name" : "_id_"
},
> db.action_execution_d_b.getIndices()
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"ns" : "st2.action_execution_d_b",
"name" : "_id_"
},
~ st2ctl start
mistral: unrecognized service
~ st2ctl status
##### st2 components status #####
st2actionrunner PID: 3863
st2actionrunner PID: 3864
st2actionrunner PID: 3865
st2actionrunner PID: 3866
st2actionrunner PID: 3867
$ st2 execution list
+--------------------------+------------+--------------+-----------+-------------------------+-------------------------+
| id | action.ref | context.user | status | start_timestamp | end_timestamp |
+--------------------------+------------+--------------+-----------+-------------------------+-------------------------+
| 5580ac720663ca62d60430ec | core.local | skarmarkar | succeeded | Tue, 16 Jun 2015 | Tue, 16 Jun 2015 |
| | | | | 23:08:34 UTC | 23:08:35 UTC |
| 5580baf32b02f87386cc7604 | core.local | skarmarkar | succeeded | Wed, 17 Jun 2015 | Wed, 17 Jun 2015 |
| | | | | 00:10:27 UTC | 00:10:28 UTC |
+--------------------------+------------+--------------+-----------+-------------------------+-------------------------+
$ sudo st2ctl status
##### st2 components status #####
st2actionrunner PID: 6033
st2actionrunner PID: 6034
st2actionrunner PID: 6035
st2actionrunner PID: 6036
st2actionrunner PID: 6037
st2actionrunner PID: 6038
st2actionrunner PID: 6039
st2actionrunner PID: 6040