Bug 1069245

Summary: Stucked tuned service during host deploying (rhev)
Product: Red Hat Enterprise Linux 6 Reporter: Meital Bourvine <mbourvin>
Component: tunedAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5CC: anton, bazulay, jeder, jskarvad, nlevinki
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-02 15:06:12 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: 1069119, 1078981    

Description Meital Bourvine 2014-02-24 14:56:37 UTC
Description of problem:
Stucked tuned service during host deploying

Version-Release number of selected component (if applicable):
ovirt-beta3

How reproducible:
80%

Steps to Reproduce:
Install rhevm and add a host.

Additional info (thanks to lbendar):

There is an error about "Existing lock /var/run/yum.pid"

you can track the process which caused that using pid. follow
instruction bellow:

{{{
ls -la /proc/$(cat /var/run/yum.pid)/fd | grep 'log$'
l-wx------. 1 root root 64 Feb 24 09:42 1 ->
/tmp/ovirt-host-deploy-20140220152021.log
}}}

and see ... it was caused by rhevm bootstrap ...
so we can take a look at log what happened:

{{{
[root@puma29 ~]# tail /tmp/ovirt-host-deploy-20140220152021.log

2014-02-20 15:21:14 DEBUG otopi.plugins.otopi.services.rhel
plugin.executeRaw:366 execute: ('/sbin/service', 'tuned', 'start'),
executable='None', cwd='None', env=None
2014-02-20 15:21:15 DEBUG otopi.plugins.otopi.services.rhel
plugin.executeRaw:383 execute-result: ('/sbin/service', 'tuned',
'start'), rc=0
2014-02-20 15:21:15 DEBUG otopi.plugins.otopi.services.rhel
plugin.execute:441 execute-output: ('/sbin/service', 'tuned', 'start')
stdout:


2014-02-20 15:21:15 DEBUG otopi.plugins.otopi.services.rhel
plugin.execute:446 execute-output: ('/sbin/service', 'tuned', 'start')
stderr:


2014-02-20 15:21:15 DEBUG otopi.plugins.ovirt_host_deploy.tune.tuned
plugin.executeRaw:366 execute: ('/usr/bin/tuned-adm', 'profile',
'virtual-host'), executable='None', cwd='None', env=None
}}}

and we are here again ... it leads to tuned service.
lets take a look at /var/log/tuned/tuned.log

I can not find anything interesting there
{{{
....
2014-02-20 15:10:35,110 INFO     tuned: performing ktune conditional restart
....
}}}

Workaround:
modify: /usr/share/ovirt-host-deploy/plugins/ovirt-host-deploy/tune/tuned.py

    def _misc(self):
        # tuned-adm does not work if daemon is down!
        self.services.state('tuned', True)
+       import time
+       time.sleep(5)
        rc, stdout, stderr = self.execute(


Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=1069119

Comment 2 Barak 2014-03-02 15:06:12 UTC

*** This bug has been marked as a duplicate of bug 1071453 ***