dellemc.powerflex.mdm_cluster module – Manage MDM cluster 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.mdm_cluster
.
New in dellemc.powerflex 1.3.0
Synopsis
Managing MDM cluster and MDMs on PowerFlex storage system includes adding/removing standby MDM, modify MDM name and virtual interface.
It also includes getting details of MDM cluster, modify MDM cluster ownership, cluster mode, and performance profile.
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 |
---|---|
Clear all virtual IP interfaces. The clear_interfaces is mutually exclusive with virtual_ip_interfaces. Choices:
|
|
Mode of the cluster. Choices:
|
|
IP or FQDN of the PowerFlex host. |
|
Set is_primary as Set is_primary as New owner MDM must be an MDM with a manager role. Choices:
|
|
Specifies parameters to add/remove MDMs to/from the MDM cluster. |
|
ID of MDM that will be added/removed to/from the cluster. |
|
Name of MDM that will be added/removed to/from the cluster. |
|
Type of the MDM. Either mdm_id or mdm_name must be passed with mdm_type. Choices:
|
|
The ID of the MDM. Mutually exclusive with mdm_name. |
|
The name of the MDM. It is unique across the PowerFlex array. Mutually exclusive with mdm_id. If mdm_name passed in add standby operation, then same name will be assigned to the new standby mdm. |
|
To rename the MDM. |
|
Mapping state of MDM. Choices:
|
|
The password of the PowerFlex host. |
|
Apply performance profile to cluster MDMs. Choices:
|
|
Port number through which communication happens with PowerFlex host. Default: |
|
Specifies add standby MDM parameters. |
|
Allow the added node to have different number of IPs from the primary node. Choices:
|
|
List of management IPs to manage MDM. It can contain IPv4 addresses. |
|
List of MDM IPs that will be assigned to new MDM. It can contain IPv4 addresses. |
|
Specifies the port of new MDM. |
|
Role of new MDM. Choices:
|
|
List of NIC interfaces that will be used for virtual IP addresses. |
|
State of the MDM cluster. Choices:
|
|
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:
|
|
List of interfaces to be used for virtual IPs. The order of interfaces must be matched with virtual IPs assigned to the cluster. Interfaces of the primary and secondary type MDMs are allowed to modify. The virtual_ip_interfaces is mutually exclusive with clear_interfaces. |
Notes
Note
Parameters mdm_name or mdm_id are mandatory for rename and modify virtual IP interfaces.
Parameters mdm_name or mdm_id are not required while modifying performance profile.
For change MDM cluster ownership operation, only changed as true will be returned and for idempotency case MDM cluster details will be returned.
Reinstall all SDC after changing ownership to some newly added MDM.
To add manager standby MDM, MDM package must be installed with manager role.
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
- name: Add a standby MDM
dellemc.powerflex.mdm_cluster:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
mdm_name: "mdm_1"
standby_mdm:
mdm_ips:
- "10.x.x.x"
role: "TieBreaker"
management_ips:
- "10.x.y.z"
state: "present"
- name: Remove a standby MDM
dellemc.powerflex.mdm_cluster:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
mdm_name: "mdm_1"
state: "absent"
- name: Switch cluster mode from 3 node to 5 node MDM cluster
dellemc.powerflex.mdm_cluster:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
cluster_mode: "FiveNodes"
mdm:
- mdm_id: "5f091a8a013f1100"
mdm_type: "Secondary"
- mdm_name: "mdm_1"
mdm_type: "TieBreaker"
sdc_state: "present-in-cluster"
state: "present"
- name: Switch cluster mode from 5 node to 3 node MDM cluster
dellemc.powerflex.mdm_cluster:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
cluster_mode: "ThreeNodes"
mdm:
- mdm_id: "5f091a8a013f1100"
mdm_type: "Secondary"
- mdm_name: "mdm_1"
mdm_type: "TieBreaker"
sdc_state: "absent-in-cluster"
state: "present"
- name: Get the details of the MDM cluster
dellemc.powerflex.mdm_cluster:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
state: "present"
- name: Change ownership of MDM cluster
dellemc.powerflex.mdm_cluster:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
mdm_name: "mdm_2"
is_primary: true
state: "present"
- name: Modify performance profile
dellemc.powerflex.mdm_cluster:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
performance_profile: "HighPerformance"
state: "present"
- name: Rename the MDM
dellemc.powerflex.mdm_cluster:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
mdm_name: "mdm_1"
mdm_new_name: "new_mdm_1"
state: "present"
- name: Modify virtual IP interface of the MDM
dellemc.powerflex.mdm_cluster:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
mdm_name: "mdm_1"
virtual_ip_interface:
- "ens224"
state: "present"
- name: Clear virtual IP interface of the MDM
dellemc.powerflex.mdm_cluster:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
port: "{{port}}"
mdm_name: "mdm_1"
clear_interfaces: true
state: "present"
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 MDM cluster. Returned: When MDM cluster exists Sample: |
|
Mode of the MDM cluster. Returned: success |
|
State of the MDM cluster. Returned: success |
|
Number of Nodes in MDM cluster. Returned: success |
|
Number of nodes for Replication. Returned: success |
|
The ID of the MDM cluster. Returned: success |
|
The details of the master MDM. Returned: success |
|
ID of the MDM. Returned: success |
|
List of IPs for master MDM. Returned: success |
|
List of management IPs for master MDM. Returned: success |
|
Name of the MDM. Returned: success |
|
OpenSSL version. Returned: success |
|
Port of the MDM. Returned: success |
|
Role of MDM. Returned: success |
|
Status of MDM. Returned: success |
|
Version of MDM. Returned: success |
|
List of virtual interfaces Returned: success |
|
Name of MDM cluster. Returned: success |
|
The list of the secondary MDMs. Returned: success |
|
ID of the MDM. Returned: success |
|
List of IPs for secondary MDM. Returned: success |
|
List of management IPs for secondary MDM. Returned: success |
|
Name of the MDM. Returned: success |
|
OpenSSL version. Returned: success |
|
Port of the MDM. Returned: success |
|
Role of MDM. Returned: success |
|
Status of MDM. Returned: success |
|
Version of MDM. Returned: success |
|
List of virtual interfaces Returned: success |
|
The list of the standby MDMs. Returned: success |
|
ID of the MDM. Returned: success |
|
List of IPs for MDM. Returned: success |
|
List of management IPs for MDM. Returned: success |
|
Name of the MDM. Returned: success |
|
OpenSSL version. Returned: success |
|
Port of the MDM. Returned: success |
|
Role of MDM. Returned: success |
|
Status of MDM. Returned: success |
|
Version of MDM. Returned: success |
|
List of virtual interfaces. Returned: success |
|
The list of the TieBreaker MDMs. Returned: success |
|
ID of the MDM. Returned: success |
|
List of IPs for tie-breaker MDM. Returned: success |
|
List of management IPs for tie-breaker MDM. Returned: success |
|
Name of the MDM. Returned: success |
|
OpenSSL version. Returned: success |
|
Port of the MDM. Returned: success |
|
Role of MDM. Returned: success |
|
Status of MDM. Returned: success |
|
Version of MDM. Returned: success |
|
List of virtual IPs. Returned: success |