Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[BUG]: Module 8.7.0, idrac_gather_facts role and iDrac8 (2.84.84.84) #718

Closed
stf1966 opened this issue Aug 13, 2024 · 1 comment · Fixed by #730
Closed

[BUG]: Module 8.7.0, idrac_gather_facts role and iDrac8 (2.84.84.84) #718

stf1966 opened this issue Aug 13, 2024 · 1 comment · Fixed by #730
Assignees
Labels
area/idrac idrac modules/roles needs-triage Issue requires triage. type/bug Something isn't working
Milestone

Comments

@stf1966
Copy link

stf1966 commented Aug 13, 2024

Bug Description

Testing the role idrac_gather_facts with different role target...

  • target: BIOS,CPU,Firmware,HostNIC,Memory,NIC works correctly on iDrac v8 and v9
  • target: IDRAC, System, Enclosure doesn't works on iDrac v8 ??? ok on v9

In fact, there isn't https://xxxxxx/redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/DellAttributes/iDRAC.Embedded.1 on v8
Perhaps I misunderstand the documentation "Dell OpenManage Ansible Modules 8.7.0"
Supported Platforms
iDRAC8 based Dell PowerEdge Servers with firmware versions 2.84.84.84 and above.

Component or Module Name

idrac_gather_facts role

Ansible Version

Ansible 2.16.9

Python Version

Python 3.10.12

iDRAC/OME/OME-M version

iDRAC8 firm 2.84.84.84

Operating System

Ubuntu 22.04

Playbook Used

  • name: "Let's play with idrac_gather_facts role..."
    hosts: idrac
    connection: local
    gather_facts: false
    collections:

    • dellemc.openmanage
      vars_prompt:
    • name: idrac_pwd
      prompt: Please provide your idrac password
      private: true

    tasks:

    • name: iDRAC gather facts for System, BIOS, Controller, CPU, Enclosure.
      ansible.builtin.import_role:
      name: idrac_gather_facts
      vars:
      validate_certs: false
      hostname: "{{ ansible_host }}"
      username: "{{ idrac_user }}"
      password: "{{ idrac_pwd }}"

      ca_path: "/path/to/ca_cert.pem"

      target:
      • IDRAC #or System or Enclosure, or Controller
    • ansible.builtin.debug: var=idrac

Logs

fatal: [S22914]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'Attributes'. 'dict object' has no attribute 'Attributes'\n\nThe error appears to be in '/usr/lib/python3/dist-packages/ansible_collections/dellemc/openmanage/roles/idrac_gather_facts/tasks/get_attributes_info.yml': line 23, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set System, Manager, Lifecycle controller facts\n ^ here\n"}

Steps to Reproduce

just a basic playbook to import the role idrac_gather_facts

Expected Behavior

success

Actual Behavior

Failed

Screenshots

No response

Additional Information

No response

@stf1966 stf1966 added needs-triage Issue requires triage. type/bug Something isn't working labels Aug 13, 2024
@sachin-apa sachin-apa added this to the v9.7.0 milestone Sep 3, 2024
@akire0ne
Copy link

We have a similiar issue here. R630 w/ Idrac8 running 2.85.85.85 fw.
We cannot gather facts on the System target. Other targets (see example above) just run as fine.

---
- name: Test idrac role
  gather_facts: false
  hosts: XXXX
  roles:
    - role: dellemc.openmanage.idrac_gather_facts
      vars:
        hostname: XXXXX
        username: XXXXXX
        password: XXXXX
        validate_certs: false
        target:
          # - System
          - Firmware
          - BIOS
          - CPU
          - Memory
          - NIC
          - PhysicalDisk

it seems the JSON returned by the System endpoint does not match the expected structure of the role.
The role tries to parse system_result.json.Oem.Dell.DellSystem but the returned JSON does not contain an Oem key.

For me it looks like System does not support IDRAC8.

@rajshekarp87 rajshekarp87 added the area/idrac idrac modules/roles label Sep 17, 2024
@rajshekarp87 rajshekarp87 pinned this issue Sep 17, 2024
@rajshekarp87 rajshekarp87 unpinned this issue Sep 17, 2024
@rajshekarp87 rajshekarp87 linked a pull request Sep 17, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/idrac idrac modules/roles needs-triage Issue requires triage. type/bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

6 participants