1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
|
.. _sds_module:
sds -- Manage SDS on Dell PowerFlex
===================================
.. contents::
:local:
:depth: 1
Synopsis
--------
Managing SDS on PowerFlex storage system includes creating new SDS, getting details of SDS, adding/removing IP to/from SDS, modifying attributes of SDS, and deleting SDS.
Requirements
------------
The below requirements are needed on the host that executes this module.
- A Dell PowerFlex storage system version 3.6 or later.
- Ansible-core 2.14 or later.
- PyPowerFlex 1.11.0.
- Python 3.9, 3.10 or 3.11.
Parameters
----------
sds_name (optional, str, None)
The name of the SDS.
Mandatory for create operation.
It is unique across the PowerFlex array.
Mutually exclusive with *sds_id*.
sds_id (optional, str, None)
The ID of the SDS.
Except create operation, all other operations can be performed using *sds_id*.
Mutually exclusive with *sds_name*.
protection_domain_name (optional, str, None)
The name of the protection domain.
Mutually exclusive with *protection_domain_id*.
protection_domain_id (optional, str, None)
The ID of the protection domain.
Mutually exclusive with *protection_domain_name*.
sds_ip_list (optional, list, None)
Dictionary of IPs and their roles for the SDS.
At least one IP-role is mandatory while creating a SDS.
IP-roles can be updated as well.
ip (True, str, None)
IP address of the SDS.
role (True, str, None)
Role assigned to the SDS IP address.
sds_ip_state (optional, str, None)
State of IP with respect to the SDS.
rfcache_enabled (optional, bool, None)
Whether to enable the Read Flash cache.
rmcache_enabled (optional, bool, None)
Whether to enable the Read RAM cache.
rmcache_size (optional, int, None)
Read RAM cache size (in MB).
Minimum size is 128 MB.
Maximum size is 3911 MB.
sds_new_name (optional, str, None)
SDS new name.
performance_profile (optional, str, None)
Performance profile to apply to the SDS.
The HighPerformance profile configures a predefined set of parameters for very high performance use cases.
Default value by API is ``HighPerformance``.
fault_set_name (optional, str, None)
Name of the fault set.
Mutually exclusive with *fault_set_id*.
fault_set_id (optional, str, None)
Unique identifier of the fault set.
Mutually exclusive with *fault_set_name*.
state (True, str, None)
State of the SDS.
hostname (True, str, None)
IP or FQDN of the PowerFlex host.
username (True, str, None)
The username of the PowerFlex host.
password (True, str, None)
The password of the PowerFlex host.
validate_certs (optional, bool, True)
Boolean variable to specify whether or not to validate SSL certificate.
``true`` - Indicates that the SSL certificate should be verified.
``false`` - Indicates that the SSL certificate should not be verified.
port (optional, int, 443)
Port number through which communication happens with PowerFlex host.
timeout (False, int, 120)
Time after which connection will get terminated.
It is to be mentioned in seconds.
Notes
-----
.. note::
- The maximum limit for the IPs that can be associated with an SDS is 8.
- There needs to be at least 1 IP for SDS communication and 1 for SDC communication.
- If only 1 IP exists, it must be with role 'all'; else 1 IP can be with role 'all'and other IPs with role 'sdcOnly'; or 1 IP must be with role 'sdsOnly' and others with role 'sdcOnly'.
- There can be 1 or more IPs with role 'sdcOnly'.
- There must be only 1 IP with SDS role (either with role 'all' or 'sdsOnly').
- SDS can be created with RF cache disabled, but, be aware that the RF cache is not always updated. In this case, the user should re-try the operation.
- The *check_mode* is supported.
- The modules present in the collection named as 'dellemc.powerflex' are built to support the Dell PowerFlex storage platform.
Examples
--------
.. code-block:: yaml+jinja
- name: Create SDS
dellemc.powerflex.sds:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
sds_name: "node0"
protection_domain_name: "domain1"
sds_ip_list:
- ip: "198.10.xxx.xxx"
role: "all"
sds_ip_state: "present-in-sds"
state: "present"
- name: Create SDS with all parameters
dellemc.powerflex.sds:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
sds_name: "node1"
protection_domain_name: "domain1"
fault_set_name: "faultset1"
sds_ip_list:
- ip: "198.10.xxx.xxx"
role: "sdcOnly"
sds_ip_state: "present-in-sds"
rmcache_enabled: true
rmcache_size: 128
fault_set_name: "{{fault_set_name}}"
performance_profile: "HighPerformance"
state: "present"
- name: Get SDS details using name
dellemc.powerflex.sds:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
sds_name: "node0"
state: "present"
- name: Get SDS details using ID
dellemc.powerflex.sds:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
sds_id: "5718253c00000004"
state: "present"
- name: Modify SDS attributes using name
dellemc.powerflex.sds:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
sds_name: "node0"
sds_new_name: "node0_new"
rfcache_enabled: true
rmcache_enabled: true
rmcache_size: 256
performance_profile: "HighPerformance"
state: "present"
- name: Modify SDS attributes using ID
dellemc.powerflex.sds:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
sds_id: "5718253c00000004"
sds_new_name: "node0_new"
rfcache_enabled: true
rmcache_enabled: true
rmcache_size: 256
performance_profile: "HighPerformance"
state: "present"
- name: Add IP and role to an SDS
dellemc.powerflex.sds:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
sds_name: "node0"
sds_ip_list:
- ip: "198.10.xxx.xxx"
role: "sdcOnly"
sds_ip_state: "present-in-sds"
state: "present"
- name: Remove IP and role from an SDS
dellemc.powerflex.sds:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
sds_name: "node0"
sds_ip_list:
- ip: "198.10.xxx.xxx"
role: "sdcOnly"
sds_ip_state: "absent-in-sds"
state: "present"
- name: Delete SDS using name
dellemc.powerflex.sds:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
sds_name: "node0"
state: "absent"
- name: Delete SDS using ID
dellemc.powerflex.sds:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
sds_id: "5718253c00000004"
state: "absent"
Return Values
-------------
changed (always, bool, false)
Whether or not the resource has changed.
sds_details (When SDS exists, dict, {'authenticationError': 'None', 'certificateInfo': None, 'configuredDrlMode': 'Volatile', 'drlMode': 'Volatile', 'faultSetId': None, 'fglMetadataCacheSize': 0, 'fglMetadataCacheState': 'Disabled', 'fglNumConcurrentWrites': 1000, 'id': '8f3bb0cc00000002', 'ipList': [{'ip': '10.47.xxx.xxx', 'role': 'all'}], 'lastUpgradeTime': 0, 'links': [{'href': '/api/instances/Sds::8f3bb0cc00000002', 'rel': 'self'}, {'href': '/api/instances/Sds::8f3bb0cc00000002/relationships /Statistics', 'rel': '/api/Sds/relationship/Statistics'}, {'href': '/api/instances/Sds::8f3bb0cc00000002/relationships /SpSds', 'rel': '/api/Sds/relationship/SpSds'}, {'href': '/api/instances/Sds::8f3bb0cc00000002/relationships /Device', 'rel': '/api/Sds/relationship/Device'}, {'href': '/api/instances/ProtectionDomain::9300c1f900000000', 'rel': '/api/parent/relationship/protectionDomainId'}], 'maintenanceState': 'NoMaintenance', 'maintenanceType': 'NoMaintenance', 'mdmConnectionState': 'Connected', 'membershipState': 'Joined', 'name': 'node0', 'numOfIoBuffers': None, 'numRestarts': 2, 'onVmWare': True, 'perfProfile': 'HighPerformance', 'port': 7072, 'protectionDomainId': '9300c1f900000000', 'protectionDomainName': 'domain1', 'raidControllers': None, 'rfcacheEnabled': True, 'rfcacheErrorApiVersionMismatch': False, 'rfcacheErrorDeviceDoesNotExist': False, 'rfcacheErrorInconsistentCacheConfiguration': False, 'rfcacheErrorInconsistentSourceConfiguration': False, 'rfcacheErrorInvalidDriverPath': False, 'rfcacheErrorLowResources': False, 'rmcacheEnabled': True, 'rmcacheFrozen': False, 'rmcacheMemoryAllocationState': 'AllocationPending', 'rmcacheSizeInKb': 131072, 'rmcacheSizeInMb': 128, 'sdsConfigurationFailure': None, 'sdsDecoupled': None, 'sdsReceiveBufferAllocationFailures': None, 'sdsState': 'Normal', 'softwareVersionInfo': 'R3_6.0.0'})
Details of the SDS.
authenticationError (, str, )
Indicates authentication error.
certificateInfo (, str, )
Information about certificate.
configuredDrlMode (, str, )
Configured DRL mode.
drlMode (, str, )
DRL mode.
faultSetId (, str, )
Fault set ID.
faultSetName (, str, )
Name of the Fault set.
fglMetadataCacheSize (, int, )
FGL metadata cache size.
fglMetadataCacheState (, str, )
FGL metadata cache state.
fglNumConcurrentWrites (, int, )
FGL concurrent writes.
id (, str, )
SDS ID.
ipList (, list, )
SDS IP list.
ip (, str, )
IP present in the SDS.
role (, str, )
Role of the SDS IP.
lastUpgradeTime (, str, )
Last time SDS was upgraded.
links (, list, )
SDS links.
href (, str, )
SDS instance URL.
rel (, str, )
SDS's relationship with different entities.
maintenanceState (, str, )
Maintenance state.
maintenanceType (, str, )
Maintenance type.
mdmConnectionState (, str, )
MDM connection state.
membershipState (, str, )
Membership state.
name (, str, )
Name of the SDS.
numOfIoBuffers (, int, )
Number of IO buffers.
numRestarts (, int, )
Number of restarts.
onVmWare (, bool, )
Presence on VMware.
perfProfile (, str, )
Performance profile.
port (, int, )
SDS port.
protectionDomainId (, str, )
Protection Domain ID.
protectionDomainName (, str, )
Protection Domain Name.
raidControllers (, int, )
Number of RAID controllers.
rfcacheEnabled (, bool, )
Whether RF cache is enabled or not.
rfcacheErrorApiVersionMismatch (, bool, )
RF cache error for API version mismatch.
rfcacheErrorDeviceDoesNotExist (, bool, )
RF cache error for device does not exist.
rfcacheErrorInconsistentCacheConfiguration (, bool, )
RF cache error for inconsistent cache configuration.
rfcacheErrorInconsistentSourceConfiguration (, bool, )
RF cache error for inconsistent source configuration.
rfcacheErrorInvalidDriverPath (, bool, )
RF cache error for invalid driver path.
rfcacheErrorLowResources (, bool, )
RF cache error for low resources.
rmcacheEnabled (, bool, )
Whether Read RAM cache is enabled or not.
rmcacheFrozen (, bool, )
RM cache frozen.
rmcacheMemoryAllocationState (, bool, )
RM cache memory allocation state.
rmcacheSizeInKb (, int, )
RM cache size in KB.
rmcacheSizeInMb (, int, )
RM cache size in MB.
sdsConfigurationFailure (, str, )
SDS configuration failure.
sdsDecoupled (, str, )
SDS decoupled.
sdsReceiveBufferAllocationFailures (, str, )
SDS receive buffer allocation failures.
sdsState (, str, )
SDS state.
softwareVersionInfo (, str, )
SDS software version information.
Status
------
Authors
~~~~~~~
- Rajshree Khare (@khareRajshree) <ansible.team@dell.com>
- Trisha Datta (@trisha-dell) <ansible.team@dell.com>
|