Bug 722859 - smolt fails to parse ram_size
Summary: smolt fails to parse ram_size
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: smolt
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Will Woods
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 726029 727797 733739 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-18 09:23 UTC by Mikko Tiihonen
Modified: 2011-11-05 18:05 UTC (History)
17 users (show)

Fixed In Version: smolt-1.4.3-5.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-07 03:32:31 UTC
Type: ---


Attachments (Terms of Use)

Description Mikko Tiihonen 2011-07-18 09:23:29 UTC
Description of problem:
Smolt fails to create system profile and complains about NoneType while parsing ram_size.

Version-Release number of selected component (if applicable):
smolt-1.4.3-3.fc15.noarch

How reproducible:
Always

Steps to Reproduce:
1. smoltSendProfile -p
  
Actual results:
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


Expected results:
Profile is created and printed to console

Comment 1 Mads Kiilerich 2011-07-26 13:05:57 UTC
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 Mikko Tiihonen 2011-07-27 07:35:31 UTC
Yes. 3.0 kernel.

I modified the smolt.py as suggested and now smolt works on rawhide.

Comment 3 Orion Poplawski 2011-08-25 20:25:09 UTC
*** Bug 726029 has been marked as a duplicate of this bug. ***

Comment 4 Orion Poplawski 2011-08-25 20:26:14 UTC
*** Bug 727797 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2011-08-25 20:45:44 UTC
smolt-1.4.3-5.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/smolt-1.4.3-5.fc16

Comment 6 Timon 2011-08-26 06:01:47 UTC
Package: smolt-1.4.3-4.fc16
Architecture: x86_64
OS Release: Fedora release 16 (Verne)

Comment
-----
tried to get smolt profile via abrt reporting tool

Comment 7 Boricua 2011-08-26 09:29:25 UTC
Package: smolt-1.4.3-4.fc16
Architecture: x86_64
OS Release: Fedora release 16 (Verne)

Comment
-----
Just trying to provide profile for bug reporting.

Comment 8 Fabien Archambault 2011-08-26 10:06:55 UTC
Package: smolt-1.4.3-4.fc16
Architecture: i686
OS Release: Fedora release 16 (Verne)

Comment
-----
Trying to report ABRT bug with smolt send profile

Comment 9 Fedora Update System 2011-08-26 14:17:45 UTC
Package smolt-1.4.3-5.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing smolt-1.4.3-5.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/smolt-1.4.3-5.fc16
then log in and leave karma (feedback).

Comment 10 Amir Hedayaty 2011-08-26 17:04:27 UTC
Package: smolt-1.4.3-4.fc16
Architecture: x86_64
OS Release: Fedora release 16 (Verne)

Comment
-----
I know this is a common bug

Comment 11 Alexander Ivanov 2011-08-27 06:29:43 UTC
Package: smolt-1.4.3-4.fc16
Architecture: x86_64
OS Release: Fedora release 16 (Verne)

Comment
-----
Starting Smolt from ABRT

Comment 12 hitman2 2011-09-02 11:31:17 UTC
Package: smolt-1.4.3-4.fc16
Architecture: x86_64
OS Release: Fedora release 16 (Verne)

Comment
-----
I dont remember
no

Comment 13 Carlos "casep" Sepulveda 2011-09-03 23:31:47 UTC
Package: smolt-1.4.3-4.fc16
Architecture: i686
OS Release: Fedora release 16 (Verne)

Comment
-----
While reporting a totem bug it offerd to use smolt to add extra info.

Comment 14 Horst H. von Brand 2011-09-06 15:52:09 UTC
Package: smolt-gui-1.4.3-3.fc15
Architecture: x86_64
OS Release: Fedora release 15 (Lovelock)

Comment
-----
Installed and started smoltGui for the first time ever

Comment 15 unix63 2011-09-07 02:14:58 UTC
Package: smolt-1.4.3-4.fc16
Architecture: i686
OS Release: Fedora release 16 (Verne)

Comment
-----
abrt tried send smolt hardware profile

Comment 16 Fedora Update System 2011-09-07 03:32:23 UTC
smolt-1.4.3-5.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Adam Williamson 2011-09-07 19:51:25 UTC
*** Bug 733739 has been marked as a duplicate of this bug. ***

Comment 18 Adam Williamson 2011-09-07 19:55:34 UTC
this patch should probably get committed to http://git.fedorahosted.org/git/?p=smolt.git , seeing as how smolt is a fedoraland tool and all.

Comment 19 Adam Williamson 2011-09-07 19:58:47 UTC
filed https://fedorahosted.org/smolt/ticket/92 .

Comment 20 Andre Robatino 2011-11-05 17:56:47 UTC
On a clean F16 (AKA RC5) i386 install from live image, I see what looks very similar to bug 727797 which is marked as a dupe of this one. In firstboot, the hardware profile box was empty. Running smoltSendProfile manually tracebacks:

[andre@emachines-pc ~]$ smoltSendProfile 
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 1414, 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 306, in __init__
    self.systemVendor = cat('/sys/devices/virtual/dmi/id/sys_vendor')[0].strip()
  File "/usr/share/smolt/client/devicelist.py", line 76, in cat
    fd = open(file, 'r')
IOError: [Errno 2] No such file or directory: '/sys/devices/virtual/dmi/id/sys_vendor'
[andre@emachines-pc ~]$

Here is the F14 smolt profile of the same machine before I reinstalled:

 http://www.smolts.org/client/show/pub_d157199d-ccaa-4731-aca2-5bc53d75c516

Is this also in fact a dupe?

Comment 21 Mads Kiilerich 2011-11-05 18:05:32 UTC
Robatino: No, that is Bug 695075 / Bug 727513 / Bug 727518


Note You need to log in before you can comment on or make changes to this bug.