Bug 1374121 - [WALA] [RHEL6] 2 waagent deamon processes exist after rpm -U
Summary: [WALA] [RHEL6] 2 waagent deamon processes exist after rpm -U
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: WALinuxAgent
Version: 6.8
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: 6.9
Assignee: Dave Anderson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1387784
TreeView+ depends on / blocked
 
Reported: 2016-09-08 02:43 UTC by Yuxin Sun
Modified: 2017-03-24 10:35 UTC (History)
12 users (show)

Fixed In Version: WALinuxAgent-2.2.0-2.el6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-07 21:29:54 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github Azure WALinuxAgent issues 404 0 None closed 2 waagent deamon processes exist after rpm -U 2020-07-15 09:54:47 UTC
Red Hat Product Errata RHEA-2016:2922 0 normal SHIPPED_LIVE Windows Azure Linux Agent (WALinuxAgent) bug fix and enhancement update 2016-12-08 02:29:41 UTC

Description Yuxin Sun 2016-09-08 02:43:30 UTC
Tracking: https://github.com/Azure/WALinuxAgent/issues/404

Steps:
1. Prepare a VM(RHEL-6.8) with WALinuxAgent-2.0.16 installed, and service started.
2. Make a WALinuxAgent-2.1.5 rpm package follow the rpm/README.
3. run "rpm -U WALinuxAgent-2.1.5-1.noarch.rpm".
4. Check waagent -deamon process. Run "ps aux|grep waagent"
[root@localhost ~]# ps aux|grep waagent
root 2158 5.0 1.0 197388 10808 pts/2 S 10:04 0:00 python /usr/sbin/waagent -daemon
root 2184 5.0 1.0 197384 10804 pts/2 S 10:04 0:00 python /usr/sbin/waagent -daemon

Comment 2 Dave Anderson 2016-09-09 13:24:29 UTC
(In reply to yuxisun from comment #0)
> Tracking: https://github.com/Azure/WALinuxAgent/issues/404
> 

In the comments between you and hglkrijger in the gitub issue above,
it appears that the problem has been resolved, and the issue was closed
by hglkrijger on Sep 7.

If that's true, can you or Microsoft provide a patch?

Comment 3 Yuxin Sun 2016-09-12 02:09:55 UTC
Hi Dave,

It seems that we can resolve it ether by Microsoft's fix or by spec file. We are still waiting for the PM's final conclusion. If any progress I'll update here at once. Thanks!

Comment 4 Yuxin Sun 2016-10-28 09:47:49 UTC
Verify in RHEL-6.8 GA build, WALinuxAgent-2.2.0 scratch build. 
Need to verify in WALinuxAgent-2.2.0-1 package

Comment 5 Dave Anderson 2016-11-04 14:21:48 UTC
I presume that the rhel6 package should be rebuilt with the same two
patches that have been applied in WALinuxAgent-2.2.0-3.el7:

--- WALinuxAgent-2.2.0/config/waagent.conf.orig
+++ WALinuxAgent-2.2.0/config/waagent.conf
@@ -86,7 +86,7 @@ OS.OpensslPath=None
 # OS.EnableRDMA=y
 
 # Enable or disable goal state processing auto-update, default is enabled
-# AutoUpdate.Enabled=y
+AutoUpdate.Enabled=n
 
 # Determine the update family, this should not be changed
 # AutoUpdate.GAFamily=Prod



--- WALinuxAgent-2.2.0/azurelinuxagent/common/conf.py.orig
+++ WALinuxAgent-2.2.0/azurelinuxagent/common/conf.py
@@ -213,7 +213,7 @@ def get_autoupdate_gafamily(conf=__conf_
 
 
 def get_autoupdate_enabled(conf=__conf__):
-    return conf.get_switch("AutoUpdate.Enabled", True)
+    return conf.get_switch("AutoUpdate.Enabled", False)
 
 
 def get_autoupdate_frequency(conf=__conf__):

Comment 6 Yuxin Sun 2016-11-07 11:19:38 UTC
Yes I think these patches should also be used in el6. I tested install/uninstall/upgrade/downgrade of the WALinuxAgent-2.2.0-2.el6 package and the result is pass.
I'll do more test of this package tomorrow.

Comment 7 Yuxin Sun 2016-11-08 06:54:49 UTC
Verified in WALinuxAgent-2.2.0-2.el6 RHEL-6.8-20160414.0. 

Steps:
1. Prepare a VM(RHEL-6.8) with WALinuxAgent-2.0.16 installed, and service started.
2. Run "rpm -Uvh WALinuxAgent-2.2.0-2.el6.noarch.rpm".
4. Check waagent -deamon process. Run "ps aux|grep waagent"
root      1429  0.3  0.3 203608 11036 ?        S    14:51   0:00 python /usr/sbin/waagent -daemon
root      1664  3.3  0.3 365496 13308 ?        Sl   14:53   0:00 python -u /usr/sbin/waagent -run-exthandlers

There's only one daemon process.

Comment 9 Yuxin Sun 2016-11-09 02:24:47 UTC
Set to VERIFIED status again to follow the errata work flow.

Comment 11 errata-xmlrpc 2016-12-07 21:29:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-2922.html


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