dell / dellemc-openmanage-ansible-modules

Dell OpenManage Ansible Modules
GNU General Public License v3.0
339 stars 163 forks source link

redfish_storage_volume: on PERC controller fails to create mirrored VD #148

Closed janr7 closed 4 years ago

janr7 commented 4 years ago

Hello

Should redfish_storage_volume work to create a mirror with mentioned server and inventory? Thank you.

Used: https://galaxy.ansible.com/download/dellemc-openmanage-2.1.1.tar.gz

Model | PowerEdge R740 BIOS Version | 2.8.1 iDRAC Firmware Version | 4.22.00.00 No OS installed on server.

- name: Create a volume with supported options
  redfish_storage_volume:
    baseuri: "{{ rmb_address }}"
    username: "{{ rmb_username }}"
    password: "{{ rmb_password }}"
    state: "present"
    volume_type: "Mirrored"
    name: "VD_R1_1_a"
    controller_id: "RAID.Slot.6-1"
    drives:
      - Disk.Bay.0:Enclosure.Internal.0-1:RAID.Slot.6-1
      - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.6-1
    optimum_io_size_bytes: 65536
  register: result
- debug:
    var: result

Message: TASK [Create a volume with supported options] **** fatal: [localhost]: FAILED! => {"changed": false, "error_info": {"error": {"@Message.ExtendedInfo": [{"Message": "Unable to complete the operation because either the Fully Qualified Device Descriptor (FQDD) entered did not match any virtual drive (VD), the physical drives available, or the operation is not supported on the physical drive (s).", "MessageArgs": [], "MessageArgs@odata.count": 0, "MessageId": "IDRAC.2.1.STOR009", "RelatedProperties": [], "RelatedProperties@odata.count": 0, "Resolution": "Make sure of the following and retry the operation: 1) A physical drive or virtual drive with the FQDD entered exists. 2) The physical drive (s) supports the operation being tried. For more information about supported physical drives, see the iDRAC User's Guide available on the support site.", "Severity": "Warning"}], "code": "Base.1.5.GeneralError", "message": "A general error has occurred. See ExtendedInfo for more information"}}, "msg": "HTTP Error 400: Bad Request"}

Inventory: { "result": { "changed": false, "failed": false, "msg": "Successfully completed the view storage volume operation", "storage_status": { "Message": { "Controller": { "AHCI.Embedded.1-1": { "ControllerSensor": { "AHCI.Embedded.1-1": {} } }, "AHCI.Embedded.2-1": { "ControllerSensor": { "AHCI.Embedded.2-1": {} } }, "RAID.Slot.6-1": { "ControllerSensor": { "RAID.Slot.6-1": { "ControllerBattery": [ "Battery.Integrated.1:RAID.Slot.6-1" ] } }, "Enclosure": { "Enclosure.Internal.0-1:RAID.Slot.6-1": { "EnclosureSensor": { "Enclosure.Internal.0-1:RAID.Slot.6-1": {} }, "PhysicalDisk": [ "Disk.Bay.0:Enclosure.Internal.0-1:RAID.Slot.6-1", "Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.6-1", "Disk.Bay.2:Enclosure.Internal.0-1:RAID.Slot.6-1", "Disk.Bay.3:Enclosure.Internal.0-1:RAID.Slot.6-1", "Disk.Bay.4:Enclosure.Internal.0-1:RAID.Slot.6-1", "Disk.Bay.5:Enclosure.Internal.0-1:RAID.Slot.6-1", "Disk.Bay.6:Enclosure.Internal.0-1:RAID.Slot.6-1" ] } } } } }, "Status": "Success" } } }

janr7 commented 4 years ago

Subsequent try worked.

TASK [debug] ***** ok: [localhost] => { "result": { "changed": true, "failed": false, "msg": "Successfully submitted create volume task.", "task": { "id": "JID_988667797975", "uri": "/redfish/v1/TaskService/Tasks/JID_988667797975" } } }