| Summary: | app-admin/smolt-1.4.3 does not work with linux kernel 3.0 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Andrei Slavoiu <ansla80> |
| Component: | Current packages | Assignee: | 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 | ||
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()
Created attachment 325064 [details, diff]
smolt-1.4.3-kernel-3.0.patch
Smolt is about to be removed, see bug #438082. Therefore I am closing this bug. Still, thanks for the patch! |
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