When using deferred_auth_method=trusts, we treat an already deleted trust returning 404 on delete_trust as an error, when we should catch the NotFound exception and pass instead:
2014-01-06 11:01:38.314 30745 ERROR heat.engine.parser [-] 61154d5e7a784ad49cabd131a90b793e (HTTP 404)
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser Traceback (most recent call last):
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser File "/home/shardy/git/heat/heat/engine/parser.py", line 583, in delete
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser self.clients.keystone().delete_trust(trust_id)
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser File "/home/shardy/git/heat/heat/common/heat_keystoneclient.py", line 233, in delete_trust
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser self.client_v3.trusts.delete(trust_id)
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser File "/usr/lib/python2.7/site-packages/keystoneclient/v3/contrib/trusts.py", line 86, in delete
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser return super(TrustManager, self).delete(trust_id=base.getid(trust))
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser File "/usr/lib/python2.7/site-packages/keystoneclient/base.py", line 70, in func
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser return f(*args, **kwargs)
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser File "/usr/lib/python2.7/site-packages/keystoneclient/base.py", line 360, in delete
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser self.build_url(dict_args_in_out=kwargs))
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser File "/usr/lib/python2.7/site-packages/keystoneclient/base.py", line 201, in _delete
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser return self.client.delete(url)
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py", line 614, in delete
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser return self._cs_request(url, 'DELETE', **kwargs)
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py", line 595, in _cs_request
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser **kwargs)
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py", line 560, in request
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser resp = self.session.request(url, method, **kwargs)
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser File "/usr/lib/python2.7/site-packages/keystoneclient/session.py", line 181, in request
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser raise exceptions.from_response(resp, method, url)
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser NotFound: 61154d5e7a784ad49cabd131a90b793e (HTTP 404)
2014-01-06 11:01:38.314 30745 TRACE heat.engine.parser
Fix proposed to branch: master /review. openstack. org/65064
Review: https:/