The keystone.exception Module

exception keystone.exception.AdditionalAuthRequired(auth_response=None, **kwargs)

Bases: keystone.exception.AuthPluginException

Additional authentications steps required.

exception keystone.exception.AuthMethodNotSupported(*args, **kwargs)

Bases: keystone.exception.AuthPluginException

Attempted to authenticate with an unsupported method.

exception keystone.exception.AuthPluginException(*args, **kwargs)

Bases: keystone.exception.Unauthorized

Authentication plugin error.

exception keystone.exception.Conflict(message=None, **kwargs)

Bases: keystone.exception.Error

Conflict occurred attempting to store %(type)s.

%(details)s

code = 409
title = 'Conflict'
exception keystone.exception.CredentialNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find credential: %(credential_id)s

exception keystone.exception.DomainNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find domain: %(domain_id)s

exception keystone.exception.EndpointNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find endpoint: %(endpoint_id)s

exception keystone.exception.Error(message=None, **kwargs)

Bases: exceptions.StandardError

Base error class.

Child classes should define an HTTP status code, title, and a doc string.

code = None
title = None
exception keystone.exception.Forbidden(message=None, **kwargs)

Bases: keystone.exception.SecurityError

You are not authorized to perform the requested action.

code = 403
title = 'Not Authorized'
exception keystone.exception.ForbiddenAction(message=None, **kwargs)

Bases: keystone.exception.Forbidden

You are not authorized to perform the requested action: %(action)s

exception keystone.exception.GroupNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find group: %(group_id)s

exception keystone.exception.MalformedEndpoint(message=None, **kwargs)

Bases: keystone.exception.UnexpectedError

Malformed endpoint URL (see ERROR log for details): %(endpoint)s

exception keystone.exception.MetadataNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

An unhandled exception has occurred: Could not find metadata.

exception keystone.exception.NotFound(message=None, **kwargs)

Bases: keystone.exception.Error

Could not find: %(target)s

code = 404
title = 'Not Found'
exception keystone.exception.NotImplemented(message=None, **kwargs)

Bases: keystone.exception.Error

The action you have requested has not been implemented.

code = 501
title = 'Not Implemented'
exception keystone.exception.PolicyNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find policy: %(policy_id)s

exception keystone.exception.ProjectNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find project: %(project_id)s

exception keystone.exception.RequestTooLarge(message=None, **kwargs)

Bases: keystone.exception.Error

Request is too large.

code = 413
title = 'Request is too large.'
exception keystone.exception.RoleNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find role: %(role_id)s

exception keystone.exception.SecurityError(message=None, **kwargs)

Bases: keystone.exception.Error

Avoids exposing details of security failures, unless in debug mode.

exception keystone.exception.ServiceNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find service: %(service_id)s

exception keystone.exception.StringLengthExceeded(message=None, **kwargs)

Bases: keystone.exception.ValidationError

The length of string “%(string)s” exceeded the limit of column %(type)s(CHAR(%(length)d)).

exception keystone.exception.TokenNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find token: %(token_id)s

exception keystone.exception.TrustNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find trust: %(trust_id)s

exception keystone.exception.Unauthorized(message=None, **kwargs)

Bases: keystone.exception.SecurityError

The request you have made requires authentication.

code = 401
title = 'Not Authorized'
exception keystone.exception.UnexpectedError(message=None, **kwargs)

Bases: keystone.exception.Error

An unexpected error prevented the server from fulfilling your request.

%(exception)s

code = 500
title = 'Internal Server Error'
exception keystone.exception.UserNotFound(message=None, **kwargs)

Bases: keystone.exception.NotFound

Could not find user: %(user_id)s

exception keystone.exception.ValidationError(message=None, **kwargs)

Bases: keystone.exception.Error

Expecting to find %(attribute)s in %(target)s.

The server could not comply with the request since it is either malformed or otherwise incorrect.

The client is assumed to be in error.

code = 400
title = 'Bad Request'
exception keystone.exception.ValidationSizeError(message=None, **kwargs)

Bases: keystone.exception.Error

Request attribute %(attribute)s must be less than or equal to %(size)i.

The server could not comply with the request because the attribute size is invalid (too large).

The client is assumed to be in error.

code = 400
title = 'Bad Request'

Previous topic

The keystone.controllers Module

Next topic

The keystone.identity.backends.kvs Module

This Page