| 1 |
.. _sdt_module: |
| 2 |
|
| 3 |
|
| 4 |
sdt -- Manage SDT (also called NVMe Target) on Dell PowerFlex |
| 5 |
============================================================= |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
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. |
| 16 |
|
| 17 |
Support only for Powerflex 4.5 versions and above. |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
Requirements |
| 22 |
------------ |
| 23 |
The below requirements are needed on the host that executes this module. |
| 24 |
|
| 25 |
- A Dell PowerFlex storage system version 3.6 or later. |
| 26 |
- PyPowerFlex 2.0.0. |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
Parameters |
| 31 |
---------- |
| 32 |
|
| 33 |
discovery_port (optional, int, None) |
| 34 |
Discovery port of the SDT. |
| 35 |
|
| 36 |
|
| 37 |
maintenance_mode (optional, str, None) |
| 38 |
Maintenance mode state of the SDT. |
| 39 |
|
| 40 |
|
| 41 |
nvme_port (optional, int, None) |
| 42 |
NVMe port of the SDT. |
| 43 |
|
| 44 |
|
| 45 |
protection_domain_name (optional, str, None) |
| 46 |
The name of the protection domain. |
| 47 |
|
| 48 |
|
| 49 |
sdt_ip_list (optional, list, None) |
| 50 |
Dictionary of IPs and their roles for the SDT. |
| 51 |
|
| 52 |
At least one IP-role is mandatory while creating a SDT. |
| 53 |
|
| 54 |
IP-roles can be updated as well. |
| 55 |
|
| 56 |
|
| 57 |
ip (True, str, None) |
| 58 |
IP address of the SDT. |
| 59 |
|
| 60 |
|
| 61 |
role (True, str, None) |
| 62 |
Role assigned to the SDT IP address. |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
sdt_name (True, str, None) |
| 67 |
The name of the SDT. |
| 68 |
|
| 69 |
Mandatory for all operations. |
| 70 |
|
| 71 |
It is unique across the PowerFlex array. |
| 72 |
|
| 73 |
|
| 74 |
sdt_new_name (optional, str, None) |
| 75 |
SDT new name, can only be used for renaming the SDT. |
| 76 |
|
| 77 |
Only used for updates. Ignored during creation. |
| 78 |
|
| 79 |
|
| 80 |
state (optional, str, present) |
| 81 |
State of the SDT. |
| 82 |
|
| 83 |
|
| 84 |
storage_port (optional, int, None) |
| 85 |
Storage port of the SDT. |
| 86 |
|
| 87 |
|
| 88 |
hostname (True, str, None) |
| 89 |
IP or FQDN of the PowerFlex host. |
| 90 |
|
| 91 |
|
| 92 |
username (True, str, None) |
| 93 |
The username of the PowerFlex host. |
| 94 |
|
| 95 |
|
| 96 |
password (True, str, None) |
| 97 |
The password of the PowerFlex host. |
| 98 |
|
| 99 |
|
| 100 |
validate_certs (optional, bool, True) |
| 101 |
Boolean variable to specify whether or not to validate SSL certificate. |
| 102 |
|
| 103 |
\ :literal:`true`\ - Indicates that the SSL certificate should be verified. |
| 104 |
|
| 105 |
\ :literal:`false`\ - Indicates that the SSL certificate should not be verified. |
| 106 |
|
| 107 |
|
| 108 |
port (optional, int, 443) |
| 109 |
Port number through which communication happens with PowerFlex host. |
| 110 |
|
| 111 |
|
| 112 |
timeout (False, int, 120) |
| 113 |
Time after which connection will get terminated. |
| 114 |
|
| 115 |
It is to be mentioned in seconds. |
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
Notes |
| 122 |
----- |
| 123 |
|
| 124 |
.. note:: |
| 125 |
- IP addresses, and IP address roles must be configured for each SDT. |
| 126 |
- You can assign both storage and host roles to the same target IP addresses. |
| 127 |
- Alternatively, assign the storage role to one target IP address, and add another target IP address for the host role. |
| 128 |
- Both roles must be configured on each NVMe target. |
| 129 |
- The modules present in the collection named as 'dellemc.powerflex' are built to support the Dell PowerFlex storage platform. |
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
Examples |
| 135 |
-------- |
| 136 |
|
| 137 |
.. code-block:: yaml+jinja |
| 138 |
|
| 139 |
|
| 140 |
- name: Create SDT |
| 141 |
dellemc.powerflex.sdt: |
| 142 |
hostname: "{{ hostname }}" |
| 143 |
username: "{{ username }}" |
| 144 |
password: "{{ password }}" |
| 145 |
validate_certs: "{{ validate_certs }}" |
| 146 |
sdt_name: "sdt_example" |
| 147 |
sdt_ip_list: |
| 148 |
- ip: "172.169.xx.xx" |
| 149 |
role: "StorageAndHost" |
| 150 |
- ip: "172.169.yy.yy" |
| 151 |
role: "StorageAndHost" |
| 152 |
protection_domain_name: "PD1" |
| 153 |
storage_port: 12200 |
| 154 |
nvme_port: 4420 |
| 155 |
discovery_port: 8009 |
| 156 |
state: "present" |
| 157 |
|
| 158 |
- name: Rename SDT |
| 159 |
dellemc.powerflex.sdt: |
| 160 |
hostname: "{{ hostname }}" |
| 161 |
username: "{{ username }}" |
| 162 |
password: "{{ password }}" |
| 163 |
validate_certs: "{{ validate_certs }}" |
| 164 |
sdt_name: "sdt_example" |
| 165 |
sdt_new_name: "sdt_new_example" |
| 166 |
state: "present" |
| 167 |
|
| 168 |
- name: Modify SDT port |
| 169 |
dellemc.powerflex.sdt: |
| 170 |
hostname: "{{ hostname }}" |
| 171 |
username: "{{ username }}" |
| 172 |
password: "{{ password }}" |
| 173 |
validate_certs: "{{ validate_certs }}" |
| 174 |
sdt_name: "sdt_example" |
| 175 |
nvme_port: 4421 |
| 176 |
discovery_port: 8008 |
| 177 |
state: "present" |
| 178 |
|
| 179 |
- name: Change maintenance mode |
| 180 |
dellemc.powerflex.sdt: |
| 181 |
hostname: "{{ hostname }}" |
| 182 |
username: "{{ username }}" |
| 183 |
password: "{{ password }}" |
| 184 |
validate_certs: "{{ validate_certs }}" |
| 185 |
sdt_name: "sdt_example" |
| 186 |
maintenance_mode: "active" |
| 187 |
state: "present" |
| 188 |
|
| 189 |
- name: Set IP and role to SDT |
| 190 |
dellemc.powerflex.sdt: |
| 191 |
hostname: "{{ hostname }}" |
| 192 |
username: "{{ username }}" |
| 193 |
password: "{{ password }}" |
| 194 |
validate_certs: "{{ validate_certs }}" |
| 195 |
sdt_name: "sdt_example" |
| 196 |
sdt_ip_list: |
| 197 |
- ip: "172.169.xx.xx" |
| 198 |
role: "StorageAndHost" |
| 199 |
- ip: "172.169.zz.zz" |
| 200 |
role: "StorageAndHost" |
| 201 |
state: "present" |
| 202 |
|
| 203 |
- name: Remove SDT |
| 204 |
dellemc.powerflex.sdt: |
| 205 |
hostname: "{{ hostname }}" |
| 206 |
username: "{{ username }}" |
| 207 |
password: "{{ password }}" |
| 208 |
validate_certs: "{{ validate_certs }}" |
| 209 |
sdt_name: "sdt_example" |
| 210 |
state: "absent" |
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
Return Values |
| 215 |
------------- |
| 216 |
|
| 217 |
changed (always, bool, false) |
| 218 |
Whether or not the resource has changed. |
| 219 |
|
| 220 |
|
| 221 |
sdt_details (When SDT exists, dict, {'authenticationError': 'None', 'certificateInfo': {'issuer': '/GN=MDM/CN=CA-804696a4dbe1d90f/L=Hopkinton/ST=Massachusetts/C=US/O=EMC/OU=ASD', 'subject': '/GN=sdt-comp-0/CN=host41/L=Hopkinton/ST=Massachusetts/C=US/O=EMC/OU=ASD', 'thumbprint': '07:1E:FC:48:03:42:E6:45:14:1D:AA:97:1F:4F:B9:B2:B4:11:99:09', 'validFrom': 'Oct 8 02:35:00 2024 GMT', 'validFromAsn1Format': '241008023500Z', 'validTo': 'Oct 7 03:35:00 2034 GMT', 'validToAsn1Format': '341007033500Z'}, 'discoveryPort': 8009, 'faultSetId': None, 'id': '917d28ed00000000', 'ipList': [{'ip': '172.169.xx.xx', 'role': 'StorageAndHost'}, {'ip': '172.169.yy.yy', 'role': 'StorageAndHost'}], 'links': [{'href': '/api/instances/Sdt::917d28ed00000000', 'rel': 'self'}, {'href': '/api/instances/Sdt::917d28ed00000000/relationships/Statistics', 'rel': '/api/Sdt/relationship/Statistics'}, {'href': '/api/instances/ProtectionDomain::b4787fa100000000', 'rel': '/api/parent/relationship/protectionDomainId'}], 'maintenanceState': 'NoMaintenance', 'mdmConnectionState': 'Connected', 'membershipState': 'Joined', 'name': 'Sdt-pf460-svm-1', 'nvmePort': 4420, 'persistentDiscoveryControllersNum': 0, 'protectionDomainId': 'b4787fa100000000', 'protectionDomainName': 'PD1', 'sdtState': 'Normal', 'softwareVersionInfo': 'R4_5.2100.0', 'storagePort': 12200, 'systemId': '804696a4dbe1d90f'}) |
| 222 |
Details of the SDT. |
| 223 |
|
| 224 |
|
| 225 |
authenticationError (, str, ) |
| 226 |
Indicates authentication error. |
| 227 |
|
| 228 |
|
| 229 |
certificateInfo (, dict, ) |
| 230 |
Information about certificate. |
| 231 |
|
| 232 |
|
| 233 |
issuer (, str, ) |
| 234 |
Issuer of the certificate. |
| 235 |
|
| 236 |
|
| 237 |
subject (, str, ) |
| 238 |
Subject of the certificate. |
| 239 |
|
| 240 |
|
| 241 |
thumbprint (, str, ) |
| 242 |
Thumbprint of the certificate. |
| 243 |
|
| 244 |
|
| 245 |
validFrom (, str, ) |
| 246 |
Date and time the certificate is valid from. |
| 247 |
|
| 248 |
|
| 249 |
validFromAsn1Format (, str, ) |
| 250 |
Valid from date in ASN.1 format. |
| 251 |
|
| 252 |
|
| 253 |
validTo (, str, ) |
| 254 |
Date and time the certificate is valid to. |
| 255 |
|
| 256 |
|
| 257 |
validToAsn1Format (, str, ) |
| 258 |
Valid to date in ASN.1 format. |
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
discoveryPort (, int, ) |
| 263 |
Discovery port. |
| 264 |
|
| 265 |
|
| 266 |
faultSetId (, str, ) |
| 267 |
Fault set ID. |
| 268 |
|
| 269 |
|
| 270 |
id (, str, ) |
| 271 |
SDS ID. |
| 272 |
|
| 273 |
|
| 274 |
ipList (, list, ) |
| 275 |
SDS IP list. |
| 276 |
|
| 277 |
|
| 278 |
ip (, str, ) |
| 279 |
IP present in the SDS. |
| 280 |
|
| 281 |
|
| 282 |
role (, str, ) |
| 283 |
Role of the SDS IP. |
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
links (, list, ) |
| 288 |
SDS links. |
| 289 |
|
| 290 |
|
| 291 |
href (, str, ) |
| 292 |
SDS instance URL. |
| 293 |
|
| 294 |
|
| 295 |
rel (, str, ) |
| 296 |
SDS's relationship with different entities. |
| 297 |
|
| 298 |
|
| 299 |
|
| 300 |
maintenanceState (, str, ) |
| 301 |
Maintenance state. |
| 302 |
|
| 303 |
|
| 304 |
mdmConnectionState (, str, ) |
| 305 |
MDM connection state. |
| 306 |
|
| 307 |
|
| 308 |
membershipState (, str, ) |
| 309 |
Membership state. |
| 310 |
|
| 311 |
|
| 312 |
name (, str, ) |
| 313 |
Name of the SDS. |
| 314 |
|
| 315 |
|
| 316 |
nvmePort (, int, ) |
| 317 |
NVMe port. |
| 318 |
|
| 319 |
|
| 320 |
persistentDiscoveryControllersNum (, int, ) |
| 321 |
Number of persistent discovery controllers. |
| 322 |
|
| 323 |
|
| 324 |
protectionDomainId (, str, ) |
| 325 |
Protection Domain ID. |
| 326 |
|
| 327 |
|
| 328 |
protectionDomainName (, str, ) |
| 329 |
Protection Domain Name. |
| 330 |
|
| 331 |
|
| 332 |
sdtState (, str, ) |
| 333 |
SDS state. |
| 334 |
|
| 335 |
|
| 336 |
softwareVersionInfo (, str, ) |
| 337 |
SDS software version information. |
| 338 |
|
| 339 |
|
| 340 |
storagePort (, int, ) |
| 341 |
Storage port. |
| 342 |
|
| 343 |
|
| 344 |
systemId (, str, ) |
| 345 |
System ID. |
| 346 |
|
| 347 |
|
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
|
| 352 |
Status |
| 353 |
------ |
| 354 |
|
| 355 |
|
| 356 |
|
| 357 |
|
| 358 |
|
| 359 |
Authors |
| 360 |
~~~~~~~ |
| 361 |
|
| 362 |
- Yuhao Liu (@RayLiu7) <[email protected]> |
| 363 |
|