The nova.objects.compute_node Module

class ComputeNode(context=None, **kwargs)

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

VERSION = '1.16'
cpu_allocation_ratio
cpu_info
create(*args, **kwargs)
created_at
current_workload
deleted
deleted_at
destroy(*args, **kwargs)
disk_allocation_ratio
disk_available_least
fields = {'host': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'supported_hv_specs': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'hypervisor_version': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'service_id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'ram_allocation_ratio': Float(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'free_ram_mb': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'pci_device_pools': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'memory_mb': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'cpu_allocation_ratio': Float(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'host_ip': IPAddress(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'stats': Dict(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'local_gb': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'disk_available_least': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'deleted': Boolean(default=False,nullable=False), 'hypervisor_hostname': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'running_vms': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'hypervisor_type': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'vcpus_used': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'memory_mb_used': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'local_gb_used': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'numa_topology': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'cpu_info': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'metrics': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'free_disk_gb': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'uuid': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'deleted_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'vcpus': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'current_workload': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'disk_allocation_ratio': Float(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
free_disk_gb
free_ram_mb
classmethod get_by_host_and_nodename(context, *args, **kwargs)
classmethod get_by_id(context, *args, **kwargs)
classmethod get_by_service_id(context, *args, **kwargs)
classmethod get_first_node_by_host_for_old_compat(context, *args, **kwargs)
host
host_ip
hypervisor_hostname
hypervisor_type
hypervisor_version
id
local_gb
local_gb_used
memory_mb
memory_mb_used
metrics
numa_topology
obj_make_compatible(primitive, target_version)
pci_device_pools
ram_allocation_ratio
running_vms
save(*args, **kwargs)
service_id
stats
supported_hv_specs
update_from_virt_driver(resources)
updated_at
uuid
vcpus
vcpus_used
class ComputeNodeList(*args, **kwargs)

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

VERSION = '1.14'
fields = {'objects': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
classmethod get_all(context, *args, **kwargs)
classmethod get_all_by_host(context, *args, **kwargs)
classmethod get_by_hypervisor(context, *args, **kwargs)
objects

Previous topic

The nova.objects.cell_mapping Module

Next topic

The nova.objects.dns_domain Module

Project Source

This Page