Bug 771621 - [abrt] sx-2.06-14.fc16: clusterevaluator.py:68:evaluate:ValueError: invalid literal for int() with base 10: ''
Summary: [abrt] sx-2.06-14.fc16: clusterevaluator.py:68:evaluate:ValueError: invalid l...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: sx
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Niels de Vos
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9aaca3a9bc211738aaa37c27ba1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-04 11:22 UTC by Pierguido Lambri
Modified: 2012-01-11 08:00 UTC (History)
4 users (show)

Fixed In Version: sx-2.07-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-11 05:58:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Pierguido Lambri 2012-01-04 11:22:34 UTC
libreport version: 2.0.8
abrt_version:   2.0.7
cmdline:        /usr/bin/python /usr/bin/sxconsole 99999999 -E -R .
comment:        running sx on a couple of sosreports
executable:     /usr/bin/sxconsole
kernel:         3.1.6-1.fc16.x86_64
reason:         clusterevaluator.py:68:evaluate:ValueError: invalid literal for int() with base 10: ''
time:           Wed 04 Jan 2012 11:21:25 GMT
uid:            1000
username:       pier

backtrace:
:clusterevaluator.py:68:evaluate:ValueError: invalid literal for int() with base 10: ''
:
:Traceback (most recent call last):
:  File "/usr/bin/sxconsole", line 880, in <module>
:    mapOfPluginReportPaths = pluginsHelper.generatePluginReports(listOfReportsExtracted, listOfEnabledPlugins)
:  File "/usr/lib/python2.7/site-packages/sx/plugins/__init__.py", line 128, in generatePluginReports
:    plugin.report()
:  File "/usr/lib/python2.7/site-packages/sx/plugins/clusterha.py", line 176, in report
:    evaluatorResult = clusterEvaluator.evaluate()
:  File "/usr/lib/python2.7/site-packages/sx/plugins/lib/clusterha/clusterevaluator.py", line 68, in evaluate
:    if (not (int(cca.getPostFailDelay()) == 0)):
:ValueError: invalid literal for int() with base 10: ''
:
:Local variables in innermost frame:
:baseClusterNode: <sx.plugins.lib.clusterha.clusternode.ClusterNode instance at 0x20b2908>
:cca: <sx.plugins.lib.clusterha.clusterhaconfanalyzer.ClusterHAConfAnalyzer instance at 0x239b518>
:rstring: ''
:clusterConfigString: ''
:self: <sx.plugins.lib.clusterha.clusterevaluator.ClusterEvaluator instance at 0x2508ef0>

