watcher.common.cinder_helper module

watcher.common.cinder_helper module

service None

Bases: object

CinderHelper.backendname_from_poolname(poolname)[source]

Get backendname from poolname

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

Check volume has been deleted

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

Create volume of volume with dest_type using cinder

CinderHelper.delete_volume(volume)[source]

Delete volume

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

Get storage node by name(host@backendname)

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

Get pool by name(host@backend#poolname)

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

Return a list of volume type

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

Migrate volume to dest_node

CinderHelper.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.