The nova.objects.instance_numa_topology Module

class InstanceNUMACell(**kwargs)

Bases: nova.objects.base.NovaObject, nova.objects.base.NovaObjectDictCompat

VERSION = '1.3'
clear_host_pinning()

Clear any data related to how this cell is pinned to the host.

Needed for aborting claims as we do not want to keep stale data around.

cpu_pinning

Descriptor allowing us to assign pinning data as a dict of key_types

This allows us to have an object field that will be a dict of key_type keys, allowing that will convert back to string-keyed dict.

This will take care of the conversion while the dict field will make sure that we store the raw json-serializable data on the object.

key_type should return a type that unambiguously responds to six.text_type so that calling key_type on it yields the same thing.

cpu_pinning_raw
cpu_pinning_requested
cpu_policy
cpu_thread_policy
cpu_topology
cpuset
fields = {'pagesize': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'cpu_topology': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'cpuset': Set(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'memory': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'cpu_policy': CPUAllocationPolicy(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True,valid_values=('dedicated', 'shared')), 'cpu_thread_policy': CPUThreadAllocationPolicy(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True,valid_values=('prefer', 'isolate', 'require')), 'cpu_pinning_raw': Dict(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
id
memory
obj_make_compatible(primitive, target_version)
pagesize
pin(vcpu, pcpu)
pin_vcpus(*cpu_pairs)
siblings
class InstanceNUMATopology(context=None, **kwargs)

Bases: nova.objects.base.NovaObject, nova.objects.base.NovaObjectDictCompat

VERSION = '1.2'
cells
clear_host_pinning()

Clear any data related to how instance is pinned to the host.

Needed for aborting claims as we do not want to keep stale data around.

cpu_pinning_requested
create(*args, **kwargs)
classmethod delete_by_instance_uuid(context, instance_uuid)
fields = {'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'cells': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'instance_uuid': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
classmethod get_by_instance_uuid(context, *args, **kwargs)
id
instance_uuid
classmethod obj_from_db_obj(instance_uuid, db_obj)
classmethod obj_from_primitive(primitive, context=None)

Previous topic

The nova.objects.instance_mapping Module

Next topic

The nova.objects.instance_pci_requests Module

Project Source

This Page