Closed warrenvw closed 7 years ago
Here's more detail...
root@29ffd410b49a:/opt/stackstorm/packs# st2 run tests.test_run_pack_tests_tool token=${ST2_AUTH_TOKEN} -dj
{
"action": {
"ref": "tests.test_run_pack_tests_tool"
},
"context": {
"user": "st2admin"
},
"end_timestamp": "2017-03-22T20:26:27.935165Z",
"id": "58d2ddcd1d5d7c00a16eb6ba",
"parameters": {
"token": "9588f7bf31dd4f2183ca1676a84a2f43"
},
"result": {
"tasks": [
{
"created_at": "2017-03-22T20:25:50.191938+00:00",
"execution_id": "58d2ddce1d5d7c005ef9a2ef",
"id": "install_pack_1",
"name": "install_pack_1",
"result": {
"failed": false,
"return_code": 0,
"stderr": "",
"stdout": "\n\t[ scheduled ] download pack\r\t[ running ] download pack\r\t[ succeeded ] download pack\n\t[ scheduled ] make a prerun\r\t[ running ] make a prerun\r\t[ succeeded ] make a prerun\n\t[ scheduled ] install pack dependencies\r\t[ running ] install pack dependencies\r\t[ succeeded ] install pack dependencies\n\t[ scheduled ] register pack\r\t[ running ] register pack\r\t[ succeeded ] register pack\n\n+-------------+----------------------------------------------+\n| Property | Value |\n+-------------+----------------------------------------------+\n| name | csv |\n| description | st2 content pack containing CSV integrations |\n| version | 0.2.0 |\n| author | StackStorm, Inc. |\n+-------------+----------------------------------------------+",
"succeeded": true
},
"state": "succeeded",
"updated_at": "2017-03-22T20:26:07.384325+00:00",
"workflow": null
},
{
"created_at": "2017-03-22T20:26:07.393029+00:00",
"execution_id": "58d2dddf1d5d7c005ef9a2f2",
"id": "install_pack_2",
"name": "install_pack_2",
"result": {
"failed": false,
"return_code": 0,
"stderr": "",
"stdout": "\n\t[ scheduled ] download pack\r\t[ running ] download pack\r\t[ succeeded ] download pack\n\t[ scheduled ] make a prerun\r\t[ running ] make a prerun\r\t[ succeeded ] make a prerun\n\t[ scheduled ] install pack dependencies\r\t[ running ] install pack dependencies\r\t[ succeeded ] install pack dependencies\n\t[ scheduled ] register pack\r\t[ running ] register pack\r\t[ succeeded ] register pack\n\n+-------------+----------------------------------------------+\n| Property | Value |\n+-------------+----------------------------------------------+\n| name | xml |\n| description | st2 content pack containing XML integrations |\n| version | 0.1.0 |\n| author | StackStorm, Inc. |\n+-------------+----------------------------------------------+",
"succeeded": true
},
"state": "succeeded",
"updated_at": "2017-03-22T20:26:24.598500+00:00",
"workflow": null
},
{
"created_at": "2017-03-22T20:26:24.607217+00:00",
"execution_id": "58d2ddf01d5d7c005ef9a2f5",
"id": "run_pack_tests_without_creating_virtualenv",
"name": "run_pack_tests_without_creating_virtualenv",
"result": {
"failed": true,
"return_code": 127,
"stderr": "DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.\n/usr/bin/st2-run-pack-tests: line 243: nosetests: command not found",
"stdout": "Running tests for pack: csv\nAdding /opt/stackstorm/st2/bin to $PATH\nNot activating virtualenv since it doesn't exist\nPYTHONPATH=::/opt/stackstorm/packs/csv/sensors/:/opt/stackstorm/packs/csv/actions/:/opt/stackstorm/packs/csv/etc/\nPATH=/opt/stackstorm/st2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin\nVirtualenv activated=false\nInstalled Python dependencies:\namqp (1.4.9)\nanyjson (0.3.3)\nappdirs (1.4.1)\nAPScheduler (3.3.0)\nargcomplete (1.8.2)\nBabel (2.3.4)\nbcrypt (3.1.3)\nbeautifulsoup4 (4.5.3)\ncffi (1.9.1)\ncliff (2.4.0)\ncmd2 (0.6.9)\ncontextlib2 (0.5.4)\ncryptography (1.7.2)\ndebtcollector (1.11.0)\ndecorator (4.0.11)\nentrypoints (0.3.0)\nenum34 (1.1.6)\neventlet (0.18.4)\nfasteners (0.14.1)\nfuncsigs (1.0.2)\nfunctools32 (3.2.3.post2)\nfutures (3.0.5)\nfuturist (0.21.0)\ngitdb2 (2.0.0)\nGitPython (2.1.0)\ngreenlet (0.4.12)\ngunicorn (19.6.0)\nidna (2.2)\nipaddr (2.1.11)\nipaddress (1.0.18)\niso8601 (0.1.11)\nJinja2 (2.9.5)\njsonpath-rw (1.4.0)\njsonschema (2.5.1)\nkazoo (2.2.1)\nkeystoneauth1 (2.18.0)\nkombu (3.0.37)\nlockfile (0.10.2)\nlogshipper (0.1.1.dev109)\nlogutils (0.3.4.1)\nMako (1.0.6)\nMarkupSafe (0.23)\nmongoengine (0.11.0)\nmonotonic (1.2)\nmsgpack-python (0.4.8)\nndg-httpsclient (0.4.2)\nnetaddr (0.7.19)\nnetifaces (0.10.5)\nnetworkx (1.10)\nos-client-config (1.26.0)\nosc-lib (1.3.0)\noslo.config (1.12.1)\noslo.i18n (3.12.0)\noslo.serialization (2.16.0)\noslo.utils (3.0.0)\npackaging (16.8)\nparamiko (2.0.5)\npasslib (1.6.5)\npbr (1.10.0)\npecan (0.7.0)\npika (0.10.0)\npip (9.0.1)\nply (3.10)\npositional (1.1.1)\nprettytable (0.7.2)\nprompt-toolkit (1.0.7)\npyasn1 (0.2.2)\npycparser (2.17)\npycrypto (2.6.1)\npyinotify (0.9.6)\npymongo (3.4.0)\npyOpenSSL (16.2.0)\npyparsing (2.1.10)\npython-dateutil (2.6.0)\npython-editor (1.0.1)\npython-gnupg (0.3.9)\npython-json-logger (0.1.5)\npython-keyczar (0.716)\npython-keystoneclient (3.10.0)\npython-mistralclient (2.2.0.dev382)\npython-statsd (2.0.0)\npytz (2016.10)\nPyYAML (3.12)\nrequests (2.11.1)\nrequestsexceptions (1.1.3)\nretrying (1.3.3)\nsemver (2.7.2)\nsetuptools (34.2.0)\nsimplejson (3.10.0)\nsingledispatch (3.4.0.3)\nsix (1.10.0)\nsmmap2 (2.0.1)\nsseclient (0.0.12)\nst2 (2.2.0)\nst2-auth-backend-flat-file (0.1.0)\nst2-auth-backend-pam (0.1.0)\nst2actions (2.2.0)\nst2api (2.2.0)\nst2auth (2.2.0)\nst2client (2.2.0)\nst2common (2.2.0)\nst2debug (2.2.0)\nst2exporter (2.2.0)\nst2reactor (2.2.0)\nst2stream (2.2.0)\nstevedore (1.7.0)\ntooz (1.20.0)\ntzlocal (1.3)\nunicodecsv (0.14.1)\nvirtualenv (15.1.0)\nwaitress (1.0.2)\nwcwidth (0.1.7)\nWebOb (1.7.1)\nWebTest (2.0.25)\nwheel (0.30.0a0)\nwrapt (1.10.8)\nzake (0.2.2)\nRunning tests...",
"succeeded": false
},
"state": "failed",
"updated_at": "2017-03-22T20:26:26.762448+00:00",
"workflow": null
},
{
"created_at": "2017-03-22T20:26:26.773070+00:00",
"execution_id": "58d2ddf21d5d7c005ef9a2f7",
"id": "error_handler",
"name": "error_handler",
"result": {
"failed": true,
"return_code": 1,
"stderr": "",
"stdout": "st2-run-pack-tests tests failed",
"succeeded": false
},
"state": "failed",
"updated_at": "2017-03-22T20:26:27.923718+00:00",
"workflow": null
}
]
},
"start_timestamp": "2017-03-22T20:25:49.976857Z",
"status": "failed"
}
root@59f93ee544f1:/# st2-run-pack-tests -x -j -v -p /opt/stackstorm/packs/csv
Running tests for pack: csv
Adding /opt/stackstorm/st2/bin to $PATH
Adding entries from StackStorm virtualenv to PYTHONPATH: /opt/stackstorm/st2/lib/python2.7:/opt/stackstorm/st2/lib/python2.7/plat-x86_64-linux-gnu:/opt/stackstorm/st2/lib/python2.7/lib-tk:/opt/stackstorm/st2/lib/python2.7/lib-old:/opt/stackstorm/st2/lib/python2.7/lib-dynload:/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/opt/stackstorm/st2/local/lib/python2.7/site-packages:/opt/stackstorm/st2/lib/python2.7/site-packages
PYTHONPATH=/opt/stackstorm/st2/lib/python2.7:/opt/stackstorm/st2/lib/python2.7/plat-x86_64-linux-gnu:/opt/stackstorm/st2/lib/python2.7/lib-tk:/opt/stackstorm/st2/lib/python2.7/lib-old:/opt/stackstorm/st2/lib/python2.7/lib-dynload:/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/opt/stackstorm/st2/local/lib/python2.7/site-packages:/opt/stackstorm/st2/lib/python2.7/site-packages::/opt/stackstorm/packs/csv/sensors/:/opt/stackstorm/packs/csv/actions/:/opt/stackstorm/packs/csv/etc/
PATH=/opt/stackstorm/st2/bin:/opt/stackstorm/st2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Virtualenv activated=false
Installed Python dependencies:
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
amqp (1.4.9)
anyjson (0.3.3)
appdirs (1.4.1)
APScheduler (3.3.0)
argcomplete (1.8.2)
Babel (2.3.4)
bcrypt (3.1.3)
beautifulsoup4 (4.5.3)
cffi (1.9.1)
cliff (2.4.0)
cmd2 (0.6.9)
contextlib2 (0.5.4)
cryptography (1.7.2)
debtcollector (1.11.0)
decorator (4.0.11)
entrypoints (0.3.0)
enum34 (1.1.6)
eventlet (0.18.4)
fasteners (0.14.1)
funcsigs (1.0.2)
functools32 (3.2.3.post2)
futures (3.0.5)
futurist (0.21.0)
gitdb2 (2.0.0)
GitPython (2.1.0)
greenlet (0.4.12)
gunicorn (19.6.0)
idna (2.2)
ipaddr (2.1.11)
ipaddress (1.0.18)
iso8601 (0.1.11)
Jinja2 (2.9.5)
jsonpath-rw (1.4.0)
jsonschema (2.5.1)
kazoo (2.2.1)
keystoneauth1 (2.18.0)
kombu (3.0.37)
lockfile (0.10.2)
logshipper (0.1.1.dev109)
logutils (0.3.4.1)
Mako (1.0.6)
MarkupSafe (0.23)
mongoengine (0.11.0)
monotonic (1.2)
msgpack-python (0.4.8)
ndg-httpsclient (0.4.2)
netaddr (0.7.19)
netifaces (0.10.5)
networkx (1.10)
os-client-config (1.26.0)
osc-lib (1.3.0)
oslo.config (1.12.1)
oslo.i18n (3.12.0)
oslo.serialization (2.16.0)
oslo.utils (3.0.0)
packaging (16.8)
paramiko (2.0.5)
passlib (1.6.5)
pbr (1.10.0)
pecan (0.7.0)
pika (0.10.0)
pip (9.0.1)
ply (3.10)
positional (1.1.1)
prettytable (0.7.2)
prompt-toolkit (1.0.7)
pyasn1 (0.2.2)
pycparser (2.17)
pycrypto (2.6.1)
pyinotify (0.9.6)
pymongo (3.4.0)
pyOpenSSL (16.2.0)
pyparsing (2.1.10)
python-dateutil (2.6.0)
python-editor (1.0.1)
python-gnupg (0.3.9)
python-json-logger (0.1.5)
python-keyczar (0.716)
python-keystoneclient (3.10.0)
python-mistralclient (2.2.0.dev382)
python-statsd (2.0.0)
pytz (2016.10)
PyYAML (3.12)
requests (2.11.1)
requestsexceptions (1.1.3)
retrying (1.3.3)
semver (2.7.2)
setuptools (34.2.0)
simplejson (3.10.0)
singledispatch (3.4.0.3)
six (1.10.0)
smmap2 (2.0.1)
sseclient (0.0.12)
st2 (2.2.0)
st2-auth-backend-flat-file (0.1.0)
st2-auth-backend-pam (0.1.0)
st2actions (2.2.0)
st2api (2.2.0)
st2auth (2.2.0)
st2client (2.2.0)
st2common (2.2.0)
st2debug (2.2.0)
st2exporter (2.2.0)
st2reactor (2.2.0)
st2stream (2.2.0)
stevedore (1.7.0)
tooz (1.20.0)
tzlocal (1.3)
unicodecsv (0.14.1)
virtualenv (15.1.0)
waitress (1.0.2)
wcwidth (0.1.7)
WebOb (1.7.1)
WebTest (2.0.25)
wheel (0.30.0a0)
wrapt (1.10.8)
zake (0.2.2)
/opt/stackstorm/st2/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/opt/stackstorm/st2/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Running tests...
/opt/stackstorm/st2/bin/st2-run-pack-tests: line 276: nosetests: command not found
In a fresh st2-upstart
container based on 2.2.0 release, with the latest version of st2-run-pack-tests
from master
branch, and after running st2ctl reload
, . ~/st2.vars
and st2-self-check
... the tests.test_run_pack_tests_tool
test fails:
root@ceac2b50300b:/# st2 execution get 58d2fd64c225390065947df4
id: 58d2fd64c225390065947df4
status: failed (0s elapsed)
parameters:
cmd: st2-run-pack-tests -p /opt/stackstorm/packs/csv -x -j
env:
ST2_API_URL: http://127.0.0.1:9101
ST2_AUTH_TOKEN: 72792d52e261408d91bc3c91e469debd
ST2_AUTH_URL: http://127.0.0.1:9100
ST2_BASE_URL: http://127.0.0.1
timeout: 180
result:
failed: true
return_code: 127
stderr: '/usr/bin/st2-run-pack-tests: line 276: nosetests: command not found'
stdout: 'Running tests for pack: csv
Running tests...'
succeeded: false
After the above failed test, I manually executed the failed st2-run-pack-tests
, adding the -v
option for more verbose output:
root@ceac2b50300b:/# st2-run-pack-tests -p /opt/stackstorm/packs/csv -x -j -v
Running tests for pack: csv
Adding /opt/stackstorm/st2/bin to $PATH
Adding entries from StackStorm virtualenv to PYTHONPATH: /opt/stackstorm/st2/lib/python2.7:/opt/stackstorm/st2/lib/python2.7/plat-x86_64-linux-gnu:/opt/stackstorm/st2/lib/python2.7/lib-tk:/opt/stackstorm/st2/lib/python2.7/lib-old:/opt/stackstorm/st2/lib/python2.7/lib-dynload:/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/opt/stackstorm/st2/local/lib/python2.7/site-packages:/opt/stackstorm/st2/lib/python2.7/site-packages
PYTHONPATH=/opt/stackstorm/st2/lib/python2.7:/opt/stackstorm/st2/lib/python2.7/plat-x86_64-linux-gnu:/opt/stackstorm/st2/lib/python2.7/lib-tk:/opt/stackstorm/st2/lib/python2.7/lib-old:/opt/stackstorm/st2/lib/python2.7/lib-dynload:/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/opt/stackstorm/st2/local/lib/python2.7/site-packages:/opt/stackstorm/st2/lib/python2.7/site-packages::/opt/stackstorm/packs/csv/sensors/:/opt/stackstorm/packs/csv/actions/:/opt/stackstorm/packs/csv/etc/
PATH=/opt/stackstorm/st2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Virtualenv activated=false
Installed Python dependencies:
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
amqp (1.4.9)
anyjson (0.3.3)
appdirs (1.4.1)
APScheduler (3.3.0)
argcomplete (1.8.2)
Babel (2.3.4)
bcrypt (3.1.3)
beautifulsoup4 (4.5.3)
cffi (1.9.1)
cliff (2.4.0)
cmd2 (0.6.9)
contextlib2 (0.5.4)
cryptography (1.7.2)
debtcollector (1.11.0)
decorator (4.0.11)
entrypoints (0.3.0)
enum34 (1.1.6)
eventlet (0.18.4)
fasteners (0.14.1)
funcsigs (1.0.2)
functools32 (3.2.3.post2)
futures (3.0.5)
futurist (0.21.0)
gitdb2 (2.0.0)
GitPython (2.1.0)
greenlet (0.4.12)
gunicorn (19.6.0)
idna (2.2)
ipaddr (2.1.11)
ipaddress (1.0.18)
iso8601 (0.1.11)
Jinja2 (2.9.5)
jsonpath-rw (1.4.0)
jsonschema (2.5.1)
kazoo (2.2.1)
keystoneauth1 (2.18.0)
kombu (3.0.37)
lockfile (0.10.2)
logshipper (0.1.1.dev109)
logutils (0.3.4.1)
Mako (1.0.6)
MarkupSafe (0.23)
mongoengine (0.11.0)
monotonic (1.2)
msgpack-python (0.4.8)
ndg-httpsclient (0.4.2)
netaddr (0.7.19)
netifaces (0.10.5)
networkx (1.10)
os-client-config (1.26.0)
osc-lib (1.3.0)
oslo.config (1.12.1)
oslo.i18n (3.12.0)
oslo.serialization (2.16.0)
oslo.utils (3.0.0)
packaging (16.8)
paramiko (2.0.5)
passlib (1.6.5)
pbr (1.10.0)
pecan (0.7.0)
pika (0.10.0)
pip (9.0.1)
ply (3.10)
positional (1.1.1)
prettytable (0.7.2)
prompt-toolkit (1.0.7)
pyasn1 (0.2.2)
pycparser (2.17)
pycrypto (2.6.1)
pyinotify (0.9.6)
pymongo (3.4.0)
pyOpenSSL (16.2.0)
pyparsing (2.1.10)
python-dateutil (2.6.0)
python-editor (1.0.1)
python-gnupg (0.3.9)
python-json-logger (0.1.5)
python-keyczar (0.716)
python-keystoneclient (3.10.0)
python-mistralclient (2.2.0.dev382)
python-statsd (2.0.0)
pytz (2016.10)
PyYAML (3.12)
requests (2.11.1)
requestsexceptions (1.1.3)
retrying (1.3.3)
semver (2.7.2)
setuptools (34.2.0)
simplejson (3.10.0)
singledispatch (3.4.0.3)
six (1.10.0)
smmap2 (2.0.1)
sseclient (0.0.12)
st2 (2.2.0)
st2-auth-backend-flat-file (0.1.0)
st2-auth-backend-pam (0.1.0)
st2actions (2.2.0)
st2api (2.2.0)
st2auth (2.2.0)
st2client (2.2.0)
st2common (2.2.0)
st2debug (2.2.0)
st2exporter (2.2.0)
st2reactor (2.2.0)
st2stream (2.2.0)
stevedore (1.7.0)
tooz (1.20.0)
tzlocal (1.3)
unicodecsv (0.14.1)
virtualenv (15.1.0)
waitress (1.0.2)
wcwidth (0.1.7)
WebOb (1.7.1)
WebTest (2.0.25)
wheel (0.30.0a0)
wrapt (1.10.8)
zake (0.2.2)
/opt/stackstorm/st2/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/opt/stackstorm/st2/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Running tests...
/usr/bin/st2-run-pack-tests: line 276: nosetests: command not found
root@ceac2b50300b:/# ll /opt/stackstorm/st2/bin/nosetests
ls: cannot access /opt/stackstorm/st2/bin/nosetests: No such file or directory
For those tests to pass you need to be using latest development st2 packages (so staging unstable or what is to become v2.2.1).
That's also the reason why those tests were initially only merged into st2tests master and not v2.2 branch (because at that time, that change was only in st2 and st2-packages master).
root@5612956ce97b:/# st2 execution get 58d4119627a98d00b7c466fa
id: 58d4119627a98d00b7c466fa
action.ref: tests.test_quickstart_rules
parameters:
protocol: http
token: c7bd2d31ebfa43af8790bc94082407a2
status: failed (66s elapsed)
start_timestamp: 2017-03-23T18:19:02.916584Z
end_timestamp: 2017-03-23T18:20:08.059435Z
+--------------------------+-------------------------+---------------------+------------+-----------------+
| id | status | task | action | start_timestamp |
+--------------------------+-------------------------+---------------------+------------+-----------------+
| 58d4119727a98d005fd443a8 | succeeded (0s elapsed) | setup_sample_rule_w | core.local | Thu, 23 Mar |
| | | ith_webhook_exists | | 2017 18:19:03 |
| | | | | UTC |
| 58d4119827a98d005fd443aa | succeeded (0s elapsed) | setup_delete_rule | core.local | Thu, 23 Mar |
| | | | | 2017 18:19:04 |
| | | | | UTC |
| 58d4119927a98d005fd443ac | succeeded (1s elapsed) | test_create_rule | core.local | Thu, 23 Mar |
| | | | | 2017 18:19:05 |
| | | | | UTC |
| 58d4119a27a98d005fd443ae | succeeded (60s elapsed) | sleep | core.local | Thu, 23 Mar |
| | | | | 2017 18:19:06 |
| | | | | UTC |
| 58d411d627a98d005fd443b0 | failed (1s elapsed) | test_webhook_list | core.local | Thu, 23 Mar |
| | | | | 2017 18:20:06 |
| | | | | UTC |
+--------------------------+-------------------------+---------------------+------------+-----------------+
root@5612956ce97b:/# st2 execution get 58d411d627a98d005fd443b0
id: 58d411d627a98d005fd443b0
status: failed (1s elapsed)
parameters:
cmd: st2 webhook list -j | grep sample
env:
ST2_API_URL: http://127.0.0.1:9101
ST2_AUTH_TOKEN: c7bd2d31ebfa43af8790bc94082407a2
ST2_AUTH_URL: http://127.0.0.1:9100
ST2_BASE_URL: http://127.0.0.1
result:
failed: true
return_code: 1
stderr: ''
stdout: ''
succeeded: false
root@5612956ce97b:/# st2 webhook list -j
[
{
"name": "25c9cc13-cab5-48a3-b222-116ec5e8aa76",
"pack": "core",
"parameters": {
"url": "sample"
},
"type": "core.st2.webhook"
}
]
root@5612956ce97b:/# st2 webhook list -j | grep sample
"url": "sample"
root@5612956ce97b:/# echo $?
0
root@5612956ce97b:/# st2-self-check
~ /
Cloning st2tests (branch=master) in /root.
Cloning into 'st2tests'...
remote: Counting objects: 138, done.
remote: Compressing objects: 100% (110/110), done.
remote: Total 138 (delta 25), reused 85 (delta 12), pack-reused 0
Receiving objects: 100% (138/138), 656.06 KiB | 1.10 MiB/s, done.
Resolving deltas: 100% (25/25), done.
Checking connectivity... done.
Copying asserts, fixtures, tests and examples packs.
Installing asserts, fixtures, tests and examples packs.
..........
id: 58d41b4c27a98d00b7c46717
status: succeeded
parameters:
packs:
- examples
- tests
- asserts
- fixtures
- webui
result:
exit_code: 0
result: 'Successfuly set up virtualenv for the following packs: examples, tests, asserts, fixtures, webui'
stderr: 'st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Setting up virtualenv for pack "examples"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Removing virtualenv in "/opt/stackstorm/virtualenvs/examples"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Creating virtualenv for pack "examples" in "/opt/stackstorm/virtualenvs/examples"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Creating virtualenv in "/opt/stackstorm/virtualenvs/examples" using Python binary "/opt/stackstorm/st2/bin/python"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Running command "/opt/stackstorm/st2/bin/virtualenv -p /opt/stackstorm/st2/bin/python --always-copy /opt/stackstorm/virtualenvs/examples" to create virtualenv.
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Installing base requirements
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG No pack specific requirements found
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Virtualenv for pack "examples" successfully created in "/opt/stackstorm/virtualenvs/examples"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Setting up virtualenv for pack "tests"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Removing virtualenv in "/opt/stackstorm/virtualenvs/tests"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Creating virtualenv for pack "tests" in "/opt/stackstorm/virtualenvs/tests"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Creating virtualenv in "/opt/stackstorm/virtualenvs/tests" using Python binary "/opt/stackstorm/st2/bin/python"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Running command "/opt/stackstorm/st2/bin/virtualenv -p /opt/stackstorm/st2/bin/python --always-copy /opt/stackstorm/virtualenvs/tests" to create virtualenv.
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Installing base requirements
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG No pack specific requirements found
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Virtualenv for pack "tests" successfully created in "/opt/stackstorm/virtualenvs/tests"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Setting up virtualenv for pack "asserts"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Removing virtualenv in "/opt/stackstorm/virtualenvs/asserts"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Creating virtualenv for pack "asserts" in "/opt/stackstorm/virtualenvs/asserts"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Creating virtualenv in "/opt/stackstorm/virtualenvs/asserts" using Python binary "/opt/stackstorm/st2/bin/python"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Running command "/opt/stackstorm/st2/bin/virtualenv -p /opt/stackstorm/st2/bin/python --always-copy /opt/stackstorm/virtualenvs/asserts" to create virtualenv.
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Installing base requirements
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Installing pack specific requirements from "/opt/stackstorm/packs/asserts/requirements.txt"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Virtualenv for pack "asserts" successfully created in "/opt/stackstorm/virtualenvs/asserts"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Setting up virtualenv for pack "fixtures"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Removing virtualenv in "/opt/stackstorm/virtualenvs/fixtures"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Creating virtualenv for pack "fixtures" in "/opt/stackstorm/virtualenvs/fixtures"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Creating virtualenv in "/opt/stackstorm/virtualenvs/fixtures" using Python binary "/opt/stackstorm/st2/bin/python"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Running command "/opt/stackstorm/st2/bin/virtualenv -p /opt/stackstorm/st2/bin/python --always-copy /opt/stackstorm/virtualenvs/fixtures" to create virtualenv.
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Installing base requirements
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Installing pack specific requirements from "/opt/stackstorm/packs/fixtures/requirements.txt"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Virtualenv for pack "fixtures" successfully created in "/opt/stackstorm/virtualenvs/fixtures"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Setting up virtualenv for pack "webui"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Removing virtualenv in "/opt/stackstorm/virtualenvs/webui"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Creating virtualenv for pack "webui" in "/opt/stackstorm/virtualenvs/webui"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Creating virtualenv in "/opt/stackstorm/virtualenvs/webui" using Python binary "/opt/stackstorm/st2/bin/python"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Running command "/opt/stackstorm/st2/bin/virtualenv -p /opt/stackstorm/st2/bin/python --always-copy /opt/stackstorm/virtualenvs/webui" to create virtualenv.
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Installing base requirements
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Installing pack specific requirements from "/opt/stackstorm/packs/webui/requirements.txt"
st2.actions.python.SetupVirtualEnvironmentAction: DEBUG Virtualenv for pack "webui" successfully created in "/opt/stackstorm/virtualenvs/webui"
'
stdout: ''
Registering content...[flags = --config-file /etc/st2/st2.conf --register-all]
2017-03-23 19:00:49,759 INFO [-] Connecting to database "st2" @ "mongo:27017" as user "None".
2017-03-23 19:00:49,887 INFO [-] =========================================================
2017-03-23 19:00:49,888 INFO [-] ############## Registering triggers #####################
2017-03-23 19:00:49,888 INFO [-] =========================================================
2017-03-23 19:00:50,999 WARNING [-] Pack "test" contains invalid semver version specifer, casting it to a full semver version specifier (0.3 -> 0.3.0).
Short versions will become INVALID in StackStorm 2.2, and the pack will stop working. Update the pack version in "pack.yaml".
2017-03-23 19:00:51,441 INFO [-] Registered 1 triggers.
2017-03-23 19:00:51,441 INFO [-] =========================================================
2017-03-23 19:00:51,441 INFO [-] ############## Registering sensors ######################
2017-03-23 19:00:51,441 INFO [-] =========================================================
2017-03-23 19:00:51,664 INFO [-] Registered 5 sensors.
2017-03-23 19:00:51,664 INFO [-] =========================================================
2017-03-23 19:00:51,664 INFO [-] ############## Registering runners ######################
2017-03-23 19:00:51,665 INFO [-] =========================================================
2017-03-23 19:00:51,971 INFO [-] Registered 13 runners.
2017-03-23 19:00:51,971 INFO [-] =========================================================
2017-03-23 19:00:51,971 INFO [-] ############## Registering actions ######################
2017-03-23 19:00:51,971 INFO [-] =========================================================
2017-03-23 19:00:56,060 INFO [-] Registered 138 actions.
2017-03-23 19:00:56,060 INFO [-] =========================================================
2017-03-23 19:00:56,060 INFO [-] ############## Registering rules ########################
2017-03-23 19:00:56,060 INFO [-] =========================================================
2017-03-23 19:00:56,334 INFO [-] Registered 6 rules.
2017-03-23 19:00:56,334 INFO [-] =========================================================
2017-03-23 19:00:56,334 INFO [-] ############## Registering aliases ######################
2017-03-23 19:00:56,334 INFO [-] =========================================================
2017-03-23 19:00:56,463 INFO [-] Registered 5 aliases.
2017-03-23 19:00:56,463 INFO [-] =========================================================
2017-03-23 19:00:56,463 INFO [-] ############## Registering policy types #################
2017-03-23 19:00:56,464 INFO [-] =========================================================
2017-03-23 19:00:56,487 INFO [-] Registered 3 policy types.
2017-03-23 19:00:56,487 INFO [-] =========================================================
2017-03-23 19:00:56,487 INFO [-] ############## Registering policies #####################
2017-03-23 19:00:56,488 INFO [-] =========================================================
2017-03-23 19:00:56,535 INFO [-] Registered 0 policies.
2017-03-23 19:00:56,535 INFO [-] =========================================================
2017-03-23 19:00:56,535 INFO [-] ############## Registering configs ######################
2017-03-23 19:00:56,535 INFO [-] =========================================================
2017-03-23 19:00:56,589 INFO [-] Registered 0 configs.
##### st2 components status #####
st2actionrunner PID: 78
st2actionrunner PID: 87
st2actionrunner PID: 95
st2actionrunner PID: 100
st2actionrunner PID: 104
st2actionrunner PID: 108
st2api PID: 39
st2api PID: 183
st2stream PID: 41
st2stream PID: 179
st2auth PID: 31
st2auth PID: 182
st2garbagecollector PID: 29
st2notifier PID: 35
st2resultstracker PID: 33
st2rulesengine PID: 37
st2sensorcontainer PID: 26
st2chatops is not running.
mistral-server is not running.
mistral-api is not running.
Deleting 'st2tests' directory from /root.
/
Attempting Test tests.test_key_triggers...OK!
Attempting Test tests.test_packs_pack...OK!
Attempting Test tests.test_quickstart...OK!
Attempting Test tests.test_quickstart_key...OK!
Attempting Test tests.test_quickstart_local_script_actions...OK!
Attempting Test tests.test_quickstart_passive_sensor...OK!
Attempting Test tests.test_quickstart_polling_sensor...OK!
Attempting Test tests.test_quickstart_python_actions...OK!
Attempting Test tests.test_quickstart_remote_script_actions...OK!
Attempting Test tests.test_quickstart_rules...OK!
Attempting Test tests.test_quickstart_trace...OK!
Attempting Test tests.test_run_pack_tests_tool...OK!
Attempting Test tests.test_timer_rule...OK!
Thanks :+1:
Closing.
And to wrap up - yes, latest st2-run-pack-tests
script from st2 master will only work correctly out of the box with StackStorm >= v2.2.1.
Used to be that the
run_pack_tests_without_creating_virtualenv
test passed successfully. It has not passed for a couple weeks now.