Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG]: redfish_storage_volume job returns 404. #713

Open
rht-jbittner opened this issue Aug 2, 2024 · 3 comments
Open

[BUG]: redfish_storage_volume job returns 404. #713

rht-jbittner opened this issue Aug 2, 2024 · 3 comments
Labels
needs-ticket Issue we have requested to create a Service ticket to debug in the customer environment. needs-triage Issue requires triage. type/bug Something isn't working

Comments

@rht-jbittner
Copy link

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':
- Message: Unable to complete the operation because the resource /redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/Jobs/None entered is not found.
MessageArgs:
- /redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/Jobs/None
MessageArgs@odata.count: 1
MessageId: IDRAC.2.8.SYS403
RelatedProperties: []
RelatedProperties@odata.count: 0
Resolution: Enter the correct resource and retry the operation. For resources with numeric ID in the URI, enable the "Redfish.1#NumericDynamicSegmentsEnable" attribute and retry the operation. For information about valid resource, see the Redfish Users Guide available on the support site.
Severity: Critical
- Message: The resource at the URI /redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/Jobs/None was not found.
MessageArgs:
- /redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/Jobs/None
MessageArgs@odata.count: 1
MessageId: Base.1.8.ResourceMissingAtURI
RelatedProperties: []
RelatedProperties@odata.count: 0
Resolution: Place a valid resource at the URI or correct the URI and resubmit the request.
Severity: Critical
code: Base.1.8.GeneralError
message: A general error has occurred. See ExtendedInfo for more information
msg: 'HTTP Error 404: Not Found'

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

@rht-jbittner rht-jbittner added needs-triage Issue requires triage. type/bug Something isn't working labels Aug 2, 2024
@anupamaloke
Copy link
Contributor

@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
Copy link
Author

@anupamaloke it is the first time running it.

@anupamaloke
Copy link
Contributor

@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.

@sachin-apa sachin-apa added the needs-ticket Issue we have requested to create a Service ticket to debug in the customer environment. label Dec 13, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
needs-ticket Issue we have requested to create a Service ticket to debug in the customer environment. needs-triage Issue requires triage. type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants