Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 293346 Details for
Bug 418531
RFE: Make fenced's retry timeout configurable
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Makes fenced's retry time configurable from command line or cluster.conf
fenced-428108.patch (text/plain), 2.73 KB, created by
Lon Hohberger
on 2008-01-29 21:41:11 UTC
(
hide
)
Description:
Makes fenced's retry time configurable from command line or cluster.conf
Filename:
MIME Type:
Creator:
Lon Hohberger
Created:
2008-01-29 21:41:11 UTC
Size:
2.73 KB
patch
obsolete
>Index: fenced/fd.h >=================================================================== >RCS file: /cvs/cluster/cluster/fence/fenced/fd.h,v >retrieving revision 1.27 >diff -u -r1.27 fd.h >--- fenced/fd.h 26 Oct 2007 20:36:49 -0000 1.27 >+++ fenced/fd.h 29 Jan 2008 21:39:16 -0000 >@@ -132,12 +132,15 @@ > { > int post_join_delay; > int post_fail_delay; >+ int retry_time; >+ int pad; > char *override_path; > int8_t clean_start; > int8_t post_join_delay_opt; > int8_t post_fail_delay_opt; > int8_t clean_start_opt; > int8_t override_path_opt; >+ int8_t retry_time_opt; > }; > > #define FDFL_RUN (0) >Index: fenced/main.c >=================================================================== >RCS file: /cvs/cluster/cluster/fence/fenced/main.c,v >retrieving revision 1.46 >diff -u -r1.46 main.c >--- fenced/main.c 7 Jan 2008 05:52:28 -0000 1.46 >+++ fenced/main.c 29 Jan 2008 21:39:16 -0000 >@@ -15,7 +15,7 @@ > #include "ccs.h" > #include "copyright.cf" > >-#define OPTION_STRING ("cj:f:Dn:O:hVS") >+#define OPTION_STRING ("cj:f:Dn:O:R:hVS") > #define LOCKFILE_NAME "/var/run/fenced.pid" > > struct client { >@@ -162,6 +162,20 @@ > free(str); > } > >+ if (comline.retry_time_opt == FALSE) { >+ str = NULL; >+ memset(path, 0, 256); >+ sprintf(path, "/cluster/fence_daemon/@retry_time"); >+ >+ error = ccs_get(cd, path, &str); >+ if (!error && str) >+ comline.retry_time = atoi(str); >+ if (str) >+ free(str); >+ if (comline.retry_time < 3) >+ comline.retry_time = 3; >+ } >+ > log_debug("delay post_join %ds post_fail %ds", > comline.post_join_delay, comline.post_fail_delay); > >@@ -576,6 +590,8 @@ > comline->post_join_delay_opt = FALSE; > comline->post_fail_delay_opt = FALSE; > comline->clean_start_opt = FALSE; >+ comline->retry_time_opt = FALSE; >+ comline->retry_time = 5; /* default */ > > while (cont) { > optchar = getopt(argc, argv, OPTION_STRING); >@@ -602,6 +618,13 @@ > comline->override_path_opt = TRUE; > break; > >+ case 'R': >+ comline->retry_time = atoi(optarg); >+ if (comline->retry_time < 3) >+ comline->retry_time = 3; >+ comline->retry_time_opt = TRUE; >+ break; >+ > case 'D': > daemon_debug_opt = TRUE; > break; >Index: fenced/recover.c >=================================================================== >RCS file: /cvs/cluster/cluster/fence/fenced/recover.c,v >retrieving revision 1.30 >diff -u -r1.30 recover.c >--- fenced/recover.c 26 Oct 2007 20:36:49 -0000 1.30 >+++ fenced/recover.c 29 Jan 2008 21:39:16 -0000 >@@ -402,7 +402,8 @@ > > /* Check for manual intervention */ > override = open_override(comline.override_path); >- if (check_override(override, node->name, 5) > 0) { >+ if (check_override(override, node->name, >+ comline.retry_time) > 0) { > syslog(LOG_WARNING, "fence \"%s\" overridden by " > "administrator intervention", node->name); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 418531
: 293346