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.14'
cpu_allocation_ratio
cpu_info
create(*args, **kwargs)
created_at
current_workload
deleted
deleted_at
destroy(*args, **kwargs)
disk_available_least
fields = {'running_vms': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'disk_available_least': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'supported_hv_specs': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'host': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'pci_device_pools': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'current_workload': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'deleted': Boolean(default=False,nullable=False), 'cpu_allocation_ratio': Float(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'free_ram_mb': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'local_gb': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'memory_mb_used': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'hypervisor_version': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'metrics': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'deleted_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'service_id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'free_disk_gb': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'vcpus': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'stats': Dict(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'numa_topology': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'local_gb_used': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'vcpus_used': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'hypervisor_hostname': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'host_ip': IPAddress(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'memory_mb': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'ram_allocation_ratio': Float(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'hypervisor_type': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'cpu_info': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}
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)
obj_relationships = {'supported_hv_specs': [('1.6', '1.0'), ('1.12', '1.1')], 'pci_device_pools': [('1.9', '1.0'), ('1.11', '1.1')]}
pci_device_pools
ram_allocation_ratio
running_vms
save(*args, **kwargs)
service_id
stats
supported_hv_specs
update_from_virt_driver(resources)
updated_at
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)
obj_relationships = {'objects': [('1.0', '1.2'), ('1.1', '1.3'), ('1.2', '1.3'), ('1.3', '1.4'), ('1.4', '1.5'), ('1.5', '1.5'), ('1.6', '1.6'), ('1.7', '1.7'), ('1.8', '1.8'), ('1.9', '1.9'), ('1.10', '1.10'), ('1.11', '1.11'), ('1.12', '1.12'), ('1.13', '1.13'), ('1.14', '1.14')]}
objects

Previous topic

The nova.objects.cell_mapping Module

Next topic

The nova.objects.dns_domain Module

Project Source

This Page