hitachivantara.vspone_block.vsp.hv_iscsi_remote_connection module – Manages Remote connections through iSCSI ports on VSP block storage systems.
Note
This module is part of the hitachivantara.vspone_block collection (version 4.6.1).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install hitachivantara.vspone_block.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: hitachivantara.vspone_block.vsp.hv_iscsi_remote_connection.
New in hitachivantara.vspone_block 3.3.0
Synopsis
- This module allows settings of remote connections through iSCSI ports used for remote copy operations. - Remote connections are used to connect storage systems used in remote copy operations for TrueCopy, Universal Replicator, and global-active device. - For examples go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/vsp_direct/remote_iscsi_connection.yml
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.9
Parameters
Parameter |
Comments |
|---|---|
Information required to establish a connection to the storage system. |
|
IP address or hostname of the storage system. |
|
Type of connection to the storage system. Choices:
|
|
Password for authentication. This is a required field. |
|
Username for authentication. This is a required field. |
|
Specification for iSCSI remote connection tasks. |
|
Port number of the local storage system Required for the Create a new remote connection using iSCSI ports /Delete an iSCSI-based remote connection tasks. |
|
Port number of the remote storage system Required for the Create a new remote connection using iSCSI ports /Delete an iSCSI-based remote connection tasks. |
|
IP address of the remote storage system. Required for the Create a new remote connection using iSCSI ports task. |
|
Serial number of the remote storage system. Required for the Create a new remote connection using iSCSI ports /Delete an iSCSI-based remote connection tasks. |
|
TCP port of the remote storage system. Optional for the Create a new remote connection using iSCSI ports task. |
|
The level of the Remote connection task. Choices are Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: none |
Determines if the module should run in check mode. |
Notes
Note
Connection type
gatewaywas removed starting from version 3.4.0. Please use an earlier version if you require this connection type.To manage remote connections, register the remote storage system with the storage system you want to manage.
Examples
- name: Create a new remote connection through iSCSI ports
hitachivantara.vspone_block.vsp.hv_remote_connection:
connection_info:
address: storage1.company.com
username: "admin"
password: "password"
state: present
spec:
remote_storage_serial_number: "40014"
local_port: "CL7-D"
remote_port: "CL7-D"
remote_storage_ip_address: "10.120.10.120"
remote_tcp_port: 3260
- name: Delete a iSCSI remote connection
hitachivantara.vspone_block.vsp.hv_remote_connection:
connection_info:
address: storage1.company.com
username: "admin"
password: "password"
state: absent
spec:
remote_storage_serial_number: "40014"
local_port: "CL7-D"
remote_port: "CL7-D"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Newly created remote connection object. Returned: success |
|
Local port ID. Returned: success Sample: |
|
Remote IP address. Returned: success Sample: |
|
Remote iSCSI port ID. Returned: success Sample: |
|
Remote port ID. Returned: success Sample: |
|
Remote serial number. Returned: success Sample: |
|
Remote storage device ID. Returned: success Sample: |
|
Remote storage model. Returned: success Sample: |
|
Remote storage type ID. Returned: success Sample: |
|
Remote TCP port. Returned: success Sample: |