Bug 24843

Summary: Nanny tries to execute "none"
Product: [Retired] Red Hat High Availability Server Reporter: Tinus Strauss <tinus>
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: 2001-01-24 13:17:10 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 Red Hat Bugzilla 2001-01-24 13:17:07 UTC
Hi,

I configured nanny to use none as the loadCommand, assuming that it 
will not try to determine the load of the real servers. However, nanny tries 
to execute the command "none" which it cannot find.

The following change to nanny from piranha-0.4.17-7 fixed it for me:

--- nanny.c.orig        Wed Jan 24 10:53:17 2001
+++ nanny.c.new Wed Jan 24 14:08:53 2001
@@ -781,7 +781,7 @@
     *argp++ = loadCommand;
     *argp++ = inet_ntoa(*remoteAddr);

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

     if (strcmp(loadCommand, (char *) "rup"))
[

Cheers
Tinus

Comment 1 Red Hat Bugzilla 2001-05-07 20:14:55 UTC
Patch has been applied to nanny and will appear in a future update.

Thanks!