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 1464065 - [WALA] "waagent -configuration-path:/path -start" not take effect
Summary: [WALA] "waagent -configuration-path:/path -start" not take effect
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: WALinuxAgent
Version: 6.9
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Vitaly Kuznetsov
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1451174
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-22 11:18 UTC by Yuhui Jiang
Modified: 2017-07-24 09:31 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-07-24 09:31:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github /Azure WALinuxAgent issues 764 0 None None None 2017-06-22 11:18:44 UTC

Description Yuhui Jiang 2017-06-22 11:18:44 UTC
Description of problem:
I've ran the command "waagent -configuration-path:/path -start",but the parameter "-configuration-path" not take effect.
This will affect WALA running on RHEL6.x
(Because on RHEL6.x, execute WALA service through "serivce waagent start",it will invoke /etc/init.d/waaget.And in this file,execute WALA through "waagent -start",so this will affect WALA)

below is code in agent.py

220 def start():
221     """
222     Start agent daemon in a background process and set stdout/stderr to
223     /dev/null
224     """
225     devnull = open(os.devnull, 'w')
226     subprocess.Popen([sys.argv[0], '-daemon'], stdout=devnull, stderr=devnull)


Version-Release number of selected component (if applicable):
WALinuxAgent-2.2.12-1

How reproducible:
100%

Steps to Reproduce:
1.Prepare a RHEL6.9 VM on Azure with WALA-2.2.12-1 installed
2.Modify WALA init file(/etc/init.d/waagent),add "-configuration-path:/root/waagent" on line#19,like this "$WAZD_BIN -configuration-path:/root/waagent.conf -start",save and exit
3.Restart WALA service    #service waagent restart
4.Check WALA process  #ps aux | grep waagent

Actual results:
[root@wala69test1 ~]# ps aux | grep waagent
root     38459  0.6  0.6 203908 11212 pts/0    S    06:40   0:00 python /usr/sbin/waagent -daemon
root     38466  1.5  0.8 367988 13864 pts/0    Sl   06:40   0:00 python -u /usr/sbin/waagent -run-exthandlers




Expected results:
[root@walayjgrhelrun2 ~]# ps aux | grep waagent
root     21280  1.8  0.1 222104 13060 ?        Ss   18:43   0:00 /usr/bin/python -u /usr/sbin/waagent -configuration-path:/root/waagent.conf -daemon
root     21285  4.5  0.2 382588 18236 ?        Sl   18:43   0:00 python -u /usr/sbin/waagent -run-exthandlers -configuration-path:/root/waagent.conf



Additional info:

Comment 2 Mohammed Gamal 2017-06-23 08:55:41 UTC
Fixed in v.2.2.14
https://github.com/Azure/WALinuxAgent/releases/tag/v2.2.14

Comment 3 Yuhui Jiang 2017-07-06 10:40:19 UTC
Verified this issue on RHEL-7.4 with WALinuxAgent-2.2.14-1.el6.noarch.rpm pass.
The issue has solved.

Verify Steps:
 #refer this issue's Description

Comment 4 Yuxin Sun 2017-07-24 09:31:35 UTC
Close this issue because WALinuxAgent-2.2.14-1.el7/6 has shipped.


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