chi.storage¶
The chi.storage module provides methods for using the shared
filesystem and object store on chameleon.
- class chi.storage.ObjectBucket(name: str)[source]¶
Class representing an object store bucket
- Parameters:
name (str) – name of the bucket
Represents a manilla share
- Parameters:
- Fields:
id (str): id of the share export_locations: list of mount paths
Delete the share.
Extend the size of the specific share.
- Parameters:
new_size – desired size to extend share to.
Shrink the size of the specific share.
- Parameters:
new_size – desired size to extend share to.
Create the share.
- Parameters:
idempotent (bool, optional) – Whether to create the share only if it doesn’t already exist.
- class chi.storage.Volume(name: str, size: int, description: str | None = None, metadata: str | None = None, volume_type: str = 'ceph-ssd')[source]¶
Represents an OpenStack Cinder volume
- Parameters:
- Fields:
id (str): id of the volume status (str): status of the volume
Get a share by its ID or name.
- Parameters:
ref (str) – The ID or name of the share.
- Returns:
The share matching the ID or name.
- Raises:
NotFound – If the share could not be found.
- chi.storage.get_volume(ref) Volume[source]¶
Get a volume by its ID or name.
- Parameters:
ref (str) – The ID or name of the volume.
- Returns:
The volume matching the ID or name.
- Raises:
CHIValueError – If no volumes are found matching the name.
ResourceError – If multiple volumes are found matching the name.
Get a list of all available flavors.
- Returns:
A list of all flavors.