Bug 1127786

Summary: [oVirt-node] ImportError: No module named dmidecode
Product: [Retired] oVirt Reporter: Martin Pavlik <mpavlik>
Component: vdsmAssignee: Dan Kenigsberg <danken>
Status: CLOSED CURRENTRELEASE QA Contact: Gil Klein <gklein>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5CC: bazulay, bugs, dfediuck, ecohen, fdeutsch, gklein, iheim, info, mgoldboi, ovirt-bugs, rbalakri, yeylon
Target Milestone: ---Keywords: TestOnly
Target Release: 3.5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: node
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-17 12:26:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
node logs none

Description Martin Pavlik 2014-08-07 14:40:26 UTC
Created attachment 924934 [details]
node logs

Description of problem:
node cannot detect virtualization hardware because of missing module dmidedecode


Version-Release number of selected component (if applicable):
[root@dell-r210ii-06 ~]# cat /etc/redhat-release 
oVirt Node Hypervisor release 3.1.0_master (20140805.0) (Edited, Unsigned)
[root@dell-r210ii-06 ~]# rpm -q vdsm
vdsm-4.16.1-0.gita4d9abf.el6.i686


How reproducible:
100%

Steps to Reproduce:
1. install oVirt node on physical machine
2.
3.

Actual results:
node cannot detect virtualization hardware because of missing module dmidedecode

Expected results:
correct HW etection

Additional info:

MainProcess|Thread-13::DEBUG::2014-08-07 13:55:13,571::supervdsmServer::99::SuperVdsm.ServerCallback::(wrapper) call getHardwareInfo with () {}
MainProcess|Thread-13::ERROR::2014-08-07 13:55:13,572::supervdsmServer::103::SuperVdsm.ServerCallback::(wrapper) Error in getHardwareInfo
Traceback (most recent call last):
  File "/usr/share/vdsm/supervdsmServer", line 101, in wrapper
    res = func(*args, **kwargs)
  File "/usr/share/vdsm/supervdsmServer", line 128, in getHardwareInfo
    from dmidecodeUtil import getHardwareInfoStructure
  File "/usr/share/vdsm/dmidecodeUtil.py", line 21, in <module>
    import dmidecode
ImportError: No module named dmidecode

Comment 1 Fabian Deutsch 2014-09-30 10:21:26 UTC
This was likely related to missing SELinux rules. The rules have been updated and dmidecode can be imported (from a shell in userspace).

Comment 2 Sandro Bonazzola 2014-10-17 12:26:40 UTC
oVirt 3.5 has been released and should include the fix for this issue.