Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1371959

Summary: Tracebacks in realtime-virtual* profiles
Product: Red Hat Enterprise Linux 7 Reporter: Tereza Cerna <tcerna>
Component: tunaAssignee: John Kacur <jkacur>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Kastner <jkastner>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: bhu, williams
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-28 20:54:07 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:
Bug Depends On:    
Bug Blocks: 1353018    

Description Tereza Cerna 2016-08-31 14:16:16 UTC
Description of problem:
  Two tracebacks were appeared during testing of realtime profiles (component tuned). First was generated in /var/log/tuned/tuned.log by command `tuned-adm verify` on realtime-virtual* profiles. 

  Second traceback was created when some realtime-virtual* profile was active and user decided to select other profile.

  Problem exists for all realtime profiles (realtime-virtual-host, realtime-virtual-guest) from package tuned-profiles-nfv.


Version-Release number of selected component (if applicable):
  tuna-0.11.1-12.el7_2.noarch
  tuned-2.7.1-2.el7.noarch
  tuned-profiles-nfv-2.7.1-2.el7.noarch
  qemu-kvm-tools-rhev-2.3.0-31.el7_2.21.x86_64


Steps to Reproduce:
  # systemctl status tuned | grep Active
     Active: active (running) since Wed 2016-08-24 07:00:50 CEST; 35min ago
  # tuned-adm active
  Current active profile: balanced
  # tuned-adm profile realtime-virtual-host
  # tuned-adm verify

  >>> see traceback in /var/log/tuned/tuned.log 
2016-08-24 12:07:20,902 ERROR    tuned.plugins.plugin_script: script '/usr/lib/tuned/realtime/script.sh' error: 1, 'Traceback (most recent call last):
  File "/usr/bin/tuna", line 656, in <module>
    main()
  File "/usr/bin/tuna", line 493, in main
    (op, a) = pick_op(a)
  File "/usr/bin/tuna", line 408, in pick_op
    if argument[0] in ('+', '-'):
IndexError: string index out of range'

  # tuned-adm profile balanced

  >>> see traceback in /var/log/tuned/tuned.conf
2016-08-24 12:07:52,299 ERROR    tuned.plugins.plugin_script: script '/usr/lib/tuned/realtime-virtual-host/script.sh' error: 1, 'Traceback (most recent call last):
  File "/usr/bin/tuna", line 656, in <module>
    main()
  File "/usr/bin/tuna", line 494, in main
    op_list = tuna.cpustring_to_list(a)
  File "/usr/lib/python2.7/site-packages/tuna/tuna.py", line 124, in cpustring_to_list
    ends = [ int(a, 0) for a in field.split("-") ]
ValueError: invalid literal for int() with base 0: '}''

 
Actual results:
  two tracebacks was appeared in /var/log/tuned/tuned.conf

Expected results:
  no tracebacks

---------------------------------------------------

Traceback are copied from BZ#1369791 (tuned).

From comment c#6 (jskarvad):

"I will take a look, but it's probably minor problem. You need to setup "isolated_cores" in: "/etc/tuned/realtime-virtual-host-variables.conf" and "/etc/tuned/realtime-virtual-guest-variables.conf" to sane values and your machine needs to be multicore with enough cores to satisfy your request. One backtrace is even from the Tuna tool, so you could also open bug against Tuna to cleanly exit instead of traceback if invalid cpustring is provided (e.g. '}'). Nevertheless, the Tuned profile should be fixed not to traceback."

link: https://bugzilla.redhat.com/show_bug.cgi?id=1369791#c6