Debian Codegraph @

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

raw
1 .. _mdm_cluster_module:
2
3
4 mdm_cluster -- Manage MDM cluster on Dell PowerFlex
5 ===================================================
6
7 .. contents::
8 :local:
9 :depth: 1
10
11
12 Synopsis
13 --------
14
15 Managing MDM cluster and MDMs on PowerFlex storage system includes adding/removing standby MDM, modify MDM name and virtual interface.
16
17 It also includes getting details of MDM cluster, modify MDM cluster ownership, cluster mode, and performance profile.
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 mdm_name (optional, str, None)
34 The name of the MDM. It is unique across the PowerFlex array.
35
36 Mutually exclusive with \ :emphasis:`mdm\_id`\ .
37
38 If mdm\_name passed in add standby operation, then same name will be assigned to the new standby mdm.
39
40
41 mdm_id (optional, str, None)
42 The ID of the MDM.
43
44 Mutually exclusive with \ :emphasis:`mdm\_name`\ .
45
46
47 mdm_new_name (optional, str, None)
48 To rename the MDM.
49
50
51 standby_mdm (optional, dict, None)
52 Specifies add standby MDM parameters.
53
54
55 mdm_ips (True, list, None)
56 List of MDM IPs that will be assigned to new MDM. It can contain IPv4 addresses.
57
58
59 role (True, str, None)
60 Role of new MDM.
61
62
63 management_ips (optional, list, None)
64 List of management IPs to manage MDM. It can contain IPv4 addresses.
65
66
67 port (optional, int, None)
68 Specifies the port of new MDM.
69
70
71 allow_multiple_ips (optional, bool, None)
72 Allow the added node to have different number of IPs from the primary node.
73
74
75 virtual_interfaces (optional, list, None)
76 List of NIC interfaces that will be used for virtual IP addresses.
77
78
79
80 is_primary (optional, bool, None)
81 Set \ :emphasis:`is\_primary`\ as \ :literal:`true`\ to change MDM cluster ownership from the current master MDM to different MDM.
82
83 Set \ :emphasis:`is\_primary`\ as \ :literal:`false`\ , will return MDM cluster details.
84
85 New owner MDM must be an MDM with a manager role.
86
87
88 cluster_mode (optional, str, None)
89 Mode of the cluster.
90
91
92 mdm (optional, list, None)
93 Specifies parameters to add/remove MDMs to/from the MDM cluster.
94
95
96 mdm_id (optional, str, None)
97 ID of MDM that will be added/removed to/from the cluster.
98
99
100 mdm_name (optional, str, None)
101 Name of MDM that will be added/removed to/from the cluster.
102
103
104 mdm_type (True, str, None)
105 Type of the MDM.
106
107 Either \ :emphasis:`mdm\_id`\ or \ :emphasis:`mdm\_name`\ must be passed with mdm\_type.
108
109
110
111 mdm_state (optional, str, None)
112 Mapping state of MDM.
113
114
115 virtual_ip_interfaces (optional, list, None)
116 List of interfaces to be used for virtual IPs.
117
118 The order of interfaces must be matched with virtual IPs assigned to the cluster.
119
120 Interfaces of the primary and secondary type MDMs are allowed to modify.
121
122 The \ :emphasis:`virtual\_ip\_interfaces`\ is mutually exclusive with \ :emphasis:`clear\_interfaces`\ .
123
124
125 clear_interfaces (optional, bool, None)
126 Clear all virtual IP interfaces.
127
128 The \ :emphasis:`clear\_interfaces`\ is mutually exclusive with \ :emphasis:`virtual\_ip\_interfaces`\ .
129
130
131 performance_profile (optional, str, None)
132 Apply performance profile to cluster MDMs.
133
134
135 state (True, str, None)
136 State of the MDM cluster.
137
138
139 hostname (True, str, None)
140 IP or FQDN of the PowerFlex host.
141
142
143 username (True, str, None)
144 The username of the PowerFlex host.
145
146
147 password (True, str, None)
148 The password of the PowerFlex host.
149
150
151 validate_certs (optional, bool, True)
152 Boolean variable to specify whether or not to validate SSL certificate.
153
154 \ :literal:`true`\ - Indicates that the SSL certificate should be verified.
155
156 \ :literal:`false`\ - Indicates that the SSL certificate should not be verified.
157
158
159 port (optional, int, 443)
160 Port number through which communication happens with PowerFlex host.
161
162
163 timeout (False, int, 120)
164 Time after which connection will get terminated.
165
166 It is to be mentioned in seconds.
167
168
169
170
171
172 Notes
173 -----
174
175 .. note::
176 - Parameters \ :emphasis:`mdm\_name`\ or \ :emphasis:`mdm\_id`\ are mandatory for rename and modify virtual IP interfaces.
177 - Parameters \ :emphasis:`mdm\_name`\ or \ :emphasis:`mdm\_id`\ are not required while modifying performance profile.
178 - For change MDM cluster ownership operation, only changed as true will be returned and for idempotency case MDM cluster details will be returned.
179 - Reinstall all SDC after changing ownership to some newly added MDM.
180 - To add manager standby MDM, MDM package must be installed with manager role.
181 - The \ :emphasis:`check\_mode`\ is supported.
182 - The modules present in the collection named as 'dellemc.powerflex' are built to support the Dell PowerFlex storage platform.
183
184
185
186
187 Examples
188 --------
189
190 .. code-block:: yaml+jinja
191
192
193 - name: Add a standby MDM
194 dellemc.powerflex.mdm_cluster:
195 hostname: "{{hostname}}"
196 username: "{{username}}"
197 password: "{{password}}"
198 validate_certs: "{{validate_certs}}"
199 port: "{{port}}"
200 mdm_name: "mdm_1"
201 standby_mdm:
202 mdm_ips:
203 - "10.x.x.x"
204 role: "TieBreaker"
205 management_ips:
206 - "10.x.y.z"
207 state: "present"
208
209 - name: Remove a standby MDM
210 dellemc.powerflex.mdm_cluster:
211 hostname: "{{hostname}}"
212 username: "{{username}}"
213 password: "{{password}}"
214 validate_certs: "{{validate_certs}}"
215 port: "{{port}}"
216 mdm_name: "mdm_1"
217 state: "absent"
218
219 - name: Switch cluster mode from 3 node to 5 node MDM cluster
220 dellemc.powerflex.mdm_cluster:
221 hostname: "{{hostname}}"
222 username: "{{username}}"
223 password: "{{password}}"
224 validate_certs: "{{validate_certs}}"
225 port: "{{port}}"
226 cluster_mode: "FiveNodes"
227 mdm:
228 - mdm_id: "5f091a8a013f1100"
229 mdm_type: "Secondary"
230 - mdm_name: "mdm_1"
231 mdm_type: "TieBreaker"
232 sdc_state: "present-in-cluster"
233 state: "present"
234
235 - name: Switch cluster mode from 5 node to 3 node MDM cluster
236 dellemc.powerflex.mdm_cluster:
237 hostname: "{{hostname}}"
238 username: "{{username}}"
239 password: "{{password}}"
240 validate_certs: "{{validate_certs}}"
241 port: "{{port}}"
242 cluster_mode: "ThreeNodes"
243 mdm:
244 - mdm_id: "5f091a8a013f1100"
245 mdm_type: "Secondary"
246 - mdm_name: "mdm_1"
247 mdm_type: "TieBreaker"
248 sdc_state: "absent-in-cluster"
249 state: "present"
250
251 - name: Get the details of the MDM cluster
252 dellemc.powerflex.mdm_cluster:
253 hostname: "{{hostname}}"
254 username: "{{username}}"
255 password: "{{password}}"
256 validate_certs: "{{validate_certs}}"
257 port: "{{port}}"
258 state: "present"
259
260 - name: Change ownership of MDM cluster
261 dellemc.powerflex.mdm_cluster:
262 hostname: "{{hostname}}"
263 username: "{{username}}"
264 password: "{{password}}"
265 validate_certs: "{{validate_certs}}"
266 port: "{{port}}"
267 mdm_name: "mdm_2"
268 is_primary: true
269 state: "present"
270
271 - name: Modify performance profile
272 dellemc.powerflex.mdm_cluster:
273 hostname: "{{hostname}}"
274 username: "{{username}}"
275 password: "{{password}}"
276 validate_certs: "{{validate_certs}}"
277 port: "{{port}}"
278 performance_profile: "HighPerformance"
279 state: "present"
280
281 - name: Rename the MDM
282 dellemc.powerflex.mdm_cluster:
283 hostname: "{{hostname}}"
284 username: "{{username}}"
285 password: "{{password}}"
286 validate_certs: "{{validate_certs}}"
287 port: "{{port}}"
288 mdm_name: "mdm_1"
289 mdm_new_name: "new_mdm_1"
290 state: "present"
291
292 - name: Modify virtual IP interface of the MDM
293 dellemc.powerflex.mdm_cluster:
294 hostname: "{{hostname}}"
295 username: "{{username}}"
296 password: "{{password}}"
297 validate_certs: "{{validate_certs}}"
298 port: "{{port}}"
299 mdm_name: "mdm_1"
300 virtual_ip_interface:
301 - "ens224"
302 state: "present"
303
304 - name: Clear virtual IP interface of the MDM
305 dellemc.powerflex.mdm_cluster:
306 hostname: "{{hostname}}"
307 username: "{{username}}"
308 password: "{{password}}"
309 validate_certs: "{{validate_certs}}"
310 port: "{{port}}"
311 mdm_name: "mdm_1"
312 clear_interfaces: true
313 state: "present"
314
315
316
317 Return Values
318 -------------
319
320 changed (always, bool, false)
321 Whether or not the resource has changed.
322
323
324 mdm_cluster_details (When MDM cluster exists, dict, {'clusterState': 'ClusteredNormal', 'clusterMode': 'ThreeNodes', 'goodNodesNum': 3, 'master': {'virtualInterfaces': ['ens1'], 'managementIPs': ['10.x.y.z'], 'ips': ['10.x.y.z'], 'versionInfo': 'R3_6.0.0', 'opensslVersion': 'OpenSSL 1.0.2k-fips 26 Jan 2017', 'role': 'Manager', 'status': 'Normal', 'name': 'sample_mdm', 'id': '5908d328581d1400', 'port': 9011}, 'perfProfile': 'HighPerformance', 'slaves': [{'virtualInterfaces': ['ens1'], 'managementIPs': ['10.x.x.z'], 'ips': ['10.x.x.z'], 'versionInfo': 'R3_6.0.0', 'opensslVersion': 'OpenSSL 1.0.2k-fips 26 Jan 2017', 'role': 'Manager', 'status': 'Normal', 'name': 'sample_mdm1', 'id': '5908d328581d1401', 'port': 9011}], 'tieBreakers': [{'virtualInterfaces': [], 'managementIPs': [], 'ips': ['10.x.y.y'], 'versionInfo': 'R3_6.0.0', 'opensslVersion': 'N/A', 'role': 'TieBreaker', 'status': 'Normal', 'id': '5908d328581d1402', 'port': 9011}], 'standbyMDMs': [{'virtualInterfaces': [], 'managementIPs': ['10.x.z.z'], 'ips': ['10.x.z.z'], 'versionInfo': 'R3_6.0.0', 'opensslVersion': 'N/A', 'role': 'TieBreaker', 'status': 'Normal', 'id': '5908d328581d1403', 'port': 9011}], 'goodReplicasNum': 2, 'id': 'cdd883cf00000002'})
325 Details of the MDM cluster.
326
327
328 id (, str, )
329 The ID of the MDM cluster.
330
331
332 name (, str, )
333 Name of MDM cluster.
334
335
336 clusterMode (, str, )
337 Mode of the MDM cluster.
338
339
340 master (, dict, )
341 The details of the master MDM.
342
343
344 id (, str, )
345 ID of the MDM.
346
347
348 name (, str, )
349 Name of the MDM.
350
351
352 port (, str, )
353 Port of the MDM.
354
355
356 ips (, list, )
357 List of IPs for master MDM.
358
359
360 managementIPs (, list, )
361 List of management IPs for master MDM.
362
363
364 role (, str, )
365 Role of MDM.
366
367
368 status (, str, )
369 Status of MDM.
370
371
372 versionInfo (, str, )
373 Version of MDM.
374
375
376 virtualInterfaces (, list, )
377 List of virtual interfaces
378
379
380 opensslVersion (, str, )
381 OpenSSL version.
382
383
384
385 slaves (, list, )
386 The list of the secondary MDMs.
387
388
389 id (, str, )
390 ID of the MDM.
391
392
393 name (, str, )
394 Name of the MDM.
395
396
397 port (, str, )
398 Port of the MDM.
399
400
401 ips (, list, )
402 List of IPs for secondary MDM.
403
404
405 managementIPs (, list, )
406 List of management IPs for secondary MDM.
407
408
409 role (, str, )
410 Role of MDM.
411
412
413 status (, str, )
414 Status of MDM.
415
416
417 versionInfo (, str, )
418 Version of MDM.
419
420
421 virtualInterfaces (, list, )
422 List of virtual interfaces
423
424
425 opensslVersion (, str, )
426 OpenSSL version.
427
428
429
430 tieBreakers (, list, )
431 The list of the TieBreaker MDMs.
432
433
434 id (, str, )
435 ID of the MDM.
436
437
438 name (, str, )
439 Name of the MDM.
440
441
442 port (, str, )
443 Port of the MDM.
444
445
446 ips (, list, )
447 List of IPs for tie-breaker MDM.
448
449
450 managementIPs (, list, )
451 List of management IPs for tie-breaker MDM.
452
453
454 role (, str, )
455 Role of MDM.
456
457
458 status (, str, )
459 Status of MDM.
460
461
462 versionInfo (, str, )
463 Version of MDM.
464
465
466 opensslVersion (, str, )
467 OpenSSL version.
468
469
470
471 standbyMDMs (, list, )
472 The list of the standby MDMs.
473
474
475 id (, str, )
476 ID of the MDM.
477
478
479 name (, str, )
480 Name of the MDM.
481
482
483 port (, str, )
484 Port of the MDM.
485
486
487 ips (, list, )
488 List of IPs for MDM.
489
490
491 managementIPs (, list, )
492 List of management IPs for MDM.
493
494
495 role (, str, )
496 Role of MDM.
497
498
499 status (, str, )
500 Status of MDM.
501
502
503 versionInfo (, str, )
504 Version of MDM.
505
506
507 virtualInterfaces (, list, )
508 List of virtual interfaces.
509
510
511 opensslVersion (, str, )
512 OpenSSL version.
513
514
515
516 clusterState (, str, )
517 State of the MDM cluster.
518
519
520 goodNodesNum (, int, )
521 Number of Nodes in MDM cluster.
522
523
524 goodReplicasNum (, int, )
525 Number of nodes for Replication.
526
527
528 virtualIps (, list, )
529 List of virtual IPs.
530
531
532
533
534
535
536 Status
537 ------
538
539
540
541
542
543 Authors
544 ~~~~~~~
545
546 - Bhavneet Sharma (@sharmb5) <[email protected]>
547