Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 377961

Summary: app-admin/smolt-1.4.3 does not work with linux kernel 3.0
Product: Gentoo Linux Reporter: Andrei Slavoiu <ansla80>
Component: Current packagesAssignee: Sebastian Pipping <sping>
Status: RESOLVED OBSOLETE    
Severity: normal CC: eandry
Priority: Normal Keywords: PATCH
Version: 10.0   
Hardware: All   
OS: Linux   
URL: https://bugzilla.redhat.com/show_bug.cgi?id=722859
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 438082    
Bug Blocks:    
Attachments: smolt-1.4.3-kernel-3.0.patch

Description Andrei Slavoiu 2011-08-06 09:24:18 UTC
When runing smoltSendProfile I get:

Traceback (most recent call last):
  File "/usr/bin/smoltSendProfile", line 152, in <module>
    profile = smolt.get_profile()
  File "/usr/share/smolt/client/smolt.py", line 1415, in get_profile
    return Hardware()
  File "/usr/share/smolt/client/smolt.py", line 1004, in Hardware
    _hardware_instance = _Hardware()
  File "/usr/share/smolt/client/smolt.py", line 591, in __init__
    self.host = Host()
  File "/usr/share/smolt/client/smolt.py", line 283, in __init__
    self.systemMemory = Gate().process('ram_size', memory['ram'], 0)
TypeError: 'NoneType' object is not subscriptable
Comment 1 Andrei Slavoiu 2011-08-06 09:26:29 UTC
Added URL to the upstream bug that also contains the following fix:

Mads Kiilerich      2011-07-26 09:05:57 EDT  
That is with a 3.0 kernel, right?

I suggest /usr/share/smolt/client/smolt.py should have

def read_memory():
    un = os.uname()
    kernel = un[2]
    if kernel[:3] == "2.4":
        return read_memory_2_4()
    return read_memory_2_6()
Comment 2 Andrei Slavoiu 2012-09-26 19:49:39 UTC
Created attachment 325064 [details, diff]
smolt-1.4.3-kernel-3.0.patch
Comment 3 Sebastian Pipping gentoo-dev 2012-12-23 22:47:51 UTC
Smolt is about to be removed, see bug #438082.

Therefore I am closing this bug.  Still, thanks for the patch!