The nova.objects.instance_group Module

class InstanceGroup(context=None, **kwargs)

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

VERSION = '1.10'
classmethod add_members(context, *args, **kwargs)
count_members_by_user(*args, **kwargs)

Count the number of instances in a group belonging to a user.

create(*args, **kwargs)
created_at
deleted
deleted_at
destroy(*args, **kwargs)
fields = {'members': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'user_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'uuid': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'deleted': Boolean(default=False,nullable=False), 'deleted_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'policies': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'hosts': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'name': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'project_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}
classmethod get_by_hint(context, hint)
classmethod get_by_instance_uuid(context, *args, **kwargs)
classmethod get_by_name(context, *args, **kwargs)
classmethod get_by_uuid(context, *args, **kwargs)
get_hosts(*args, **kwargs)

Get a list of hosts for non-deleted instances in the group

This method allows you to get a list of the hosts where instances in this group are currently running. There’s also an option to exclude certain instance UUIDs from this calculation.

hosts
id
members
name
obj_load_attr(attrname)
obj_make_compatible(primitive, target_version)
policies
project_id
refresh(*args, **kwargs)

Refreshes the instance group.

save(*args, **kwargs)

Save updates to this instance group.

updated_at
user_id
uuid
class InstanceGroupList(*args, **kwargs)

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

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

Previous topic

The nova.objects.instance_fault Module

Next topic

The nova.objects.instance_info_cache Module

Project Source

This Page