The nova.exception Module

Nova base exception handling.

Includes decorator for re-raising Nova-type exceptions.

SHOULD include dedicated exception logging.

exception AdminRequired(message=None, **kwargs)

Bases: nova.exception.NotAuthorized

message = u'User does not have admin privileges'
exception AgentBuildNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'No agent-build associated with id %(id)s.'
exception AggregateError(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u"Aggregate %(aggregate_id)s: action '%(action)s' caused an error: %(reason)s."
exception AggregateHostExists(message=None, **kwargs)

Bases: nova.exception.Duplicate

message = u'Aggregate %(aggregate_id)s already has host %(host)s.'
exception AggregateHostNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Aggregate %(aggregate_id)s has no host %(host)s.'
exception AggregateMetadataNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Aggregate %(aggregate_id)s has no metadata with key %(metadata_key)s.'
exception AggregateNameExists(message=None, **kwargs)

Bases: nova.exception.Duplicate

message = u'Aggregate %(aggregate_name)s already exists.'
exception AggregateNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Aggregate %(aggregate_id)s could not be found.'
exception Base64Exception(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Invalid Base 64 data for file %(path)s'
exception CannotDisassociateAutoAssignedFloatingIP(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Cannot disassociate auto assigined floating ip'
exception CannotResizeToSameFlavor(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'When resizing, instances must change flavor!'
exception CellError(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Exception received during cell processing: %(exc_name)s.'
exception CellMaxHopCountReached(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Cell message has reached maximum hop count: %(hop_count)s'
exception CellNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u"Cell %(cell_name)s doesn't exist."
exception CellRoutingInconsistency(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Inconsistency in cell routing: %(reason)s'
exception CellServiceAPIMethodNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Service API method not found: %(detail)s'
exception CellTimeout(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Timeout waiting for response from cell'
exception CertificateNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Certificate %(certificate_id)s not found.'
exception CidrConflict(message=None, **kwargs)

Bases: nova.exception.NovaException

code = 409
message = u'There was a conflict when trying to complete your request.'
exception ClassNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Class %(class_name)s could not be found: %(exception)s'
exception ComputeHostNotFound(message=None, **kwargs)

Bases: nova.exception.HostNotFound

message = u'Compute host %(host)s could not be found.'
exception ComputeResourcesUnavailable(message=None, **kwargs)

Bases: nova.exception.ServiceUnavailable

message = u'Insufficient compute resources.'
exception ComputeServiceUnavailable(message=None, **kwargs)

Bases: nova.exception.ServiceUnavailable

message = u'Compute service of %(host)s is unavailable at this time.'
exception ConfigDriveMountFailed(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Could not mount vfat config drive. %(operation)s failed. Error: %(error)s'
exception ConfigDriveUnknownFormat(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Unknown config drive format %(format)s. Select one of iso9660 or vfat.'
exception ConfigNotFound(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Could not find config at %(path)s'
exception ConsoleNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Console %(console_id)s could not be found.'
exception ConsoleNotFoundForInstance(message=None, **kwargs)

Bases: nova.exception.ConsoleNotFound

message = u'Console for instance %(instance_uuid)s could not be found.'
exception ConsoleNotFoundInPoolForInstance(message=None, **kwargs)

Bases: nova.exception.ConsoleNotFound

message = u'Console for instance %(instance_uuid)s in pool %(pool_id)s could not be found.'
exception ConsolePoolNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Console pool %(pool_id)s could not be found.'
exception ConsolePoolNotFoundForHostType(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Console pool of type %(console_type)s for compute host %(compute_host)s on proxy host %(host)s not found.'
exception ConsoleTypeInvalid(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Invalid console type %(console_type)s'
exception ConstraintNotMet(message=None, **kwargs)

Bases: nova.exception.NovaException

code = 412
message = u'Constraint not met.'
exception ConvertedException(code=0, title='', explanation='')

Bases: webob.exc.WSGIHTTPException

exception CouldNotFetchImage(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Could not fetch image %(image_id)s'
exception CouldNotFetchMetrics(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Could not fetch bandwidth/cpu/disk metrics for this host.'
exception CouldNotUploadImage(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Could not upload image %(image_id)s'
exception CryptoCAFileNotFound(message=None, **kwargs)

Bases: nova.exception.FileNotFound

message = u'The CA file for %(project)s could not be found'
exception CryptoCRLFileNotFound(message=None, **kwargs)

Bases: nova.exception.FileNotFound

message = u'The CRL file for %(project)s could not be found'
exception DBNotAllowed(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'%(binary)s attempted direct database access which is not allowed by policy'
exception DatastoreNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Could not find the datastore reference(s) which the VM uses.'
exception DecryptionFailure(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Failed to decrypt text: %(reason)s'
exception DestinationDiskExists(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'The supplied disk path (%(path)s) already exists, it is expected not to exist.'
exception DestinationHypervisorTooOld(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'The instance requires a newer hypervisor version than has been provided.'
exception DeviceIsBusy(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'The supplied device (%(device)s) is busy.'
exception DevicePathInUse(message=None, **kwargs)

Bases: nova.exception.Invalid

code = 409
message = u'The supplied device path (%(path)s) is in use.'
exception DiskNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'No disk at %(location)s'
exception Duplicate(message=None, **kwargs)

Bases: nova.exception.NovaException

exception DuplicateVlan(message=None, **kwargs)

Bases: nova.exception.Duplicate

message = u'Detected existing vlan with id %(vlan)d'
exception EC2APIError(message=None, code=None)

Bases: nova.exception.NovaException

message = u'Unknown'
exception EncryptionFailure(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Failed to encrypt text: %(reason)s'
exception FileNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'File %(file_path)s could not be found.'
exception FixedIpAlreadyInUse(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Fixed IP address %(address)s is already in use on instance %(instance_uuid)s.'
exception FixedIpAssociatedWithMultipleInstances(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u"More than one instance is associated with fixed ip address '%(address)s'."
exception FixedIpInvalid(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Fixed IP address %(address)s is invalid.'
exception FixedIpLimitExceeded(message=None, **kwargs)

Bases: nova.exception.QuotaError

message = u'Maximum number of fixed ips exceeded'
exception FixedIpNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'No fixed IP associated with id %(id)s.'
exception FixedIpNotFoundForAddress(message=None, **kwargs)

Bases: nova.exception.FixedIpNotFound

message = u'Fixed ip not found for address %(address)s.'
exception FixedIpNotFoundForInstance(message=None, **kwargs)

Bases: nova.exception.FixedIpNotFound

message = u'Instance %(instance_uuid)s has zero fixed ips.'
exception FixedIpNotFoundForNetwork(message=None, **kwargs)

Bases: nova.exception.FixedIpNotFound

message = u'Fixed IP address (%(address)s) does not exist in network (%(network_uuid)s).'
exception FixedIpNotFoundForNetworkHost(message=None, **kwargs)

Bases: nova.exception.FixedIpNotFound

message = u'Network host %(host)s has zero fixed ips in network %(network_id)s.'
exception FixedIpNotFoundForSpecificInstance(message=None, **kwargs)

Bases: nova.exception.FixedIpNotFound

message = u"Instance %(instance_uuid)s doesn't have fixed ip '%(ip)s'."
exception FlavorAccessExists(message=None, **kwargs)

Bases: nova.exception.Duplicate

message = u'Flavor access alreay exists for flavor %(flavor_id)s and project %(project_id)s combination.'
exception FlavorAccessNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Flavor access not found for %(flavor_id)s / %(project_id)s combination.'
exception FlavorNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Flavor %(flavor_id)s could not be found.'
exception FloatingIpAssociated(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Floating ip %(address)s is associated.'
exception FloatingIpDNSExists(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'The DNS entry %(name)s already exists in domain %(domain)s.'
exception FloatingIpExists(message=None, **kwargs)

Bases: nova.exception.Duplicate

message = u'Floating ip %(address)s already exists.'
exception FloatingIpLimitExceeded(message=None, **kwargs)

Bases: nova.exception.QuotaError

message = u'Maximum number of floating ips exceeded'
exception FloatingIpMultipleFoundForAddress(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Multiple floating ips are found for address %(address)s.'
exception FloatingIpNotAssociated(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Floating ip %(address)s is not associated.'
exception FloatingIpNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Floating ip not found for id %(id)s.'
exception FloatingIpNotFoundForAddress(message=None, **kwargs)

Bases: nova.exception.FloatingIpNotFound

message = u'Floating ip not found for address %(address)s.'
exception FloatingIpNotFoundForHost(message=None, **kwargs)

Bases: nova.exception.FloatingIpNotFound

message = u'Floating ip not found for host %(host)s.'
exception FloatingIpPoolNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Floating ip pool not found.'
safe = True
exception GlanceConnectionFailed(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Connection to glance host %(host)s:%(port)s failed: %(reason)s'
exception HostBinaryNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Could not find binary %(binary)s on host %(host)s.'
exception HostNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Host %(host)s could not be found.'
exception ISCSITargetNotFoundForVolume(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'No target id found for volume %(volume_id)s.'
exception ImageNotActive(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Image %(image_id)s is not active.'
exception ImageNotAuthorized(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Not authorized for image %(image_id)s.'
exception ImageNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Image %(image_id)s could not be found.'
exception ImageNotFoundEC2(message=None, **kwargs)

Bases: nova.exception.ImageNotFound

message = u'Image %(image_id)s could not be found. The nova EC2 API assigns image ids dynamically when they are listed for the first time. Have you listed image ids since adding this image?'
exception ImageRotationNotAllowed(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Rotation is not allowed for snapshots'
exception ImageTooLarge(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Image is larger than instance type allows'
exception ImageUnacceptable(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Image %(image_id)s is unacceptable: %(reason)s'
exception InstanceActionEventNotFound(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Event %(event)s not found for action id %(action_id)s'
exception InstanceActionNotFound(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Action for request_id %(request_id)s on instance %(instance_uuid)s not found'
exception InstanceDeployFailure(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Failed to deploy instance: %(reason)s'
exception InstanceExists(message=None, **kwargs)

Bases: nova.exception.Duplicate

message = u'Instance %(name)s already exists.'
exception InstanceInfoCacheNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Info cache for instance %(instance_uuid)s could not be found.'
exception InstanceInvalidState(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Instance %(instance_uuid)s in %(attr)s %(state)s. Cannot %(method)s while the instance is in this state.'
exception InstanceIsLocked(message=None, **kwargs)

Bases: nova.exception.InstanceInvalidState

message = u'Instance %(instance_uuid)s is locked'
exception InstanceMetadataNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Instance %(instance_uuid)s has no metadata with key %(metadata_key)s.'
exception InstanceNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Instance %(instance_id)s could not be found.'
exception InstanceNotInRescueMode(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Instance %(instance_id)s is not in rescue mode'
exception InstanceNotReady(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Instance %(instance_id)s is not ready'
exception InstanceNotRescuable(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Instance %(instance_id)s cannot be rescued: %(reason)s'
exception InstanceNotRunning(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Instance %(instance_id)s is not running.'
exception InstancePasswordSetFailed(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Failed to set admin password on %(instance)s because %(reason)s'
safe = True
exception InstancePowerOffFailure(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Failed to power off instance: %(reason)s.'
exception InstancePowerOnFailure(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Failed to power on instance: %(reason)s.'
exception InstanceRebootFailure(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Failed to reboot instance: %(reason)s'
exception InstanceRecreateNotSupported(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Instance recreate is not implemented by this virt driver.'
exception InstanceResumeFailure(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Failed to resume instance: %(reason)s.'
exception InstanceSuspendFailure(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Failed to suspend instance: %(reason)s'
exception InstanceSystemMetadataNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Instance %(instance_uuid)s has no system metadata with key %(metadata_key)s.'
exception InstanceTerminationFailure(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Failed to terminate instance: %(reason)s'
exception InstanceTypeCreateFailed(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Unable to create instance type'
exception InstanceTypeDiskTooSmall(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u"Instance type's disk is too small for requested image."
exception InstanceTypeExists(message=None, **kwargs)

Bases: nova.exception.Duplicate

message = u'Instance Type with name %(name)s already exists.'
exception InstanceTypeExtraSpecsNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Instance Type %(instance_type_id)s has no extra specs with key %(extra_specs_key)s.'
exception InstanceTypeIdExists(message=None, **kwargs)

Bases: nova.exception.Duplicate

message = u'Instance Type with ID %(flavor_id)s already exists.'
exception InstanceTypeMemoryTooSmall(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u"Instance type's memory is too small for requested image."
exception InstanceTypeNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Instance type %(instance_type_id)s could not be found.'
exception InstanceTypeNotFoundByName(message=None, **kwargs)

Bases: nova.exception.InstanceTypeNotFound

message = u'Instance type with name %(instance_type_name)s could not be found.'
exception InstanceUnacceptable(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Instance %(instance_id)s is unacceptable: %(reason)s'
exception InstanceUnknownCell(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Cell is not known for instance %(instance_uuid)s'
exception InstanceUserDataMalformed(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'User data needs to be valid base 64.'
exception InstanceUserDataTooLarge(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'User data too large. User data must be no larger than %(maxsize)s bytes once base64 encoded. Your data is %(length)d bytes'
exception InsufficientFreeMemory(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Insufficient free memory on compute node to start %(uuid)s.'
exception InterfaceAttachFailed(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Failed to attach network adapter device to %(instance)s'
exception InterfaceDetachFailed(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Failed to detach network adapter device from %(instance)s'
exception Invalid(message=None, **kwargs)

Bases: nova.exception.NovaException

code = 400
message = u'Unacceptable parameters.'
exception InvalidAggregateAction(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u"Cannot perform action '%(action)s' on aggregate %(aggregate_id)s. Reason: %(reason)s."
exception InvalidBDM(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Block Device Mapping is Invalid.'
exception InvalidBDMSnapshot(message=None, **kwargs)

Bases: nova.exception.InvalidBDM

message = u'Block Device Mapping is Invalid: failed to get snapshot %(id)s.'
exception InvalidBDMVolume(message=None, **kwargs)

Bases: nova.exception.InvalidBDM

message = u'Block Device Mapping is Invalid: failed to get volume %(id)s.'
exception InvalidCPUInfo(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Unacceptable CPU info: %(reason)s'
exception InvalidCidr(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Invalid cidr %(cidr)s.'
exception InvalidContentType(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Invalid content type %(content_type)s.'
exception InvalidDevicePath(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'The supplied device path (%(path)s) is invalid.'
exception InvalidDiskFormat(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Disk format %(disk_format)s is not acceptable'
exception InvalidEc2Id(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Ec2 id %(ec2_id)s is unacceptable.'
exception InvalidGroup(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Group not valid. Reason: %(reason)s'
exception InvalidHypervisorType(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'The supplied hypervisor type of is invalid.'
exception InvalidID(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Invalid ID received %(id)s.'
exception InvalidImageRef(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Invalid image href %(image_href)s.'
exception InvalidInput(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Invalid input received: %(reason)s'
exception InvalidInstanceIDMalformed(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Invalid id: %(val)s (expecting "i-...").'
exception InvalidIpAddressError(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'%(address)s is not a valid IP v4/6 address.'
exception InvalidIpProtocol(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Invalid IP protocol %(protocol)s.'
exception InvalidKeypair(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Keypair data is invalid'
exception InvalidLocalStorage(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'%(path)s is not on local storage: %(reason)s'
exception InvalidMetadata(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Invalid metadata: %(reason)s'
exception InvalidMetadataSize(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Invalid metadata size: %(reason)s'
exception InvalidParameterValue(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'%(err)s'
exception InvalidPeriodicTaskArg(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Unexpected argument for periodic task creation: %(arg)s.'
exception InvalidPortRange(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Invalid port range %(from_port)s:%(to_port)s. %(msg)s'
exception InvalidQuotaValue(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Change would make usage less than 0 for the following resources: %(unders)s'
exception InvalidRequest(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'The request is invalid.'
exception InvalidReservationExpiration(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Invalid reservation expiration %(expire)s.'
exception InvalidSharedStorage(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'%(path)s is not on shared storage: %(reason)s'
exception InvalidSortKey(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Sort key supplied was not valid.'
exception InvalidUUID(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Expected a uuid but received %(uuid)s.'
exception InvalidUnicodeParameter(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Invalid Parameter: Unicode is not supported by the current database.'
exception InvalidVLANPortGroup(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'vSwitch which contains the port group %(bridge)s is not associated with the desired physical adapter. Expected vSwitch is %(expected)s, but the one associated is %(actual)s.'
exception InvalidVLANTag(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'VLAN tag is not appropriate for the port group %(bridge)s. Expected VLAN tag is %(tag)s, but the one associated with the port group is %(pgroup)s.'
exception InvalidVolume(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Invalid volume: %(reason)s'
exception KeyPairExists(message=None, **kwargs)

Bases: nova.exception.Duplicate

message = u'Key pair %(key_name)s already exists.'
exception KeypairLimitExceeded(message=None, **kwargs)

Bases: nova.exception.QuotaError

message = u'Maximum number of key pairs exceeded'
exception KeypairNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Keypair %(name)s not found for user %(user_id)s'
exception MalformedRequestBody(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Malformed message body: %(reason)s'
exception MarkerNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Marker %(marker)s could not be found.'
exception MetadataLimitExceeded(message=None, **kwargs)

Bases: nova.exception.QuotaError

message = u'Maximum number of metadata items exceeds %(allowed)d'
exception MigrationError(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Migration error: %(reason)s'
exception MigrationNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Migration %(migration_id)s could not be found.'
exception MigrationNotFoundByStatus(message=None, **kwargs)

Bases: nova.exception.MigrationNotFound

message = u'Migration not found for instance %(instance_id)s with status %(status)s.'
exception MigrationPreCheckError(message=None, **kwargs)

Bases: nova.exception.MigrationError

message = u'Migration pre-check error: %(reason)s'
exception NetworkAdapterNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Network adapter %(adapter)s could not be found.'
exception NetworkDuplicated(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Network %(network_id)s is duplicated.'
exception NetworkInUse(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Network %(network_id)s is still in use.'
exception NetworkNotCreated(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'%(req)s is required to create a network.'
exception NetworkNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Network %(network_id)s could not be found.'
exception NetworkNotFoundForBridge(message=None, **kwargs)

Bases: nova.exception.NetworkNotFound

message = u'Network could not be found for bridge %(bridge)s'
exception NetworkNotFoundForCidr(message=None, **kwargs)

Bases: nova.exception.NetworkNotFound

message = u'Network could not be found with cidr %(cidr)s.'
exception NetworkNotFoundForInstance(message=None, **kwargs)

Bases: nova.exception.NetworkNotFound

message = u'Network could not be found for instance %(instance_id)s.'
exception NetworkNotFoundForProject(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Either Network uuid %(network_uuid)s is not present or is not assigned to the project %(project_id)s.'
exception NetworkNotFoundForUUID(message=None, **kwargs)

Bases: nova.exception.NetworkNotFound

message = u'Network could not be found for uuid %(uuid)s'
exception NoCellsAvailable(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'No cells available matching scheduling criteria.'
exception NoFilesFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Zero files could be found.'
exception NoFixedIpsDefined(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Zero fixed ips could be found.'
exception NoFloatingIpInterface(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Interface %(interface)s not found.'
exception NoFloatingIpsDefined(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Zero floating ips exist.'
exception NoMoreFixedIps(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Zero fixed ips available.'
exception NoMoreFloatingIps(message=None, **kwargs)

Bases: nova.exception.FloatingIpNotFound

message = u'Zero floating ips available.'
safe = True
exception NoNetworksFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'No networks defined.'
exception NoUniqueMatch(message=None, **kwargs)

Bases: nova.exception.NovaException

code = 409
message = u'No Unique Match Found.'
exception NoValidHost(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'No valid host was found. %(reason)s'
exception NodeNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Node %(node_id)s could not be found.'
exception NodeNotFoundByUUID(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Node with UUID %(node_uuid)s could not be found.'
exception NotAllowed(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Action not allowed.'
exception NotAuthorized(message=None, **kwargs)

Bases: nova.exception.NovaException

code = 403
message = u'Not authorized.'
exception NotFound(message=None, **kwargs)

Bases: nova.exception.NovaException

code = 404
message = u'Resource could not be found.'
exception NovaException(message=None, **kwargs)

Bases: exceptions.Exception

Base Nova Exception

To correctly use this class, inherit from it and define a ‘message’ property. That message will get printf’d with the keyword arguments provided to the constructor.

code = 500
format_message()
headers = {}
message = u'An unknown exception occurred.'
safe = False
exception OnsetFileContentLimitExceeded(message=None, **kwargs)

Bases: nova.exception.QuotaError

message = u'Personality file content too long'
exception OnsetFileLimitExceeded(message=None, **kwargs)

Bases: nova.exception.QuotaError

message = u'Personality file limit exceeded'
exception OnsetFilePathLimitExceeded(message=None, **kwargs)

Bases: nova.exception.QuotaError

message = u'Personality file path too long'
exception OverQuota(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Quota exceeded for resources: %(overs)s'
exception PasteAppNotFound(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u"Could not load paste app '%(name)s' from %(path)s"
exception PolicyNotAuthorized(message=None, **kwargs)

Bases: nova.exception.NotAuthorized

message = u"Policy doesn't allow %(action)s to be performed."
exception PortInUse(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Port %(port_id)s is still in use.'
exception PortNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Port id %(port_id)s could not be found.'
exception PortNotFree(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'No free port available for instance %(instance)s.'
exception PortNotUsable(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Port %(port_id)s not usable for instance %(instance)s.'
exception ProcessExecutionError(stdout=None, stderr=None, exit_code=None, cmd=None, description=None)

Bases: exceptions.IOError

exception ProjectNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Project %(project_id)s could not be found.'
exception ProjectQuotaNotFound(message=None, **kwargs)

Bases: nova.exception.QuotaNotFound

message = u'Quota for project %(project_id)s could not be found.'
exception QuotaClassNotFound(message=None, **kwargs)

Bases: nova.exception.QuotaNotFound

message = u'Quota class %(class_name)s could not be found.'
exception QuotaError(message=None, **kwargs)

Bases: nova.exception.NovaException

code = 413
headers = {'Retry-After': 0}
message = u'Quota exceeded: code=%(code)s'
safe = True
exception QuotaNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Quota could not be found'
exception QuotaResourceUnknown(message=None, **kwargs)

Bases: nova.exception.QuotaNotFound

message = u'Unknown quota resources %(unknown)s.'
exception QuotaUsageNotFound(message=None, **kwargs)

Bases: nova.exception.QuotaNotFound

message = u'Quota usage for project %(project_id)s could not be found.'
exception ReservationNotFound(message=None, **kwargs)

Bases: nova.exception.QuotaNotFound

message = u'Quota reservation %(uuid)s could not be found.'
exception ResizeError(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Resize error: %(reason)s'
exception RotationRequiredForBackup(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Rotation param is required for backup image_type'
exception SchedulerCostFunctionNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Scheduler cost function %(cost_fn_str)s could not be found.'
exception SchedulerHostFilterNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Scheduler Host Filter %(filter_name)s could not be found.'
exception SchedulerWeightFlagNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Scheduler weight flag not found: %(flag_name)s'
exception SecurityGroupCannotBeApplied(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Network requires port_security_enabled and subnet associated in order to apply security groups.'
exception SecurityGroupDefaultRuleNotFound(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Security group default rule (%rule_id)s not found.'
exception SecurityGroupExistsForInstance(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Security group %(security_group_id)s is already associated with the instance %(instance_id)s'
exception SecurityGroupLimitExceeded(message=None, **kwargs)

Bases: nova.exception.QuotaError

message = u'Maximum number of security groups or rules exceeded'
exception SecurityGroupNotExistsForInstance(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Security group %(security_group_id)s is not associated with the instance %(instance_id)s'
exception SecurityGroupNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Security group %(security_group_id)s not found.'
exception SecurityGroupNotFoundForProject(message=None, **kwargs)

Bases: nova.exception.SecurityGroupNotFound

message = u'Security group %(security_group_id)s not found for project %(project_id)s.'
exception SecurityGroupNotFoundForRule(message=None, **kwargs)

Bases: nova.exception.SecurityGroupNotFound

message = u'Security group with rule %(rule_id)s not found.'
exception ServiceGroupUnavailable(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'The service from servicegroup driver %(driver) is temporarily unavailable.'
exception ServiceNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Service %(service_id)s could not be found.'
exception ServiceUnavailable(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Service is unavailable at this time.'
exception SnapshotNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Snapshot %(snapshot_id)s could not be found.'
exception StorageRepositoryNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Cannot find SR to read/write VDI.'
exception SwitchNotFoundForNetworkAdapter(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Virtual switch associated with the network adapter %(adapter)s not found.'
exception TaskAlreadyRunning(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Task %(task_name)s is already running on host %(host)s'
exception TaskNotRunning(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Task %(task_name)s is not running on host %(host)s'
exception TooManyInstances(message=None, **kwargs)

Bases: nova.exception.QuotaError

message = u'Quota exceeded for %(overs)s: Requested %(req)s, but already used %(used)d of %(allowed)d %(resource)s'
exception UnableToMigrateToSelf(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Unable to migrate instance (%(instance_id)s) to current host (%(host)s).'
exception UnexpectedTaskStateError(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'unexpected task state: expecting %(expected)s but the actual state is %(actual)s'
exception UnsupportedHardware(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u"Requested hardware '%(model)s' is not supported by the '%(virt)s' virt driver"
exception UnsupportedVirtType(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u"Virtualization type '%(virt)s' is not supported by this compute driver"
exception VirtualInterfaceCreateException(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'Virtual Interface creation failed'
exception VirtualInterfaceMacAddressException(message=None, **kwargs)

Bases: nova.exception.NovaException

message = u'5 attempts to create virtual interfacewith unique mac address failed'
exception VolumeDriverNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Could not find a handler for %(driver_type)s volume.'
exception VolumeNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

message = u'Volume %(volume_id)s could not be found.'
exception VolumeUnattached(message=None, **kwargs)

Bases: nova.exception.Invalid

message = u'Volume %(volume_id)s is not attached to anything'
wrap_exception(notifier=None, publisher_id=None, event_type=None, level=None)

This decorator wraps a method to catch any exceptions that may get thrown. It logs the exception as well as optionally sending it to the notification system.

Previous topic

The nova.db.sqlalchemy.utils Module

Next topic

The nova.filters Module

This Page