summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2012-02-06 16:29:30 -0800
committerVishvananda Ishaya <vishvananda@gmail.com>2012-02-07 17:14:56 -0800
commit13b82dbbcfe280eda15fd9248a494cb8ce4e5056 (patch)
tree736df371cc415bd2f80706a3c3ca7a78d12cfa29 /etc
parentb0a708f67407256a449414a000b070752e51dba2 (diff)
downloadnova-13b82dbbcfe280eda15fd9248a494cb8ce4e5056.tar.gz
nova-13b82dbbcfe280eda15fd9248a494cb8ce4e5056.tar.xz
nova-13b82dbbcfe280eda15fd9248a494cb8ce4e5056.zip
Optimizes ec2 keystone usage and handles errors
* breaks out gen_request_id so we can return it in error msg * breaks out ec2_error so we can use it in multiple middlewares * adds new middleware (remove old after devstack change) * skips extra call to keystone for second authentication * fixes bug 922373 Change-Id: If765d149289255b0bf0e0c1b647ebb547ce5759b
Diffstat (limited to 'etc')
-rw-r--r--etc/nova/api-paste.ini5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/nova/api-paste.ini b/etc/nova/api-paste.ini
index 496f4f5d2..fe11b1d41 100644
--- a/etc/nova/api-paste.ini
+++ b/etc/nova/api-paste.ini
@@ -39,7 +39,7 @@ pipeline = ec2faultwrap logrequest ec2noauth cloudrequest authorizer validator e
# NOTE(vish): use the following pipeline for deprecated auth
# pipeline = ec2faultwrap logrequest authenticate cloudrequest authorizer validator ec2executor
# NOTE(vish): use the following pipeline for keystone auth
-# pipeline = ec2faultwrap logrequest totoken authtoken keystonecontext cloudrequest authorizer validator ec2executor
+# pipeline = ec2faultwrap logrequest ec2keystoneauth cloudrequest authorizer validator ec2executor
[filter:ec2faultwrap]
paste.filter_factory = nova.api.ec2:FaultWrapper.factory
@@ -53,6 +53,9 @@ paste.filter_factory = nova.api.ec2:Lockout.factory
[filter:totoken]
paste.filter_factory = nova.api.ec2:EC2Token.factory
+[filter:ec2keystoneauth]
+paste.filter_factory = nova.api.ec2:EC2KeystoneAuth.factory
+
[filter:ec2noauth]
paste.filter_factory = nova.api.ec2:NoAuth.factory