Bug 20479 - Nanny doesn't appear to work in piranha 0.4.17-5
Nanny doesn't appear to work in piranha 0.4.17-5
Status: CLOSED ERRATA
Product: Red Hat High Availability Server
Classification: Retired
Component: piranha (Show other bugs)
1.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Copeland
Phil Copeland
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-11-07 13:27 EST by mdame
Modified: 2007-04-18 12:29 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-11-07 15:05:35 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)

  None (edit)
Description mdame 2000-11-07 13:27:47 EST
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 13:30:33 EST
/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 15:05:31 EST
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 15:12:59 EST
*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
=--=


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