dell / dellemc-openmanage-ansible-modules

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

[BUG]: redfish_storage_volume job returns 404. #713

Open rht-jbittner opened 3 months ago

rht-jbittner commented 3 months ago

Bug Description

We use dellemc.openmanage.redfish_storage_volume to enable encryption for virtual drives, but unfortunately it fails on job creation.

Component or Module Name

dellemc.openmanage.redfish_storage_volume

Ansible Version

ansible [core 2.15.2]

Python Version

Python 3.11.8

iDRAC/OME/OME-M version

iDrac 9 version 7.00.00.172 dellemc.openmanage 9.5.0

Operating System

Macos 14.5

Playbook Used

- name: Modify a volume's encryption type settings
  dellemc.openmanage.redfish_storage_volume:
    baseuri: "{{ idrac_server }}"
    username: "{{ idrac_user }}"
    password: "{{ idrac_user_pw }}"
    validate_certs: "{{ idrac_validate_certs }}"
    state: "present"
    volume_id: "Disk.Virtual.0:RAID.Slot.4-1"
    encryption_types: "NativeDriveEncryption"
    encrypted: true
    apply_time: Immediate
    reboot_server: true
    job_wait: true
  delegate_to: localhost

Logs

TASK [Modify a volume's encryption type settings] ***** fatal: [idrac.server.com -> localhost]: FAILED! => changed=false error_info: error: '@Message.ExtendedInfo':

Steps to Reproduce

Setup virtual drive and run encryption setup via dellemc.openmanage.redfish_storage_volume module.

Expected Behavior

Works

Actual Behavior

returns 404

Screenshots

No response

Additional Information

No response

anupamaloke commented 3 months ago

@rht-jbittner, thank you for submitting the issue. Quick question - was the playbook working as expected earlier or this is the first time you are running the playbook?

rht-jbittner commented 3 months ago

@anupamaloke it is the first time running it.

anupamaloke commented 3 months ago

@rht-jbittner, apologies for the late response. This looks like a bug in the code as the module should never query a resource using None instance. Could you please raise a SR with Dell? Meanwhile, we will be taking a look at this internally as well.