Skip to content

Instantly share code, notes, and snippets.

@clarsonneur
Created March 19, 2015 12:02
Show Gist options
  • Save clarsonneur/964218149e59e4418fe1 to your computer and use it in GitHub Desktop.
Save clarsonneur/964218149e59e4418fe1 to your computer and use it in GitHub Desktop.
st2 delete error
st2 --debug rule delete 550a9548e9720f11330cf940
# -------- begin 50764816 request ----------
curl -X GET -H 'Connection: keep-alive' -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-requests/2.5.3 CPython/2.7.5 Linux/3.11.10-301.fc20.x86_64' 'http://localhost:9101/v1/rules/?name=550a9548e9720f11330cf940'
# -------- begin 50764816 response ----------
[]
# -------- end 50764816 response ------------
# -------- begin 50764816 request ----------
curl -X GET -H 'Connection: keep-alive' -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-requests/2.5.3 CPython/2.7.5 Linux/3.11.10-301.fc20.x86_64' http://localhost:9101/v1/rules/550a9548e9720f11330cf940
# -------- begin 50764816 response ----------
{
"faultstring": "Missing TriggerDB object for rule 550a9548e9720f11330cf940"
}
# -------- end 50764816 response ------------
Rule "550a9548e9720f11330cf940" is not found.
Client settings:
----------------
ST2_BASE_URL: http://localhost
ST2_AUTH_URL: https://localhost:9100
ST2_API_URL: http://localhost:9101/v1
Proxy settings:
---------------
HTTP_PROXY:
HTTPS_PROXY:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/st2client/shell.py", line 178, in run
args.func(args)
File "/usr/lib/python2.7/site-packages/st2client/commands/resource.py", line 413, in run_and_print
raise OperationFailureException('Resource %s not found.' % resource_id)
OperationFailureException: Resource 550a9548e9720f11330cf940 not found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment