--- neutron/auth.py.orig 2017-02-22 20:30:35.339674946 +0000 +++ neutron/auth.py 2017-03-01 19:41:22.096029888 +0000 @@ -52,10 +52,14 @@ auth_token = req.headers.get('X_AUTH_TOKEN', req.headers.get('X_STORAGE_TOKEN')) + # Figure out if we are the configured admin project + is_admin_project = req.headers.get('X_IS_ADMIN_PROJECT') + # Create a context with the authentication data ctx = context.Context(user_id, tenant_id, roles=roles, user_name=user_name, tenant_name=tenant_name, - request_id=req_id, auth_token=auth_token) + request_id=req_id, auth_token=auth_token, + is_admin_project=is_admin_project) # Inject the context... req.environ['neutron.context'] = ctx