Bug 987926 - ksm is managed by both MOM and ksmtuned on RHEL hosts upgraded from VDSM 3.2 to 3.3
Summary: ksm is managed by both MOM and ksmtuned on RHEL hosts upgraded from VDSM 3.2 ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: mom
Version: 3.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.3
Assignee: Martin Sivák
QA Contact: Barak Dagan
URL:
Whiteboard: sla
: 987921 (view as bug list)
Depends On:
Blocks: 967562
TreeView+ depends on / blocked
 
Reported: 2013-07-24 12:22 UTC by Assaf Muller
Modified: 2014-07-13 23:19 UTC (History)
6 users (show)

Fixed In Version: is9 4.12.0-37.gitfd6a1b7.el6ev.x86_64
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-23 12:15:03 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 17299 0 None None None Never

Description Assaf Muller 2013-07-24 12:22:27 UTC
Description of problem:
In 3.2 VDSM talked to ksm via ksmtuned. 3.3 VDSM uses MOM to talk to ksm, but upgrading VDSM from 3.2 to 3.3 doesn't disable ksmtuned. That means that VDSM may send conflicting instructions to KSM as both ksmtuned and MOM are active. In systemd we marked VDSM as conflicting with ksmtuned, so something similar needs to happen with systemV.

Additionally, there is a nontrivial amount of code in VDSM that can now be removed with MOM now managing ksm.

Version-Release number of selected component (if applicable):
oVirt Engine Version: 3.3.0-0.3.beta1.fc19
VDSM 4.12.0-0.1.rc3

Comment 1 Assaf Muller 2013-07-24 12:23:46 UTC
*** Bug 987921 has been marked as a duplicate of this bug. ***

Comment 2 Barak Dagan 2013-09-02 17:37:21 UTC
Running the following commands on host upgraded from 3.2 to 3.3:

# service --status-all | grep ksm
ksm is not running
ksmtuned (pid  8354) is running...

# chkconfig | grep ksm
ksm            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
ksmtuned       	0:off	1:off	2:off	3:on	4:on	5:on	6:off

it seems that the ksmtuned service is not disabled, but ignored.
Is this enough ? shouldn't we turned it off + kill it ?

Comment 3 Martin Sivák 2013-09-03 13:44:03 UTC
ksmtuned is stopped when vdsm starts (http://gerrit.ovirt.org/#/c/17537/). I do not think that "simple" installation of a package should change the global system settings.

Comment 4 Barak Dagan 2013-09-04 06:06:43 UTC
(In reply to Martin Sivák from comment #3)
> ksmtuned is stopped when vdsm starts (http://gerrit.ovirt.org/#/c/17537/). I

# service --status-all | egrep -i "ksm|vdsm"
ksm is not running
ksmtuned (pid  8354) is running...

# service vdsmd status
VDS daemon server is running

> do not think that "simple" installation of a package should change the
> global system settings.

Comment 5 Martin Sivák 2013-09-04 11:34:19 UTC
That is weird. Our vdsm's initscript should stop ksmtuned. But it should not touch ksm at all.

Can you:
1) stop vdsm
2) start ksm
3) start ksmtuned
4) start vdsm

and check the status after each step? What you describe is quite unusual. ksm should be on at all times.

And btw, was vdsm restarted after the upgrade?

Comment 6 Barak Dagan 2013-09-08 09:17:48 UTC
(In reply to Martin Sivák from comment #5)
> That is weird. Our vdsm's initscript should stop ksmtuned. But it should not
> touch ksm at all.
> 
> Can you:
> 1) stop vdsm
# service vdsmd status
VDS daemon is not running
# service --status-all | egrep 'ksm|ksmtuned'
ksm is not running
ksmtuned is stopped

> 2) start ksm
# service vdsmd status
VDS daemon is not running
# service --status-all | egrep 'ksm|ksmtuned'
ksm is running
ksmtuned is stopped

> 3) start ksmtuned
# service vdsmd status
VDS daemon is not running
# service --status-all | egrep 'ksm|ksmtuned'
ksm is running
ksmtuned (pid  14894) is running...

> 4) start vdsm
# service vdsmd status
VDS daemon server is running
# service --status-all | egrep 'ksm|ksmtuned'
ksm is running
ksmtuned is stopped

> 
> and check the status after each step? What you describe is quite unusual.
> ksm should be on at all times.
> 
> And btw, was vdsm restarted after the upgrade?
I'm not sure on what machine I did the verification, but it looks like it did:

rose02
------

2013-09-04 12:24:40: I am the actual vdsm 4.12.0-105.git0da1561.el6ev
2013-08-28 14:26:07: I am the actual vdsm 4.10.2-24.1.el6ev 
2013-08-04 15:10:26: I am the actual vdsm 4.10.2-23.0.el6ev 

rose03
------
2013-09-04 12:26:28: I am the actual vdsm 4.12.0-105.git0da1561.el6ev 
2013-08-28 14:25:46: I am the actual vdsm 4.10.2-24.1.el6ev
2013-08-04 14:58:59: I am the actual vdsm 4.10.2-23.0.el6ev

Comment 7 Barak Dagan 2013-09-08 09:18:16 UTC
Verified on is13

Comment 8 Itamar Heim 2013-09-23 12:15:03 UTC
bulk closing, assuming verified bugs are in 3.3.


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