| Summary: | [abrt] smolt-1.4.3-4.fc16 + kernel-3.x: smolt.py:283:__init__:TypeError: 'NoneType' object is not subscriptable | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Nicolas Mailhot <nicolas.mailhot> |
| Component: | smolt | Assignee: | Will Woods <wwoods> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | awilliam, BobLfoot, c.david86, fedora.qc, kkshethin, mads, mrunge, orion, patsev.anton, petersen, satellitgo, tflink, wwoods |
| Target Milestone: | --- | Keywords: | CommonBugs |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:c3beafe56581ad74460b5572fd1443d05a44ce5a RejectedNTH https://fedoraproject.org/wiki/Common_F16_bugs#smolt-fail | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-08-25 20:25:09 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Package: smolt-1.4.3-4.fc16 Architecture: x86_64 OS Release: Fedora release 17 (Rawhide) Comment ----- While smolt was called by abrt to diagnose another problem Package: smolt-1.4.3-4.fc16 Architecture: x86_64 OS Release: Fedora release 17 (Rawhide) Comment ----- while running an abrt report Package: smolt-1.4.3-4.fc16 Architecture: x86_64 OS Release: Fedora release 17 (Rawhide) Comment ----- while running an abrt report Package: smolt-1.4.3-4.fc16 Architecture: x86_64 OS Release: Fedora release 17 (Rawhide) Comment ----- invoqued from abrt Package: smolt-1.4.3-4.fc16 Architecture: i686 OS Release: Fedora release 16 (Verne) Comment ----- Tried to generate smolt profile inside ABRT Package: smolt-1.4.3-4.fc16 Architecture: i686 OS Release: Fedora release 16 (Verne) Comment ----- when gathering smolt info for abrt report Proposed patch:
--- /usr/share/smolt/client/smolt.py 2011-01-11 15:25:19.000000000 +0000
+++ smolt.py 2011-08-12 16:37:45.632425601 +0000
@@ -1347,10 +1347,9 @@
def read_memory():
un = os.uname()
kernel = un[2]
- if kernel[:3] == "2.6":
- return read_memory_2_6()
if kernel[:3] == "2.4":
return read_memory_2_4()
+ return read_memory_2_6()
def read_memory_2_4():
if not os.access("/proc/meminfo", os.R_OK):
I assume that a consequence of this bug is that all f16 testing reports will have sub-optimal bug reports. A fix would IMHO be NTH.
Discussed in the 2011-08-12 blocker review meeting. While it would be nice to have smolt working for alpha, there is a possibility of impacting firstboot and we decided that the risk outweighed the benefit. Rejected as NTH for Fedora 16. The fix can be pulled in post-alpha without NTH. Package: smolt-1.4.3-4.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- run smoltSendProfile Package: smolt-1.4.3-4.fc16 Architecture: i686 OS Release: Fedora release 16 (Verne) Comment ----- ssh conection running fedora-easy-karma vnc connection running firefox to bugzilla search for bug after login get crash attempt to report crsh with abrt durin smolt phas get this crash Package: smolt-1.4.3-4.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- when reporting a bug Package: smolt-1.4.3-4.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- i dont know Package: smolt-1.4.3-4.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- no comment Package: smolt-1.4.3-4.fc16 Architecture: i686 OS Release: Fedora release 16 (Verne) Comment ----- install fedora 16 alpha Package: smolt-1.4.3-4.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- I got an error the first time using smolt (it has not been started on post-install). I launched it through the ABRT UI and the error pop-ed up. *** This bug has been marked as a duplicate of bug 722859 *** |
abrt version: 2.0.5 cmdline: /usr/bin/python /usr/bin/smoltSendProfile -p comment: While smolt was called by abrt to diagnose another problem executable: /usr/bin/smoltSendProfile kernel: 3.0.0-1.fc16.x86_64 reason: smolt.py:283:__init__:TypeError: 'NoneType' object is not subscriptable time: Wed Jul 27 13:08:54 2011 uid: 500 username: nim backtrace: :smolt.py:283:__init__:TypeError: 'NoneType' object is not subscriptable : :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 : :Local variables in innermost frame: :cpuInfo: {'count': 2, 'model_ver': '23', 'cpu_stepping': '10', 'speed': 2834, 'cache': '6144 KB', 'model_number': '6', 'bogomips': '6332.28', 'cpu_model_num': '23', 'platform': 'x86_64', 'other': 'fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm dts tpr_shadow vnmi flexpriority', 'cpu_family': '6', 'model': 'Intel(R) Core(TM)2 Duo CPU E8500 @ 3.16GHz', 'type': 'GenuineIntel', 'class': 'CPU', 'desc': 'Processor'} :self: <smolt.Host instance at 0x387acf8> :memory: None smolt_data: :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