The cinder.volume.drivers.nexenta.utils Module

get_migrate_snapshot_name(volume)

Return name for snapshot that will be used to migrate the volume.

get_rrmgr_cmd(src, dst, compression=None, tcp_buf_size=None, connections=None)

Returns rrmgr command for source and destination.

parse_nef_url(url)

Parse NMS url into normalized parts like scheme, user, host and others.

Example NMS URL:
auto://admin:nexenta@192.168.1.1:8080/

NMS URL parts:

auto                True if url starts with auto://, protocol
                    will be automatically switched to https
                    if http not supported;
scheme (auto)       connection protocol (http or https);
user (admin)        NMS user;
password (nexenta)  NMS password;
host (192.168.1.1)  NMS host;
port (8080)         NMS port.
Parameters:url – url string
Returns:tuple (auto, scheme, user, password, host, port)
parse_nms_url(url)

Parse NMS url into normalized parts like scheme, user, host and others.

Example NMS URL:
auto://admin:nexenta@192.168.1.1:2000/

NMS URL parts:

auto                True if url starts with auto://, protocol
                    will be automatically switched to https
                    if http not supported;
scheme (auto)       connection protocol (http or https);
user (admin)        NMS user;
password (nexenta)  NMS password;
host (192.168.1.1)  NMS host;
port (2000)         NMS port.
Parameters:url – url string
Returns:tuple (auto, scheme, user, password, host, port, path)
str2gib_size(s)

Covert size-string to size in gigabytes.

str2size(s, scale=1024)

Convert size-string.

String format: <value>[:space:]<B | K | M | ...> to bytes.

Parameters:
  • s – size-string
  • scale – base size

Previous topic

The cinder.volume.drivers.nexenta.options Module

Next topic

The cinder.volume.drivers.nfs Module

This Page