The nova.exception Module

Nova base exception handling.

Includes decorator for re-raising Nova-type exceptions.

SHOULD include dedicated exception logging.

exception AddressOutOfRange(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'%(address)s is not within %(cidr)s.'
exception AdminRequired(message=None, **kwargs)

Bases: nova.exception.Forbidden

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

Bases: nova.exception.NovaException

msg_fmt = u'Agent-build with hypervisor %(hypervisor)s os %(os)s architecture %(architecture)s exists.'
exception AgentBuildNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

msg_fmt = u'Error during following call to agent: %(method)s'
exception AgentNotImplemented(message=None, **kwargs)

Bases: nova.exception.AgentError

msg_fmt = u'Agent does not support the call: %(method)s'
exception AgentTimeout(message=None, **kwargs)

Bases: nova.exception.AgentError

msg_fmt = u'Unable to contact guest agent. The following call timed out: %(method)s'
exception AggregateError(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.Invalid

msg_fmt = u'Requested image %(image)s has automatic disk resize disabled.'
exception BDMNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

msg_fmt = u'No Block Device Mapping with id %(id)s.'
exception Base64Exception(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

msg_fmt = u'Build of instance %(instance_uuid)s aborted: %(reason)s'
exception CPUPinningInvalid(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Cannot pin/unpin cpus %(requested)s from the following pinned set %(pinned)s'
exception CPUPinningNotSupported(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'CPU pinning is not supported by the host: %(reason)s'
exception CPUPinningUnknown(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'CPU set to pin/unpin %(requested)s must be a subset of known CPU set %(cpuset)s'
exception CannotDisassociateAutoAssignedFloatingIP(message=None, **kwargs)

Bases: nova.exception.NovaException

ec2_code = 'UnsupportedOperation'
msg_fmt = u'Cannot disassociate auto assigned floating ip'
exception CannotResizeDisk(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Server disk was unable to be resized because: %(reason)s'
exception CannotResizeToSameFlavor(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

msg_fmt = u'Cell with name %(name)s already exists.'
exception CellMappingNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

msg_fmt = u'Cell %(uuid)s has no mapping.'
exception CellMaxHopCountReached(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

msg_fmt = u'Cannot update cells configuration file.'
exception CidrConflict(message=None, **kwargs)

Bases: nova.exception.NovaException

code = 409
msg_fmt = u'Requested cidr (%(cidr)s) conflicts with existing cidr (%(other)s)'
exception CinderConnectionFailed(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Connection to cinder host failed: %(reason)s'
exception ClassNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.NotFound

msg_fmt = u'Metric %(name)s could not be found on the compute host node %(host)s.%(node)s.'
exception ComputeHostNotCreated(message=None, **kwargs)

Bases: nova.exception.HostNotFound

msg_fmt = u'Compute host %(name)s needs to be created first before updating.'
exception ComputeHostNotFound(message=None, **kwargs)

Bases: nova.exception.HostNotFound

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

Bases: nova.exception.ServiceUnavailable

msg_fmt = u'Insufficient compute resources: %(reason)s.'
exception ComputeServiceInUse(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Compute service of %(host)s is still in use.'
exception ComputeServiceUnavailable(message=None, **kwargs)

Bases: nova.exception.ServiceUnavailable

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

Bases: nova.exception.Invalid

msg_fmt = u'Invalid value for Config Drive option: %(option)s'
exception ConfigDriveMountFailed(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.ConsoleNotFound

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

Bases: nova.exception.ConsoleNotFound

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

Bases: nova.exception.NovaException

msg_fmt = u'Console pool with host %(host)s, console_type %(console_type)s and compute_host %(compute_host)s already exists.'
exception ConsolePoolNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

msg_fmt = u'The console port range %(min_port)d-%(max_port)d is exhausted.'
exception ConsoleTypeInvalid(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.NovaException

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

Bases: webob.exc.WSGIHTTPException

exception CoreAPIMissing(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Core API extensions are missing: %(missing_apis)s'
exception CouldNotFetchImage(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.FileNotFound

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

Bases: nova.exception.FileNotFound

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

msg_fmt = u'Database migration failed: %(reason)s'
exception DatastoreNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.NovaException

msg_fmt = u'Device detach failed for %(device)s: %(reason)s)'
exception DeviceIsBusy(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.NotFound

msg_fmt = u"Device '%(device)s' not found."
exception DevicePathInUse(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = u'Failed to read or write disk info file: %(reason)s'
exception DiskNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

code = 409
msg_fmt = u'Detected existing vlan with id %(vlan)d'
exception EncryptionFailure(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.Invalid

msg_fmt = u'%(typename)s in %(fieldname)s is not an instance of Enum'
exception EnumFieldUnset(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'%(fieldname)s missing field type'
exception ExternalNetworkAttachForbidden(message=None, **kwargs)

Bases: nova.exception.Forbidden

msg_fmt = u'It is not allowed to create an interface on external network %(network_uuid)s'
exception FileNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

msg_fmt = u'Fixed IP associate failed for network: %(net)s.'
exception FixedIpAssociatedWithMultipleInstances(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

msg_fmt = u'Fixed ip %(address)s already exists.'
exception FixedIpInvalid(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.QuotaError

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.FixedIpNotFound

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

Bases: nova.exception.FixedIpNotFound

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

Bases: nova.exception.FixedIpNotFound

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

Bases: nova.exception.FixedIpNotFound

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

Bases: nova.exception.FixedIpNotFound

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

msg_fmt = u'Unable to create flavor'
exception FlavorDiskSmallerThanImage(message=None, **kwargs)

Bases: nova.exception.FlavorDiskTooSmall

msg_fmt = u"Flavor's disk is too small for requested image. Flavor disk is %(flavor_size)i bytes, image is %(image_size)i bytes."
exception FlavorDiskSmallerThanMinDisk(message=None, **kwargs)

Bases: nova.exception.FlavorDiskTooSmall

msg_fmt = u"Flavor's disk is smaller than the minimum size specified in image metadata. Flavor disk is %(flavor_size)i bytes, minimum size is %(image_min_disk)i bytes."
exception FlavorDiskTooSmall(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u"The created instance's disk would be too small."
exception FlavorExists(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Flavor with name %(name)s already exists.'
exception FlavorExtraSpecUpdateCreateFailed(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Flavor %(id)s extra spec cannot be updated or created after %(retries)d retries.'
exception FlavorExtraSpecsNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

msg_fmt = u'Flavor %(flavor_id)s has no extra specs with key %(extra_specs_key)s.'
exception FlavorIdExists(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Flavor with ID %(flavor_id)s already exists.'
exception FlavorMemoryTooSmall(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u"Flavor's memory is too small for requested image."
exception FlavorNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.FlavorNotFound

msg_fmt = u'Flavor with name %(flavor_name)s could not be found.'
exception FloatingIpAllocateFailed(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Floating IP allocate failed.'
exception FloatingIpAssociateFailed(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Floating IP %(address)s association has failed.'
exception FloatingIpAssociated(message=None, **kwargs)

Bases: nova.exception.NovaException

ec2_code = 'UnsupportedOperation'
msg_fmt = u'Floating ip %(address)s is associated.'
exception FloatingIpBadRequest(message=None, **kwargs)

Bases: nova.exception.Invalid

ec2_code = 'UnsupportedOperation'
msg_fmt = u'The floating IP request failed with a BadRequest'
exception FloatingIpDNSExists(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.QuotaError

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.FloatingIpNotFound

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

Bases: nova.exception.FloatingIpNotFound

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

code = 403
ec2_code = 'AuthFailure'
msg_fmt = u'Not authorized.'
exception GlanceConnectionFailed(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.Invalid

msg_fmt = u"Host '%(name)s' is not mapped to any cell"
exception HostNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

msg_fmt = u'Connection to the hypervisor is broken on host: %(host)s'
exception ImageCPUPinningForbidden(message=None, **kwargs)

Bases: nova.exception.Forbidden

msg_fmt = u"Image property 'hw_cpu_policy' is not permitted to override CPU pinning policy set against the flavor"
exception ImageDownloadModuleConfigurationError(message=None, **kwargs)

Bases: nova.exception.ImageDownloadModuleError

msg_fmt = u'The module %(module)s is misconfigured: %(reason)s.'
exception ImageDownloadModuleError(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'There was an error with the download module %(module)s. %(reason)s'
exception ImageDownloadModuleMetaDataError(message=None, **kwargs)

Bases: nova.exception.ImageDownloadModuleError

msg_fmt = u'The metadata for this location will not work with this module %(module)s. %(reason)s.'
exception ImageDownloadModuleNotImplementedError(message=None, **kwargs)

Bases: nova.exception.ImageDownloadModuleError

msg_fmt = u'The method %(method_name)s is not implemented.'
exception ImageNUMATopologyAsymmetric(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Asymmetric NUMA topologies require explicit assignment of CPUs and memory to nodes in image or flavor'
exception ImageNUMATopologyCPUDuplicates(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'CPU number %(cpunum)d is assigned to two nodes'
exception ImageNUMATopologyCPUOutOfRange(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'CPU number %(cpunum)d is larger than max %(cpumax)d'
exception ImageNUMATopologyCPUsUnassigned(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'CPU number %(cpuset)s is not assigned to any node'
exception ImageNUMATopologyForbidden(message=None, **kwargs)

Bases: nova.exception.Forbidden

msg_fmt = u"Image property '%(name)s' is not permitted to override NUMA configuration set against the flavor"
exception ImageNUMATopologyIncomplete(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'CPU and memory allocation must be provided for all NUMA nodes'
exception ImageNUMATopologyMemoryOutOfRange(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'%(memsize)d MB of memory assigned, but expected %(memtotal)d MB'
exception ImageNotActive(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.ImageNotFound

msg_fmt = 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 ImageSerialPortNumberExceedFlavorValue(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Forbidden to exceed flavor value of number of serial ports passed in image meta.'
exception ImageSerialPortNumberInvalid(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u"Number of serial ports '%(num_ports)s' specified in '%(property)s' isn't valid."
exception ImageUnacceptable(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = u'Image vCPU limits %(sockets)d:%(cores)d:%(threads)d exceeds permitted %(maxsockets)d:%(maxcores)d:%(maxthreads)d'
exception ImageVCPULimitsRangeImpossible(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Requested vCPU limits %(sockets)d:%(cores)d:%(threads)d are impossible to satisfy for vcpus count %(vcpus)d'
exception ImageVCPUTopologyRangeExceeded(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Image vCPU topology %(sockets)d:%(cores)d:%(threads)d exceeds permitted %(maxsockets)d:%(maxcores)d:%(maxthreads)d'
exception InstanceActionEventNotFound(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.NovaException

msg_fmt = u'Instance %(name)s already exists.'
exception InstanceFaultRollback(inner_exception=None)

Bases: nova.exception.NovaException

exception InstanceGroupIdExists(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Instance group %(group_uuid)s already exists.'
exception InstanceGroupMemberNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

msg_fmt = u'Instance group %(group_uuid)s has no member with id %(instance_id)s.'
exception InstanceGroupNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

msg_fmt = u'Instance group %(group_uuid)s could not be found.'
exception InstanceGroupPolicyNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

msg_fmt = u'Instance group %(group_uuid)s has no policy %(policy)s.'
exception InstanceGroupSaveException(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'%(field)s should not be part of the updates.'
exception InstanceInfoCacheNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.Invalid

msg_fmt = 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

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

Bases: nova.exception.NotFound

msg_fmt = u'Instance %(uuid)s has no mapping to a cell.'
exception InstanceNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = u'Quiescing is not supported in instance %(instance_id)s'
exception InstanceRebootFailure(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = u'Instance recreate is not supported.'
exception InstanceResumeFailure(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.NotFound

msg_fmt = u"Instance %(instance_id)s has no tag '%(tag)s'"
exception InstanceTerminationFailure(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

msg_fmt = u'Conflict updating instance %(instance_uuid)s. Expected: %(expected)s. Actual: %(actual)s'
exception InstanceUserDataMalformed(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

msg_fmt = 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

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.NovaException

ec2_code = 'InternalError'
msg_fmt = '%(err)s'
exception Invalid(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.Invalid

msg_fmt = u'API Version String %(version)s is of invalid format. Must be of format MajorNum.MinorNum.'
exception InvalidAddress(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'%(address)s is not a valid ip address.'
exception InvalidAggregateAction(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.InvalidAggregateAction

msg_fmt = u'Cannot add host to aggregate %(aggregate_id)s. Reason: %(reason)s.'
exception InvalidAggregateActionDelete(message=None, **kwargs)

Bases: nova.exception.InvalidAggregateAction

msg_fmt = u'Cannot remove host from aggregate %(aggregate_id)s. Reason: %(reason)s.'
exception InvalidAggregateActionUpdate(message=None, **kwargs)

Bases: nova.exception.InvalidAggregateAction

msg_fmt = u'Cannot update aggregate %(aggregate_id)s. Reason: %(reason)s.'
exception InvalidAggregateActionUpdateMeta(message=None, **kwargs)

Bases: nova.exception.InvalidAggregateAction

msg_fmt = u'Cannot update metadata of aggregate %(aggregate_id)s. Reason: %(reason)s.'
exception InvalidArchitectureName(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u"Architecture name '%(arch)s' is not recognised"
exception InvalidAssociation(message=None, **kwargs)

Bases: nova.exception.NotFound

ec2_code = 'InvalidAssociationID.NotFound'
msg_fmt = u'Invalid association.'
exception InvalidAttribute(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Attribute not supported: %(attr)s'
exception InvalidBDM(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.InvalidBDM

msg_fmt = u'Block Device Mapping is Invalid: Boot sequence for the instance and image/block device mapping combination is not valid.'
exception InvalidBDMEphemeralSize(message=None, **kwargs)

Bases: nova.exception.InvalidBDM

msg_fmt = u'Ephemeral disks requested are larger than the instance type allows.'
exception InvalidBDMForLegacy(message=None, **kwargs)

Bases: nova.exception.InvalidBDM

msg_fmt = u'Block Device Mapping cannot be converted to legacy format. '
exception InvalidBDMFormat(message=None, **kwargs)

Bases: nova.exception.InvalidBDM

msg_fmt = u'Block Device Mapping is Invalid: %(details)s'
exception InvalidBDMImage(message=None, **kwargs)

Bases: nova.exception.InvalidBDM

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

Bases: nova.exception.InvalidBDM

msg_fmt = u'Block Device Mapping is Invalid: You specified more local devices than the limit allows'
exception InvalidBDMSnapshot(message=None, **kwargs)

Bases: nova.exception.InvalidBDM

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

Bases: nova.exception.InvalidBDM

msg_fmt = u'Swap drive requested is larger than instance type allows.'
exception InvalidBDMVolume(message=None, **kwargs)

Bases: nova.exception.InvalidBDM

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

Bases: nova.exception.InvalidBDM

msg_fmt = u'Block Device %(id)s is not bootable.'
exception InvalidCPUInfo(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = u'%(cidr)s is not a valid ip network.'
exception InvalidConnectionInfo(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Invalid Connection Info'
exception InvalidContentType(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = u'Disk info file is invalid: %(reason)s'
exception InvalidEc2Id(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = u'Failed to launch instances: %(reason)s'
exception InvalidGlobalAPIVersion(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Version %(req_ver)s is not supported by the API. Minimum is %(min_ver)s and maximum is %(max_ver)s.'
exception InvalidGroup(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = u"Invalid characters in hostname '%(hostname)s'"
exception InvalidHypervisorType(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = u"Hypervisor virtualization type '%(hv_type)s' is not recognised"
exception InvalidID(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = u"Image's config drive option '%(config_drive)s' is invalid"
exception InvalidImageFormat(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u"Invalid image format '%(format)s'"
exception InvalidImageRef(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

ec2_code = 'InvalidInstanceID.Malformed'
msg_fmt = u'Invalid id: %(instance_id)s (expecting "i-...")'
exception InvalidIntValue(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'%(key)s must be an integer.'
exception InvalidIpAddressError(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

ec2_code = 'InvalidKeyPair.Format'
msg_fmt = u'Keypair data is invalid: %(reason)s'
exception InvalidLocalStorage(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

ec2_code = 'InvalidParameterValue'
msg_fmt = u'%(err)s'
exception InvalidPortRange(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = u'Wrong quota method %(method)s used on resource %(res)s'
exception InvalidQuotaValue(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = u'Invalid datetime string: %(reason)s'
exception InvalidToken(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u"The token '%(token)s' is invalid or has expired"
exception InvalidUUID(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = 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

msg_fmt = 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 InvalidVideoMode(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Provided video model (%(model)s) is not supported.'
exception InvalidVirtualMachineMode(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u"Virtual machine mode '%(vmmode)s' is not recognised"
exception InvalidVolume(message=None, **kwargs)

Bases: nova.exception.Invalid

ec2_code = 'UnsupportedOperation'
msg_fmt = u'Invalid volume: %(reason)s'
exception InvalidVolumeAccessMode(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Invalid volume access mode: %(access_mode)s'
exception InvalidVolumeIDMalformed(message=None, **kwargs)

Bases: nova.exception.Invalid

ec2_code = 'InvalidVolumeID.Malformed'
msg_fmt = u'Invalid id: %(volume_id)s (expecting "i-...")'
exception InvalidWatchdogAction(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Provided watchdog action (%(action)s) is not supported.'
exception KeyManagerError(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Key manager error: %(reason)s'
exception KeyPairExists(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.QuotaError

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

Bases: nova.exception.NotFound

ec2_code = 'InvalidKeyPair.NotFound'
msg_fmt = u'Keypair %(name)s not found for user %(user_id)s'
exception LabelTooLong(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u"Maximum allowed length for 'label' is 255."
exception LiveMigrationWithOldNovaNotSafe(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Host %(server)s is running an old version of Nova, live migrations involving that version may cause data loss. Upgrade Nova on %(server)s and try again.'
exception MalformedRequestBody(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NoValidHost

msg_fmt = u'Exceeded maximum number of retries. %(reason)s'
exception MemoryPageSizeForbidden(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u"Page size %(pagesize)s forbidden against '%(against)s'"
exception MemoryPageSizeInvalid(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u"Invalid memory page size '%(pagesize)s'"
exception MemoryPageSizeNotSupported(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Page size %(pagesize)s is not supported by the host.'
exception MemoryPagesUnsupported(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Host does not support guests with custom memory page sizes'
exception MetadataLimitExceeded(message=None, **kwargs)

Bases: nova.exception.QuotaError

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

Bases: nova.exception.NotFound

msg_fmt = u'Instance %(instance_uuid)s does not specify a migration context.'
exception MigrationError(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.MigrationNotFound

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

Bases: nova.exception.MigrationError

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

Bases: nova.exception.NovaException

code = 400
ec2_code = 'MissingParameter'
msg_fmt = u'Not enough parameters: %(reason)s'
exception MultiplePortsNotApplicable(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Failed to launch instances: %(reason)s'
exception NUMATopologyUnsupported(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Host does not support guests with NUMA topology set'
exception NetworkAdapterNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.Invalid

msg_fmt = u'More than one possible network found. Specify network ID(s) to select which one(s) to connect to.'
exception NetworkDhcpReleaseFailed(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Failed to release IP %(address)s with MAC %(mac_address)s'
exception NetworkDuplicated(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.NetworkInUse

msg_fmt = u'Network must be disassociated from project %(project_id)s before it can be deleted.'
exception NetworkInUse(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

msg_fmt = u'Physical network is missing for network %(network_uuid)s'
exception NetworkNotCreated(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NetworkNotFound

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

Bases: nova.exception.NetworkNotFound

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

Bases: nova.exception.NetworkNotFound

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

Bases: nova.exception.NetworkNotFound

msg_fmt = 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

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

Bases: nova.exception.Invalid

msg_fmt = u'Network %(network_uuid)s requires a subnet in order to boot instances on.'
exception NetworkSetHostFailed(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Network set host failed for network %(network_id)s.'
exception NoCellsAvailable(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

msg_fmt = u'Live migration of instances with config drives is not supported in libvirt unless libvirt instance path and drive data is shared across compute nodes.'
exception NoMoreFixedIps(message=None, **kwargs)

Bases: nova.exception.NovaException

ec2_code = 'UnsupportedOperation'
msg_fmt = u'No fixed IP addresses available for network: %(net)s'
exception NoMoreFloatingIps(message=None, **kwargs)

Bases: nova.exception.FloatingIpNotFound

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

Bases: nova.exception.NovaException

msg_fmt = u'No more available networks.'
exception NoNetworksFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

code = 404
msg_fmt = 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 ‘msg_fmt’ property. That msg_fmt will get printf’d with the keyword arguments provided to the constructor.

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

Bases: nova.exception.NotFound

msg_fmt = u'Instance %(instance_uuid)s does not specify a NUMA topology'
exception ObjectActionError(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Object action %(action)s failed because: %(reason)s'
exception OnsetFileContentLimitExceeded(message=None, **kwargs)

Bases: nova.exception.OnsetFileLimitExceeded

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

Bases: nova.exception.QuotaError

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

Bases: nova.exception.OnsetFileLimitExceeded

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

Bases: nova.exception.NovaException

msg_fmt = u'Cannot call %(method)s on orphaned %(objtype)s object'
exception OverQuota(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.Invalid

msg_fmt = u'Invalid PCI devices Whitelist config %(reason)s'
exception PciDeviceDetachFailed(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Failed to detach PCI device %(dev)s: %(reason)s'
exception PciDeviceInvalidAddressField(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Invalid PCI Whitelist: The PCI address %(address)s has an invalid %(field)s.'
exception PciDeviceInvalidDeviceName(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Invalid PCI Whitelist: The PCI whitelist can specify devname or address, but not both'
exception PciDeviceInvalidOwner(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'PCI device %(compute_node_id)s:%(address)s is owned by %(owner)s instead of %(hopeowner)s'
exception PciDeviceInvalidStatus(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'PCI device %(compute_node_id)s:%(address)s is %(status)s instead of %(hopestatus)s'
exception PciDeviceNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

msg_fmt = u'PCI Device %(node_id)s:%(address)s not found.'
exception PciDeviceNotFoundById(message=None, **kwargs)

Bases: nova.exception.NotFound

msg_fmt = u'PCI device %(id)s not found'
exception PciDevicePoolEmpty(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Attempt to consume PCI device %(compute_node_id)s:%(address)s from empty pool'
exception PciDevicePrepareFailed(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Failed to prepare PCI device %(id)s for instance %(instance_uuid)s: %(reason)s'
exception PciDeviceRequestFailed(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'PCI device request (%requests)s failed'
exception PciDeviceUnsupportedHypervisor(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'%(type)s hypervisor does not support PCI devices'
exception PciDeviceWrongAddressFormat(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'The PCI address %(address)s has an incorrect format.'
exception PciInvalidAlias(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Invalid PCI alias definition: %(reason)s'
exception PciRequestAliasNotDefined(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'PCI alias %(alias)s is not defined'
exception PluginRetriesExceeded(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Number of retries to plugin (%(num_retries)d) exceeded.'
exception PolicyNotAuthorized(message=None, **kwargs)

Bases: nova.exception.Forbidden

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

Bases: nova.exception.Invalid

msg_fmt = u'Binding failed for port %(port_id)s, please check neutron logs for more information.'
exception PortInUse(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.QuotaError

msg_fmt = u'Maximum number of ports exceeded'
exception PortNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = u'Port %(port_id)s not usable for instance %(instance)s.'
exception PortRequiresFixedIP(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Port %(port_id)s requires a FixedIP in order to be used.'
exception PreserveEphemeralNotSupported(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'The current driver does not support preserving ephemeral partitions.'
exception ProjectNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.QuotaNotFound

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

Bases: nova.exception.QuotaNotFound

msg_fmt = u'Quota for user %(user_id)s in project %(project_id)s could not be found.'
exception QemuGuestAgentNotEnabled(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'QEMU guest agent is not enabled'
exception QuotaClassNotFound(message=None, **kwargs)

Bases: nova.exception.QuotaNotFound

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

msg_fmt = u'Quota exists for project %(project_id)s, resource %(resource)s'
exception QuotaNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.QuotaNotFound

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

Bases: nova.exception.QuotaNotFound

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

Bases: nova.exception.NovaException

msg_fmt = u'The requested amount of video memory %(req_vram)d is higher than the maximum allowed by flavor %(max_vram)d.'
exception RescheduledException(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Build of instance %(instance_uuid)s was re-scheduled: %(reason)s'
exception ReservationNotFound(message=None, **kwargs)

Bases: nova.exception.QuotaNotFound

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

msg_fmt = u'Error when creating resource monitor: %(monitor)s'
exception RevokeCertFailure(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Failed to revoke certificate for %(project_id)s'
exception RngDeviceNotExist(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'The provided RNG device path: (%(path)s) is not present on the host.'
exception RotationRequiredForBackup(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

ec2_code = 'InvalidGroup.Duplicate'
msg_fmt = u'Security group %(security_group_name)s already exists for project %(project_id)s.'
exception SecurityGroupExistsForInstance(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = 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

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

Bases: nova.exception.Invalid

msg_fmt = 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

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

Bases: nova.exception.SecurityGroupNotFound

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

Bases: nova.exception.SecurityGroupNotFound

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

Bases: nova.exception.Invalid

ec2_code = 'InvalidPermission.Duplicate'
msg_fmt = u'Rule already exists in group: %(rule)s'
exception ServiceBinaryExists(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Service with host %(host)s binary %(binary)s exists.'
exception ServiceGroupUnavailable(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

msg_fmt = u'Service with host %(host)s topic %(topic)s exists.'
exception ServiceUnavailable(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = u'Set admin password is not supported'
exception ShadowTableExists(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Shadow table with name %(name)s already exists.'
exception SnapshotNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

ec2_code = 'InvalidSnapshot.NotFound'
msg_fmt = u'Snapshot %(snapshot_id)s could not be found.'
exception SocketPortInUseException(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Not able to bind %(host)s:%(port)d, %(error)s'
exception SocketPortRangeExhaustedException(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Not able to acquire a free port for %(host)s'
exception StorageError(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Storage error: %(reason)s'
exception StorageRepositoryNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.NotFound

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

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

Bases: nova.exception.QuotaError

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

Bases: nova.exception.Invalid

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

Bases: nova.exception.UnexpectedTaskStateError

exception UnexpectedTaskStateError(message=None, **kwargs)

Bases: nova.exception.InstanceUpdateConflict

exception UnknownInstanceUpdateConflict(message=None, **kwargs)

Bases: nova.exception.InstanceUpdateConflict

msg_fmt = u'Conflict updating instance %(instance_uuid)s, but we were unable to determine the cause'
exception UnshelveException(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Error during unshelve instance %(instance_id)s: %(reason)s'
exception UnsupportedHardware(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = u"Image model '%(image)s' is not supported"
exception UnsupportedPolicyException(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'ServerGroup policy is not supported: %(reason)s'
exception UnsupportedVirtType(message=None, **kwargs)

Bases: nova.exception.Invalid

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

Bases: nova.exception.Invalid

msg_fmt = '%(detail)s'
exception VersionNotFoundForAPIMethod(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'API version %(version)s is not supported on this method.'
exception VifDetailsMissingMacvtapParameters(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Parameters %(missing_params)s not present in vif_details for vif %(vif_id)s. Check your Neutron configuration to validate that the macvtap parameters are correct.'
exception VifDetailsMissingVhostuserSockPath(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'vhostuser_sock_path not present in vif_details for vif %(vif_id)s'
exception VirtualInterfaceCreateException(message=None, **kwargs)

Bases: nova.exception.NovaException

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

Bases: nova.exception.NovaException

msg_fmt = u'Creation of virtual interface with unique mac address failed'
exception VirtualInterfacePlugException(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Virtual interface plugin failed'
exception VolumeBDMNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

msg_fmt = u'No volume Block Device Mapping with id %(volume_id)s.'
exception VolumeBDMPathNotFound(message=None, **kwargs)

Bases: nova.exception.VolumeBDMNotFound

msg_fmt = u'No volume Block Device Mapping at path: %(path)s'
exception VolumeDriverNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

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

Bases: nova.exception.Invalid

msg_fmt = u'Volume encryption is not supported for %(volume_type)s volume %(volume_id)s'
exception VolumeLimitExceeded(message=None, **kwargs)

Bases: nova.exception.Forbidden

msg_fmt = u'Volume resource quota exceeded'
exception VolumeNotCreated(message=None, **kwargs)

Bases: nova.exception.NovaException

msg_fmt = u'Volume %(volume_id)s did not finish being created even after we waited %(seconds)s seconds or %(attempts)s attempts. And its status is %(volume_status)s.'
exception VolumeNotFound(message=None, **kwargs)

Bases: nova.exception.NotFound

ec2_code = 'InvalidVolume.NotFound'
msg_fmt = u'Volume %(volume_id)s could not be found.'
exception VolumeSmallerThanMinDisk(message=None, **kwargs)

Bases: nova.exception.FlavorDiskTooSmall

msg_fmt = u'Volume is smaller than the minimum size specified in image metadata. Volume size is %(volume_size)i bytes, minimum size is %(image_min_disk)i bytes.'
exception VolumeUnattached(message=None, **kwargs)

Bases: nova.exception.Invalid

ec2_code = 'IncorrectState'
msg_fmt = u'Volume %(volume_id)s is not attached to anything'
exception VolumesNotRemoved(message=None, **kwargs)

Bases: nova.exception.Invalid

msg_fmt = u'Failed to remove volume(s): (%(reason)s)'
wrap_exception(notifier=None, get_notifier=None)

This decorator wraps a method to catch any exceptions that may get thrown. It also optionally sends the exception to the notification system.

Previous topic

The nova.debugger Module

Next topic

The nova.filters Module

Project Source

This Page