The cinder.objects.volume_attachment
Module¶
-
class
VolumeAttachment
(context=None, **kwargs)¶ Bases:
cinder.objects.base.CinderPersistentObject
,cinder.objects.base.CinderObject
,cinder.objects.base.CinderObjectDictCompat
,cinder.objects.base.CinderComparableObject
-
OPTIONAL_FIELDS
= [‘volume’]¶
-
VERSION
= ‘1.2’¶
-
attach_mode
¶
-
attach_status
¶
-
attach_time
¶
-
attached_host
¶
-
connection_info
¶
-
create
()¶
-
created_at
¶
-
deleted
¶
-
deleted_at
¶
-
destroy
()¶
-
detach_time
¶
-
fields
= {‘instance_uuid’: UUID(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘volume’: Object(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘attach_time’: DateTime(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘connection_info’: Dict(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘attach_mode’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘created_at’: DateTime(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘attached_host’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘attach_status’: VolumeAttachStatus(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True,valid_values=(‘attached’, ‘attaching’, ‘detached’, ‘error_attaching’, ‘error_detaching’, ‘reserved’, ‘deleted’)), ‘updated_at’: DateTime(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘detach_time’: DateTime(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘deleted’: Boolean(default=False,nullable=True), ‘volume_id’: UUID(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘mountpoint’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘deleted_at’: DateTime(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘id’: UUID(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False)}¶
-
finish_attach
(instance_uuid, host_name, mount_point, attach_mode=’rw’)¶
-
id
¶
-
instance_uuid
¶
-
model
¶ alias of
VolumeAttachment
-
mountpoint
¶
-
obj_extra_fields
= [‘project_id’, ‘volume_host’]¶
-
obj_load_attr
(attrname)¶
-
obj_make_compatible
(primitive, target_version)¶ Make a object representation compatible with target version.
-
project_id
¶
-
save
()¶
-
updated_at
¶
-
volume
¶
-
volume_host
¶
-
volume_id
¶
-
-
class
VolumeAttachmentList
(*args, **kwargs)¶ Bases:
cinder.objects.base.ObjectListBase
,cinder.objects.base.CinderObject
-
VERSION
= ‘1.1’¶
-
fields
= {‘objects’: List(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False)}¶
-
classmethod
get_all
(context, search_opts=None, marker=None, limit=None, offset=None, sort_keys=None, sort_direction=None)¶
-
classmethod
get_all_by_host
(context, host, search_opts=None)¶
-
classmethod
get_all_by_instance_uuid
(context, instance_uuid, search_opts=None)¶
-
classmethod
get_all_by_project
(context, project_id, search_opts=None, marker=None, limit=None, offset=None, sort_keys=None, sort_direction=None)¶
-
classmethod
get_all_by_volume_id
(context, volume_id)¶
-
objects
¶
-