Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 725367 - invalid command ipvsadm --stop-daemon (pulse.c)
invalid command ipvsadm --stop-daemon (pulse.c)
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: piranha (Show other bugs)
5.6
All Linux
medium Severity high
: rc
: ---
Assigned To: Ryan O'Hara
Cluster QE
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-25 06:25 EDT by Rita Zoppi
Modified: 2013-03-09 23:05 EST (History)
4 users (show)

See Also:
Fixed In Version: piranha-0.8.4-24.el5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 749594 (view as bug list)
Environment:
Last Closed: 2012-02-21 01:34:24 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0262 normal SHIPPED_LIVE piranha bug fix update 2012-02-20 10:06:38 EST

  None (edit)
Description Rita Zoppi 2011-07-25 06:25:54 EDT
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 14:29:22 EDT
How are you recreating this problem in pulse?
Comment 4 Ryan O'Hara 2011-10-27 11:30:36 EDT
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 01:34:24 EST
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.