sushy.resources.system.storage.storage
Module¶sushy.resources.system.storage.storage.
Storage
(connector, path='', redfish_version=None, registries=None, reader=None)¶Bases: sushy.resources.base.ResourceBase
This class represents the storage subsystem resources.
A storage subsystem represents a set of storage controllers (physical or virtual) and the resources such as drives and volumes that can be accessed from that subsystem.
drives
¶Return a list of Drive objects present in the storage resource.
It is set once when the first time it is queried. On subsequent invocations, it returns a cached list of Drives objects until it is marked stale.
Returns: | A list of Drive objects |
---|---|
Raises: | ResourceNotFoundError |
drives_identities
= <sushy.resources.base.Field object>¶A tuple with the drive identities
drives_max_size_bytes
¶Max size available in bytes among all Drives of this collection.
drives_sizes_bytes
¶Sizes of all Drives in bytes in Storage resource.
Returns the list of cached values until it (or its parent resource) is refreshed.
get_drive
(drive_identity)¶Given the drive identity return a Drive
object
Parameters: | drive_identity – The identity of the Drive |
---|---|
Returns: | The Drive object |
Raises: | ResourceNotFoundError |
identity
= <sushy.resources.base.Field object>¶The Storage identity string
name
= <sushy.resources.base.Field object>¶The name of the resource
status
= <sushy.resources.common.StatusField object>¶Describes the status and health of the resource and its children.
storage_controllers
= <sushy.resources.system.storage.storage.StorageControllersListField object>¶The storage devices associated with this resource.
volumes
¶Property to reference VolumeCollection instance
It is set once when the first time it is queried. On refresh, this property is marked as stale (greedy-refresh not done at that point). Here only the actual refresh of the sub-resource happens, if resource is stale.
sushy.resources.system.storage.storage.
StorageCollection
(connector, path, redfish_version=None, registries=None)¶Bases: sushy.resources.base.ResourceCollectionBase
This class represents the collection of Storage resources
drives_sizes_bytes
¶Sizes of each Drive in bytes in Storage collection resource.
Returns the list of cached values until it (or its parent resource) is refreshed.
max_drive_size_bytes
¶Max size available (in bytes) among all Drive resources.
Returns the cached value until it (or its parent resource) is refreshed.
max_volume_size_bytes
¶Max size available (in bytes) among all Volume resources.
Returns the cached value until it (or its parent resource) is refreshed.
volumes_sizes_bytes
¶Sizes of each Volume in bytes in Storage collection resource.
Returns the list of cached values until it (or its parent resource) is refreshed.
sushy.resources.system.storage.storage.
StorageControllersListField
(*args, **kwargs)¶Bases: sushy.resources.base.ListField
The set of storage controllers represented by this resource.
controller_protocols
= <sushy.resources.base.MappedListField object>¶The protocols by which this storage controller can be communicated to
device_protocols
= <sushy.resources.base.MappedListField object>¶The protocols which the controller can use tocommunicate with devices
identifiers
= <sushy.resources.common.IdentifiersListField object>¶The Durable names for the storage controller.
member_id
= <sushy.resources.base.Field object>¶Uniquely identifies the member within the collection.
name
= <sushy.resources.base.Field object>¶The name of the storage controller
speed_gbps
= <sushy.resources.base.Field object>¶The maximum speed of the storage controller’s device interface.
status
= <sushy.resources.common.StatusField object>¶Describes the status and health of the resource and its children.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.