hitachivantara.vspone_block.sds_block.hv_sds_block_storage_node module – Manages storage node on VSP One SDS Block and Cloud systems.
Note
This module is part of the hitachivantara.vspone_block collection (version 4.8.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.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 on VSP One SDS Block and Cloud 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 |
|---|---|
connection_info dictionary / required | Information required to establish a connection to the storage system. |
|
address string / required |
IP address or hostname of the storage system. |
|
connection_type string |
Type of connection to the storage system. Choices:
|
|
password string / required |
Password for authentication. This is a required field. |
|
username string / required |
Username for authentication. This is a required field. |
spec dictionary / required | Specification for the storage node. |
|
id string |
The UUID of the storage node. Required for the Block storage node for maintenance by node ID /Restore storage node from maintenance by node ID /Edit the capacity balancing settings of a storage node by ID tasks. |
|
is_capacity_balancing_enabled boolean |
Enables or disables the capacity balancing. If true, capacity balancing applies to the storage node. If false, capacity balancing does not apply to the storage node. Required for the Edit the capacity balancing settings of a storage node by ID /Edit the capacity balancing settings of a storage node by name tasks. Choices:
|
|
name string |
The name of the storage node. Required for the Block storage node for maintenance by node name /Restore storage node from maintenance by node name /Edit the capacity balancing settings of a storage node by name tasks. |
state string | The desired state of the storage pool. Choices:
|
Attributes
Attribute | Support | Description |
|---|---|---|
check_mode | Support: none | Determines if the module should run in check mode. |
Notes
Note
- For Block storage node for maintenance by node ID
-
- The nodes will shut down after the task is complete.
- For Block storage node for maintenance by node name
-
- The nodes will shut down after the task is complete.
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 |
|---|---|
storage_nodes list / elements=dictionary | List of storage nodes. Returned: always |
|
bios_uuid string |
The storage node UUID, which is registered in the SMBIOS. Returned: success Sample: |
|
cluster_role string |
The role of the storage node in the storage cluster. Returned: success Sample: |
|
control_port_ipv4_address string |
The IP address (IPv4) of the control port. Returned: success Sample: |
|
drive_data_relocation_status string |
Status of drive data relocation. Returned: success Sample: |
|
fault_domain_id string |
The ID of a fault domain to which the volume belongs. Returned: success Sample: |
|
fault_domain_name string |
Name of a fault domain to which the volume belongs. Returned: success Sample: |
|
id string |
Storage node ID. Returned: success Sample: |
|
insufficient_resources_for_rebuild_capacity dictionary |
Insufficient resources for rebuild capacity (may be empty). Returned: success |
|
capacity_of_drive integer |
Lacking drive capacity of rebuild capacity. Returned: success Sample: |
|
number_of_drives integer |
The number of lacking drives of rebuild capacity. Returned: success Sample: |
|
internode_port_ipv4_address string |
The IP address (IPv4) of the internode port. Returned: success Sample: |
|
memory_mb integer |
Memory size in megabytes. Returned: success Sample: |
|
model_name string |
Model name of the server on which the storage node is running. Returned: success Sample: |
|
name string |
Storage node name. Returned: success Sample: |
|
protection_domain_id string |
The ID of the protection domain to which the volume is belonging. Returned: success Sample: |
|
rebuildable_resources dictionary |
Resource for which Rebuild is possible (may be empty). Returned: success |
|
number_of_drives integer |
The number of drive failures that can be tolerated. Returned: success Sample: |
|
serial_number string |
Serial number of the server on which the storage node is running. Returned: success Sample: |
|
software_version string |
The version of storage software. Returned: success Sample: |
|
status string |
The status of the storage node. Returned: success Sample: |
|
status_summary string |
The summary of the storage node status. Returned: success Sample: |
|
storage_node_attributes list / elements=string |
Storage node attribute. An empty array ([]) means a storage node which has no attribute. Returned: success Sample: |
Collection links
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/projects/ansible/latest/collections/hitachivantara/vspone_block/sds_block.hv_sds_block_storage_node_module.html