-
Notifications
You must be signed in to change notification settings - Fork 165
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]: Incompatible with pysnmp >6.2.2 #704
Comments
@MallocArray, thank you for submitting this issue. We are looking into this error and will keep everyone updated with a potential fix. |
I found that updating omdrivers/iDRAC.py with |
We're pinning |
Same error here, i tried to downgrade pysnmp to 4.4.12 but the error remains.
|
same for me. Thanks |
This should be resolved now with the latest release of the Dell OMSDK |
@MallocArray, |
Bug Description
Dell playbooks failing after upgrading pysnmp to 6.2.2 - 6.2.4 but working with pysnmp 4.4.12
Opened issue with OMSDK repo as well
dell/omsdk#46
Component or Module Name
dellemc.openmanage.idrac_system_info
Ansible Version
2.16.9
Python Version
3.11
iDRAC/OME/OME-M version
iDRAC 7.00.00
MX740c blades
Operating System
Stream9 based Execution Environment
Playbook Used
Logs
TASK [Get system inventory] *******************************************************************************************
task path: /runner/Dell/idrac/idrac_configuration.yml:23
ESTABLISH LOCAL CONNECTION FOR USER: root
EXEC /bin/sh -c 'echo ~root && sleep 0'
EXEC /bin/sh -c '( umask 77 && mkdir -p "
echo /root/.ansible/tmp
"&& mkdir "echo /root/.ansible/tmp/ansible-tmp-1721674740.740452-903-140029397416120
" && echo ansible-tmp-1721674740.740452-903-140029397416120="echo /root/.ansible/tmp/ansible-tmp-1721674740.740452-903-140029397416120
" ) && sleep 0'Using module file /runner/collections/ansible_collections/dellemc/openmanage/plugins/modules/idrac_system_info.py
PUT /root/.ansible/tmp/ansible-local-8692e_20hs7/tmpbrey9cjp TO /root/.ansible/tmp/ansible-tmp-1721674740.740452-903-140029397416120/AnsiballZ_idrac_system_info.py
EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1721674740.740452-903-140029397416120/ /root/.ansible/tmp/ansible-tmp-1721674740.740452-903-140029397416120/AnsiballZ_idrac_system_info.py && sleep 0'
EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1721674740.740452-903-140029397416120/AnsiballZ_idrac_system_info.py && sleep 0'
EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1721674740.740452-903-140029397416120/ > /dev/null 2>&1 && sleep 0'
The full traceback is:
Traceback (most recent call last):
File "/root/.ansible/tmp/ansible-tmp-1721674740.740452-903-140029397416120/AnsiballZ_idrac_system_info.py", line 107, in
_ansiballz_main()
File "/root/.ansible/tmp/ansible-tmp-1721674740.740452-903-140029397416120/AnsiballZ_idrac_system_info.py", line 99, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/root/.ansible/tmp/ansible-tmp-1721674740.740452-903-140029397416120/AnsiballZ_idrac_system_info.py", line 47, in invoke_module
runpy.run_module(mod_name='ansible_collections.dellemc.openmanage.plugins.modules.idrac_system_info', init_globals=dict(_module_fqn='ansible_collections.dellemc.openmanage.plugins.modules.idrac_system_info', _modlib_path=modlib_path),
File "", line 226, in run_module
File "", line 98, in _run_module_code
File "", line 88, in _run_code
File "/tmp/ansible_dellemc.openmanage.idrac_system_info_payload_1qk0etkl/ansible_dellemc.openmanage.idrac_system_info_payload.zip/ansible_collections/dellemc/openmanage/plugins/modules/idrac_system_info.py", line 121, in
File "/tmp/ansible_dellemc.openmanage.idrac_system_info_payload_1qk0etkl/ansible_dellemc.openmanage.idrac_system_info_payload.zip/ansible_collections/dellemc/openmanage/plugins/modules/idrac_system_info.py", line 106, in main
File "/tmp/ansible_dellemc.openmanage.idrac_system_info_payload_1qk0etkl/ansible_dellemc.openmanage.idrac_system_info_payload.zip/ansible_collections/dellemc/openmanage/plugins/module_utils/dellemc_idrac.py", line 86, in enter
File "/usr/local/lib/python3.11/site-packages/omsdk/sdkinfra.py", line 88, in importPath
module_loaded = self.load_from_file(fl[i])
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/omsdk/sdkinfra.py", line 61, in load_from_file
py_mod = load_module(mod_name, filepath, False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/omsdk/sdkinfra.py", line 43, in load_module
loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/usr/local/lib/python3.11/site-packages/omdrivers/iDRAC.py", line 1915, in
'SysObjectID' : ObjectIdentity('SNMPv2-MIB', 'sysObjectID'),
^^^^^^^^^^^^^^
NameError: name 'ObjectIdentity' is not defined
Steps to Reproduce
Run playbook with pysnmp 4.4.12 installed successfully
Upgrade to pysnmp 6.2.4 and run same playbook and receive the logs above
Expected Behavior
Playbook runs as expected
Actual Behavior
See logs for errors
Screenshots
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: