RETIRED, further work has moved to Debian project infrastructure
Go to file
Steven Hardy 4e0538e214 Clarify NotFound error when creating trust
If a user creates a stack without the heat_stack_owner role, we
try to create the trust and then fail somewhat cryptically by
letting the NotFound exception from keystoneclient get exposed to
the user.  This is confusing, as it doesn't even mention the role
name (only the ID).

Instead, we can catch the NotFound and propagate a MissingCredential
error, with a list of the role names we need to create the trust.

This error is already correctly mapped to a bad request in the native
API, but not in the CFN exception map, so add it there to avoid 500
errors if this happens via heat-api-cfn.

Now, if a user lacks the required role, they will see an error like:

Missing required credential: roles ['heat_stack_owner']

Which is hopefully somewhat clearer.

Change-Id: Ief4956bdb76ddf0cdb0a642721b63c63b0d007d8
Closes-Bug: #1306665
2014-09-05 16:51:03 +01:00
bin Import oslo.i18n and port heat bins to use oslo.i18n 2014-09-02 10:53:14 +08:00
contrib Merge "Improve docker resource deletion" 2014-09-04 18:48:57 +00:00
doc Merge "Doc: don't generate empty properties fields" 2014-09-02 17:34:42 +00:00
etc/heat Merge "Detect neutron endpoint on-the-fly" 2014-08-31 20:47:38 +00:00
functionaltests Gate-supporting files for functional tests 2014-08-25 11:31:43 +12:00
heat Clarify NotFound error when creating trust 2014-09-05 16:51:03 +01:00
rally-scenarios Add config file for performance gate job 2014-08-08 02:22:59 +04:00
tools Merge "Remove rst2script.sed and integration.sh" 2014-07-28 15:19:20 +00:00
.coveragerc Enabled source code coverage for contrib directory 2014-01-28 21:49:40 +08:00
.gitignore Use setuptools to install contrib plugins 2014-08-13 20:12:29 -05:00
.gitreview Update .gitreview for org move. 2012-12-02 17:46:15 +00:00
.testr.conf Restructure contrib/ directories 2014-03-03 10:49:28 -05:00
babel.cfg Add setup.py and friends 2012-03-14 09:25:54 +11:00
CONTRIBUTING.rst Fix the section name in CONTRIBUTING.rst 2014-06-22 01:36:26 -06:00
HACKING.rst Fixed the reference to 'Creating Unit Tests' in HACKING.rst 2014-06-22 02:00:59 -06:00
install.sh Port to oslo.messaging 2014-06-26 06:45:52 +02:00
LICENSE Initial commit (basics copied from glance) 2012-03-13 21:48:07 +11:00
MANIFEST.in Delete deprecated docs/ directory 2013-10-24 11:03:11 -10:00
openstack-common.conf Migrate to oslo.db 2014-07-15 10:14:56 +02:00
pylintrc Directives to not use variable names that conflict with pdb 2012-03-20 07:16:16 -04:00
README.rst Added links to missing integration information 2014-06-22 01:21:35 -06:00
requirements.txt Import oslo.i18n and port heat bins to use oslo.i18n 2014-09-02 10:53:14 +08:00
run_tests.sh Run pep8 check in run_tests.sh as in tox 2014-03-29 23:47:20 +02:00
setup.cfg Implements stack lifecycle plugpoints 2014-08-31 19:36:48 +00:00
setup.py Updated from global requirements 2014-05-09 02:42:01 +00:00
test-requirements.txt Run migration tests on PostgreSQL and MySQL 2014-08-19 08:24:28 +03:00
tox.ini Gate-supporting files for functional tests 2014-08-25 11:31:43 +12:00
uninstall.sh Add uninstall script for Heat 2012-06-23 22:41:30 -04:00