Bug 1379577

Summary: An error occurred while applying tuned configuration
Product: Red Hat Enterprise Virtualization Manager Reporter: cshao <cshao>
Component: ovirt-nodeAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED CURRENTRELEASE QA Contact: cshao <cshao>
Severity: high Docs Contact:
Priority: high    
Version: 3.6.9CC: amarchuk, dguo, fdeutsch, gklein, huzhao, jiawu, leiwang, lsurette, mgoldboi, qiyuan, rbarry, weiwang, yaniwang, ycui, ykaul, yzhao
Target Milestone: ovirt-3.6.10Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhev-hypervisor7-7.3-20161007.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-23 14:11:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
tuned-error
none
/var/log/*.*; /tmp/log; sosreport none

Description cshao 2016-09-27 07:36:15 UTC
Created attachment 1205078 [details]
tuned-error

Description of problem:
An error occurred while applying tuned configuration

============================================================
2016-09-27 06:10:40,245       INFO An exception during the transaction: Failed to set profile to desktop                     Optmize for the desktop use-case
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ovirt/node/ui/__init__.py", line 956, in __run_transaction
    self.plugin.dry_or(lambda: tx_element.commit())
  File "/usr/lib/python2.7/site-packages/ovirt/node/plugins.py", line 188, in dry_or
    return func()
  File "/usr/lib/python2.7/site-packages/ovirt/node/ui/__init__.py", line 956, in <lambda>
    self.plugin.dry_or(lambda: tx_element.commit())
  File "/usr/lib/python2.7/site-packages/ovirt/node/config/tuned.py", line 52, in commit
    tuned.set_active_profile(profile)
  File "/usr/lib/python2.7/site-packages/ovirt/node/utils/tuned.py", line 72, in set_active_profile
    raise RuntimeError("Failed to set profile to %s" % profile)
RuntimeError: Failed to set profile to desktop                     Optmize for the desktop use-case
2016-09-27 06:10:40,499       INFO Changes were merged successfully
2016-09-27 06:53:02,860       INFO Starting '<module 'ovirt.node.setup' from '/usr/lib/python2.7/site-packages/ovirt/node/setup/__init__.pyc'>' application with '<class 'ovirt.node.ui.urwid_builder.UrwidUIBuilder'>' UI
============================================================

Version-Release number of selected component (if applicable):
rhev-hypervisor7-7.3-20160923.2
ovirt-node-3.6.1-20.0.el7ev.noarch


How reproducible:
100%

Steps to Reproduce:
1. Install rhev-hypervisor7-7.3-20160923.2 via PXE.
2. Login RHEV-H. 
3. Switch to performance tab.
4. Choose the tuned profile you would like to apply to this system(e.g. desktop use-case).
5. Save and with a long time (> 10 mins)


Actual results:
1. After step 5, an error occurred while applying tuned configuration

Expected results:
1. Choose tuned profile can successful without error.

Additional info:

Comment 1 cshao 2016-09-27 07:37:46 UTC
Created attachment 1205081 [details]
/var/log/*.*; /tmp/log; sosreport

Comment 2 Fabian Deutsch 2016-09-27 07:49:33 UTC
This and the other bug related to the kbd layout - both require dbus to work propperly - maybe something is up there.

Comment 3 cshao 2016-10-10 03:05:24 UTC
Test version:
rhev-hypervisor7-7.3-20161007.0
ovirt-node-3.6.1-31.0.el7ev.noarch


Test steps:
1. Install rhev-hypervisor7-7.3-20161007.0.
2. Login RHEV-H. 
3. Switch to performance tab.
4. Choose the tuned profile you would like to apply to this system(e.g. desktop use-case).
5. Save.

Test results:
1. Choose tuned profile can successful without error.

So the bug is fixed, change bug status to VERIFIED.