Red Hat Bugzilla – Bug 725367
invalid command ipvsadm --stop-daemon (pulse.c)
Last modified: 2013-03-09 23:05:37 EST
Created attachment 515006 [details] patch to temporarly fix this issue and SELinux policy Description of problem: in the source code pulse.c the ipvsadm --stop-daemon syntax is incorrect orig: - ipvsadmArgs[0] = (char *) config->vsadm; - ipvsadmArgs[1] = (char *) "--stop-daemon"; - ipvsadmArgs[2] = NULL; [root@lvs01 ~]# ipvsadm --stop-daemon Try `ipvsadm -h' or 'ipvsadm --help' for more information. The correct syntax are: ipvsadm --stop-daemon [master|backup] Version-Release number of selected component (if applicable): all How reproducible: ipvsadm --stop-daemon Try `ipvsadm -h' or 'ipvsadm --help' for more information. Steps to Reproduce: 1. 2. 3. Actual results: manually shell command [root@lvs01 ~]# ipvsadm --stop-daemon Try `ipvsadm -h' or 'ipvsadm --help' for more information. Expected results: the ipvsadm daemon should stop after command ipvsadm --stop-daemon [master|backup] Additional info: I wrote a patch to temporarly fix this issue (search in the proc pseudofilesystem which daemon is active and then stop the daemon) In attach the patch and the SELinux policy. I also added run time flags to enable debug flags
How are you recreating this problem in pulse?
Created attachment 530518 [details] Add master and backup parameters to ipvsadm --stop-daemon. Previously, pulse used only 'ipvsadm --stop-daemon'. This command no longer works and either the state param (master or backup) is required. This patch adds ',aster' and 'daemon' to the 'ipvsadm --stop-daemon' command. Also, 'ipvsadm --stop-daemon' is now called twice. Once to stop the master sync daemon, once to stop the backup sync daemon.
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. http://rhn.redhat.com/errata/RHBA-2012-0262.html