| 1 |
.. _idrac_redfish_storage_controller_module: |
| 2 |
|
| 3 |
|
| 4 |
idrac_redfish_storage_controller -- Configures the physical disk, virtual disk, and storage controller settings |
| 5 |
=============================================================================================================== |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
:local: |
| 9 |
:depth: 1 |
| 10 |
|
| 11 |
|
| 12 |
Synopsis |
| 13 |
-------- |
| 14 |
|
| 15 |
This module allows the users to configure the settings of the physical disk, virtual disk, and storage controller. |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
Requirements |
| 20 |
------------ |
| 21 |
The below requirements are needed on the host that executes this module. |
| 22 |
|
| 23 |
- python \>= 3.9.6 |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
Parameters |
| 28 |
---------- |
| 29 |
|
| 30 |
command (optional, str, None) |
| 31 |
These actions may require a system reset, depending on the capabilities of the controller. |
| 32 |
|
| 33 |
\ :literal:`ResetConfig`\ - Deletes all the virtual disks and unassigns all hot spares on physical disks. \ :emphasis:`controller\_id`\ is required for this operation. |
| 34 |
|
| 35 |
\ :literal:`AssignSpare`\ - Assigns a physical disk as a dedicated or global hot spare for a virtual disk. \ :emphasis:`target`\ is required for this operation. |
| 36 |
|
| 37 |
\ :literal:`SetControllerKey`\ - Sets the key on controllers, which is used to encrypt the drives in Local Key Management(LKM). \ :emphasis:`controller\_id`\ , \ :emphasis:`key`\ , and \ :emphasis:`key\_id`\ are required for this operation. |
| 38 |
|
| 39 |
\ :literal:`RemoveControllerKey`\ - Deletes the encryption key on the controller. \ :emphasis:`controller\_id`\ is required for this operation. |
| 40 |
|
| 41 |
\ :literal:`ReKey`\ - Resets the key on the controller and it always reports as changes found when check mode is enabled. \ :emphasis:`controller\_id`\ , \ :emphasis:`old\_key`\ , \ :emphasis:`key\_id`\ , and \ :emphasis:`key`\ is required for this operation. |
| 42 |
|
| 43 |
\ :literal:`UnassignSpare`\ - To unassign the Global or Dedicated hot spare. \ :emphasis:`target`\ is required for this operation. |
| 44 |
|
| 45 |
\ :literal:`EnableControllerEncryption`\ - To enable Local Key Management (LKM) or Secure Enterprise Key Manager (SEKM) on controllers that support encryption of the drives. \ :emphasis:`controller\_id`\ , \ :emphasis:`key`\ , and \ :emphasis:`key\_id`\ are required for this operation. |
| 46 |
|
| 47 |
\ :literal:`BlinkTarget`\ - Blinks the target virtual drive or physical disk and it always reports as changes found when check mode is enabled. \ :emphasis:`target`\ or \ :emphasis:`volume\_id`\ is required for this operation. |
| 48 |
|
| 49 |
\ :literal:`UnBlinkTarget`\ - Unblink the target virtual drive or physical disk and and it always reports as changes found when check mode is enabled. \ :emphasis:`target`\ or \ :emphasis:`volume\_id`\ is required for this operation. |
| 50 |
|
| 51 |
\ :literal:`ConvertToRAID`\ - Converts the disk form non-Raid to Raid. \ :emphasis:`target`\ is required for this operation. |
| 52 |
|
| 53 |
\ :literal:`ConvertToNonRAID`\ - Converts the disk form Raid to non-Raid. \ :emphasis:`target`\ is required for this operation. |
| 54 |
|
| 55 |
\ :literal:`ChangePDStateToOnline`\ - To set the disk status to online. \ :emphasis:`target`\ is required for this operation. |
| 56 |
|
| 57 |
\ :literal:`ChangePDStateToOffline`\ - To set the disk status to offline. \ :emphasis:`target`\ is required for this operation. |
| 58 |
|
| 59 |
\ :literal:`LockVirtualDisk`\ - To encrypt the virtual disk. \ :emphasis:`volume\_id`\ is required for this operation. |
| 60 |
|
| 61 |
\ :literal:`OnlineCapacityExpansion`\ - To expand the size of virtual disk. \ :emphasis:`volume\_id`\ , and \ :emphasis:`target`\ or \ :emphasis:`size`\ is required for this operation. |
| 62 |
|
| 63 |
\ :literal:`SecureErase`\ - To delete all the data on the physical disk securely. This option is available for Self-Encrypting Drives (SED), Instant Scramble Erase (ISE) drives, and PCIe SSD devices (drives and cards). The drives must be in a ready state. \ :emphasis:`controller\_id`\ and \ :emphasis:`target`\ are required for this operation, \ :emphasis:`target`\ must be a single physical disk ID. If a secure erase needs a reboot, the job will get scheduled and waits for no of seconds specfied in \ :emphasis:`job\_wait\_time`\ , to reduce the wait time either give \ :emphasis:`job\_wait\_time`\ minimum or make \ :emphasis:`job\_wait`\ as false. |
| 64 |
|
| 65 |
\ :literal:`EnableSecurity`\ - To enable security on a storage controller. Only Applicable for 17G and above. |
| 66 |
|
| 67 |
\ :literal:`DisableSecurity`\ - To disable security on a storage controller. Only Applicable for 17G and above. |
| 68 |
|
| 69 |
\ :literal:`SetControllerKey`\ , \ :literal:`RemoveControllerKey`\ , \ :literal:`ReKey`\ and \ :literal:`EnableControllerEncryption`\ are only supported for 16G and below. |
| 70 |
|
| 71 |
Blinking of virtual disk is not supported for 17G and above. |
| 72 |
|
| 73 |
|
| 74 |
target (optional, list, None) |
| 75 |
Fully Qualified Device Descriptor (FQDD) of the target physical drive. |
| 76 |
|
| 77 |
This is mandatory when \ :emphasis:`command`\ is \ :literal:`AssignSpare`\ , \ :literal:`UnassisgnSpare`\ , \ :literal:`ChangePDStateToOnline`\ , \ :literal:`ChangePDStateToOffline`\ , \ :literal:`ConvertToRAID`\ , or \ :literal:`ConvertToNonRAID`\ . |
| 78 |
|
| 79 |
If \ :emphasis:`volume\_id`\ is not specified or empty, this physical drive will be assigned as a global hot spare when \ :emphasis:`command`\ is \ :literal:`AssignSpare`\ . |
| 80 |
|
| 81 |
When \ :emphasis:`command`\ is \ :literal:`OnlineCapacityExpansion`\ , then \ :emphasis:`target`\ is mutually exclusive with \ :emphasis:`size`\ . |
| 82 |
|
| 83 |
Notes: Global or Dedicated hot spare can be assigned only once for a physical disk, Re-assign cannot be done when \ :emphasis:`command`\ is \ :literal:`AssignSpare`\ . |
| 84 |
|
| 85 |
|
| 86 |
volume_id (optional, list, None) |
| 87 |
Fully Qualified Device Descriptor (FQDD) of the volume. |
| 88 |
|
| 89 |
Applicable if \ :emphasis:`command`\ is \ :literal:`AssignSpare`\ , \ :literal:`BlinkTarget`\ , \ :literal:`UnBlinkTarget`\ or \ :literal:`LockVirtualDisk`\ . |
| 90 |
|
| 91 |
\ :emphasis:`volume\_id`\ or \ :emphasis:`target`\ is required when the \ :emphasis:`command`\ is \ :literal:`BlinkTarget`\ or \ :literal:`UnBlinkTarget`\ , if both are specified \ :emphasis:`target`\ is considered. |
| 92 |
|
| 93 |
To know the number of volumes to which a hot spare can be assigned, refer iDRAC Redfish API documentation. |
| 94 |
|
| 95 |
|
| 96 |
controller_id (optional, str, None) |
| 97 |
Fully Qualified Device Descriptor (FQDD) of the storage controller. For example-'RAID.Slot.1-1'. |
| 98 |
|
| 99 |
This option is mandatory when \ :emphasis:`command`\ is \ :literal:`ResetConfig`\ , \ :literal:`SetControllerKey`\ , \ :literal:`RemoveControllerKey`\ , \ :literal:`ReKey`\ , or \ :literal:`EnableControllerEncryption`\ . |
| 100 |
|
| 101 |
This option is mandatory for \ :emphasis:`attributes`\ . |
| 102 |
|
| 103 |
|
| 104 |
key (optional, str, None) |
| 105 |
A new security key passphrase that the encryption-capable controller uses to create the encryption key. The controller uses the encryption key to lock or unlock access to the Self-Encrypting Drive (SED). Only one encryption key can be created for each controller. |
| 106 |
|
| 107 |
This is mandatory when \ :emphasis:`command`\ is \ :literal:`SetControllerKey`\ , \ :literal:`ReKey`\ , or \ :literal:`EnableControllerEncryption`\ and when \ :emphasis:`mode`\ is \ :literal:`LKM`\ . |
| 108 |
|
| 109 |
The length of the key can be a maximum of 32 characters in length, where the expanded form of the special character is counted as a single character. |
| 110 |
|
| 111 |
The key must contain at least one character from each of the character classes: uppercase, lowercase, number, and special character. |
| 112 |
|
| 113 |
|
| 114 |
key_id (optional, str, None) |
| 115 |
This is a user supplied text label associated with the passphrase. |
| 116 |
|
| 117 |
This is mandatory when \ :emphasis:`command`\ is \ :literal:`SetControllerKey`\ , \ :literal:`ReKey`\ , or \ :literal:`EnableControllerEncryption`\ and when \ :emphasis:`mode`\ is \ :literal:`LKM`\ . |
| 118 |
|
| 119 |
The length of \ :emphasis:`key\_id`\ can be a maximum of 32 characters in length and should not have any spaces. |
| 120 |
|
| 121 |
|
| 122 |
old_key (optional, str, None) |
| 123 |
Security key passphrase used by the encryption-capable controller. |
| 124 |
|
| 125 |
This option is mandatory when \ :emphasis:`command`\ is \ :literal:`ReKey`\ and \ :emphasis:`mode`\ is \ :literal:`LKM`\ . |
| 126 |
|
| 127 |
|
| 128 |
mode (optional, str, LKM) |
| 129 |
Encryption mode of the encryption capable controller. |
| 130 |
|
| 131 |
This option is applicable only when \ :emphasis:`command`\ is \ :literal:`ReKey`\ or \ :literal:`EnableControllerEncryption`\ . |
| 132 |
|
| 133 |
\ :literal:`SEKM`\ requires secure enterprise key manager license on the iDRAC. |
| 134 |
|
| 135 |
\ :literal:`LKM`\ to choose mode as local key mode. |
| 136 |
|
| 137 |
|
| 138 |
size (optional, int, None) |
| 139 |
Capacity of the virtual disk to be expanded in MB. |
| 140 |
|
| 141 |
Check mode and Idempotency is not supported for \ :emphasis:`size`\ . |
| 142 |
|
| 143 |
Minimum Online Capacity Expansion size must be greater than 100 MB of the current size. |
| 144 |
|
| 145 |
When \ :emphasis:`command`\ is \ :literal:`OnlineCapacityExpansion`\ , then \ :emphasis:`size`\ is mutually exclusive with \ :emphasis:`target`\ . |
| 146 |
|
| 147 |
|
| 148 |
attributes (optional, dict, None) |
| 149 |
Dictionary of controller attributes and value pair. |
| 150 |
|
| 151 |
This feature is only supported for iDRAC9 with firmware version 6.00.00.00 and above |
| 152 |
|
| 153 |
\ :emphasis:`controller\_id`\ is required for this operation. |
| 154 |
|
| 155 |
\ :emphasis:`apply\_time`\ and \ :emphasis:`maintenance\_window`\ is applicable for \ :emphasis:`attributes`\ . |
| 156 |
|
| 157 |
\ :emphasis:`attributes`\ is mutually exclusive with \ :emphasis:`command`\ . |
| 158 |
|
| 159 |
Use \ https://I(idrac_ip\ /redfish/v1/Schemas/DellOemStorageController.json) to view the attributes. |
| 160 |
|
| 161 |
\ :literal:`BackgroundInitializationRatePercent`\ and \ :literal:`ReconstructRatePercent`\ are supported parameters for iDRAC 10. |
| 162 |
|
| 163 |
|
| 164 |
apply_time (optional, str, Immediate) |
| 165 |
Apply time of the \ :emphasis:`attributes`\ . |
| 166 |
|
| 167 |
This is applicable only to \ :emphasis:`attributes`\ . |
| 168 |
|
| 169 |
\ :literal:`Immediate`\ Allows the user to immediately reboot the host and apply the changes. \ :emphasis:`job\_wait`\ is applicable. |
| 170 |
|
| 171 |
\ :literal:`OnReset`\ Allows the user to apply the changes on the next reboot of the host server. |
| 172 |
|
| 173 |
\ :literal:`AtMaintenanceWindowStart`\ Allows the user to apply at the start of a maintenance window as specified in \ :emphasis:`maintenance\_window`\ . |
| 174 |
|
| 175 |
\ :literal:`InMaintenanceWindowOnReset`\ Allows to apply after a manual reset but within the maintenance window as specified in \ :emphasis:`maintenance\_window`\ . |
| 176 |
|
| 177 |
Only \ :literal:`Immediate`\ and \ :literal:`OnReset`\ are supported for 17G. |
| 178 |
|
| 179 |
|
| 180 |
maintenance_window (optional, dict, None) |
| 181 |
Option to schedule the maintenance window. |
| 182 |
|
| 183 |
This is required when \ :emphasis:`apply\_time`\ is \ :literal:`AtMaintenanceWindowStart`\ or \ :literal:`InMaintenanceWindowOnReset`\ . |
| 184 |
|
| 185 |
|
| 186 |
start_time (True, str, None) |
| 187 |
The start time for the maintenance window to be scheduled. |
| 188 |
|
| 189 |
The format is YYYY-MM-DDThh:mm:ss\<offset\> |
| 190 |
|
| 191 |
\<offset\> is the time offset from UTC that the current timezone set in iDRAC in the format: +05:30 for IST. |
| 192 |
|
| 193 |
|
| 194 |
duration (optional, int, 900) |
| 195 |
The duration in seconds for the maintenance window. |
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
job_wait (optional, bool, False) |
| 200 |
Provides the option if the module has to wait for the job to be completed. |
| 201 |
|
| 202 |
This is applicable for \ :emphasis:`attributes`\ when \ :emphasis:`apply\_time`\ is \ :literal:`Immediate`\ and when \ :emphasis:`command`\ is \ :literal:`SecureErase`\ . |
| 203 |
|
| 204 |
|
| 205 |
job_wait_timeout (optional, int, 120) |
| 206 |
The maximum wait time of job completion in seconds before the job tracking is stopped. |
| 207 |
|
| 208 |
This option is applicable when \ :emphasis:`job\_wait`\ is \ :literal:`true`\ . |
| 209 |
|
| 210 |
Note: When \ :emphasis:`command`\ is \ :literal:`SecureErase`\ , If a secure erase needs a reboot, the job will get scheduled and waits for no of seconds specfied in \ :emphasis:`job\_wait\_time`\ , to reduce the wait time either give \ :emphasis:`job\_wait\_time`\ a lesser value or make \ :emphasis:`job\_wait`\ as false. |
| 211 |
|
| 212 |
|
| 213 |
baseuri (True, str, None) |
| 214 |
IP address of the target out-of-band controller. For example- \<ipaddress\>:\<port\>. |
| 215 |
|
| 216 |
|
| 217 |
username (False, str, None) |
| 218 |
Username of the target out-of-band controller. |
| 219 |
|
| 220 |
If the username is not provided, then the environment variable \ :envvar:`IDRAC\_USERNAME`\ is used. |
| 221 |
|
| 222 |
Example: export IDRAC\_USERNAME=username |
| 223 |
|
| 224 |
|
| 225 |
password (False, str, None) |
| 226 |
Password of the target out-of-band controller. |
| 227 |
|
| 228 |
If the password is not provided, then the environment variable \ :envvar:`IDRAC\_PASSWORD`\ is used. |
| 229 |
|
| 230 |
Example: export IDRAC\_PASSWORD=password |
| 231 |
|
| 232 |
|
| 233 |
x_auth_token (False, str, None) |
| 234 |
Authentication token. |
| 235 |
|
| 236 |
If the x\_auth\_token is not provided, then the environment variable \ :envvar:`IDRAC\_X\_AUTH\_TOKEN`\ is used. |
| 237 |
|
| 238 |
Example: export IDRAC\_X\_AUTH\_TOKEN=x\_auth\_token |
| 239 |
|
| 240 |
|
| 241 |
validate_certs (optional, bool, True) |
| 242 |
If \ :literal:`false`\ , the SSL certificates will not be validated. |
| 243 |
|
| 244 |
Configure \ :literal:`false`\ only on personally controlled sites where self-signed certificates are used. |
| 245 |
|
| 246 |
Prior to collection version \ :literal:`5.0.0`\ , the \ :emphasis:`validate\_certs`\ is \ :literal:`false`\ by default. |
| 247 |
|
| 248 |
|
| 249 |
ca_path (optional, path, None) |
| 250 |
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 251 |
|
| 252 |
|
| 253 |
timeout (optional, int, 30) |
| 254 |
The socket level timeout in seconds. |
| 255 |
|
| 256 |
|
| 257 |
|
| 258 |
|
| 259 |
|
| 260 |
Notes |
| 261 |
----- |
| 262 |
|
| 263 |
.. note:: |
| 264 |
- Run this module from a system that has direct access to Dell iDRAC. |
| 265 |
- This module is supported on iDRAC9 and iDRAC 10. |
| 266 |
- This module supports IPv4 and IPv6 addresses. |
| 267 |
- This module always reports as changes found when \ :emphasis:`command`\ is \ :literal:`ReKey`\ , \ :literal:`BlinkTarget`\ , and \ :literal:`UnBlinkTarget`\ . |
| 268 |
- This module supports \ :literal:`check\_mode`\ . |
| 269 |
|
| 270 |
|
| 271 |
|
| 272 |
|
| 273 |
Examples |
| 274 |
-------- |
| 275 |
|
| 276 |
.. code-block:: yaml+jinja |
| 277 |
|
| 278 |
|
| 279 |
--- |
| 280 |
- name: Assign dedicated hot spare |
| 281 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 282 |
baseuri: "192.168.0.1:443" |
| 283 |
username: "user_name" |
| 284 |
password: "user_password" |
| 285 |
ca_path: "/path/to/ca_cert.pem" |
| 286 |
volume_id: |
| 287 |
- "Disk.Virtual.0:RAID.Slot.1-1" |
| 288 |
target: "Disk.Bay.0:Enclosure.Internal.0-1:RAID.Slot.1-1" |
| 289 |
tags: |
| 290 |
- assign_dedicated_hot_spare |
| 291 |
|
| 292 |
- name: Assign global hot spare |
| 293 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 294 |
baseuri: "192.168.0.1:443" |
| 295 |
username: "user_name" |
| 296 |
password: "user_password" |
| 297 |
ca_path: "/path/to/ca_cert.pem" |
| 298 |
target: "Disk.Bay.0:Enclosure.Internal.0-1:RAID.Slot.1-1" |
| 299 |
tags: |
| 300 |
- assign_global_hot_spare |
| 301 |
|
| 302 |
- name: Unassign hot spare |
| 303 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 304 |
baseuri: "192.168.0.1:443" |
| 305 |
username: "user_name" |
| 306 |
password: "user_password" |
| 307 |
ca_path: "/path/to/ca_cert.pem" |
| 308 |
target: "Disk.Bay.0:Enclosure.Internal.0-1:RAID.Slot.1-1" |
| 309 |
command: UnassignSpare |
| 310 |
tags: |
| 311 |
- un-assign-hot-spare |
| 312 |
|
| 313 |
- name: Set controller encryption key |
| 314 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 315 |
baseuri: "192.168.0.1:443" |
| 316 |
username: "user_name" |
| 317 |
password: "user_password" |
| 318 |
ca_path: "/path/to/ca_cert.pem" |
| 319 |
command: "SetControllerKey" |
| 320 |
controller_id: "RAID.Slot.1-1" |
| 321 |
key: "PassPhrase@123" |
| 322 |
key_id: "mykeyid123" |
| 323 |
tags: |
| 324 |
- set_controller_key |
| 325 |
|
| 326 |
- name: Rekey in LKM mode |
| 327 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 328 |
baseuri: "192.168.0.1:443" |
| 329 |
username: "user_name" |
| 330 |
password: "user_password" |
| 331 |
ca_path: "/path/to/ca_cert.pem" |
| 332 |
command: "ReKey" |
| 333 |
controller_id: "RAID.Slot.1-1" |
| 334 |
key: "NewPassPhrase@123" |
| 335 |
key_id: "newkeyid123" |
| 336 |
old_key: "OldPassPhrase@123" |
| 337 |
tags: |
| 338 |
- rekey_lkm |
| 339 |
|
| 340 |
- name: Rekey in SEKM mode |
| 341 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 342 |
baseuri: "192.168.0.1:443" |
| 343 |
username: "user_name" |
| 344 |
password: "user_password" |
| 345 |
ca_path: "/path/to/ca_cert.pem" |
| 346 |
command: "ReKey" |
| 347 |
controller_id: "RAID.Slot.1-1" |
| 348 |
mode: "SEKM" |
| 349 |
tags: |
| 350 |
- rekey_sekm |
| 351 |
|
| 352 |
- name: Remove controller key |
| 353 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 354 |
baseuri: "192.168.0.1:443" |
| 355 |
username: "user_name" |
| 356 |
password: "user_password" |
| 357 |
ca_path: "/path/to/ca_cert.pem" |
| 358 |
command: "RemoveControllerKey" |
| 359 |
controller_id: "RAID.Slot.1-1" |
| 360 |
tags: |
| 361 |
- remove_controller_key |
| 362 |
|
| 363 |
- name: Reset controller configuration |
| 364 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 365 |
baseuri: "192.168.0.1:443" |
| 366 |
username: "user_name" |
| 367 |
password: "user_password" |
| 368 |
ca_path: "/path/to/ca_cert.pem" |
| 369 |
command: "ResetConfig" |
| 370 |
controller_id: "RAID.Slot.1-1" |
| 371 |
tags: |
| 372 |
- reset_config |
| 373 |
|
| 374 |
- name: Enable controller encryption |
| 375 |
idrac_redfish_storage_controller: |
| 376 |
baseuri: "{{ baseuri }}" |
| 377 |
username: "{{ username }}" |
| 378 |
password: "{{ password }}" |
| 379 |
ca_path: "/path/to/ca_cert.pem" |
| 380 |
command: "EnableControllerEncryption" |
| 381 |
controller_id: "RAID.Slot.1-1" |
| 382 |
mode: "LKM" |
| 383 |
key: "your_Key@123" |
| 384 |
key_id: "your_Keyid@123" |
| 385 |
tags: |
| 386 |
- enable-encrypt |
| 387 |
|
| 388 |
- name: Blink physical disk. |
| 389 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 390 |
baseuri: "192.168.0.1:443" |
| 391 |
username: "user_name" |
| 392 |
password: "user_password" |
| 393 |
ca_path: "/path/to/ca_cert.pem" |
| 394 |
command: BlinkTarget |
| 395 |
target: "Disk.Bay.0:Enclosure.Internal.0-1:RAID.Slot.1-1" |
| 396 |
tags: |
| 397 |
- blink-target |
| 398 |
|
| 399 |
- name: Blink virtual drive. |
| 400 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 401 |
baseuri: "192.168.0.1:443" |
| 402 |
username: "user_name" |
| 403 |
password: "user_password" |
| 404 |
ca_path: "/path/to/ca_cert.pem" |
| 405 |
command: BlinkTarget |
| 406 |
volume_id: "Disk.Virtual.0:RAID.Slot.1-1" |
| 407 |
tags: |
| 408 |
- blink-volume |
| 409 |
|
| 410 |
- name: Unblink physical disk. |
| 411 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 412 |
baseuri: "192.168.0.1:443" |
| 413 |
username: "user_name" |
| 414 |
password: "user_password" |
| 415 |
ca_path: "/path/to/ca_cert.pem" |
| 416 |
command: UnBlinkTarget |
| 417 |
target: "Disk.Bay.0:Enclosure.Internal.0-1:RAID.Slot.1-1" |
| 418 |
tags: |
| 419 |
- unblink-target |
| 420 |
|
| 421 |
- name: Unblink virtual drive. |
| 422 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 423 |
baseuri: "192.168.0.1:443" |
| 424 |
username: "user_name" |
| 425 |
password: "user_password" |
| 426 |
ca_path: "/path/to/ca_cert.pem" |
| 427 |
command: UnBlinkTarget |
| 428 |
volume_id: "Disk.Virtual.0:RAID.Slot.1-1" |
| 429 |
tags: |
| 430 |
- unblink-drive |
| 431 |
|
| 432 |
- name: Convert physical disk to RAID |
| 433 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 434 |
baseuri: "192.168.0.1:443" |
| 435 |
username: "user_name" |
| 436 |
password: "user_password" |
| 437 |
ca_path: "/path/to/ca_cert.pem" |
| 438 |
command: "ConvertToRAID" |
| 439 |
target: "Disk.Bay.0:Enclosure.Internal.0-1:RAID.Slot.1-1" |
| 440 |
tags: |
| 441 |
- convert-raid |
| 442 |
|
| 443 |
- name: Convert physical disk to non-RAID |
| 444 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 445 |
baseuri: "192.168.0.1:443" |
| 446 |
username: "user_name" |
| 447 |
password: "user_password" |
| 448 |
ca_path: "/path/to/ca_cert.pem" |
| 449 |
command: "ConvertToNonRAID" |
| 450 |
target: "Disk.Bay.0:Enclosure.Internal.0-1:RAID.Slot.1-1" |
| 451 |
tags: |
| 452 |
- convert-non-raid |
| 453 |
|
| 454 |
- name: Change physical disk state to online. |
| 455 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 456 |
baseuri: "192.168.0.1:443" |
| 457 |
username: "user_name" |
| 458 |
password: "user_password" |
| 459 |
ca_path: "/path/to/ca_cert.pem" |
| 460 |
command: "ChangePDStateToOnline" |
| 461 |
target: "Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-1" |
| 462 |
tags: |
| 463 |
- pd-state-online |
| 464 |
|
| 465 |
- name: Change physical disk state to offline. |
| 466 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 467 |
baseuri: "192.168.0.1:443" |
| 468 |
username: "user_name" |
| 469 |
password: "user_password" |
| 470 |
ca_path: "/path/to/ca_cert.pem" |
| 471 |
command: "ChangePDStateToOnline" |
| 472 |
target: "Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-1" |
| 473 |
tags: |
| 474 |
- pd-state-offline |
| 475 |
|
| 476 |
- name: Lock virtual drive |
| 477 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 478 |
baseuri: "192.168.0.1:443" |
| 479 |
username: "user_name" |
| 480 |
password: "user_password" |
| 481 |
ca_path: "/path/to/ca_cert.pem" |
| 482 |
command: "LockVirtualDisk" |
| 483 |
volume_id: "Disk.Virtual.0:RAID.SL.3-1" |
| 484 |
tags: |
| 485 |
- lock |
| 486 |
|
| 487 |
- name: Online Capacity Expansion of a volume using target |
| 488 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 489 |
baseuri: "{{ baseuri }}" |
| 490 |
username: "{{ username }}" |
| 491 |
password: "{{ password }}" |
| 492 |
ca_path: "/path/to/ca_cert.pem" |
| 493 |
command: "OnlineCapacityExpansion" |
| 494 |
volume_id: "Disk.Virtual.0:RAID.Integrated.1-1" |
| 495 |
target: |
| 496 |
- "Disk.Bay.2:Enclosure.Internal.0-0:RAID.Integrated.1-1" |
| 497 |
tags: |
| 498 |
- oce_target |
| 499 |
|
| 500 |
- name: Online Capacity Expansion of a volume using size |
| 501 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 502 |
baseuri: "{{ baseuri }}" |
| 503 |
username: "{{ username }}" |
| 504 |
password: "{{ password }}" |
| 505 |
ca_path: "/path/to/ca_cert.pem" |
| 506 |
command: "OnlineCapacityExpansion" |
| 507 |
volume_id: "Disk.Virtual.0:RAID.Integrated.1-1" |
| 508 |
size: 362785 |
| 509 |
tags: |
| 510 |
- oce_size |
| 511 |
|
| 512 |
- name: Set controller attributes. |
| 513 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 514 |
baseuri: "192.168.0.1:443" |
| 515 |
username: "user_name" |
| 516 |
password: "user_password" |
| 517 |
ca_path: "/path/to/ca_cert.pem" |
| 518 |
controller_id: "RAID.Slot.1-1" |
| 519 |
attributes: |
| 520 |
ControllerMode: "HBA" |
| 521 |
apply_time: "OnReset" |
| 522 |
tags: |
| 523 |
- controller-attribute |
| 524 |
|
| 525 |
- name: Configure controller attributes at Maintenance window |
| 526 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 527 |
baseuri: "192.168.0.1:443" |
| 528 |
username: "user_name" |
| 529 |
password: "user_password" |
| 530 |
ca_path: "/path/to/ca_cert.pem" |
| 531 |
controller_id: "RAID.Slot.1-1" |
| 532 |
attributes: |
| 533 |
CheckConsistencyMode: Normal |
| 534 |
CopybackMode: "Off" |
| 535 |
LoadBalanceMode: Disabled |
| 536 |
apply_time: AtMaintenanceWindowStart |
| 537 |
maintenance_window: |
| 538 |
start_time: "2022-09-30T05:15:40-05:00" |
| 539 |
duration: 1200 |
| 540 |
|
| 541 |
- name: Perform Secure Erase operation on SED drive |
| 542 |
dellemc.openmanage.idrac_redfish_storage_controller: |
| 543 |
baseuri: "192.168.0.1:443" |
| 544 |
username: "user_name" |
| 545 |
password: "user_password" |
| 546 |
ca_path: "/path/to/ca_cert.pem" |
| 547 |
controller_id: "RAID.Slot.1-1" |
| 548 |
command: "SecureErase" |
| 549 |
target: "Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-1" |
| 550 |
|
| 551 |
|
| 552 |
|
| 553 |
Return Values |
| 554 |
------------- |
| 555 |
|
| 556 |
msg (always, str, Successfully submitted the job that performs the AssignSpare operation) |
| 557 |
Overall status of the storage controller configuration operation. |
| 558 |
|
| 559 |
|
| 560 |
task (success, dict, {'id': 'JID_XXXXXXXXXXXXX', 'uri': '/redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/Jobs/JID_XXXXXXXXXXXXX'}) |
| 561 |
ID and URI resource of the job created. |
| 562 |
|
| 563 |
|
| 564 |
status (always, dict, {'ActualRunningStartTime': '2022-02-09T04:42:41', 'ActualRunningStopTime': '2022-02-09T04:44:00', 'CompletionTime': '2022-02-09T04:44:00', 'Description': 'Job Instance', 'EndTime': 'TIME_NA', 'Id': 'JID_444033604418', 'JobState': 'Completed', 'JobType': 'RealTimeNoRebootConfiguration', 'Message': 'Job completed successfully.', 'MessageArgs': [], 'MessageId': 'PR19', 'Name': 'Configure: RAID.Integrated.1-1', 'PercentComplete': 100, 'StartTime': '2022-02-09T04:42:40', 'TargetSettingsURI': None}) |
| 565 |
status of the submitted job. |
| 566 |
|
| 567 |
|
| 568 |
error_info (on http error, dict, {'error': {'@Message.ExtendedInfo': [{'Message': 'Unable to run the method because the requested HTTP method is not allowed.', 'MessageArgs': [], '[email protected]': 0, 'MessageId': 'iDRAC.1.6.SYS402', 'RelatedProperties': [], '[email protected]': 0, 'Resolution': 'Enter a valid HTTP method and retry the operation. For information about valid methods, see the Redfish Users Guide available on the support site.', 'Severity': 'Informational'}], 'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information'}}) |
| 569 |
Details of a http error. |
| 570 |
|
| 571 |
|
| 572 |
|
| 573 |
|
| 574 |
|
| 575 |
Status |
| 576 |
------ |
| 577 |
|
| 578 |
|
| 579 |
|
| 580 |
|
| 581 |
|
| 582 |
Authors |
| 583 |
~~~~~~~ |
| 584 |
|
| 585 |
- Jagadeesh N V (@jagadeeshnv) |
| 586 |
- Felix Stephen (@felixs88) |
| 587 |
- Husniya Hameed (@husniya_hameed) |
| 588 |
- Abhishek Sinha (@ABHISHEK-SINHA10) |
| 589 |
- Shivam Sharma (@ShivamSh3) |
| 590 |
- Trisha Datta (@trisha-dell) |
| 591 |
|