dell / dellemc-openmanage-ansible-modules

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

[BUG]: Python 3.12 Support #664

Closed kitos9112 closed 4 months ago

kitos9112 commented 5 months ago

Bug Description

I'm hitting import-related issues while trying to run iDRAC modules on Python 3.12 while trying to invoke the idrac firmware module.

I think it's related to the upstream library:

https://github.com/dell/omsdk/issues/43

Component or Module Name

ansible_collections.dellemc.openmanage.modules.idrac_firmware_info

Ansible Version

Ansible 2.16

Python Version

Python 3.12.3

iDRAC/OME/OME-M version

iDRAC 9

Operating System

Linux 6.2.0-39-generic #40~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 16 10:53:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Playbook Used

A straightforward example grabbed from the module documentation

- name: Update firmware from repository on a FTP
  dellemc.openmanage.idrac_firmware:
       idrac_ip: "192.168.0.1"
       idrac_user: "user_name"
       idrac_password: "user_password"
       ca_path: "/path/to/ca_cert.pem"
       share_name: "ftp://ftp.mydomain.com"
       reboot: true
       job_wait: true
       apply_update: true

Logs

The relevant line is:

ImportError: Dell OMSDK library is required for this module

Steps to Reproduce

NA

Expected Behavior

N/A

Actual Behavior

N/A

Screenshots

No response

Additional Information

https://github.com/dell/omsdk/issues/43

anupamaloke commented 5 months ago

@kitos9112, thank you for submitting this issue. We are working on supporting the python 3.12 and it should be available with omsdk and openmanage ansible modules with this end-of-month release.

sachin-apa commented 4 months ago

This is merged as part of the OMSDK changes and should now support 3.12. v1.2.513