commit c9bfcdd0fe4c66f5766e62f03f8eea598954520d
Author: Eric K <email address hidden>
Date: Thu Sep 22 18:12:02 2016 -0700
Remove the traceback added by oslo-messaging RPC
Remove the traceback added by oslo-messaging RPC, to avoid
displaying traceback to user.
Some requests that return traceback w/o this patch, now normal:
$ openstack congress policy row list bob p
Not Found::table 'p' doesn't exist (HTTP 404) (Request-ID: req-54c2a117-0306-4fd2-8d71-8f7e6d130a43)
$ openstack congress policy rule list bob
The specified policy does not exist.::Policy ID bob does not exist
(HTTP 400) (Request-ID: req-d85db619-afa0-4977-99f8-0dc88c5daa0c)
$ openstack congress policy delete bob
Policy Name or ID 'bob' does not exist (HTTP 404) (Request-ID: req-e1a70735-f469-4fae-b278-f061b64f4298)
$ openstack congress policy show bob
Resource bob not found (HTTP 404)
The 400 error should be addressed in separate patch.
Reviewed: https:/ /review. openstack. org/379036 /git.openstack. org/cgit/ openstack/ congress/ commit/ ?id=c9bfcdd0fe4 c66f5766e62f03f 8eea598954520d
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit c9bfcdd0fe4c66f 5766e62f03f8eea 598954520d
Author: Eric K <email address hidden>
Date: Thu Sep 22 18:12:02 2016 -0700
Remove the traceback added by oslo-messaging RPC
Remove the traceback added by oslo-messaging RPC, to avoid
displaying traceback to user.
Some requests that return traceback w/o this patch, now normal: 0306-4fd2- 8d71-8f7e6d130a 43) afa0-4977- 99f8-0dc88c5daa 0c) f469-4fae- b278-f061b64f42 98)
$ openstack congress policy row list bob p
Not Found::table 'p' doesn't exist (HTTP 404) (Request-ID: req-54c2a117-
$ openstack congress policy rule list bob
The specified policy does not exist.::Policy ID bob does not exist
(HTTP 400) (Request-ID: req-d85db619-
$ openstack congress policy delete bob
Policy Name or ID 'bob' does not exist (HTTP 404) (Request-ID: req-e1a70735-
$ openstack congress policy show bob
Resource bob not found (HTTP 404)
The 400 error should be addressed in separate patch.
Change-Id: Ia6b2b3e9816c90 d4ca6b687cca2fa c90eb5fb9b3
Closes-Bug: #1620868