novaclient.exceptions
Module¶Exception definitions.
novaclient.exceptions.
AmbiguousEndpoints
(endpoints=None)¶Bases: exceptions.Exception
Found more than one matching endpoint in Service Catalog.
novaclient.exceptions.
AuthorizationFailure
¶Bases: exceptions.Exception
novaclient.exceptions.
BadRequest
(code, message=None, details=None, request_id=None, url=None, method=None)¶Bases: novaclient.exceptions.ClientException
HTTP 400 - Bad request: you sent some malformed data.
http_status
= 400¶message
= 'Bad request'¶novaclient.exceptions.
ClientException
(code, message=None, details=None, request_id=None, url=None, method=None)¶Bases: exceptions.Exception
The base exception class for all exceptions this library raises.
message
= 'Unknown Error'¶novaclient.exceptions.
CommandError
¶Bases: exceptions.Exception
novaclient.exceptions.
Conflict
(code, message=None, details=None, request_id=None, url=None, method=None)¶Bases: novaclient.exceptions.ClientException
HTTP 409 - Conflict
http_status
= 409¶message
= 'Conflict'¶novaclient.exceptions.
ConnectionRefused
(response=None)¶Bases: exceptions.Exception
Connection refused: the server refused the connection.
novaclient.exceptions.
EndpointNotFound
¶Bases: exceptions.Exception
Could not find Service or Region in Service Catalog.
novaclient.exceptions.
Forbidden
(code, message=None, details=None, request_id=None, url=None, method=None)¶Bases: novaclient.exceptions.ClientException
HTTP 403 - Forbidden: your credentials don’t give you access to this resource.
http_status
= 403¶message
= 'Forbidden'¶novaclient.exceptions.
HTTPNotImplemented
(code, message=None, details=None, request_id=None, url=None, method=None)¶Bases: novaclient.exceptions.ClientException
HTTP 501 - Not Implemented: the server does not support this operation.
http_status
= 501¶message
= 'Not Implemented'¶novaclient.exceptions.
InstanceInDeletedState
¶Bases: exceptions.Exception
Instance is in the deleted state.
novaclient.exceptions.
InvalidUsage
¶Bases: exceptions.RuntimeError
This function call is invalid in the way you are using this client.
Due to the transition to using keystoneauth some function calls are no longer available. You should make a similar call to the session object instead.
novaclient.exceptions.
MethodNotAllowed
(code, message=None, details=None, request_id=None, url=None, method=None)¶Bases: novaclient.exceptions.ClientException
HTTP 405 - Method Not Allowed
http_status
= 405¶message
= 'Method Not Allowed'¶novaclient.exceptions.
NoTokenLookupException
¶Bases: exceptions.Exception
This form of authentication does not support looking up endpoints from an existing token.
novaclient.exceptions.
NoUniqueMatch
¶Bases: exceptions.Exception
novaclient.exceptions.
NotAcceptable
(code, message=None, details=None, request_id=None, url=None, method=None)¶Bases: novaclient.exceptions.ClientException
HTTP 406 - Not Acceptable
http_status
= 406¶message
= 'Not Acceptable'¶novaclient.exceptions.
NotFound
(code, message=None, details=None, request_id=None, url=None, method=None)¶Bases: novaclient.exceptions.ClientException
HTTP 404 - Not found
http_status
= 404¶message
= 'Not found'¶novaclient.exceptions.
OverLimit
(*args, **kwargs)¶Bases: novaclient.exceptions.RetryAfterException
HTTP 413 - Over limit: you’re over the API limits for this time period.
http_status
= 413¶message
= 'Over limit'¶novaclient.exceptions.
RateLimit
(*args, **kwargs)¶Bases: novaclient.exceptions.RetryAfterException
HTTP 429 - Rate limit: you’ve sent too many requests for this time period.
http_status
= 429¶message
= 'Rate limit'¶novaclient.exceptions.
ResourceInErrorState
(obj)¶Bases: exceptions.Exception
Resource is in the error state.
novaclient.exceptions.
ResourceNotFound
¶Bases: exceptions.Exception
Error in getting the resource.
novaclient.exceptions.
RetryAfterException
(*args, **kwargs)¶Bases: novaclient.exceptions.ClientException
The base exception class for ClientExceptions that use Retry-After header.
Bases: novaclient.exceptions.ClientException
HTTP 401 - Unauthorized: bad credentials.
novaclient.exceptions.
UnsupportedAttribute
(argument_name, start_version, end_version=None)¶Bases: exceptions.AttributeError
Indicates that the user is trying to transmit the argument to a method, which is not supported by selected version.
novaclient.exceptions.
UnsupportedConsoleType
(console_type)¶Bases: exceptions.Exception
Indicates that the user is trying to use an unsupported console type when retrieving console urls of servers.
novaclient.exceptions.
UnsupportedVersion
¶Bases: exceptions.Exception
Indicates that the user is trying to use an unsupported version of the API.
novaclient.exceptions.
VersionNotFoundForAPIMethod
(version, method)¶Bases: exceptions.Exception
msg_fmt
= "API version '%(vers)s' is not supported on '%(method)s' method."¶novaclient.exceptions.
from_response
(response, body, url, method=None)¶Return an instance of an ClientException or subclass based on a requests response.
Usage:
resp, body = requests.request(...)
if resp.status_code != 200:
raise exception_from_response(resp, rest.text)
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.