Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
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: