deckhand/deckhand
Felipe Monteiro f0cc8b6c1a [TrivialFix] Fix BarbicanException error propagation
Fix BarbicanException error propagation in Deckhand by ensuring
that the exception details are passed around via str(e) rather
than e.message as the Barbican exceptions [0] don't have additional
attributes like falcon.

Example stack trace:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/falcon/api.py", line 244, in __call__
    responder(req, resp, **params)
  File "./deckhand/policy.py", line 104, in handler
    return func(*args, **kwargs)
  File "./deckhand/control/buckets.py", line 70, in on_put
    self._prepare_secret_documents(documents)
  File "./deckhand/control/buckets.py", line 83, in _prepare_secret_documents
    secret_data = self.secrets_mgr.create(document)
  File "./deckhand/engine/secrets_manager.py", line 74, in create
    resp = self.barbican_driver.create_secret(**kwargs)
  File "./deckhand/barbican/driver.py", line 39, in create_secret
    LOG.exception(e.message)
AttributeError: 'HTTPServerError' object has no attribute 'message'

[0] https://github.com/openstack/python-barbicanclient/blob/master/barbicanclient/exceptions.py

Change-Id: I58410c3729fe4fd066227311589e5ee5d30dc171
2018-02-24 17:01:46 -05:00
..
barbican [TrivialFix] Fix BarbicanException error propagation 2018-02-24 17:01:46 -05:00
client [client] Fix 503 exception raising attribute error instead 2018-02-19 08:14:03 -05:00
conf Collect profile data on DH requests 2018-02-15 13:09:16 -05:00
control Fail fast on bad substitution input during layering 2018-02-20 05:46:55 -05:00
db Allow unit tests to be run against in-memory sqlite 2018-02-12 22:10:29 -05:00
engine Fix Promenade: Introduce flag to only warn on missing sub source 2018-02-22 11:09:43 -05:00
policies Rename Deckhand bucket endpoint to buckets for consistency 2017-10-27 19:21:03 +01:00
tests Fix Promenade: Introduce flag to only warn on missing sub source 2018-02-22 11:09:43 -05:00
__init__.py Oslo config integration (#1) 2017-06-26 16:57:50 -07:00
cmd.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
context.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
errors.py [TrivialFix] Fix BarbicanException error propagation 2018-02-24 17:01:46 -05:00
factories.py Use DAG to resolve substitution dependency chain 2018-02-12 20:54:54 +00:00
policy.py DECKHAND-66: Document substitution implementation 2017-10-13 15:16:27 -04:00
service.py [Trivial Fix] Make profile directory if it doesn't exist 2018-02-15 23:35:09 -05:00
types.py Add functional tests for "owned" documents 2017-12-23 02:25:29 +00:00
utils.py Collect profile data on DH requests 2018-02-15 13:09:16 -05:00