Debian Codegraph @

ansible_collections/dellemc/powerflex/docs/modules/sds.rst

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