The cinder.volume.drivers.windows.windows_utils Module

Utility class for Windows Storage Server 2012 volume related operations.

class WindowsUtils(*args, **kwargs)

Bases: object

Executes volume driver commands on Windows Storage server.

add_disk_to_target(vol_name, target_name)

Adds the disk to the target.

associate_initiator_with_iscsi_target(initiator_name, target_name)

Sets information used by the iSCSI target entry.

change_disk_status(vol_name, enabled)
check_for_setup_error()

Check that the driver is working and can communicate.

Invokes the portal and checks that is listening ISCSI traffic.

check_min_windows_version(major, minor, build=0)
copy(src, dest)
copy_vhd_disk(source_path, destination_path)

Copy the vhd disk from source path to destination path.

create_iscsi_target(target_name)

Creates ISCSI target.

create_snapshot(vol_name, snapshot_name)

Driver entry point for creating a snapshot.

create_volume(vhd_path, vol_name, vol_size=None)

Creates a volume.

create_volume_from_snapshot(volume, snap_name)

Driver entry point for exporting snapshots as volumes.

delete_iscsi_target(initiator_name, target_name)

Removes iSCSI targets to hosts.

delete_snapshot(snap_name)

Driver entry point for deleting a snapshot.

delete_volume(vol_name, vhd_path)

Driver entry point for destroying existing volumes.

extend(vol_name, additional_size)

Extend an existing volume.

get_host_information(volume, target_name)

Getting the portal and port information.

get_supported_format()
get_supported_vhd_type()
get_windows_version()
import_wt_disk(vhd_path, vol_name)

Import a vhd/x image to be used by Windows iSCSI targets

is_resize_needed(vhd_path, new_size, old_size)
local_path(volume, format=None)
remove_iscsi_target(target_name)

Removes ISCSI target.

set_chap_credentials(target_name, chap_username, chap_password)

Previous topic

The cinder.volume.drivers.windows.windows Module

Next topic

The cinder.volume.drivers.xio Module

Project Source

This Page