smolt_data:
:
:
:General
:=================================
:UUID: 087f8790-876c-4894-a14b-f21c3186f344
:OS: Fedora release 16 (Verne)
:Default run level: Unknown
:Language: en_GB.utf8
:Platform: x86_64
:BogoMIPS: 5054.32
:CPU Vendor: GenuineIntel
:CPU Model: Intel(R) Core(TM) i5 CPU       M 540  @ 2.53GHz
:CPU Stepping: 2
:CPU Family: 6
:CPU Model Num: 37
:Number of CPUs: 4
:CPU Speed: 2534
:System Memory: 3753
:System Swap: 4093
:Vendor: LENOVO
:System: 2537CT4 ThinkPad T410
:Form factor: Notebook
:Kernel: 3.1.6-1.fc16.x86_64
:SELinux Enabled: 0
:SELinux Policy: targeted
:SELinux Enforce: Unknown
:MythTV Remote: Unknown
:MythTV Role: Unknown
:MythTV Theme: Unknown
:MythTV Plugin: 
:MythTV Tuner: -1
:
:
:Devices
:=================================
:(4480:59426:6058:8499) pci, sdhci-pci, BASE, MMC/SD Host Controller
:(4480:57904:6058:8500) pci, None, BASE, Memory Stick Host Controller
:(4480:59442:6058:8502) pci, firewire_ohci, FIREWIRE, FireWire Host Controller
:(32902:11362:6058:8598) pci, None, HOST/PCI, Core Processor QuickPath Architecture Generic Non-core Registers
:(32902:11521:6058:8598) pci, None, HOST/PCI, Core Processor QuickPath Architecture System Address Decoder
:(32902:68:6058:8595) pci, agpgart-intel, HOST/PCI, Core Processor DRAM Controller
:(32902:11536:6058:8598) pci, None, HOST/PCI, Core Processor QPI Link 0
:(32902:11537:6058:8598) pci, None, HOST/PCI, Core Processor QPI Physical 0
:(32902:11538:6058:8598) pci, None, HOST/PCI, Core Processor Reserved
:(32902:11539:6058:8598) pci, None, HOST/PCI, Core Processor Reserved
:(32902:15152:6058:8551) pci, i801_smbus, SERIAL, 5 Series/3400 Series Chipset SMBus Controller
:(32902:15151:6058:8552) pci, ahci, STORAGE, 5 Series/3400 Series Chipset 6 port SATA AHCI Controller
:(32902:15111:6058:8550) pci, None, PCI/ISA, Mobile 5 Series Chipset LPC Interface Controller
:(32902:15154:6058:8592) pci, intel ips, NONE, 5 Series/3400 Series Chipset Thermal Subsystem
:(32902:4330:6058:8531) pci, e1000e, ETHERNET, 82577LM Gigabit Network Connection
:(32902:9288:6058:8549) pci, None, PCI/PCI, 82801 Mobile PCI Bridge
:(32902:15164:6058:8547) pci, ehci_hcd, USB, 5 Series/3400 Series Chipset USB2 Enhanced Host Controller
:(32902:15156:6058:8547) pci, ehci_hcd, USB, 5 Series/3400 Series Chipset USB2 Enhanced Host Controller
:(32902:15204:6058:8543) pci, None, SIMPLE, 5 Series/3400 Series Chipset HECI Controller
:(32902:16952:32902:4369) pci, iwlwifi, NETWORK, Centrino Ultimate-N 6300 3x3 AGN
:(32902:70:6058:8538) pci, i915, VIDEO, Core Processor Integrated Graphics Controller
:(32902:15176:6058:8548) pci, pcieport, PCI/PCI, 5 Series/3400 Series Chipset PCI Express Root Port 4
:(32902:15170:6058:8548) pci, pcieport, PCI/PCI, 5 Series/3400 Series Chipset PCI Express Root Port 1
:(32902:15172:6058:8548) pci, pcieport, PCI/PCI, 5 Series/3400 Series Chipset PCI Express Root Port 2
:(32902:15178:6058:8548) pci, pcieport, PCI/PCI, 5 Series/3400 Series Chipset PCI Express Root Port 5
:(32902:15190:6058:8542) pci, snd_hda_intel, MULTIMEDIA, 5 Series/3400 Series Chipset High Definition Audio
:
:
:Filesystem Information
:=================================
:device mtpt type bsize frsize blocks bfree bavail file ffree favail
:-------------------------------------------------------------------
:/dev/mapper/vg_piernb-root / ext4 4096 4096 12603057 6834168 6193964 3203072 2982901 2982901
:/dev/mapper/luks-e8fd0e87-c105-4682-8678-c38951f0c26e /home ext4 4096 4096 24689563 8658115 7403946 6275072 5760018 5760018
:

Comment 1 Niels de Vos 2012-01-05 10:11:33 UTC
Cause:
cca.getPostFailDelay() seems to return an empty string here.

Proposed solution:
cca.getPostFailDelay() should always return an integer (skip the conversion in the logic, move it to the get-function), if it is not set, maybe the default (0?) should be returned.

Comment 2 Niels de Vos 2012-01-05 10:13:27 UTC
Pier, can you attach the cluster.conf, or at least let me know what the exact value of post_fail_delay is?

Comment 3 Pierguido Lambri 2012-01-05 10:29:11 UTC
Unfortunately I needed sx yesterday to check a couple of cases and so I've upgraded to the latest svn.
With that one I had no issue.
Now I re-installed the old one (2.06-14.fc16) and run it a couple of time without getting any error.

I'll try on some more sosreports.

Comment 4 Shane Bradley 2012-01-05 14:33:01 UTC
This issue should be fixed in upstream.

Comment 5 Fedora Update System 2012-01-06 20:24:23 UTC
sx-2.07-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/sx-2.07-1.fc16

Comment 6 Fedora Update System 2012-01-06 20:24:32 UTC
sx-2.07-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/sx-2.07-1.el6

Comment 7 Fedora Update System 2012-01-07 02:29:56 UTC
Package sx-2.07-1.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing sx-2.07-1.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-0047/sx-2.07-1.el6
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2012-01-11 05:58:07 UTC
sx-2.07-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2012-01-11 08:00:15 UTC
sx-2.07-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.


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