| 1 |
.. _protection_domain_v2_module: |
| 2 |
|
| 3 |
|
| 4 |
protection_domain_v2 -- Managing protection domain on Dell PowerFlex 5.x |
| 5 |
======================================================================== |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
Dell PowerFlex protection domain module includes getting the details of protection domain, creating a new protection domain, and modifying the attribute of a protection domain. |
| 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 5.0 or later. |
| 24 |
- PyPowerFlex 2.0.0 |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
Parameters |
| 29 |
---------- |
| 30 |
|
| 31 |
protection_domain_name (optional, str, None) |
| 32 |
The name of the protection domain. |
| 33 |
|
| 34 |
Mandatory for create operation. |
| 35 |
|
| 36 |
It is unique across the PowerFlex array. |
| 37 |
|
| 38 |
Mutually exclusive with :emphasis:`protection\_domain\_id`. |
| 39 |
|
| 40 |
|
| 41 |
protection_domain_id (optional, str, None) |
| 42 |
The ID of the protection domain. |
| 43 |
|
| 44 |
Except for create operation, all other operations can be performed using protection\_domain\_id. |
| 45 |
|
| 46 |
Mutually exclusive with :emphasis:`protection\_domain\_name`. |
| 47 |
|
| 48 |
|
| 49 |
protection_domain_new_name (optional, str, None) |
| 50 |
Used to rename the protection domain. |
| 51 |
|
| 52 |
|
| 53 |
is_active (False, str, None) |
| 54 |
Used to indicate the state of the protection domain and to activate or deactivate it. |
| 55 |
|
| 56 |
|
| 57 |
state (True, str, None) |
| 58 |
The state of the protection domain. Can be 'present' or 'absent'. |
| 59 |
|
| 60 |
|
| 61 |
hostname (True, str, None) |
| 62 |
IP or FQDN of the PowerFlex host. |
| 63 |
|
| 64 |
|
| 65 |
username (True, str, None) |
| 66 |
The username of the PowerFlex host. |
| 67 |
|
| 68 |
|
| 69 |
password (True, str, None) |
| 70 |
The password of the PowerFlex host. |
| 71 |
|
| 72 |
|
| 73 |
validate_certs (optional, bool, True) |
| 74 |
Boolean variable to specify whether or not to validate SSL certificate. |
| 75 |
|
| 76 |
:literal:`true` - Indicates that the SSL certificate should be verified. |
| 77 |
|
| 78 |
:literal:`false` - Indicates that the SSL certificate should not be verified. |
| 79 |
|
| 80 |
|
| 81 |
port (optional, int, 443) |
| 82 |
Port number through which communication happens with PowerFlex host. |
| 83 |
|
| 84 |
|
| 85 |
timeout (False, int, 120) |
| 86 |
Time after which connection will get terminated. |
| 87 |
|
| 88 |
It is to be mentioned in seconds. |
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
Notes |
| 95 |
----- |
| 96 |
|
| 97 |
.. note:: |
| 98 |
- This module is supported on Dell PowerFlex 5.x and later versions. |
| 99 |
- The protection domain can only be deleted if all its related objects have been dissociated from the protection domain. |
| 100 |
- If the protection domain set to inactive, then no operation can be performed on protection domain. |
| 101 |
- The :emphasis:`check\_mode` is not supported. |
| 102 |
- The modules present in the collection named as 'dellemc.powerflex' are built to support the Dell PowerFlex storage platform. |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
Examples |
| 108 |
-------- |
| 109 |
|
| 110 |
.. code-block:: yaml+jinja |
| 111 |
|
| 112 |
|
| 113 |
- name: Create protection domain |
| 114 |
dellemc.powerflex.protection_domain_v2: |
| 115 |
hostname: "{{hostname}}" |
| 116 |
username: "{{username}}" |
| 117 |
password: "{{password}}" |
| 118 |
validate_certs: "{{validate_certs}}" |
| 119 |
protection_domain_name: "domain1" |
| 120 |
state: "present" |
| 121 |
|
| 122 |
- name: Create protection domain with all parameters |
| 123 |
dellemc.powerflex.protection_domain_v2: |
| 124 |
hostname: "{{hostname}}" |
| 125 |
username: "{{username}}" |
| 126 |
password: "{{password}}" |
| 127 |
validate_certs: "{{validate_certs}}" |
| 128 |
protection_domain_name: "domain1" |
| 129 |
is_active: True |
| 130 |
state: present |
| 131 |
|
| 132 |
- name: Get protection domain details using name |
| 133 |
dellemc.powerflex.protection_domain_v2: |
| 134 |
hostname: "{{hostname}}" |
| 135 |
username: "{{username}}" |
| 136 |
password: "{{password}}" |
| 137 |
validate_certs: "{{validate_certs}}" |
| 138 |
port: "{{port}}" |
| 139 |
protection_domain_name: "domain1" |
| 140 |
state: "present" |
| 141 |
|
| 142 |
- name: Get protection domain details using ID |
| 143 |
dellemc.powerflex.protection_domain_v2: |
| 144 |
hostname: "{{hostname}}" |
| 145 |
username: "{{username}}" |
| 146 |
password: "{{password}}" |
| 147 |
validate_certs: "{{validate_certs}}" |
| 148 |
port: "{{port}}" |
| 149 |
protection_domain_id: "5718253c00000004" |
| 150 |
state: "present" |
| 151 |
|
| 152 |
- name: Modify protection domain attributes |
| 153 |
dellemc.powerflex.protection_domain_v2: |
| 154 |
hostname: "{{hostname}}" |
| 155 |
username: "{{username}}" |
| 156 |
password: "{{password}}" |
| 157 |
validate_certs: "{{validate_certs}}" |
| 158 |
port: "{{port}}" |
| 159 |
protection_domain_name: "domain1" |
| 160 |
protection_domain_new_name: "domain1_new" |
| 161 |
state: "present" |
| 162 |
|
| 163 |
- name: Delete protection domain using name |
| 164 |
dellemc.powerflex.protection_domain_v2: |
| 165 |
hostname: "{{hostname}}" |
| 166 |
username: "{{username}}" |
| 167 |
password: "{{password}}" |
| 168 |
validate_certs: "{{validate_certs}}" |
| 169 |
port: "{{port}}" |
| 170 |
protection_domain_name: "domain1_new" |
| 171 |
state: "absent" |
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
Return Values |
| 176 |
------------- |
| 177 |
|
| 178 |
changed (always, bool, false) |
| 179 |
Whether or not the resource has changed. |
| 180 |
|
| 181 |
|
| 182 |
protection_domain_details (When protection domain exists, dict, {'genType': 'EC', 'rebuildNetworkThrottlingEnabled': False, 'rebalanceNetworkThrottlingEnabled': False, 'vtreeMigrationNetworkThrottlingEnabled': False, 'overallIoNetworkThrottlingEnabled': False, 'rfcacheEnabled': True, 'rfcacheAccpId': None, 'rebuildEnabled': True, 'rebalanceEnabled': True, 'name': 'domain1', 'systemId': '815945c41cd8460f', 'sdrSdsConnectivityInfo': {'clientServerConnStatus': 'CLIENT_SERVER_CONN_STATUS_ALL_CONNECTED', 'disconnectedClientId': None, 'disconnectedClientName': None, 'disconnectedServerId': None, 'disconnectedServerName': None, 'disconnectedServerIp': None}, 'rplCapAlertLevel': 'invalid', 'protectionDomainState': 'Active', 'rebalanceNetworkThrottlingInKbps': None, 'rebuildNetworkThrottlingInKbps': None, 'overallIoNetworkThrottlingInKbps': None, 'vtreeMigrationNetworkThrottlingInKbps': None, 'sdsDecoupledCounterParameters': {'shortWindow': {'windowSizeInSec': 60, 'threshold': 300}, 'mediumWindow': {'windowSizeInSec': 3600, 'threshold': 500}, 'longWindow': {'windowSizeInSec': 86400, 'threshold': 700}}, 'sdsConfigurationFailureCounterParameters': {'shortWindow': {'windowSizeInSec': 60, 'threshold': 300}, 'mediumWindow': {'windowSizeInSec': 3600, 'threshold': 500}, 'longWindow': {'windowSizeInSec': 86400, 'threshold': 700}}, 'mdmSdsNetworkDisconnectionsCounterParameters': {'shortWindow': {'windowSizeInSec': 60, 'threshold': 300}, 'mediumWindow': {'windowSizeInSec': 3600, 'threshold': 500}, 'longWindow': {'windowSizeInSec': 86400, 'threshold': 700}}, 'sdsSdsNetworkDisconnectionsCounterParameters': {'shortWindow': {'windowSizeInSec': 60, 'threshold': 300}, 'mediumWindow': {'windowSizeInSec': 3600, 'threshold': 500}, 'longWindow': {'windowSizeInSec': 86400, 'threshold': 700}}, 'rfcacheOpertionalMode': 'WriteMiss', 'rfcachePageSizeKb': 64, 'rfcacheMaxIoSizeKb': 128, 'sdsReceiveBufferAllocationFailuresCounterParameters': {'shortWindow': {'windowSizeInSec': 60, 'threshold': 20000}, 'mediumWindow': {'windowSizeInSec': 3600, 'threshold': 200000}, 'longWindow': {'windowSizeInSec': 86400, 'threshold': 2000000}}, 'fglDefaultNumConcurrentWrites': 1000, 'fglMetadataCacheEnabled': False, 'fglDefaultMetadataCacheSize': 0, 'protectedMaintenanceModeNetworkThrottlingEnabled': False, 'protectedMaintenanceModeNetworkThrottlingInKbps': None, 'sdtSdsConnectivityInfo': {'clientServerConnStatus': 'CLIENT_SERVER_CONN_STATUS_ALL_CONNECTED', 'disconnectedClientId': None, 'disconnectedClientName': None, 'disconnectedServerId': None, 'disconnectedServerName': None, 'disconnectedServerIp': None}, 'overallConcurrentIoLimit': 4, 'bandwidthLimitOverallIos': 400, 'bandwidthLimitBgDevScanner': 10, 'bandwidthLimitSinglyImpactedRebuild': 400, 'bandwidthLimitDoublyImpactedRebuild': 400, 'bandwidthLimitRebalance': 40, 'bandwidthLimitOther': 10, 'bandwidthLimitNodeNetwork': 25, 'id': 'e59841fd00000002', 'links': [{'rel': 'self', 'href': '/api/instances/ProtectionDomain::e59841fd00000002'}, {'rel': '/dtapi/rest/v1/metrics/query', 'href': '/dtapi/rest/v1/metrics/query', 'body': {'resource_type': 'protection_domain', 'ids': ['e59841fd00000002']}}, {'rel': '/api/ProtectionDomain/relationship/Sdr', 'href': '/api/instances/ProtectionDomain::e59841fd00000002/relationships/Sdr'}, {'rel': '/api/ProtectionDomain/relationship/Dgwt', 'href': '/api/instances/ProtectionDomain::e59841fd00000002/relationships/Dgwt'}, {'rel': '/api/ProtectionDomain/relationship/AccelerationPool', 'href': '/api/instances/ProtectionDomain::e59841fd00000002/relationships/AccelerationPool'}, {'rel': '/api/ProtectionDomain/relationship/Sdt', 'href': '/api/instances/ProtectionDomain::e59841fd00000002/relationships/Sdt'}, {'rel': '/api/ProtectionDomain/relationship/StoragePool', 'href': '/api/instances/ProtectionDomain::e59841fd00000002/relationships/StoragePool'}, {'rel': '/api/ProtectionDomain/relationship/Sds', 'href': '/api/instances/ProtectionDomain::e59841fd00000002/relationships/Sds'}, {'rel': '/api/ProtectionDomain/relationship/ReplicationConsistencyGroup', 'href': '/api/instances/ProtectionDomain::e59841fd00000002/relationships/ReplicationConsistencyGroup'}, {'rel': '/api/ProtectionDomain/relationship/DeviceGroup', 'href': '/api/instances/ProtectionDomain::e59841fd00000002/relationships/DeviceGroup'}, {'rel': '/api/ProtectionDomain/relationship/FaultSet', 'href': '/api/instances/ProtectionDomain::e59841fd00000002/relationships/FaultSet'}, {'rel': '/api/ProtectionDomain/relationship/StorageNode', 'href': '/api/instances/ProtectionDomain::e59841fd00000002/relationships/StorageNode'}, {'rel': '/api/ProtectionDomain/relationship/Pds', 'href': '/api/instances/ProtectionDomain::e59841fd00000002/relationships/Pds'}, {'rel': '/api/parent/relationship/systemId', 'href': '/api/instances/System::815945c41cd8460f'}]}) |
| 183 |
Details of the protection domain. |
| 184 |
|
| 185 |
|
| 186 |
fglDefaultMetadataCacheSize (, int, ) |
| 187 |
FGL metadata cache size. |
| 188 |
|
| 189 |
|
| 190 |
fglDefaultNumConcurrentWrites (, str, ) |
| 191 |
FGL concurrent writes. |
| 192 |
|
| 193 |
|
| 194 |
fglMetadataCacheEnabled (, bool, ) |
| 195 |
Whether FGL cache enabled. |
| 196 |
|
| 197 |
|
| 198 |
id (, str, ) |
| 199 |
Protection domain ID. |
| 200 |
|
| 201 |
|
| 202 |
links (, list, ) |
| 203 |
Protection domain links. |
| 204 |
|
| 205 |
|
| 206 |
href (, str, ) |
| 207 |
Protection domain instance URL. |
| 208 |
|
| 209 |
|
| 210 |
rel (, str, ) |
| 211 |
Protection domain's relationship with different entities. |
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
mdmSdsNetworkDisconnectionsCounterParameters (, dict, ) |
| 216 |
MDM's SDS counter parameter. |
| 217 |
|
| 218 |
|
| 219 |
longWindow (, int, ) |
| 220 |
Long window for Counter Parameters. |
| 221 |
|
| 222 |
|
| 223 |
mediumWindow (, int, ) |
| 224 |
Medium window for Counter Parameters. |
| 225 |
|
| 226 |
|
| 227 |
shortWindow (, int, ) |
| 228 |
Short window for Counter Parameters. |
| 229 |
|
| 230 |
|
| 231 |
|
| 232 |
name (, str, ) |
| 233 |
Name of the protection domain. |
| 234 |
|
| 235 |
|
| 236 |
overallIoNetworkThrottlingEnabled (, bool, ) |
| 237 |
Whether overall network throttling enabled. |
| 238 |
|
| 239 |
|
| 240 |
overallIoNetworkThrottlingInKbps (, int, ) |
| 241 |
Overall network throttling in KBps. |
| 242 |
|
| 243 |
|
| 244 |
protectedMaintenanceModeNetworkThrottlingEnabled (, bool, ) |
| 245 |
Whether protected maintenance mode network throttling enabled. |
| 246 |
|
| 247 |
|
| 248 |
protectedMaintenanceModeNetworkThrottlingInKbps (, int, ) |
| 249 |
Protected maintenance mode network throttling in KBps. |
| 250 |
|
| 251 |
|
| 252 |
protectionDomainState (, int, ) |
| 253 |
State of protection domain. |
| 254 |
|
| 255 |
|
| 256 |
rebalanceNetworkThrottlingEnabled (, int, ) |
| 257 |
Whether rebalance network throttling enabled. |
| 258 |
|
| 259 |
|
| 260 |
rebalanceNetworkThrottlingInKbps (, int, ) |
| 261 |
Rebalance network throttling in KBps. |
| 262 |
|
| 263 |
|
| 264 |
rebuildNetworkThrottlingEnabled (, int, ) |
| 265 |
Whether rebuild network throttling enabled. |
| 266 |
|
| 267 |
|
| 268 |
rebuildNetworkThrottlingInKbps (, int, ) |
| 269 |
Rebuild network throttling in KBps. |
| 270 |
|
| 271 |
|
| 272 |
rfcacheAccpId (, str, ) |
| 273 |
Id of RF cache acceleration pool. |
| 274 |
|
| 275 |
|
| 276 |
rfcacheEnabled (, bool, ) |
| 277 |
Whether RF cache is enabled or not. |
| 278 |
|
| 279 |
|
| 280 |
rfcacheMaxIoSizeKb (, int, ) |
| 281 |
RF cache maximum I/O size in KB. |
| 282 |
|
| 283 |
|
| 284 |
rfcacheOpertionalMode (, str, ) |
| 285 |
RF cache operational mode. |
| 286 |
|
| 287 |
|
| 288 |
rfcachePageSizeKb (, bool, ) |
| 289 |
RF cache page size in KB. |
| 290 |
|
| 291 |
|
| 292 |
sdrSdsConnectivityInfo (, dict, ) |
| 293 |
Connectivity info of SDR and SDS. |
| 294 |
|
| 295 |
|
| 296 |
clientServerConnStatus (, str, ) |
| 297 |
Connectivity status of client and server. |
| 298 |
|
| 299 |
|
| 300 |
disconnectedClientId (, str, ) |
| 301 |
Disconnected client ID. |
| 302 |
|
| 303 |
|
| 304 |
disconnectedClientName (, str, ) |
| 305 |
Disconnected client name. |
| 306 |
|
| 307 |
|
| 308 |
disconnectedServerId (, str, ) |
| 309 |
Disconnected server ID. |
| 310 |
|
| 311 |
|
| 312 |
disconnectedServerIp (, str, ) |
| 313 |
Disconnected server IP. |
| 314 |
|
| 315 |
|
| 316 |
disconnectedServerName (, str, ) |
| 317 |
Disconnected server name. |
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
sdsSdsNetworkDisconnectionsCounterParameters (, dict, ) |
| 322 |
Counter parameter for SDS-SDS network. |
| 323 |
|
| 324 |
|
| 325 |
longWindow (, int, ) |
| 326 |
Long window for Counter Parameters. |
| 327 |
|
| 328 |
|
| 329 |
mediumWindow (, int, ) |
| 330 |
Medium window for Counter Parameters. |
| 331 |
|
| 332 |
|
| 333 |
shortWindow (, int, ) |
| 334 |
Short window for Counter Parameters. |
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
systemId (, str, ) |
| 339 |
ID of system. |
| 340 |
|
| 341 |
|
| 342 |
vtreeMigrationNetworkThrottlingEnabled (, bool, ) |
| 343 |
Whether V-Tree migration network throttling enabled. |
| 344 |
|
| 345 |
|
| 346 |
vtreeMigrationNetworkThrottlingInKbps (, int, ) |
| 347 |
V-Tree migration network throttling in KBps. |
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
|
| 352 |
|
| 353 |
|
| 354 |
Status |
| 355 |
------ |
| 356 |
|
| 357 |
|
| 358 |
|
| 359 |
|
| 360 |
|
| 361 |
Authors |
| 362 |
~~~~~~~ |
| 363 |
|
| 364 |
- Luis Liu (@vangork) <[email protected]> |
| 365 |
|