Bug 725367 - invalid command ipvsadm --stop-daemon (pulse.c)
Summary: invalid command ipvsadm --stop-daemon (pulse.c)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: piranha
Version: 5.6
Hardware: All
OS: Linux
medium
high
Target Milestone: rc
: ---
Assignee: Ryan O'Hara
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-25 10:25 UTC by Rita Zoppi
Modified: 2013-03-10 04:05 UTC (History)
4 users (show)

Fixed In Version: piranha-0.8.4-24.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 749594 (view as bug list)
Environment:
Last Closed: 2012-02-21 06:34:24 UTC
Target Upstream Version:


Attachments (Terms of Use)
patch to temporarly fix this issue and SELinux policy (1.79 KB, application/x-gzip)
2011-07-25 10:25 UTC, Rita Zoppi
no flags Details
Add master and backup parameters to ipvsadm --stop-daemon. (1001 bytes, patch)
2011-10-27 15:30 UTC, Ryan O'Hara
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0262 0 normal SHIPPED_LIVE piranha bug fix update 2012-02-20 15:06:38 UTC

Description Rita Zoppi 2011-07-25 10:25:54 UTC
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

Comment 1 Ryan O'Hara 2011-10-12 18:29:22 UTC
How are you recreating this problem in pulse?

Comment 4 Ryan O'Hara 2011-10-27 15:30:36 UTC
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.

Comment 8 errata-xmlrpc 2012-02-21 06:34:24 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.

http://rhn.redhat.com/errata/RHBA-2012-0262.html


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