In the web-based mode of maintaining piranha, when you select the redundancy tab on the main creen(for lvs clusters), the default is disabled. When you click enable, it works great. After entering values and clicking accept, it saves the values, but makes it disabled again. I got it fixed, and here is a patch that fixes the problems. If it doesnt make it, I can try again. --- redundancy.php3.orig Wed Aug 16 06:20:43 2000 +++ redundancy.php3 Wed Aug 16 07:18:22 2000 @@ -70,11 +70,14 @@ $prim['keepalive'] = $hb_interval; $prim['deadtime'] = $dead_after; $prim['heartbeat_port'] = $hb_port; + //added to keep the backup enabled when accept is pushed. RJM + $prim['backup_active'] = "1" ; } if (($enable == "1") || ($enable == "0")) { - $prim['backup_active'] = (1 - $enable) ; + //not sure why this is here... RJM + //$prim['backup_active'] = (1 - $enable) ; } else { $prim['backup_active'] = "0"; $enable = "0"; @@ -210,6 +213,9 @@ <TD><INPUT TYPE="submit" NAME="full_enable" VALUE=ENABLE></TD> <!-- <TD ALIGN=right ><INPUT TYPE="submit" NAME="enable" VALUE=DISABLE></TD> --> <? } else { ?> + <!-- Added to make the check for $enable RJM --> + <INPUT TYPE="Hidden" NAME="enable" VALUE="1"> <TD><INPUT TYPE="Submit" NAME="redundancy_action" VALUE="ACCEPT"> <SPAN CLASS="taboff">-- Click here to apply changes to this page</SPAN></TD> <TD ALIGN=right><SPAN CLASS="taboff"></SPAN><INPUT TYPE="Submit" NAME="redundancy_action" VALUE="DISABLE"><INPUT TYPE="Submit" NAME="redundancy_action" VALUE="RESET"> <? } ?>
Created attachment 2556 [details] A usable patch.. :)
Created attachment 2577 [details] Much better, simpler solution. The other did not save state between panels. Please provide feedback. Thanks
I agree with you. Forwarding to piranha's GUI guru :-)
Has since been fixed in higher 0.4.X versions