The nova.objects.service Module

class Service(*args, **kwargs)

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

VERSION = '1.19'
availability_zone
binary
classmethod clear_min_version_cache()
compute_node
create(*args, **kwargs)
created_at
deleted
deleted_at
destroy(*args, **kwargs)
disabled
disabled_reason
classmethod enable_min_version_cache()
fields = {'host': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'forced_down': Boolean(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'disabled': Boolean(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'report_count': 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), 'last_seen_up': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'binary': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'topic': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'availability_zone': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'deleted_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'version': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'deleted': Boolean(default=False,nullable=False), 'compute_node': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'disabled_reason': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}
forced_down
classmethod get_by_args(context, *args, **kwargs)
classmethod get_by_compute_host(context, *args, **kwargs)
classmethod get_by_host_and_binary(context, *args, **kwargs)
classmethod get_by_host_and_topic(context, *args, **kwargs)
classmethod get_by_id(context, *args, **kwargs)
classmethod get_minimum_version(context, *args, **kwargs)
host
id
last_seen_up
obj_load_attr(attrname)
obj_make_compatible_from_manifest(primitive, target_version, version_manifest)
report_count
save(*args, **kwargs)
topic
updated_at
version
class ServiceList(*args, **kwargs)

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

VERSION = '1.18'
fields = {'objects': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
classmethod get_all(context, *args, **kwargs)
classmethod get_by_binary(context, *args, **kwargs)
classmethod get_by_host(context, *args, **kwargs)
classmethod get_by_topic(context, *args, **kwargs)
objects
class ServiceStatusNotification(context=None, **kwargs)

Bases: nova.objects.notification.NotificationBase

VERSION = '1.0'
event_type
fields = {'publisher': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'priority': NotificationPriority(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False,valid_values=('audit', 'critical', 'debug', 'info', 'error', 'sample', 'warn')), 'event_type': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'payload': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
payload
priority
publisher
sample = 'service-update.json'
class ServiceStatusPayload(service)

Bases: nova.objects.notification.NotificationPayloadBase

SCHEMA = {'host': ('service', 'host'), 'forced_down': ('service', 'forced_down'), 'disabled': ('service', 'disabled'), 'report_count': ('service', 'report_count'), 'version': ('service', 'version'), 'last_seen_up': ('service', 'last_seen_up'), 'binary': ('service', 'binary'), 'topic': ('service', 'topic'), 'availability_zone': ('service', 'availability_zone'), 'disabled_reason': ('service', 'disabled_reason')}
VERSION = '1.0'
availability_zone
binary
disabled
disabled_reason
fields = {'host': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'forced_down': Boolean(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'topic': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'report_count': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'last_seen_up': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'binary': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'disabled': Boolean(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'availability_zone': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'version': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'disabled_reason': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}
forced_down
host
last_seen_up
report_count
topic
version

Previous topic

The nova.objects.security_group_rule Module

Next topic

The nova.objects.tag Module

Project Source

This Page