Connection
(*args, **kwargs)[source]¶Bases: cinderlib.objects.Object
, cinderlib.objects.LazyVolumeAttr
Cinderlib Connection info that maps to VolumeAttachment.
On Pike we don’t have the connector field on the VolumeAttachment ORM instance so we use the connection_info to store everything.
‘connector’: connector dictionary ‘device’: result of connect_volume}
SIMPLE_JSON_IGNORE
= ('volume',)¶attached
¶backend
¶conn_info
¶connected
¶connector
¶connector_info
¶device
¶path
¶protocol
¶NamedObject
(backend, **fields_data)[source]¶Bases: cinderlib.objects.Object
description
¶name
¶name_in_storage
¶Object
(backend, **fields_data)[source]¶Bases: object
Base class for our resource representation objects.
DEFAULT_FIELDS_VALUES
= {}¶LAZY_PROPERTIES
= ()¶SIMPLE_JSON_IGNORE
= ()¶backend_class
¶alias of cinderlib.cinderlib.Backend
dump
¶dumps
¶json
¶jsons
¶Snapshot
(volume, **kwargs)[source]¶Bases: cinderlib.objects.NamedObject
, cinderlib.objects.LazyVolumeAttr
DEFAULT_FIELDS_VALUES
= {'metadata': {}, 'status': 'creating'}¶SIMPLE_JSON_IGNORE
= ('volume',)¶Volume
(backend_or_vol, pool_name=None, **kwargs)[source]¶Bases: cinderlib.objects.NamedObject
DEFAULT_FIELDS_VALUES
= {'admin_metadata': {}, 'attach_status': 'detached', 'glance_metadata': {}, 'metadata': {}, 'project_id': cinder.context.RequestContext.project_id, 'size': 1, 'status': 'creating', 'user_id': cinder.context.RequestContext.user_id}¶LAZY_PROPERTIES
= ('snapshots', 'connections')¶SIMPLE_JSON_IGNORE
= ('snapshots', 'volume_attachment')¶connections
¶snapshots
¶setup
(persistence_driver, backend_class, project_id, user_id, non_uuid_ids)¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.