diff options
author | Steve Baker <sbaker@redhat.com> | 2013-03-18 16:21:49 +1300 |
---|---|---|
committer | Gabriel Hurley <gabriel@strikeawe.com> | 2013-07-03 03:48:31 -0700 |
commit | 1f71152b4b0e6bb8b599c5c7ed83284320432e88 (patch) | |
tree | c498eb1a2457afe71600dfcdf7a215275d516be2 /openstack_dashboard/exceptions.py | |
parent | 52129921003c8da8b46467a6b8d378e60d66ef1d (diff) | |
download | horizon-1f71152b4b0e6bb8b599c5c7ed83284320432e88.tar.gz |
Implementation of a Heat stacks UI.
This change implements a UI to launch, manage and delete Heat stacks.
The launch screens are implemented with a set of chained forms where
the second form is dynamically built from the template in the first step.
A significant portion of this change was derived from
the work Dan Radez <dradez@redhat.com> did on thermal:
https://github.com/steveb/heat-horizon
UX flow revisions and basic test cases by Gabriel Hurley.
Implements blueprint: heat-ui
Change-Id: I294e93bed6da9dd3553e8b4a6a1c09b7c165a555
Diffstat (limited to 'openstack_dashboard/exceptions.py')
-rw-r--r-- | openstack_dashboard/exceptions.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/openstack_dashboard/exceptions.py b/openstack_dashboard/exceptions.py index 8801fc982..81a3e8778 100644 --- a/openstack_dashboard/exceptions.py +++ b/openstack_dashboard/exceptions.py @@ -20,6 +20,7 @@ from cinderclient import exceptions as cinderclient from glanceclient.common import exceptions as glanceclient +from heatclient import exc as heatclient from keystoneclient import exceptions as keystoneclient from novaclient import exceptions as novaclient from quantumclient.common import exceptions as quantumclient @@ -34,14 +35,17 @@ UNAUTHORIZED = (keystoneclient.Unauthorized, novaclient.Forbidden, glanceclient.Unauthorized, quantumclient.Unauthorized, - quantumclient.Forbidden) + quantumclient.Forbidden, + heatclient.HTTPUnauthorized, + heatclient.HTTPForbidden) NOT_FOUND = (keystoneclient.NotFound, cinderclient.NotFound, novaclient.NotFound, glanceclient.NotFound, quantumclient.NetworkNotFoundClient, - quantumclient.PortNotFoundClient) + quantumclient.PortNotFoundClient, + heatclient.HTTPNotFound) # NOTE(gabriel): This is very broad, and may need to be dialed in. RECOVERABLE = (keystoneclient.ClientException, @@ -58,4 +62,5 @@ RECOVERABLE = (keystoneclient.ClientException, quantumclient.PortInUseClient, quantumclient.AlreadyAttachedClient, quantumclient.StateInvalidClient, - swiftclient.ClientException) + swiftclient.ClientException, + heatclient.HTTPException) |