Bug 1190549

Summary: cpuinfo failed to run
Product: [Fedora] Fedora Reporter: lnie <lnie>
Component: python-cpuinfoAssignee: Parag Nemade <pnemade>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: pnemade
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-cpuinfo-0.1.4-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-22 06:03:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description lnie 2015-02-09 04:19:23 UTC
Description of problem:

Version-Release number of selected component (if applicable):
python-cpuinfo-0.1.2-3.fc21

How reproducible:
always

Steps to Reproduce:
1.just run cpuinfo from terminal as normal user
2.
3.

Actual results:
 failed with :
Traceback (most recent call last):
  File "/usr/bin/cpuinfo", line 9, in <module>
    load_entry_point('py-cpuinfo==0.1.2', 'console_scripts', 'cpuinfo')()
  File "/usr/lib/python2.7/site-packages/cpuinfo/cpuinfo.py", line 1214, in main
    info = get_cpu_info()
  File "/usr/lib/python2.7/site-packages/cpuinfo/cpuinfo.py", line 1193, in get_cpu_info
    info = get_cpu_info_from_proc_cpuinfo()
  File "/usr/lib/python2.7/site-packages/cpuinfo/cpuinfo.py", line 802, in get_cpu_info_from_proc_cpuinfo
    scale, hz_advertised = _get_hz_string_from_brand(processor_brand)
  File "/usr/lib/python2.7/site-packages/cpuinfo/cpuinfo.py", line 80, in _get_hz_string_from_brand
    hz_brand = hz_brand.split('@')[1]
IndexError: list index out of range 


Expected results:


Additional info:
 The test system is installed on VM

Comment 1 Parag Nemade 2015-02-09 04:27:15 UTC
Thanks for the report. I see cpuinfo command worked on physical machine without issues but you are right in VM, its showing error. Let me check with upstream.

Comment 2 Fedora Update System 2015-02-12 03:35:30 UTC
python-cpuinfo-0.1.4-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/python-cpuinfo-0.1.4-1.fc21

Comment 3 Fedora Update System 2015-02-12 03:39:12 UTC
python-cpuinfo-0.1.4-1.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/python-cpuinfo-0.1.4-1.el7

Comment 4 Fedora Update System 2015-02-12 03:50:40 UTC
python-cpuinfo-0.1.4-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-cpuinfo-0.1.4-1.fc20

Comment 5 lnie 2015-02-12 03:53:10 UTC
python-cpuinfo-0.1.4-1.fc21 works,thanks for your fix.

Comment 6 Fedora Update System 2015-02-14 02:53:54 UTC
Package python-cpuinfo-0.1.4-1.el7:
* should fix your issue,
* was pushed to the Fedora EPEL 7 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing python-cpuinfo-0.1.4-1.el7'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2015-0755/python-cpuinfo-0.1.4-1.el7
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2015-02-22 06:03:10 UTC
python-cpuinfo-0.1.4-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2015-02-23 23:25:41 UTC
python-cpuinfo-0.1.4-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2015-02-28 17:58:02 UTC
python-cpuinfo-0.1.4-1.el7 has been pushed to the Fedora EPEL 7 stable repository.  If problems still persist, please make note of it in this bug report.