The nova.objects.instance_numa_topology Module

class InstanceNUMACell(**kwargs)

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

VERSION = '1.2'
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_topology
cpuset
fields = {'cpu_pinning_raw': Dict(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'memory': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'cpu_topology': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'cpuset': Set(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'pagesize': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}
id
memory
obj_relationships = {'cpu_topology': [('1.2', '1.0')]}
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
cpu_pinning_requested
create(*args, **kwargs)
classmethod delete_by_instance_uuid(context, instance_uuid)
fields = {'instance_uuid': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'cells': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'id': Integer(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)
obj_relationships = {'cells': [('1.0', '1.0'), ('1.2', '1.2')]}

Previous topic

The nova.objects.instance_mapping Module

Next topic

The nova.objects.instance_pci_requests Module

Project Source

This Page