dellemc.powerflex.sdt module – Manage SDT (also called NVMe Target) on Dell PowerFlex
Note
This module is part of the dellemc.powerflex collection (version 2.6.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 dellemc.powerflex
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: dellemc.powerflex.sdt
.
New in dellemc.powerflex 2.6.0
Synopsis
Managing SDT (also called NVMe Target) on PowerFlex storage system includes creating new SDT, getting details of SDT, managing IP or role of SDT, modifying attributes of SDT, and deleting SDT.
Support only for Powerflex 4.5 versions and above.
Requirements
The below requirements are needed on the host that executes this module.
A Dell PowerFlex storage system version 3.6 or later.
PyPowerFlex 1.14.0.
Parameters
Parameter |
Comments |
---|---|
Discovery port of the SDT. |
|
IP or FQDN of the PowerFlex host. |
|
Maintenance mode state of the SDT. Choices:
|
|
NVMe port of the SDT. |
|
The password of the PowerFlex host. |
|
Port number through which communication happens with PowerFlex host. Default: |
|
The name of the protection domain. |
|
Dictionary of IPs and their roles for the SDT. At least one IP-role is mandatory while creating a SDT. IP-roles can be updated as well. |
|
IP address of the SDT. |
|
Role assigned to the SDT IP address. Choices:
|
|
The name of the SDT. Mandatory for all operations. It is unique across the PowerFlex array. |
|
SDT new name, can only be used for renaming the SDT. Only used for updates. Ignored during creation. |
|
State of the SDT. Choices:
|
|
Storage port of the SDT. |
|
Time after which connection will get terminated. It is to be mentioned in seconds. Default: |
|
The username of the PowerFlex host. |
|
Boolean variable to specify whether or not to validate SSL certificate.
Choices:
|
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full |
Runs task to validate without performing action on the target machine. |
|
Support: full |
Runs the task to report the changes made or to be made. |
Notes
Note
IP addresses, and IP address roles must be configured for each SDT.
You can assign both storage and host roles to the same target IP addresses.
Alternatively, assign the storage role to one target IP address, and add another target IP address for the host role.
Both roles must be configured on each NVMe target.
The modules present in the collection named as ‘dellemc.powerflex’ are built to support the Dell PowerFlex storage platform.
Examples
- name: Create SDT
dellemc.powerflex.sdt:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
sdt_name: "sdt_example"
sdt_ip_list:
- ip: "172.169.xx.xx"
role: "StorageAndHost"
- ip: "172.169.yy.yy"
role: "StorageAndHost"
protection_domain_name: "PD1"
storage_port: 12200
nvme_port: 4420
discovery_port: 8009
state: "present"
- name: Rename SDT
dellemc.powerflex.sdt:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
sdt_name: "sdt_example"
sdt_new_name: "sdt_new_example"
state: "present"
- name: Modify SDT port
dellemc.powerflex.sdt:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
sdt_name: "sdt_example"
nvme_port: 4421
discovery_port: 8008
state: "present"
- name: Change maintenance mode
dellemc.powerflex.sdt:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
sdt_name: "sdt_example"
maintenance_mode: "active"
state: "present"
- name: Set IP and role to SDT
dellemc.powerflex.sdt:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
sdt_name: "sdt_example"
sdt_ip_list:
- ip: "172.169.xx.xx"
role: "StorageAndHost"
- ip: "172.169.zz.zz"
role: "StorageAndHost"
state: "present"
- name: Remove SDT
dellemc.powerflex.sdt:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "{{ validate_certs }}"
sdt_name: "sdt_example"
state: "absent"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Whether or not the resource has changed. Returned: always Sample: |
|
Details of the SDT. Returned: When SDT exists Sample: |
|
Indicates authentication error. Returned: success |
|
Information about certificate. Returned: success |
|
Issuer of the certificate. Returned: success |
|
Subject of the certificate. Returned: success |
|
Thumbprint of the certificate. Returned: success |
|
Date and time the certificate is valid from. Returned: success |
|
Valid from date in ASN.1 format. Returned: success |
|
Date and time the certificate is valid to. Returned: success |
|
Valid to date in ASN.1 format. Returned: success |
|
Discovery port. Returned: success |
|
Fault set ID. Returned: success |
|
SDS ID. Returned: success |
|
SDS IP list. Returned: success |
|
IP present in the SDS. Returned: success |
|
Role of the SDS IP. Returned: success |
|
SDS links. Returned: success |
|
SDS instance URL. Returned: success |
|
SDS’s relationship with different entities. Returned: success |
|
Maintenance state. Returned: success |
|
MDM connection state. Returned: success |
|
Membership state. Returned: success |
|
Name of the SDS. Returned: success |
|
NVMe port. Returned: success |
|
Number of persistent discovery controllers. Returned: success |
|
Protection Domain ID. Returned: success |
|
Protection Domain Name. Returned: success |
|
SDS state. Returned: success |
|
SDS software version information. Returned: success |
|
Storage port. Returned: success |
|
System ID. Returned: success |