dell / dellemc-openmanage-ansible-modules

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

[QUESTION]: iDRAC 8 not Gathering System Info #578

Closed wetzel-cam closed 12 months ago

wetzel-cam commented 1 year ago

Bug Description

iDRAC 8 based system fails to gather operating system facts

Component or Module Name

idrac_gather_facts/tasks/get_system_info

Ansible Version

Ansible 2.14

Python Version

Python 3.11.2

iDRAC/OME/OME-M version

iDRAC 8 2.84.84.84

Operating System

Linux 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) GNU/Linux

Playbook Used

- name: Get facts about iDRAC system
      ansible.builtin.include_role:
        name: dellemc.openmanage.idrac_gather_facts
      vars:
        hostname: "{{ hostvars[item].idrac_host }}"
        username: "{{ hostvars[item].idrac_user }}"
        password: "{{ hostvars[item].idrac_pass }}"
        validate_certs: false
        ca_path: ./ca.crt
        target:
           - System
      with_items: "{{ hostvars }}"

Logs

{
"accept_ranges": "bytes",
"cache_control": "no-cache",
"changed": false,
"connection": "close",
"content": "{\"error\":{\"@Message.ExtendedInfo\":[{\"Message\":\"Unable to complete the operation because the resource Attributes entered is not found.\",\"MessageArgs\":[\"Attributes\"],\"MessageArgs@odata.count\":1,\"MessageId\":\"IDRAC.1.6.SYS403\",\"RelatedProperties\":[],\"RelatedProperties@odata.count\":0,\"Resolution\":\"Enter the correct resource 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 Attributes was not found.\",\"MessageArgs\":[\"Attributes\"],\"MessageArgs@odata.count\":1,\"MessageId\":\"Base.1.2.ResourceMissingAtURI\",\"RelatedProperties\":[\"\"],\"RelatedProperties@odata.count\":1,\"Resolution\":\"Place a valid resource at the URI or correct the URI and resubmit the request.\",\"Severity\":\"Critical\"}],\"code\":\"Base.1.2.GeneralError\",\"message\":\"A general error has occurred. See ExtendedInfo for more information\"}}\n",
"content_length": "921",
"content_type": "application/json;odata.metadata=minimal;charset=utf-8",
"date": "Wed, 08 Nov 2023 14:39:40 GMT",
"elapsed": 0,
"json": {
    "error": {
        "@Message.ExtendedInfo": [
            {
                "Message": "Unable to complete the operation because the resource Attributes entered is not found.",
                "MessageArgs": [
                    "Attributes"
                ],
                "MessageArgs@odata.count": 1,
                "MessageId": "IDRAC.1.6.SYS403",
                "RelatedProperties": [],
                "RelatedProperties@odata.count": 0,
                "Resolution": "Enter the correct resource 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 Attributes was not found.",
                "MessageArgs": [
                    "Attributes"
                ],
                "MessageArgs@odata.count": 1,
                "MessageId": "Base.1.2.ResourceMissingAtURI",
                "RelatedProperties": [
                    ""
                ],
                "RelatedProperties@odata.count": 1,
                "Resolution": "Place a valid resource at the URI or correct the URI and resubmit the request.",
                "Severity": "Critical"
            }
        ],
        "code": "Base.1.2.GeneralError",
        "message": "A general error has occurred. See ExtendedInfo for more information"
    }
},
"msg": "HTTP Error 404: Not Found",
"odata_version": "4.0",
"redirected": false,
"server": "iDRAC/8",
"status": 404,
"strict_transport_security": "max-age=63072000",
"url": "https://<ip>:443/redfish/v1/Managers/System.Embedded.1/Attributes?$select=ServerOS.*",
"vary": "Accept-Encoding",
"x_frame_options": "SAMEORIGIN"
}

Steps to Reproduce

Run the Ansible role dellemc.openmanage.idrac_gather_facts against an iDRAC 8 version host.

Expected Behavior

Display the gathered system info, similar to running against a iDRAC 9 version

Actual Behavior

The playbook fails, saying the link is invalid.

Screenshots

No response

Additional Information

No response

wetzel-cam commented 12 months ago

Updated from 8.3.0->8.4.0. Working as intended now.