hitachivantara.vspone_block.sds_block.hv_sds_block_storage_node module – Manages storage node on Hitachi SDS Block storage systems.
Note
This module is part of the hitachivantara.vspone_block collection (version 4.1.0).
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.sds_block.hv_sds_block_storage_node
.
New in hitachivantara.vspone_block 4.1.0
Synopsis
This module allows block storage node for maintenance, and restore storage node from blocked state onHitachi SDS Block storage systems.
For examples, go to URL https://github.com/hitachi-vantara/vspone-block-ansible/blob/main/playbooks/sds_block_direct/storage_node.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 the storage node. |
|
The UUID of the storage node. |
|
The name of the storage node. |
|
The desired state of the storage pool. Choices:
|
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: none |
Determines if the module should run in check mode. |
Examples
- name: Block storage node for maintenance
hitachivantara.vspone_block.sds_block.hv_sds_block_storage_node:
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
state: "maintenance"
spec:
id: "3d0997ce-7065-4e4a-9095-4dc62b36f300"
- name: Restore storage node from maintenance
hitachivantara.vspone_block.sds_block.hv_sds_block_storage_node:
connection_info:
address: storage1.company.com
username: "admin"
password: "secret"
state: "restore"
spec:
id: "3d0997ce-7065-4e4a-9095-4dc62b36f300"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
A list of storage nodes. Returned: always |
|
Information about the storage node. Returned: success |
|
The storage node UUID, which is registered in the SMBIOS. Returned: success Sample: |
|
The role of the storage node in the storage cluster. Returned: success Sample: |
|
The IP address (IPv4) of the control port. Returned: success Sample: |
|
Status of drive data relocation. Returned: success Sample: |
|
The ID of a fault domain to which the volume belongs. Returned: success Sample: |
|
Name of a fault domain to which the volume belongs. Returned: success Sample: |
|
Storage node ID. Returned: success Sample: |
|
Insufficient resources for rebuild capacity. Returned: success |
|
Lacking drive capacity of rebuild capacity. Returned: success Sample: |
|
The number of lacking drives of rebuild capacity. Returned: success Sample: |
|
The IP address (IPv4) of the internode port. Returned: success Sample: |
|
The IP address (IPv4) of the internode port. Returned: success Sample: |
|
Model name of the server on which the storage node is running. Returned: success Sample: |
|
Storage node name. Returned: success Sample: |
|
The ID of the protection domain to which the volume is belonging. Returned: success Sample: |
|
Resource for which Rebuild is possible. Returned: success |
|
The number of drive failures that can be tolerated. Returned: success Sample: |
|
Serial number of the server on which the storage node is running. Returned: success Sample: |
|
The version of storage software. Returned: success Sample: |
|
The status of the storage node. Returned: success Sample: |
|
The summary of the storage node status. Returned: success Sample: |
|
Storage node attribute. An empty array ([]) means a storage node which has no attribute. Returned: success Sample: |