Bug 20479

Summary: Nanny doesn't appear to work in piranha 0.4.17-5
Product: [Retired] Red Hat High Availability Server Reporter: mdame
Component: piranhaAssignee: Phil Copeland <copeland>
Status: CLOSED ERRATA QA Contact: Phil Copeland <copeland>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-11-07 20:05:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mdame 2000-11-07 18:27:47 UTC
After installing piranha 0.4.17-5, ipvsadm -l showed no changes to the default weights assigned to the real servers.  Downgrading 
to piranha 0.4.17-2 fixed the problem.  Same configuration file for both versions:

primary = 216.54.206.21
service = lvs
rsh_command = rsh
backup_active = 1
backup = 216.54.206.22
heartbeat = 1
heartbeat_port = 539
keepalive = 6
deadtime = 18
network = direct
virtual test1 {
     active = 1
     address = 216.54.206.102 eth0:0
     port = 80
     send = "GET / HTTP/1.0\r\n\r\n"
     expect = "HTTP"
     load_monitor = rup
     scheduler = wlc
     protocol = tcp
     timeout = 6
     reentry = 15
     server node1 {
         address = 216.54.206.23
         active = 1
         weight = 1000
     }
     server node2 {
         address = 216.54.206.24
         active = 1
         weight = 1000
     }
}

Comment 1 mdame 2000-11-07 18:30:33 UTC
/var/log/messages shows calls to rup when using piranha 0.4.17-2 but not when using 0.4.17-5

Comment 2 mdame 2000-11-07 20:05:31 UTC
Typo on line 781 of nanny.c:

if (strcmp(loadCommand, (char *) "none"))
        return -1.0; /* nothing to see here, go home silently */

should be

if (!strcmp(loadCommand, (char *) "none"))
        return -1.0; /* nothing to see here, go home silently */

Comment 3 Phil Copeland 2000-11-07 20:12:59 UTC
*Sigh*
 Ok,.. I messed that one up.

Thank you for finding it. I've added this to the CVS tree and I hope to get
0.4.17-6 rpms built and up for download in an hour.

btw, feel free to ask for features that we don't have in piranha as yet. We're
badly in need of feedback these days.

Phil
=--=