Red Hat Bugzilla – Bug 1305073
hardware.py crashed while executing ipa-upgarde test execution
Last modified: 2016-05-27 03:50:08 EDT
Description of problem:
hardware.py crashed while executing ipa-upgarde test execution.
Steps to Reproduce:
1. Setup IPA server for ipa-upgrade test suite execution on beaker.
2. Make sure latest repo links are set correctly for test execution.
3. Initiate automation for ipa-upgrade test suite on beaker.
Once the automation for ipa-upgrade is complete, following message is received.
:hardware.py:45:<module>:ImportError: No module named hardware_hal
:Traceback (most recent call last):
: File "/usr/share/rhn/up2date_client/hardware.py", line 45, in <module>
: from hardware_hal import check_hal_dbus_status, get_hal_computer, read_hal
:ImportError: No module named hardware_hal
:Local variables in innermost frame:
:getaddrinfo: <built-in function getaddrinfo>
:rhnserver: <module 'rhnserver' from '/usr/share/rhn/up2date_client/rhnserver.pyc'>
:gethostname: <built-in function gethostname>
:up2dateLog: <module 'up2dateLog' from '/usr/share/rhn/up2date_client/up2dateLog.pyc'>
:gettext: <module 'gettext' from '/usr/lib64/python2.7/gettext.pyc'>
:re: <module 're' from '/usr/lib64/python2.7/re.pyc'>
:config: <module 'config' from '/usr/share/rhn/up2date_client/config.pyc'>
:__doc__: 'Used to read hardware info from kudzu, /proc, etc'
:ethtool: <module 'ethtool' from '/usr/lib64/python2.7/site-packages/ethtool.so'>
:__builtins__: <module '__builtin__' (built-in)>
:sys: <module 'sys' (built-in)>
:dmidecode: <module 'dmidecode' from '/usr/lib64/python2.7/site-packages/dmidecode.pyc'>
:_: <bound method NullTranslations.ugettext of <gettext.NullTranslations instance at 0x18d4998>>
:socket: <module 'socket' from '/usr/lib64/python2.7/socket.pyc'>
:dbus: <module 'dbus' from '/usr/lib64/python2.7/site-packages/dbus/__init__.pyc'>
:t: <gettext.NullTranslations instance at 0x18d4998>
:os: <module 'os' from '/usr/lib64/python2.7/os.pyc'>
No Crash reports should be observed for testing ipa-upgrade test suite.
This crash was observed while performing automation upgrade testing from RHEL 7.0 > RHEL 7.2.z (up2).
I'm sorry, but it's not quite clear, what is ipa-upgrade and how rhn-client-tools are called.
Could we get a minimal reproducer, how to call rhn-client-tools to get this traceback?
I have attached the crash logs received for the system that reproduced similar error message.
Let me know if you need any more information.
According to the provided crash log, it looks hardware.py is called in the following way:
# python /usr/share/rhn/up2date_client/hardware.py
This is definitely not supported. You're supposed to call only rhn-client-tools utilities from /usr/bin/ and /user/sbin/. CLosing as NOTABUG.
*** Bug 1305740 has been marked as a duplicate of this bug. ***
I don't see a resolution for this. Would you please provide more information as how to deal with these crashes?
Making Comment 5 publicly readable.