The watcher.common.cinder_helper Module

The watcher.common.cinder_helper Module

class watcher.common.cinder_helper.CinderHelper(osc=None)[source]

Bases: object

backendname_from_poolname(poolname)[source]

Get backendname from poolname

check_migrated(volume, retry_interval=10)[source]
check_volume_deleted(volume, retry=120, retry_interval=10)[source]

Check volume has been deleted

create_volume(cinder, volume, dest_type, retry=120, retry_interval=10)[source]

Create volume of volume with dest_type using cinder

delete_volume(volume)[source]

Delete volume

get_deleting_volume(volume)[source]
get_storage_node_by_name(name)[source]

Get storage node by name(host@backendname)

get_storage_node_list()[source]
get_storage_pool_by_name(name)[source]

Get pool by name(host@backend#poolname)

get_storage_pool_list()[source]
get_volume(volume)[source]
get_volume_list()[source]
get_volume_snapshots_list()[source]
get_volume_type_by_backendname(backendname)[source]

Return a list of volume type

get_volume_type_list()[source]
migrate(volume, dest_node)[source]

Migrate volume to dest_node

retype(volume, dest_type)[source]

Retype volume to dest_type with on-demand option

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.