dell / dellemc-openmanage-ansible-modules

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

dellemc_idrac_storage_volume: Failed to perform storage operation #243

Closed akamac closed 3 years ago

akamac commented 3 years ago

Inventory:

ok: [<redacted>] => changed=false
  invocation:
    module_args:
      capacity: null
      controller_id: RAID.Integrated.1-1
      disk_cache_policy: Default
      idrac_ip: <redacted>
      idrac_password: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
      idrac_port: 443
      idrac_user: <redacted>
      media_type: null
      number_dedicated_hot_spare: 0
      protocol: null
      raid_init_operation: null
      raid_reset_config: 'False'
      read_cache_policy: NoReadAhead
      span_depth: 1
      span_length: 1
      state: view
      stripe_size: 65536
      volume_id: null
      volume_type: RAID 0
      volumes: null
      write_cache_policy: WriteThrough
  msg: Successfully completed the view storage volume operation
  storage_status:
    Message:
      RAID.Integrated.1-1:
        ControllerSensor:
          RAID.Integrated.1-1:
            ControllerBattery:
            - Battery.Integrated.1:RAID.Integrated.1-1
        Enclosure:
          Enclosure.Internal.0-1:RAID.Integrated.1-1:
            EnclosureSensor:
              Enclosure.Internal.0-1:RAID.Integrated.1-1: {}
            PhysicalDisk:
            - Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1
            - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1
            - Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1
            - Disk.Bay.3:Enclosure.Internal.0-1:RAID.Integrated.1-1
            - Disk.Bay.4:Enclosure.Internal.0-1:RAID.Integrated.1-1
            - Disk.Bay.5:Enclosure.Internal.0-1:RAID.Integrated.1-1
    Status: Success

Task:

- name: configure boot volume
  dellemc_idrac_storage_volume:
    <<: *auth
    state: create
    volume_type: RAID 1
    controller_id: RAID.Integrated.1-1
    volumes:
      - name: root
        drives:
          id:
            - Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1
            - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1
    capacity: 1000

Result:

fatal: [<redacted>]: FAILED! => changed=false
  invocation:
    module_args:
      capacity: 1000.0
      controller_id: RAID.Integrated.1-1
      disk_cache_policy: Default
      idrac_ip: <redacted>
      idrac_password: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER
      idrac_port: 443
      idrac_user: <redacted>
      media_type: null
      number_dedicated_hot_spare: 0
      protocol: null
      raid_init_operation: null
      raid_reset_config: 'False'
      read_cache_policy: NoReadAhead
      span_depth: 1
      span_length: 1
      state: create
      stripe_size: 65536
      volume_id: null
      volume_type: RAID 1
      volumes:
      - drives:
          id:
          - Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1
          - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1
        name: root
      write_cache_policy: WriteThrough
  msg: Failed to perform storage operation

redfish_storage_volume works fine.

anupamaloke commented 3 years ago

@akamac, can you try with raid_reset_config argument set to True in your playbook?

akamac commented 3 years ago

That did not help. How can I get a more verbose error output for the module?

anupamaloke commented 3 years ago

@akamac, I think I might have found the issue. Could you please change span_length to 2 in your playbook and try again? span_length is the number of disks that you want to use for virtual disk creation which will be 2 for a RAID 1 volume. Ideally, the module should take a look at the list of physical disks provided in the volumes argument and calculate it automatically. @jagadeeshnv, @rajeevarakkal, FYI.

akamac commented 3 years ago

It is indeed. Thanks for looking into this!