[luci] Revert "luci: Center popup messages" 2/2
by Jan Pokorný
commit 74cecf2ed4cd6ed2979c01716b15035477643ada
Author: Jan Pokorný <jpokorny(a)redhat.com>
Date: Fri Feb 28 19:40:54 2014 +0100
Revert "luci: Center popup messages" 2/2
... as a consequence, the no-longer used notification plugin and its
commented out references can be removed altogether now.
Note that conceptually, the feature of "busy wait dialog and
notifications of ricci job status" (d89c3b0) is being preserved,
only the visual appearance has changed (7442a3f).
Signed-off-by: Jan Pokorný <jpokorny(a)redhat.com>
luci/public/css/jquery.jnotify-alt.css | 86 --------------------------------
luci/public/css/jquery.jnotify.min.css | 1 -
luci/public/js/busy.js | 6 +--
luci/public/js/jquery.jnotify.min.js | 21 --------
luci/templates/master.html | 2 -
5 files changed, 2 insertions(+), 114 deletions(-)
---
diff --git a/luci/public/js/busy.js b/luci/public/js/busy.js
index e51ab22..56cfd3a 100644
--- a/luci/public/js/busy.js
+++ b/luci/public/js/busy.js
@@ -66,8 +66,7 @@ function get_task_status(cluster_name) {
if (cur.db_task_type != 2 && cur.db_task_type != 9) {
// 2=set conf, 9=activate conf
try {
- $('<div class="info">' + cur.db_status + " completed successfully" + '</div>').appendTo($('#flash'));
- //$.jnotify(cur.db_status + ' completed successfully', true);
+ $('<div class="info">' + cur.db_status + " completed successfully" + '</div>').appendTo($('#flash'));
} catch (e) {}
}
if (cur.db_task_type == 1 || cur.db_task_type == 3 ||
@@ -96,8 +95,7 @@ function get_task_status(cluster_name) {
$('<li class="status_msg_text">' + cur.db_status + substatus + '</li>').appendTo($('#status_msg_details'));
} else if (cur.ricci_code == -1) {
try {
- $('<div class="error">' + cur.db_status + " failed: " + cur.ricci_msg + '</div>').appendTo($('#flash'));
- //$.jnotify(cur.db_status + " failed: " + cur.ricci_msg, "error", true);
+ $('<div class="error">' + cur.db_status + " failed: " + cur.ricci_msg + '</div>').appendTo($('#flash'));
cur_errors++;
} catch (e) {}
} else {
diff --git a/luci/templates/master.html b/luci/templates/master.html
index 7b59c9b..3c87d40 100644
--- a/luci/templates/master.html
+++ b/luci/templates/master.html
@@ -19,13 +19,11 @@
<meta py:replace="select('*')"/>
<link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/css/style.css')}" />
<link rel="stylesheet" type="text/css" href="/css/jquery-ui-1.8.11.custom.css" />
- <link rel="stylesheet" type="text/css" href="/css/jquery.jnotify-alt.css"/>
<script type="text/javascript" src="/js/shared.js"></script>
<script type="text/javascript" src="/js/jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.11.custom.min.js"></script>
<script type="text/javascript" src="/js/jquery.blockUI.min.js"></script>
- <script type="text/javascript" src="/js/jquery.jnotify.min.js"></script>
<script type="text/javascript" src="/js/homebase.js"></script>
<script type="text/javascript" src="/js/busy.js"></script>
</head>
10 years, 2 months
[luci] Revert "luci: Center popup messages" 1/2
by Jan Pokorný
commit 345d27671cef9565a1bb9782352ecc940a57c973
Author: Jan Pokorný <jpokorny(a)redhat.com>
Date: Fri Feb 28 19:23:19 2014 +0100
Revert "luci: Center popup messages" 1/2
It was decided that sticking with easy and simple style of static
messages also for dynamic ones (task status updates) is preferred
to shiny jquery notification plugin (7442a3f), so remnants of its
use can be removed (gradually in LIFO order, this being a first
strep to revert when going down the history).
This reverts commit 89c855b9db2ee87e846dbf1bd2ede343f88e0ec1.
Signed-off-by: Jan Pokorný <jpokorny(a)redhat.com>
luci/public/css/jquery.jnotify-alt.css | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/luci/public/css/jquery.jnotify-alt.css b/luci/public/css/jquery.jnotify-alt.css
index 6e58c84..4f1b644 100644
--- a/luci/public/css/jquery.jnotify-alt.css
+++ b/luci/public/css/jquery.jnotify-alt.css
@@ -1,7 +1,7 @@
.jnotify-container {
position: fixed;
- top: 12%;
- left: 33%;
+ top: 0;
+ right: 0;
width: 400px;
z-index: 100000;
@@ -17,11 +17,11 @@
}
.jnotify-container .jnotify-notification .jnotify-background {
- position: fixed;
- top: 12%;
- left: 33%;
- width: 400px;
- height: 270px;
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
background-color: #4c4c4c;
filter: alpha(opacity=90);
-moz-opacity: 0.90;
@@ -40,7 +40,7 @@
.jnotify-container .jnotify-notification a.jnotify-close:focus,
.jnotify-container .jnotify-notification a.jnotify-close:hover {
position: absolute;
- top: 5px;
+ top: 2px;
right: 5px;
padding: 0 5px;
font: bold 1.4em Arial,Helvetica,sans-serif;
10 years, 2 months
[luci] Enforce valid code in setup.py facilitated build/package process
by Jan Pokorný
commit 8ce761d058be4a1b7a373a3d24c66538635ee96d
Author: Jan Pokorný <jpokorny(a)redhat.com>
Date: Wed Jul 17 12:00:00 2013 +0200
Enforce valid code in setup.py facilitated build/package process
Signed-off-by: Jan Pokorný <jpokorny(a)redhat.com>
setup.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/setup.py b/setup.py
index 70e928c..bbb73fe 100644
--- a/setup.py
+++ b/setup.py
@@ -18,6 +18,12 @@ from distutils.command.build import build
from distutils.command.install import install
from collections import Callable
+# bail out if any code is not valid (http://stackoverflow.com/a/2240549)
+import py_compile
+orig_py_compile = py_compile.compile
+def doraise_py_compile(file, cfile=None, dfile=None, doraise=False):
+ orig_py_compile(file, cfile=cfile, dfile=dfile, doraise=True)
+py_compile.compile = doraise_py_compile
DEBUG = False
10 years, 2 months
[luci] Do not propagate "unfencing" verbatim to configuration
by Jan Pokorný
commit 71c0c2311e2ee05c2d0b80c0fcc281ad28ad9169
Author: Jan Pokorny <jpokorny(a)redhat.com>
Date: Wed Jul 17 12:00:00 2013 +0200
Do not propagate "unfencing" verbatim to configuration
Resolves: rhbz#883008
Signed-off-by: Jan Pokorný <jpokorny(a)redhat.com>
luci/validation/validate_fence.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/luci/validation/validate_fence.py b/luci/validation/validate_fence.py
index 8db9277..55d1e8d 100644
--- a/luci/validation/validate_fence.py
+++ b/luci/validation/validate_fence.py
@@ -121,7 +121,7 @@ def config_fence_attr(params, fence, fname, **kw):
try:
# passwords may begin and/or end with blank characters
- if not attr_name in ['passwd', 'vmpasswd', 'snmp_priv_passwd']:
+ if not attr_name in ('passwd', 'vmpasswd', 'snmp_priv_passwd'):
val = val.strip()
if not val:
val = None
@@ -136,7 +136,8 @@ def config_fence_attr(params, fence, fname, **kw):
fence.removeAttribute(attr_name)
except:
pass
- else:
+ # unfencing in passed params (when required) is just internal tracking
+ elif attr_name != 'unfencing':
fence.addAttribute(attr_name, val)
return errors
@@ -1207,7 +1208,7 @@ def val_scsi_fi(fenceinst, parent_name, **kw):
('nodename', False),
('key', False),
('delay', False),
- ('unfencing', True), # just a template sanity-check
+ ('unfencing', True), # just a template sanity-check, not propagated
)
errors = config_fence_attr(params, fenceinst, parent_name, **kw)
@@ -1234,7 +1235,7 @@ def val_eaton_snmp_fi(fenceinst, parent_name, **kw):
def val_sanlock_fi(fenceinst, parent_name, **kw):
params = (
('host_id', True),
- ('unfencing', True), # just a template sanity-check
+ ('unfencing', True), # just a template sanity-check, not propagated
)
errors = config_fence_attr(params, fenceinst, parent_name, **kw)
10 years, 2 months
[luci] Fix hidden untrusted path and "command" (callable assoc.) injection
by Jan Pokorný
commit 965194a98766ba9dcec2b7e340ee4e15f13d1064
Author: Jan Pokorny <jpokorny(a)redhat.com>
Date: Mon Sep 16 12:00:00 2013 +0200
Fix hidden untrusted path and "command" (callable assoc.) injection
Resolves: rhbz#1005385 (part 2)
Signed-off-by: Jan Pokorný <jpokorny(a)redhat.com>
input_files/initscript/initscript.in | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/input_files/initscript/initscript.in b/input_files/initscript/initscript.in
index a312915..b23d7c0 100755
--- a/input_files/initscript/initscript.in
+++ b/input_files/initscript/initscript.in
@@ -63,8 +63,8 @@ PORT=@PORT@
STATE_DIR="@STATEDIR@"
DB_FILE="@DBFILE@"
-DB_DIR="$(dirname $DB_FILE)"
-BACKUP_DIR="$(dirname $DB_FILE)"
+DB_DIR=$(dirname "$DB_FILE")
+BACKUP_DIR=$(dirname "$DB_FILE")
DB_PERMS=0640
BACKUP_PERMS=0640
@@ -77,9 +77,10 @@ CERT_KEY_BITS=2048
CERT_KEY_LIFE_DAYS=1825
CERT_CONFIG="@CERTCONFIG@"
CERT_PEM="@CERTPEM@"
+CERT_DIR=$(dirname "$CERT_PEM")
-# Run $exec in a subshell with changed umask
-do_exec() { (umask 027 && $exec "$@"); }
+# Run $exec in a subshell with changed umask and with sane CWD
+do_exec() { (cd / && umask 027 && $exec "$@"); }
# Check some conditions and return respective return code
@@ -195,7 +196,7 @@ prepare_cert() {
# Generate the SSL certificate (PEM file containing also private key)
# Note: Explicit specification of file containing random data is needed
# to suppress complaints (and we also control where this file is)
- export RANDFILE="$(mktemp -q "cert_rnd.XXXXXX")"
+ export RANDFILE=$(mktemp -q --tmpdir="$CERT_DIR" "cert_rnd.XXXXXX")
out="$(/usr/bin/openssl req -new -x509 -nodes -sha1 \
-newkey rsa:"$CERT_KEY_BITS" \
-config "$CERT_CONFIG" \
@@ -278,7 +279,7 @@ list_database_dumps() {
dump_database() {
if [ -n "$1" ]; then
- output_file="$1"
+ output_file=$(readlink -f -- "$1") # normalize path (for output)
else
output_file="$BACKUP_DIR/@SERVICENAME@-backup$(/bin/date +%Y%m%d%H%M%S).db"
fi
@@ -307,7 +308,7 @@ dump_database() {
}
load_database() {
- db_dump_file=$1
+ db_dump_file=$(readlink -f "$1") # normalize path (for output)
if [ ! "$db_dump_file" ]; then
$ECHOFUNC "No database backup file was specified. Run \`$0 list-backups' to get a list of known existing backup files." >&2
return 1
@@ -318,7 +319,7 @@ load_database() {
return 1
fi
- tmp_db="$(mktemp --tmpdir=$DB_DIR)"
+ tmp_db=$(mktemp -q --tmpdir="$DB_DIR")
if [ $? -ne 0 ]; then
$ECHOFUNC "Unable to create a temporary file in \`$DB_DIR'." >&2
return 1
10 years, 2 months
[luci] Fix short exposure of auth details while generating config file
by Jan Pokorný
commit 4683809611f04a961a8d788244d92195f9580768
Author: Jan Pokorny <jpokorny(a)redhat.com>
Date: Mon Sep 16 12:00:00 2013 +0200
Fix short exposure of auth details while generating config file
Resolves: rhbz#1005385 (part 1)
Signed-off-by: Jan Pokorný <jpokorny(a)redhat.com>
input_files/initscript/initscript.in | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/input_files/initscript/initscript.in b/input_files/initscript/initscript.in
index 0fe0a55..a312915 100755
--- a/input_files/initscript/initscript.in
+++ b/input_files/initscript/initscript.in
@@ -78,6 +78,9 @@ CERT_KEY_LIFE_DAYS=1825
CERT_CONFIG="@CERTCONFIG@"
CERT_PEM="@CERTPEM@"
+# Run $exec in a subshell with changed umask
+do_exec() { (umask 027 && $exec "$@"); }
+
# Check some conditions and return respective return code
entry_check() {
@@ -89,7 +92,6 @@ entry_check() {
fi
}
-
# Automatically adds subjectAltName values for hostname domain names and/or IP
# addresses to the configuration of self-managed self-signed certificate
certconfig_complete() {
@@ -146,7 +148,7 @@ certconfig_complete() {
prepare_config() {
# Touching $config first and then using ``.. make-config .. --overwrite''
# does not work now (see http://trac.pythonpaste.org/pythonpaste/ticket/450)
- $exec make-config $PKG_NAME "$config" --no-default-sysconfig --no-install &>/dev/null
+ do_exec make-config $PKG_NAME "$config" --no-default-sysconfig --no-install &>/dev/null
if [ $? -ne 0 ]; then
rm -f -- "$config" &>/dev/null
$ECHOFUNC "Unable to create the $PKG_NAME base configuration file (\`$config')." >&2
@@ -170,7 +172,7 @@ prepare_db() {
$ECHOFUNC "Unable to change ownership/attributes of the $PKG_NAME database file (\`$DB_FILE')." >&2
return 1
fi
- $exec setup-app "$config" --no-default-sysconfig &>/dev/null
+ do_exec setup-app "$config" --no-default-sysconfig &>/dev/null
if [ $? -ne 0 ]; then
rm -f -- "$DB_FILE" &>/dev/null
$ECHOFUNC "Unable to create the $PKG_NAME database file (\`$DB_FILE')." >&2
@@ -377,7 +379,7 @@ start_server() {
# LSB header doesn't seem to help there.
/sbin/service saslauthd start || return 1
- $exec serve --daemon --user "$DAEMON_USER" --group "$DAEMON_GROUP" \
+ do_exec serve --daemon --user "$DAEMON_USER" --group "$DAEMON_GROUP" \
--log-file="$LOG_FILE" --pid-file="$PID_FILE" \
--server-name=init --app-name=init "$config" @RELOAD@ >/dev/null
}
@@ -420,7 +422,7 @@ stop() {
step=$"Stop $prog..."
# If PID file does not exist, paster returns 1 otherwise 0
- $exec serve --stop-daemon --pid-file="$PID_FILE" >/dev/null
+ do_exec serve --stop-daemon --pid-file="$PID_FILE" >/dev/null
ret=$?
if [ $ret -eq 0 ]; then
if [ "$KEEP_RUNTIME_DATA" -eq "0" ]; then
@@ -440,7 +442,7 @@ restart() {
status() {
# If PID file exists and contains valid PID, paster returns 0 otherwise 1
- out=$($exec serve --status --pid-file="$PID_FILE" "$config" 2>&1)
+ out=$(do_exec serve --status --pid-file="$PID_FILE" "$config" 2>&1)
ret=$?
echo "$out" | tail -1
if [ $ret -ne 0 ]; then
10 years, 2 months
[luci] fence_ilo denoted as HP iLO / iLO2, but the latter has a separate entry
by Jan Pokorný
commit 31e53ae9bcdaa191c454a1dbe061d5f87cfc62d6
Author: Jan Pokorny <jpokorny(a)redhat.com>
Date: Thu Aug 29 12:00:00 2013 +0200
fence_ilo denoted as HP iLO / iLO2, but the latter has a separate entry
Resolves: rhbz#1001836
Signed-off-by: Jan Pokorný <jpokorny(a)redhat.com>
luci/templates/fence_devices.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/luci/templates/fence_devices.html b/luci/templates/fence_devices.html
index a47d43c..40bc4c1 100644
--- a/luci/templates/fence_devices.html
+++ b/luci/templates/fence_devices.html
@@ -1778,7 +1778,7 @@
<table class="formtable">
<tr>
<td>Fence Type</td>
- <td>HP iLO / iLO2</td>
+ <td>HP iLO</td>
</tr>
<tr>
<td>Name</td>
10 years, 2 months
[luci] module_name parameter for fence_drac5 is optional, not required
by Jan Pokorný
commit 09a73350828b4a9640091c799728699bc9603bc0
Author: Jan Pokorny <jpokorny(a)redhat.com>
Date: Thu Aug 29 12:00:00 2013 +0200
module_name parameter for fence_drac5 is optional, not required
Resolves: rhbz#1001835
Signed-off-by: Jan Pokorný <jpokorny(a)redhat.com>
luci/validation/validate_fence.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/luci/validation/validate_fence.py b/luci/validation/validate_fence.py
index f9874a6..8db9277 100644
--- a/luci/validation/validate_fence.py
+++ b/luci/validation/validate_fence.py
@@ -433,7 +433,7 @@ def val_drac5_fd(fencedev, fence_name, **kw):
('ipaddr', True),
('ipport', False),
('login', True),
- ('module_name', True),
+ ('module_name', False),
('cmd_prompt', False),
('secure', False),
('identity_file', False),
10 years, 2 months
[luci] Fix cluster_version mismatch upon adding 2+ nodes (rhbz#978479)
by Jan Pokorný
commit 777f274454ef3558da8ca731fdd6eae96bfb797f
Author: Jan Pokorný <jpokorny(a)redhat.com>
Date: Wed Aug 14 12:00:00 2013 +0200
Fix cluster_version mismatch upon adding 2+ nodes (rhbz#978479)
Resolves: rhbz#978479
Reported-by: Radek Steiger <rsteiger(a)redhat.com>
Signed-off-by: Jan Pokorný <jpokorny(a)redhat.com>
luci/lib/ricci_queries.py | 5 ++---
luci/validation/validate_create_cluster_form.py | 9 +++++----
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/luci/lib/ricci_queries.py b/luci/lib/ricci_queries.py
index 1610667..33dbbad 100644
--- a/luci/lib/ricci_queries.py
+++ b/luci/lib/ricci_queries.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2006-2010 Red Hat, Inc.
+# Copyright 2013 Red Hat, Inc.
#
# This program is free software; you can redistribute
# it and/or modify it under the terms of version 2 of the
@@ -12,7 +12,7 @@ from ricci_communicator import batch_status
class RicciQueriesError(Exception):
pass
-def addClusterNodeBatch(model,
+def addClusterNodeBatch(clusterconf,
install_base,
install_services,
install_shared_storage,
@@ -20,7 +20,6 @@ def addClusterNodeBatch(model,
reboot_nodes=False):
batch = list()
- clusterconf = model.exportModelAsString()
conf = clusterconf.replace('<?xml version="1.0"?>', '')
conf = conf.replace('<?xml version="1.0" ?>', '')
conf = conf.replace('<? xml version="1.0"?>', '')
diff --git a/luci/validation/validate_create_cluster_form.py b/luci/validation/validate_create_cluster_form.py
index 3d7ae2f..76d0342 100644
--- a/luci/validation/validate_create_cluster_form.py
+++ b/luci/validation/validate_create_cluster_form.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2011 Red Hat, Inc.
+# Copyright 2013 Red Hat, Inc.
#
# This program is free software; you can redistribute
# it and/or modify it under the terms of version 2 of the
@@ -323,15 +323,16 @@ def validate_node_add_form(model, db_obj, **kw):
% (cluster_name, ', '.join(errors)), 'error')
DBSession.rollback()
return
-
+
for i in node_db_obj.values():
DBSession.add(i)
db_obj.nodes.extend(node_db_obj.values())
host_triples = []
+ clusterconf = model.exportModelAsString()
for n in node_list:
- host_triples.append((n, rq.create_cluster_nodes,
- [ model, enable_storage, download_pkgs, reboot_nodes ]))
+ host_triples.append((n, rq.create_cluster_nodes,
+ [clusterconf, enable_storage, download_pkgs, reboot_nodes]))
ret = send_batch_parallel(host_triples, 10)
for i in ret.iterkeys():
10 years, 2 months
[luci] bz896244 (2/2): reduce space waste by loopifying invariants
by Jan Pokorný
commit cd1f069975c83b41a6d33eb3270d535508b4d1fe
Author: Jan Pokorný <jpokorny(a)redhat.com>
Date: Wed Aug 14 12:00:00 2013 +0200
bz896244 (2/2): reduce space waste by loopifying invariants
Related: rhbz#896244
Signed-off-by: Jan Pokorný <jpokorny(a)redhat.com>
luci/templates/configure.html | 1690 +----------------------------------------
1 files changed, 36 insertions(+), 1654 deletions(-)
---
diff --git a/luci/templates/configure.html b/luci/templates/configure.html
index 9dfd3a7..af13329 100644
--- a/luci/templates/configure.html
+++ b/luci/templates/configure.html
@@ -574,24 +574,25 @@
<h3>Daemon-specific Logging Overrides</h3>
<div class="accordion">
- <h3><a href="#">rgmanager</a></h3>
+ <py:for each="daemon_i in ('rgmanager', 'qdiskd', 'fenced', 'groupd', 'dlm_controld', 'gfs_controld')">
+ <h3><a href="#">${daemon_i}</a></h3>
<div class="daemon_logconf_body"
- py:with="cur_log = (global_log and global_log.getDaemonConfig('rgmanager')) or default_log_obj">
+ py:with="cur_log = (global_log and global_log.getDaemonConfig(daemon_i)) or default_log_obj">
<div class="row">
- <label class="wide">Log rgmanager Debugging Messages</label>
- <input name="rgmanager_debug" type="checkbox" class="checkbox"
+ <label class="wide">Log ${daemon_i} Debugging Messages</label>
+ <input name="${daemon_i}_debug" type="checkbox" class="checkbox"
py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
</div>
<div class="row"><fieldset>
<legend>Syslog</legend>
<div class="row">
- <label class="wide">Log rgmanager Messages to Syslog</label>
- <input name="rgmanager_to_syslog" type="checkbox" class="checkbox"
+ <label class="wide">Log ${daemon_i} Messages to Syslog</label>
+ <input name="${daemon_i}_to_syslog" type="checkbox" class="checkbox"
py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
</div>
<div class="row">
- <label class="wide">rgmanager Syslog Message Facility</label>
- <select name="rgmanager_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
+ <label class="wide">${daemon_i} Syslog Message Facility</label>
+ <select name="${daemon_i}_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
<option value="auth"
py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
<option value="authpriv"
@@ -633,8 +634,8 @@
</select>
</div>
<div class="row">
- <label class="wide">rgmanager Syslog Message Priority</label>
- <select name="rgmanager_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
+ <label class="wide">${daemon_i} Syslog Message Priority</label>
+ <select name="${daemon_i}_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
<option value="emerg"
py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
<option value="alert"
@@ -657,250 +658,18 @@
<div class="row"><fieldset>
<legend>Log File</legend>
<div class="row">
- <label class="wide">Log rgmanager Messages to Log File</label>
- <input name="rgmanager_to_logfile" type="checkbox" class="checkbox"
+ <label class="wide">Log ${daemon_i} Messages to Log File</label>
+ <input name="${daemon_i}_to_logfile" type="checkbox" class="checkbox"
py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
</div>
<div class="row">
- <label class="wide">rgmanager Log File Path</label>
- <input name="rgmanager_logfile" type="text" class="text"
+ <label class="wide">${daemon_i} Log File Path</label>
+ <input name="${daemon_i}_logfile" type="text" class="text"
py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
</div>
<div class="row">
- <label class="wide">rgmanager Log File Message Priority</label>
- <select name="rgmanager_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- </div>
-
- <h3><a href="#">qdiskd</a></h3>
- <div class="daemon_logconf_body"
- py:with="cur_log = (global_log and global_log.getDaemonConfig('qdiskd')) or default_log_obj">
- <div class="row">
- <label class="wide">Log qdiskd Debugging Messages</label>
- <input name="qdiskd_debug" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row"><fieldset>
- <legend>Syslog</legend>
- <div class="row">
- <label class="wide">Log qdiskd Messages to Syslog</label>
- <input name="qdiskd_to_syslog" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">qdiskd Syslog Message Facility</label>
- <select name="qdiskd_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
- <option value="auth"
- py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
- <option value="authpriv"
- py:attrs="cur_facility == 'authpriv' and {'selected':'selected'} or {}">authpriv</option>
- <option value="cron"
- py:attrs="cur_facility == 'cron' and {'selected':'selected'} or {}">cron</option>
- <option value="daemon"
- py:attrs="cur_facility == 'daemon' and {'selected':'selected'} or {}">daemon</option>
- <option value="kern"
- py:attrs="cur_facility == 'kern' and {'selected':'selected'} or {}">kern</option>
- <option value="lpr"
- py:attrs="cur_facility == 'lpr' and {'selected':'selected'} or {}">lpr</option>
- <option value="mail"
- py:attrs="cur_facility == 'mail' and {'selected':'selected'} or {}">mail</option>
- <option value="news"
- py:attrs="cur_facility == 'news' and {'selected':'selected'} or {}">news</option>
- <option value="syslog"
- py:attrs="cur_facility == 'syslog' and {'selected':'selected'} or {}">syslog</option>
- <option value="user"
- py:attrs="cur_facility == 'user' and {'selected':'selected'} or {}">user</option>
- <option value="uucp"
- py:attrs="cur_facility == 'uucp' and {'selected':'selected'} or {}">uucp</option>
- <option value="local0"
- py:attrs="cur_facility == 'local0' and {'selected':'selected'} or {}">local0</option>
- <option value="local1"
- py:attrs="cur_facility == 'local1' and {'selected':'selected'} or {}">local1</option>
- <option value="local2"
- py:attrs="cur_facility == 'local2' and {'selected':'selected'} or {}">local2</option>
- <option value="local3"
- py:attrs="cur_facility == 'local3' and {'selected':'selected'} or {}">local3</option>
- <option value="local4"
- py:attrs="(not cur_facility or cur_facility == 'local4') and {'selected':'selected'} or {}">local4</option>
- <option value="local5"
- py:attrs="cur_facility == 'local5' and {'selected':'selected'} or {}">local5</option>
- <option value="local6"
- py:attrs="cur_facility == 'local6' and {'selected':'selected'} or {}">local6</option>
- <option value="local7"
- py:attrs="cur_facility == 'local7' and {'selected':'selected'} or {}">local7</option>
- </select>
- </div>
- <div class="row">
- <label class="wide">qdiskd Syslog Message Priority</label>
- <select name="qdiskd_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- <div class="row"><fieldset>
- <legend>Log File</legend>
- <div class="row">
- <label class="wide">Log qdiskd Messages to Log File</label>
- <input name="qdiskd_to_logfile" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">qdiskd Log File Path</label>
- <input name="qdiskd_logfile" type="text" class="text"
- py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
- </div>
- <div class="row">
- <label class="wide">qdiskd Log File Message Priority</label>
- <select name="qdiskd_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- </div>
-
- <h3><a href="#">fenced</a></h3>
- <div class="daemon_logconf_body"
- py:with="cur_log = (global_log and global_log.getDaemonConfig('fenced')) or default_log_obj">
- <div class="row">
- <label class="wide">Log fenced Debugging Messages</label>
- <input name="fenced_debug" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row"><fieldset>
- <legend>Syslog</legend>
- <div class="row">
- <label class="wide">Log fenced Messages to Syslog</label>
- <input name="fenced_to_syslog" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">fenced Syslog Message Facility</label>
- <select name="fenced_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
- <option value="auth"
- py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
- <option value="authpriv"
- py:attrs="cur_facility == 'authpriv' and {'selected':'selected'} or {}">authpriv</option>
- <option value="cron"
- py:attrs="cur_facility == 'cron' and {'selected':'selected'} or {}">cron</option>
- <option value="daemon"
- py:attrs="cur_facility == 'daemon' and {'selected':'selected'} or {}">daemon</option>
- <option value="kern"
- py:attrs="cur_facility == 'kern' and {'selected':'selected'} or {}">kern</option>
- <option value="lpr"
- py:attrs="cur_facility == 'lpr' and {'selected':'selected'} or {}">lpr</option>
- <option value="mail"
- py:attrs="cur_facility == 'mail' and {'selected':'selected'} or {}">mail</option>
- <option value="news"
- py:attrs="cur_facility == 'news' and {'selected':'selected'} or {}">news</option>
- <option value="syslog"
- py:attrs="cur_facility == 'syslog' and {'selected':'selected'} or {}">syslog</option>
- <option value="user"
- py:attrs="cur_facility == 'user' and {'selected':'selected'} or {}">user</option>
- <option value="uucp"
- py:attrs="cur_facility == 'uucp' and {'selected':'selected'} or {}">uucp</option>
- <option value="local0"
- py:attrs="cur_facility == 'local0' and {'selected':'selected'} or {}">local0</option>
- <option value="local1"
- py:attrs="cur_facility == 'local1' and {'selected':'selected'} or {}">local1</option>
- <option value="local2"
- py:attrs="cur_facility == 'local2' and {'selected':'selected'} or {}">local2</option>
- <option value="local3"
- py:attrs="cur_facility == 'local3' and {'selected':'selected'} or {}">local3</option>
- <option value="local4"
- py:attrs="(not cur_facility or cur_facility == 'local4') and {'selected':'selected'} or {}">local4</option>
- <option value="local5"
- py:attrs="cur_facility == 'local5' and {'selected':'selected'} or {}">local5</option>
- <option value="local6"
- py:attrs="cur_facility == 'local6' and {'selected':'selected'} or {}">local6</option>
- <option value="local7"
- py:attrs="cur_facility == 'local7' and {'selected':'selected'} or {}">local7</option>
- </select>
- </div>
- <div class="row">
- <label class="wide">fenced Syslog Message Priority</label>
- <select name="fenced_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- <div class="row"><fieldset>
- <legend>Log File</legend>
- <div class="row">
- <label class="wide">Log fenced Messages to Log File</label>
- <input name="fenced_to_logfile" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">fenced Log File Path</label>
- <input name="fenced_logfile" type="text" class="text"
- py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
- </div>
- <div class="row">
- <label class="wide">fenced Log File Message Priority</label>
- <select name="fenced_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
+ <label class="wide">${daemon_i} Log File Message Priority</label>
+ <select name="${daemon_i}_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
<option value="emerg"
py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
<option value="alert"
@@ -921,6 +690,7 @@
</div>
</fieldset></div>
</div>
+ </py:for>
<h3><a href="#">corosync</a></h3>
<div class="daemon_logconf_body"
@@ -1038,24 +808,25 @@
</fieldset></div>
<h4>Corosync Subsystem-specific Logging Overrides</h4>
<div class="accordion">
- <h3><a href="#">CLM</a></h3>
+ <py:for each="subsystem in ('CLM', 'CPG', 'MAIN', 'SERV', 'CMAN', 'TOTEM', 'QUORUM', 'CONFDB', 'CKPT', 'EVT')">
+ <h3><a href="#">${subsystem}</a></h3>
<div class="row daemon_subsys_logconf"
- py:with="cur_log = (global_log and global_log.getCorosyncSubsysConfig('CLM')) or default_log_obj">
+ py:with="cur_log = (global_log and global_log.getCorosyncSubsysConfig(subsystem)) or default_log_obj">
<div class="row">
- <label class="wide">Log corosync CLM Debugging Messages</label>
- <input name="corosync_CLM_debug" type="checkbox" class="checkbox"
+ <label class="wide">Log corosync ${subsystem} Debugging Messages</label>
+ <input name="corosync_${subsystem}_debug" type="checkbox" class="checkbox"
py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
</div>
<div class="row"><fieldset>
<legend>Syslog</legend>
<div class="row">
- <label class="wide">Log corosync CLM Messages to Syslog</label>
- <input name="corosync_CLM_to_syslog" type="checkbox" class="checkbox"
+ <label class="wide">Log corosync ${subsystem} Messages to Syslog</label>
+ <input name="corosync_${subsystem}_to_syslog" type="checkbox" class="checkbox"
py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
</div>
<div class="row">
- <label class="wide">corosync CLM Syslog Message Facility</label>
- <select name="corosync_CLM_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
+ <label class="wide">corosync ${subsystem} Syslog Message Facility</label>
+ <select name="corosync_${subsystem}_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
<option value="auth"
py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
<option value="authpriv"
@@ -1097,8 +868,8 @@
</select>
</div>
<div class="row">
- <label class="wide">corosync CLM Syslog Message Priority</label>
- <select name="corosync_CLM_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
+ <label class="wide">corosync ${subsystem} Syslog Message Priority</label>
+ <select name="corosync_${subsystem}_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
<option value="emerg"
py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
<option value="alert"
@@ -1121,18 +892,18 @@
<div class="row"><fieldset>
<legend>Log File</legend>
<div class="row">
- <label class="wide">Log corosync CLM Messages to Log File</label>
- <input name="corosync_CLM_to_logfile" type="checkbox" class="checkbox"
+ <label class="wide">Log corosync ${subsystem} Messages to Log File</label>
+ <input name="corosync_${subsystem}_to_logfile" type="checkbox" class="checkbox"
py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
</div>
<div class="row">
- <label class="wide">corosync CLM Log File Path</label>
- <input name="corosync_CLM_logfile" type="text" class="text"
+ <label class="wide">corosync ${subsystem} Log File Path</label>
+ <input name="corosync_${subsystem}_logfile" type="text" class="text"
py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
</div>
<div class="row">
- <label class="wide">corosync CLM Log File Message Priority</label>
- <select name="corosync_CLM_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
+ <label class="wide">corosync ${subsystem} Log File Message Priority</label>
+ <select name="corosync_${subsystem}_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
<option value="emerg"
py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
<option value="alert"
@@ -1153,1400 +924,11 @@
</div>
</fieldset></div>
</div>
+ </py:for>
- <h3><a href="#">CPG</a></h3>
- <div class="row daemon_subsys_logconf"
- py:with="cur_log = (global_log and global_log.getCorosyncSubsysConfig('CPG')) or default_log_obj">
- <div class="row">
- <label class="wide">Log corosync CPG Debugging Messages</label>
- <input name="corosync_CPG_debug" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row"><fieldset>
- <legend>Syslog</legend>
- <div class="row">
- <label class="wide">Log corosync CPG Messages to Syslog</label>
- <input name="corosync_CPG_to_syslog" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync CPG Syslog Message Facility</label>
- <select name="corosync_CPG_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
- <option value="auth"
- py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
- <option value="authpriv"
- py:attrs="cur_facility == 'authpriv' and {'selected':'selected'} or {}">authpriv</option>
- <option value="cron"
- py:attrs="cur_facility == 'cron' and {'selected':'selected'} or {}">cron</option>
- <option value="daemon"
- py:attrs="cur_facility == 'daemon' and {'selected':'selected'} or {}">daemon</option>
- <option value="kern"
- py:attrs="cur_facility == 'kern' and {'selected':'selected'} or {}">kern</option>
- <option value="lpr"
- py:attrs="cur_facility == 'lpr' and {'selected':'selected'} or {}">lpr</option>
- <option value="mail"
- py:attrs="cur_facility == 'mail' and {'selected':'selected'} or {}">mail</option>
- <option value="news"
- py:attrs="cur_facility == 'news' and {'selected':'selected'} or {}">news</option>
- <option value="syslog"
- py:attrs="cur_facility == 'syslog' and {'selected':'selected'} or {}">syslog</option>
- <option value="user"
- py:attrs="cur_facility == 'user' and {'selected':'selected'} or {}">user</option>
- <option value="uucp"
- py:attrs="cur_facility == 'uucp' and {'selected':'selected'} or {}">uucp</option>
- <option value="local0"
- py:attrs="cur_facility == 'local0' and {'selected':'selected'} or {}">local0</option>
- <option value="local1"
- py:attrs="cur_facility == 'local1' and {'selected':'selected'} or {}">local1</option>
- <option value="local2"
- py:attrs="cur_facility == 'local2' and {'selected':'selected'} or {}">local2</option>
- <option value="local3"
- py:attrs="cur_facility == 'local3' and {'selected':'selected'} or {}">local3</option>
- <option value="local4"
- py:attrs="(not cur_facility or cur_facility == 'local4') and {'selected':'selected'} or {}">local4</option>
- <option value="local5"
- py:attrs="cur_facility == 'local5' and {'selected':'selected'} or {}">local5</option>
- <option value="local6"
- py:attrs="cur_facility == 'local6' and {'selected':'selected'} or {}">local6</option>
- <option value="local7"
- py:attrs="cur_facility == 'local7' and {'selected':'selected'} or {}">local7</option>
- </select>
- </div>
- <div class="row">
- <label class="wide">corosync CPG Syslog Message Priority</label>
- <select name="corosync_CPG_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- <div class="row"><fieldset>
- <legend>Log File</legend>
- <div class="row">
- <label class="wide">Log corosync CPG Messages to Log File</label>
- <input name="corosync_CPG_to_logfile" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync CPG Log File Path</label>
- <input name="corosync_CPG_logfile" type="text" class="text"
- py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync CPG Log File Message Priority</label>
- <select name="corosync_CPG_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- </div>
-
- <h3><a href="#">MAIN</a></h3>
- <div class="row daemon_subsys_logconf"
- py:with="cur_log = (global_log and global_log.getCorosyncSubsysConfig('MAIN')) or default_log_obj">
- <div class="row">
- <label class="wide">Log corosync MAIN Debugging Messages</label>
- <input name="corosync_MAIN_debug" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row"><fieldset>
- <legend>Syslog</legend>
- <div class="row">
- <label class="wide">Log corosync MAIN Messages to Syslog</label>
- <input name="corosync_MAIN_to_syslog" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync MAIN Syslog Message Facility</label>
- <select name="corosync_MAIN_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
- <option value="auth"
- py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
- <option value="authpriv"
- py:attrs="cur_facility == 'authpriv' and {'selected':'selected'} or {}">authpriv</option>
- <option value="cron"
- py:attrs="cur_facility == 'cron' and {'selected':'selected'} or {}">cron</option>
- <option value="daemon"
- py:attrs="cur_facility == 'daemon' and {'selected':'selected'} or {}">daemon</option>
- <option value="kern"
- py:attrs="cur_facility == 'kern' and {'selected':'selected'} or {}">kern</option>
- <option value="lpr"
- py:attrs="cur_facility == 'lpr' and {'selected':'selected'} or {}">lpr</option>
- <option value="mail"
- py:attrs="cur_facility == 'mail' and {'selected':'selected'} or {}">mail</option>
- <option value="news"
- py:attrs="cur_facility == 'news' and {'selected':'selected'} or {}">news</option>
- <option value="syslog"
- py:attrs="cur_facility == 'syslog' and {'selected':'selected'} or {}">syslog</option>
- <option value="user"
- py:attrs="cur_facility == 'user' and {'selected':'selected'} or {}">user</option>
- <option value="uucp"
- py:attrs="cur_facility == 'uucp' and {'selected':'selected'} or {}">uucp</option>
- <option value="local0"
- py:attrs="cur_facility == 'local0' and {'selected':'selected'} or {}">local0</option>
- <option value="local1"
- py:attrs="cur_facility == 'local1' and {'selected':'selected'} or {}">local1</option>
- <option value="local2"
- py:attrs="cur_facility == 'local2' and {'selected':'selected'} or {}">local2</option>
- <option value="local3"
- py:attrs="cur_facility == 'local3' and {'selected':'selected'} or {}">local3</option>
- <option value="local4"
- py:attrs="(not cur_facility or cur_facility == 'local4') and {'selected':'selected'} or {}">local4</option>
- <option value="local5"
- py:attrs="cur_facility == 'local5' and {'selected':'selected'} or {}">local5</option>
- <option value="local6"
- py:attrs="cur_facility == 'local6' and {'selected':'selected'} or {}">local6</option>
- <option value="local7"
- py:attrs="cur_facility == 'local7' and {'selected':'selected'} or {}">local7</option>
- </select>
- </div>
- <div class="row">
- <label class="wide">corosync MAIN Syslog Message Priority</label>
- <select name="corosync_MAIN_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- <div class="row"><fieldset>
- <legend>Log File</legend>
- <div class="row">
- <label class="wide">Log corosync MAIN Messages to Log File</label>
- <input name="corosync_MAIN_to_logfile" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync MAIN Log File Path</label>
- <input name="corosync_MAIN_logfile" type="text" class="text"
- py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync MAIN Log File Message Priority</label>
- <select name="corosync_MAIN_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- </div>
-
- <h3><a href="#">SERV</a></h3>
- <div class="row daemon_subsys_logconf"
- py:with="cur_log = (global_log and global_log.getCorosyncSubsysConfig('SERV')) or default_log_obj">
- <div class="row">
- <label class="wide">Log corosync SERV Debugging Messages</label>
- <input name="corosync_SERV_debug" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row"><fieldset>
- <legend>Syslog</legend>
- <div class="row">
- <label class="wide">Log corosync SERV Messages to Syslog</label>
- <input name="corosync_SERV_to_syslog" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync SERV Syslog Message Facility</label>
- <select name="corosync_SERV_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
- <option value="auth"
- py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
- <option value="authpriv"
- py:attrs="cur_facility == 'authpriv' and {'selected':'selected'} or {}">authpriv</option>
- <option value="cron"
- py:attrs="cur_facility == 'cron' and {'selected':'selected'} or {}">cron</option>
- <option value="daemon"
- py:attrs="cur_facility == 'daemon' and {'selected':'selected'} or {}">daemon</option>
- <option value="kern"
- py:attrs="cur_facility == 'kern' and {'selected':'selected'} or {}">kern</option>
- <option value="lpr"
- py:attrs="cur_facility == 'lpr' and {'selected':'selected'} or {}">lpr</option>
- <option value="mail"
- py:attrs="cur_facility == 'mail' and {'selected':'selected'} or {}">mail</option>
- <option value="news"
- py:attrs="cur_facility == 'news' and {'selected':'selected'} or {}">news</option>
- <option value="syslog"
- py:attrs="cur_facility == 'syslog' and {'selected':'selected'} or {}">syslog</option>
- <option value="user"
- py:attrs="cur_facility == 'user' and {'selected':'selected'} or {}">user</option>
- <option value="uucp"
- py:attrs="cur_facility == 'uucp' and {'selected':'selected'} or {}">uucp</option>
- <option value="local0"
- py:attrs="cur_facility == 'local0' and {'selected':'selected'} or {}">local0</option>
- <option value="local1"
- py:attrs="cur_facility == 'local1' and {'selected':'selected'} or {}">local1</option>
- <option value="local2"
- py:attrs="cur_facility == 'local2' and {'selected':'selected'} or {}">local2</option>
- <option value="local3"
- py:attrs="cur_facility == 'local3' and {'selected':'selected'} or {}">local3</option>
- <option value="local4"
- py:attrs="(not cur_facility or cur_facility == 'local4') and {'selected':'selected'} or {}">local4</option>
- <option value="local5"
- py:attrs="cur_facility == 'local5' and {'selected':'selected'} or {}">local5</option>
- <option value="local6"
- py:attrs="cur_facility == 'local6' and {'selected':'selected'} or {}">local6</option>
- <option value="local7"
- py:attrs="cur_facility == 'local7' and {'selected':'selected'} or {}">local7</option>
- </select>
- </div>
- <div class="row">
- <label class="wide">corosync SERV Syslog Message Priority</label>
- <select name="corosync_SERV_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- <div class="row"><fieldset>
- <legend>Log File</legend>
- <div class="row">
- <label class="wide">Log corosync SERV Messages to Log File</label>
- <input name="corosync_SERV_to_logfile" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync SERV Log File Path</label>
- <input name="corosync_SERV_logfile" type="text" class="text"
- py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync SERV Log File Message Priority</label>
- <select name="corosync_SERV_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- </div>
-
- <h3><a href="#">CMAN</a></h3>
- <div class="row daemon_subsys_logconf"
- py:with="cur_log = (global_log and global_log.getCorosyncSubsysConfig('CMAN')) or default_log_obj">
- <div class="row">
- <label class="wide">Log corosync CMAN Debugging Messages</label>
- <input name="corosync_CMAN_debug" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row"><fieldset>
- <legend>Syslog</legend>
- <div class="row">
- <label class="wide">Log corosync CMAN Messages to Syslog</label>
- <input name="corosync_CMAN_to_syslog" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync CMAN Syslog Message Facility</label>
- <select name="corosync_CMAN_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
- <option value="auth"
- py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
- <option value="authpriv"
- py:attrs="cur_facility == 'authpriv' and {'selected':'selected'} or {}">authpriv</option>
- <option value="cron"
- py:attrs="cur_facility == 'cron' and {'selected':'selected'} or {}">cron</option>
- <option value="daemon"
- py:attrs="cur_facility == 'daemon' and {'selected':'selected'} or {}">daemon</option>
- <option value="kern"
- py:attrs="cur_facility == 'kern' and {'selected':'selected'} or {}">kern</option>
- <option value="lpr"
- py:attrs="cur_facility == 'lpr' and {'selected':'selected'} or {}">lpr</option>
- <option value="mail"
- py:attrs="cur_facility == 'mail' and {'selected':'selected'} or {}">mail</option>
- <option value="news"
- py:attrs="cur_facility == 'news' and {'selected':'selected'} or {}">news</option>
- <option value="syslog"
- py:attrs="cur_facility == 'syslog' and {'selected':'selected'} or {}">syslog</option>
- <option value="user"
- py:attrs="cur_facility == 'user' and {'selected':'selected'} or {}">user</option>
- <option value="uucp"
- py:attrs="cur_facility == 'uucp' and {'selected':'selected'} or {}">uucp</option>
- <option value="local0"
- py:attrs="cur_facility == 'local0' and {'selected':'selected'} or {}">local0</option>
- <option value="local1"
- py:attrs="cur_facility == 'local1' and {'selected':'selected'} or {}">local1</option>
- <option value="local2"
- py:attrs="cur_facility == 'local2' and {'selected':'selected'} or {}">local2</option>
- <option value="local3"
- py:attrs="cur_facility == 'local3' and {'selected':'selected'} or {}">local3</option>
- <option value="local4"
- py:attrs="(not cur_facility or cur_facility == 'local4') and {'selected':'selected'} or {}">local4</option>
- <option value="local5"
- py:attrs="cur_facility == 'local5' and {'selected':'selected'} or {}">local5</option>
- <option value="local6"
- py:attrs="cur_facility == 'local6' and {'selected':'selected'} or {}">local6</option>
- <option value="local7"
- py:attrs="cur_facility == 'local7' and {'selected':'selected'} or {}">local7</option>
- </select>
- </div>
- <div class="row">
- <label class="wide">corosync CMAN Syslog Message Priority</label>
- <select name="corosync_CMAN_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- <div class="row"><fieldset>
- <legend>Log File</legend>
- <div class="row">
- <label class="wide">Log corosync CMAN Messages to Log File</label>
- <input name="corosync_CMAN_to_logfile" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync CMAN Log File Path</label>
- <input name="corosync_CMAN_logfile" type="text" class="text"
- py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync CMAN Log File Message Priority</label>
- <select name="corosync_CMAN_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- </div>
-
- <h3><a href="#">TOTEM</a></h3>
- <div class="row daemon_subsys_logconf"
- py:with="cur_log = (global_log and global_log.getCorosyncSubsysConfig('TOTEM')) or default_log_obj">
- <div class="row">
- <label class="wide">Log corosync TOTEM Debugging Messages</label>
- <input name="corosync_TOTEM_debug" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row"><fieldset>
- <legend>Syslog</legend>
- <div class="row">
- <label class="wide">Log corosync TOTEM Messages to Syslog</label>
- <input name="corosync_TOTEM_to_syslog" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync TOTEM Syslog Message Facility</label>
- <select name="corosync_TOTEM_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
- <option value="auth"
- py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
- <option value="authpriv"
- py:attrs="cur_facility == 'authpriv' and {'selected':'selected'} or {}">authpriv</option>
- <option value="cron"
- py:attrs="cur_facility == 'cron' and {'selected':'selected'} or {}">cron</option>
- <option value="daemon"
- py:attrs="cur_facility == 'daemon' and {'selected':'selected'} or {}">daemon</option>
- <option value="kern"
- py:attrs="cur_facility == 'kern' and {'selected':'selected'} or {}">kern</option>
- <option value="lpr"
- py:attrs="cur_facility == 'lpr' and {'selected':'selected'} or {}">lpr</option>
- <option value="mail"
- py:attrs="cur_facility == 'mail' and {'selected':'selected'} or {}">mail</option>
- <option value="news"
- py:attrs="cur_facility == 'news' and {'selected':'selected'} or {}">news</option>
- <option value="syslog"
- py:attrs="cur_facility == 'syslog' and {'selected':'selected'} or {}">syslog</option>
- <option value="user"
- py:attrs="cur_facility == 'user' and {'selected':'selected'} or {}">user</option>
- <option value="uucp"
- py:attrs="cur_facility == 'uucp' and {'selected':'selected'} or {}">uucp</option>
- <option value="local0"
- py:attrs="cur_facility == 'local0' and {'selected':'selected'} or {}">local0</option>
- <option value="local1"
- py:attrs="cur_facility == 'local1' and {'selected':'selected'} or {}">local1</option>
- <option value="local2"
- py:attrs="cur_facility == 'local2' and {'selected':'selected'} or {}">local2</option>
- <option value="local3"
- py:attrs="cur_facility == 'local3' and {'selected':'selected'} or {}">local3</option>
- <option value="local4"
- py:attrs="(not cur_facility or cur_facility == 'local4') and {'selected':'selected'} or {}">local4</option>
- <option value="local5"
- py:attrs="cur_facility == 'local5' and {'selected':'selected'} or {}">local5</option>
- <option value="local6"
- py:attrs="cur_facility == 'local6' and {'selected':'selected'} or {}">local6</option>
- <option value="local7"
- py:attrs="cur_facility == 'local7' and {'selected':'selected'} or {}">local7</option>
- </select>
- </div>
- <div class="row">
- <label class="wide">corosync TOTEM Syslog Message Priority</label>
- <select name="corosync_TOTEM_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- <div class="row"><fieldset>
- <legend>Log File</legend>
- <div class="row">
- <label class="wide">Log corosync TOTEM Messages to Log File</label>
- <input name="corosync_TOTEM_to_logfile" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync TOTEM Log File Path</label>
- <input name="corosync_TOTEM_logfile" type="text" class="text"
- py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync TOTEM Log File Message Priority</label>
- <select name="corosync_TOTEM_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- </div>
-
- <h3><a href="#">QUORUM</a></h3>
- <div class="row daemon_subsys_logconf"
- py:with="cur_log = (global_log and global_log.getCorosyncSubsysConfig('QUORUM')) or default_log_obj">
- <div class="row">
- <label class="wide">Log corosync QUORUM Debugging Messages</label>
- <input name="corosync_QUORUM_debug" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row"><fieldset>
- <legend>Syslog</legend>
- <div class="row">
- <label class="wide">Log corosync QUORUM Messages to Syslog</label>
- <input name="corosync_QUORUM_to_syslog" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync QUORUM Syslog Message Facility</label>
- <select name="corosync_QUORUM_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
- <option value="auth"
- py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
- <option value="authpriv"
- py:attrs="cur_facility == 'authpriv' and {'selected':'selected'} or {}">authpriv</option>
- <option value="cron"
- py:attrs="cur_facility == 'cron' and {'selected':'selected'} or {}">cron</option>
- <option value="daemon"
- py:attrs="cur_facility == 'daemon' and {'selected':'selected'} or {}">daemon</option>
- <option value="kern"
- py:attrs="cur_facility == 'kern' and {'selected':'selected'} or {}">kern</option>
- <option value="lpr"
- py:attrs="cur_facility == 'lpr' and {'selected':'selected'} or {}">lpr</option>
- <option value="mail"
- py:attrs="cur_facility == 'mail' and {'selected':'selected'} or {}">mail</option>
- <option value="news"
- py:attrs="cur_facility == 'news' and {'selected':'selected'} or {}">news</option>
- <option value="syslog"
- py:attrs="cur_facility == 'syslog' and {'selected':'selected'} or {}">syslog</option>
- <option value="user"
- py:attrs="cur_facility == 'user' and {'selected':'selected'} or {}">user</option>
- <option value="uucp"
- py:attrs="cur_facility == 'uucp' and {'selected':'selected'} or {}">uucp</option>
- <option value="local0"
- py:attrs="cur_facility == 'local0' and {'selected':'selected'} or {}">local0</option>
- <option value="local1"
- py:attrs="cur_facility == 'local1' and {'selected':'selected'} or {}">local1</option>
- <option value="local2"
- py:attrs="cur_facility == 'local2' and {'selected':'selected'} or {}">local2</option>
- <option value="local3"
- py:attrs="cur_facility == 'local3' and {'selected':'selected'} or {}">local3</option>
- <option value="local4"
- py:attrs="(not cur_facility or cur_facility == 'local4') and {'selected':'selected'} or {}">local4</option>
- <option value="local5"
- py:attrs="cur_facility == 'local5' and {'selected':'selected'} or {}">local5</option>
- <option value="local6"
- py:attrs="cur_facility == 'local6' and {'selected':'selected'} or {}">local6</option>
- <option value="local7"
- py:attrs="cur_facility == 'local7' and {'selected':'selected'} or {}">local7</option>
- </select>
- </div>
- <div class="row">
- <label class="wide">corosync QUORUM Syslog Message Priority</label>
- <select name="corosync_QUORUM_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- <div class="row"><fieldset>
- <legend>Log File</legend>
- <div class="row">
- <label class="wide">Log corosync QUORUM Messages to Log File</label>
- <input name="corosync_QUORUM_to_logfile" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync QUORUM Log File Path</label>
- <input name="corosync_QUORUM_logfile" type="text" class="text"
- py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync QUORUM Log File Message Priority</label>
- <select name="corosync_QUORUM_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- </div>
-
- <h3><a href="#">CONFDB</a></h3>
- <div class="row daemon_subsys_logconf"
- py:with="cur_log = (global_log and global_log.getCorosyncSubsysConfig('CONFDB')) or default_log_obj">
- <div class="row">
- <label class="wide">Log corosync CONFDB Debugging Messages</label>
- <input name="corosync_CONFDB_debug" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row"><fieldset>
- <legend>Syslog</legend>
- <div class="row">
- <label class="wide">Log corosync CONFDB Messages to Syslog</label>
- <input name="corosync_CONFDB_to_syslog" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync CONFDB Syslog Message Facility</label>
- <select name="corosync_CONFDB_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
- <option value="auth"
- py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
- <option value="authpriv"
- py:attrs="cur_facility == 'authpriv' and {'selected':'selected'} or {}">authpriv</option>
- <option value="cron"
- py:attrs="cur_facility == 'cron' and {'selected':'selected'} or {}">cron</option>
- <option value="daemon"
- py:attrs="cur_facility == 'daemon' and {'selected':'selected'} or {}">daemon</option>
- <option value="kern"
- py:attrs="cur_facility == 'kern' and {'selected':'selected'} or {}">kern</option>
- <option value="lpr"
- py:attrs="cur_facility == 'lpr' and {'selected':'selected'} or {}">lpr</option>
- <option value="mail"
- py:attrs="cur_facility == 'mail' and {'selected':'selected'} or {}">mail</option>
- <option value="news"
- py:attrs="cur_facility == 'news' and {'selected':'selected'} or {}">news</option>
- <option value="syslog"
- py:attrs="cur_facility == 'syslog' and {'selected':'selected'} or {}">syslog</option>
- <option value="user"
- py:attrs="cur_facility == 'user' and {'selected':'selected'} or {}">user</option>
- <option value="uucp"
- py:attrs="cur_facility == 'uucp' and {'selected':'selected'} or {}">uucp</option>
- <option value="local0"
- py:attrs="cur_facility == 'local0' and {'selected':'selected'} or {}">local0</option>
- <option value="local1"
- py:attrs="cur_facility == 'local1' and {'selected':'selected'} or {}">local1</option>
- <option value="local2"
- py:attrs="cur_facility == 'local2' and {'selected':'selected'} or {}">local2</option>
- <option value="local3"
- py:attrs="cur_facility == 'local3' and {'selected':'selected'} or {}">local3</option>
- <option value="local4"
- py:attrs="(not cur_facility or cur_facility == 'local4') and {'selected':'selected'} or {}">local4</option>
- <option value="local5"
- py:attrs="cur_facility == 'local5' and {'selected':'selected'} or {}">local5</option>
- <option value="local6"
- py:attrs="cur_facility == 'local6' and {'selected':'selected'} or {}">local6</option>
- <option value="local7"
- py:attrs="cur_facility == 'local7' and {'selected':'selected'} or {}">local7</option>
- </select>
- </div>
- <div class="row">
- <label class="wide">corosync CONFDB Syslog Message Priority</label>
- <select name="corosync_CONFDB_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- <div class="row"><fieldset>
- <legend>Log File</legend>
- <div class="row">
- <label class="wide">Log corosync CONFDB Messages to Log File</label>
- <input name="corosync_CONFDB_to_logfile" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync CONFDB Log File Path</label>
- <input name="corosync_CONFDB_logfile" type="text" class="text"
- py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync CONFDB Log File Message Priority</label>
- <select name="corosync_CONFDB_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- </div>
-
- <h3><a href="#">CKPT</a></h3>
- <div class="row daemon_subsys_logconf"
- py:with="cur_log = (global_log and global_log.getCorosyncSubsysConfig('CKPT')) or default_log_obj">
- <div class="row">
- <label class="wide">Log corosync CKPT Debugging Messages</label>
- <input name="corosync_CKPT_debug" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row"><fieldset>
- <legend>Syslog</legend>
- <div class="row">
- <label class="wide">Log corosync CKPT Messages to Syslog</label>
- <input name="corosync_CKPT_to_syslog" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync CKPT Syslog Message Facility</label>
- <select name="corosync_CKPT_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
- <option value="auth"
- py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
- <option value="authpriv"
- py:attrs="cur_facility == 'authpriv' and {'selected':'selected'} or {}">authpriv</option>
- <option value="cron"
- py:attrs="cur_facility == 'cron' and {'selected':'selected'} or {}">cron</option>
- <option value="daemon"
- py:attrs="cur_facility == 'daemon' and {'selected':'selected'} or {}">daemon</option>
- <option value="kern"
- py:attrs="cur_facility == 'kern' and {'selected':'selected'} or {}">kern</option>
- <option value="lpr"
- py:attrs="cur_facility == 'lpr' and {'selected':'selected'} or {}">lpr</option>
- <option value="mail"
- py:attrs="cur_facility == 'mail' and {'selected':'selected'} or {}">mail</option>
- <option value="news"
- py:attrs="cur_facility == 'news' and {'selected':'selected'} or {}">news</option>
- <option value="syslog"
- py:attrs="cur_facility == 'syslog' and {'selected':'selected'} or {}">syslog</option>
- <option value="user"
- py:attrs="cur_facility == 'user' and {'selected':'selected'} or {}">user</option>
- <option value="uucp"
- py:attrs="cur_facility == 'uucp' and {'selected':'selected'} or {}">uucp</option>
- <option value="local0"
- py:attrs="cur_facility == 'local0' and {'selected':'selected'} or {}">local0</option>
- <option value="local1"
- py:attrs="cur_facility == 'local1' and {'selected':'selected'} or {}">local1</option>
- <option value="local2"
- py:attrs="cur_facility == 'local2' and {'selected':'selected'} or {}">local2</option>
- <option value="local3"
- py:attrs="cur_facility == 'local3' and {'selected':'selected'} or {}">local3</option>
- <option value="local4"
- py:attrs="(not cur_facility or cur_facility == 'local4') and {'selected':'selected'} or {}">local4</option>
- <option value="local5"
- py:attrs="cur_facility == 'local5' and {'selected':'selected'} or {}">local5</option>
- <option value="local6"
- py:attrs="cur_facility == 'local6' and {'selected':'selected'} or {}">local6</option>
- <option value="local7"
- py:attrs="cur_facility == 'local7' and {'selected':'selected'} or {}">local7</option>
- </select>
- </div>
- <div class="row">
- <label class="wide">corosync CKPT Syslog Message Priority</label>
- <select name="corosync_CKPT_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- <div class="row"><fieldset>
- <legend>Log File</legend>
- <div class="row">
- <label class="wide">Log corosync CKPT Messages to Log File</label>
- <input name="corosync_CKPT_to_logfile" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync CKPT Log File Path</label>
- <input name="corosync_CKPT_logfile" type="text" class="text"
- py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync CKPT Log File Message Priority</label>
- <select name="corosync_CKPT_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- </div>
-
- <h3><a href="#">EVT</a></h3>
- <div class="row daemon_subsys_logconf"
- py:with="cur_log = (global_log and global_log.getCorosyncSubsysConfig('EVT')) or default_log_obj">
- <div class="row">
- <label class="wide">Log corosync EVT Debugging Messages</label>
- <input name="corosync_EVT_debug" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row"><fieldset>
- <legend>Syslog</legend>
- <div class="row">
- <label class="wide">Log corosync EVT Messages to Syslog</label>
- <input name="corosync_EVT_to_syslog" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync EVT Syslog Message Facility</label>
- <select name="corosync_EVT_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
- <option value="auth"
- py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
- <option value="authpriv"
- py:attrs="cur_facility == 'authpriv' and {'selected':'selected'} or {}">authpriv</option>
- <option value="cron"
- py:attrs="cur_facility == 'cron' and {'selected':'selected'} or {}">cron</option>
- <option value="daemon"
- py:attrs="cur_facility == 'daemon' and {'selected':'selected'} or {}">daemon</option>
- <option value="kern"
- py:attrs="cur_facility == 'kern' and {'selected':'selected'} or {}">kern</option>
- <option value="lpr"
- py:attrs="cur_facility == 'lpr' and {'selected':'selected'} or {}">lpr</option>
- <option value="mail"
- py:attrs="cur_facility == 'mail' and {'selected':'selected'} or {}">mail</option>
- <option value="news"
- py:attrs="cur_facility == 'news' and {'selected':'selected'} or {}">news</option>
- <option value="syslog"
- py:attrs="cur_facility == 'syslog' and {'selected':'selected'} or {}">syslog</option>
- <option value="user"
- py:attrs="cur_facility == 'user' and {'selected':'selected'} or {}">user</option>
- <option value="uucp"
- py:attrs="cur_facility == 'uucp' and {'selected':'selected'} or {}">uucp</option>
- <option value="local0"
- py:attrs="cur_facility == 'local0' and {'selected':'selected'} or {}">local0</option>
- <option value="local1"
- py:attrs="cur_facility == 'local1' and {'selected':'selected'} or {}">local1</option>
- <option value="local2"
- py:attrs="cur_facility == 'local2' and {'selected':'selected'} or {}">local2</option>
- <option value="local3"
- py:attrs="cur_facility == 'local3' and {'selected':'selected'} or {}">local3</option>
- <option value="local4"
- py:attrs="(not cur_facility or cur_facility == 'local4') and {'selected':'selected'} or {}">local4</option>
- <option value="local5"
- py:attrs="cur_facility == 'local5' and {'selected':'selected'} or {}">local5</option>
- <option value="local6"
- py:attrs="cur_facility == 'local6' and {'selected':'selected'} or {}">local6</option>
- <option value="local7"
- py:attrs="cur_facility == 'local7' and {'selected':'selected'} or {}">local7</option>
- </select>
- </div>
- <div class="row">
- <label class="wide">corosync EVT Syslog Message Priority</label>
- <select name="corosync_EVT_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- <div class="row"><fieldset>
- <legend>Log File</legend>
- <div class="row">
- <label class="wide">Log corosync EVT Messages to Log File</label>
- <input name="corosync_EVT_to_logfile" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync EVT Log File Path</label>
- <input name="corosync_EVT_logfile" type="text" class="text"
- py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
- </div>
- <div class="row">
- <label class="wide">corosync EVT Log File Message Priority</label>
- <select name="corosync_EVT_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- </div>
- </div>
- </div>
-
- <h3><a href="#">groupd</a></h3>
- <div class="daemon_logconf_body"
- py:with="cur_log = (global_log and global_log.getDaemonConfig('groupd')) or default_log_obj">
- <div class="row">
- <label class="wide">Log groupd Debugging Messages</label>
- <input name="groupd_debug" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row"><fieldset>
- <legend>Syslog</legend>
- <div class="row">
- <label class="wide">Log groupd Messages to Syslog</label>
- <input name="groupd_to_syslog" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">groupd Syslog Message Facility</label>
- <select name="groupd_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
- <option value="auth"
- py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
- <option value="authpriv"
- py:attrs="cur_facility == 'authpriv' and {'selected':'selected'} or {}">authpriv</option>
- <option value="cron"
- py:attrs="cur_facility == 'cron' and {'selected':'selected'} or {}">cron</option>
- <option value="daemon"
- py:attrs="cur_facility == 'daemon' and {'selected':'selected'} or {}">daemon</option>
- <option value="kern"
- py:attrs="cur_facility == 'kern' and {'selected':'selected'} or {}">kern</option>
- <option value="lpr"
- py:attrs="cur_facility == 'lpr' and {'selected':'selected'} or {}">lpr</option>
- <option value="mail"
- py:attrs="cur_facility == 'mail' and {'selected':'selected'} or {}">mail</option>
- <option value="news"
- py:attrs="cur_facility == 'news' and {'selected':'selected'} or {}">news</option>
- <option value="syslog"
- py:attrs="cur_facility == 'syslog' and {'selected':'selected'} or {}">syslog</option>
- <option value="user"
- py:attrs="cur_facility == 'user' and {'selected':'selected'} or {}">user</option>
- <option value="uucp"
- py:attrs="cur_facility == 'uucp' and {'selected':'selected'} or {}">uucp</option>
- <option value="local0"
- py:attrs="cur_facility == 'local0' and {'selected':'selected'} or {}">local0</option>
- <option value="local1"
- py:attrs="cur_facility == 'local1' and {'selected':'selected'} or {}">local1</option>
- <option value="local2"
- py:attrs="cur_facility == 'local2' and {'selected':'selected'} or {}">local2</option>
- <option value="local3"
- py:attrs="cur_facility == 'local3' and {'selected':'selected'} or {}">local3</option>
- <option value="local4"
- py:attrs="(not cur_facility or cur_facility == 'local4') and {'selected':'selected'} or {}">local4</option>
- <option value="local5"
- py:attrs="cur_facility == 'local5' and {'selected':'selected'} or {}">local5</option>
- <option value="local6"
- py:attrs="cur_facility == 'local6' and {'selected':'selected'} or {}">local6</option>
- <option value="local7"
- py:attrs="cur_facility == 'local7' and {'selected':'selected'} or {}">local7</option>
- </select>
- </div>
- <div class="row">
- <label class="wide">groupd Syslog Message Priority</label>
- <select name="groupd_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- <div class="row"><fieldset>
- <legend>Log File</legend>
- <div class="row">
- <label class="wide">Log groupd Messages to Log File</label>
- <input name="groupd_to_logfile" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">groupd Log File Path</label>
- <input name="groupd_logfile" type="text" class="text"
- py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
- </div>
- <div class="row">
- <label class="wide">groupd Log File Message Priority</label>
- <select name="groupd_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- </div>
-
- <h3><a href="#">dlm_controld</a></h3>
- <div class="daemon_logconf_body"
- py:with="cur_log = (global_log and global_log.getDaemonConfig('dlm_controld')) or default_log_obj">
- <div class="row">
- <label class="wide">Log dlm_controld Debugging Messages</label>
- <input name="dlm_controld_debug" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
</div>
- <div class="row"><fieldset>
- <legend>Syslog</legend>
- <div class="row">
- <label class="wide">Log dlm_controld Messages to Syslog</label>
- <input name="dlm_controld_to_syslog" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">dlm_controld Syslog Message Facility</label>
- <select name="dlm_controld_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
- <option value="auth"
- py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
- <option value="authpriv"
- py:attrs="cur_facility == 'authpriv' and {'selected':'selected'} or {}">authpriv</option>
- <option value="cron"
- py:attrs="cur_facility == 'cron' and {'selected':'selected'} or {}">cron</option>
- <option value="daemon"
- py:attrs="cur_facility == 'daemon' and {'selected':'selected'} or {}">daemon</option>
- <option value="kern"
- py:attrs="cur_facility == 'kern' and {'selected':'selected'} or {}">kern</option>
- <option value="lpr"
- py:attrs="cur_facility == 'lpr' and {'selected':'selected'} or {}">lpr</option>
- <option value="mail"
- py:attrs="cur_facility == 'mail' and {'selected':'selected'} or {}">mail</option>
- <option value="news"
- py:attrs="cur_facility == 'news' and {'selected':'selected'} or {}">news</option>
- <option value="syslog"
- py:attrs="cur_facility == 'syslog' and {'selected':'selected'} or {}">syslog</option>
- <option value="user"
- py:attrs="cur_facility == 'user' and {'selected':'selected'} or {}">user</option>
- <option value="uucp"
- py:attrs="cur_facility == 'uucp' and {'selected':'selected'} or {}">uucp</option>
- <option value="local0"
- py:attrs="cur_facility == 'local0' and {'selected':'selected'} or {}">local0</option>
- <option value="local1"
- py:attrs="cur_facility == 'local1' and {'selected':'selected'} or {}">local1</option>
- <option value="local2"
- py:attrs="cur_facility == 'local2' and {'selected':'selected'} or {}">local2</option>
- <option value="local3"
- py:attrs="cur_facility == 'local3' and {'selected':'selected'} or {}">local3</option>
- <option value="local4"
- py:attrs="(not cur_facility or cur_facility == 'local4') and {'selected':'selected'} or {}">local4</option>
- <option value="local5"
- py:attrs="cur_facility == 'local5' and {'selected':'selected'} or {}">local5</option>
- <option value="local6"
- py:attrs="cur_facility == 'local6' and {'selected':'selected'} or {}">local6</option>
- <option value="local7"
- py:attrs="cur_facility == 'local7' and {'selected':'selected'} or {}">local7</option>
- </select>
- </div>
- <div class="row">
- <label class="wide">dlm_controld Syslog Message Priority</label>
- <select name="dlm_controld_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- <div class="row"><fieldset>
- <legend>Log File</legend>
- <div class="row">
- <label class="wide">Log dlm_controld Messages to Log File</label>
- <input name="dlm_controld_to_logfile" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">dlm_controld Log File Path</label>
- <input name="dlm_controld_logfile" type="text" class="text"
- py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
- </div>
- <div class="row">
- <label class="wide">dlm_controld Log File Message Priority</label>
- <select name="dlm_controld_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
</div>
- <h3><a href="#">gfs_controld</a></h3>
- <div class="daemon_logconf_body"
- py:with="cur_log = (global_log and global_log.getDaemonConfig('gfs_controld')) or default_log_obj">
- <div class="row">
- <label class="wide">Log gfs_controld Debugging Messages</label>
- <input name="gfs_controld_debug" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getDebug()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row"><fieldset>
- <legend>Syslog</legend>
- <div class="row">
- <label class="wide">Log gfs_controld Messages to Syslog</label>
- <input name="gfs_controld_to_syslog" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getSyslog()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">gfs_controld Syslog Message Facility</label>
- <select name="gfs_controld_syslog_facility" py:with="cur_facility = cur_log and cur_log.getSyslogFacility()">
- <option value="auth"
- py:attrs="cur_facility == 'auth' and {'selected':'selected'} or {}">auth</option>
- <option value="authpriv"
- py:attrs="cur_facility == 'authpriv' and {'selected':'selected'} or {}">authpriv</option>
- <option value="cron"
- py:attrs="cur_facility == 'cron' and {'selected':'selected'} or {}">cron</option>
- <option value="daemon"
- py:attrs="cur_facility == 'daemon' and {'selected':'selected'} or {}">daemon</option>
- <option value="kern"
- py:attrs="cur_facility == 'kern' and {'selected':'selected'} or {}">kern</option>
- <option value="lpr"
- py:attrs="cur_facility == 'lpr' and {'selected':'selected'} or {}">lpr</option>
- <option value="mail"
- py:attrs="cur_facility == 'mail' and {'selected':'selected'} or {}">mail</option>
- <option value="news"
- py:attrs="cur_facility == 'news' and {'selected':'selected'} or {}">news</option>
- <option value="syslog"
- py:attrs="cur_facility == 'syslog' and {'selected':'selected'} or {}">syslog</option>
- <option value="user"
- py:attrs="cur_facility == 'user' and {'selected':'selected'} or {}">user</option>
- <option value="uucp"
- py:attrs="cur_facility == 'uucp' and {'selected':'selected'} or {}">uucp</option>
- <option value="local0"
- py:attrs="cur_facility == 'local0' and {'selected':'selected'} or {}">local0</option>
- <option value="local1"
- py:attrs="cur_facility == 'local1' and {'selected':'selected'} or {}">local1</option>
- <option value="local2"
- py:attrs="cur_facility == 'local2' and {'selected':'selected'} or {}">local2</option>
- <option value="local3"
- py:attrs="cur_facility == 'local3' and {'selected':'selected'} or {}">local3</option>
- <option value="local4"
- py:attrs="(not cur_facility or cur_facility == 'local4') and {'selected':'selected'} or {}">local4</option>
- <option value="local5"
- py:attrs="cur_facility == 'local5' and {'selected':'selected'} or {}">local5</option>
- <option value="local6"
- py:attrs="cur_facility == 'local6' and {'selected':'selected'} or {}">local6</option>
- <option value="local7"
- py:attrs="cur_facility == 'local7' and {'selected':'selected'} or {}">local7</option>
- </select>
- </div>
- <div class="row">
- <label class="wide">gfs_controld Syslog Message Priority</label>
- <select name="gfs_controld_syslog_priority" py:with="cur_priority = cur_log and cur_log.getSyslogPriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- <div class="row"><fieldset>
- <legend>Log File</legend>
- <div class="row">
- <label class="wide">Log gfs_controld Messages to Log File</label>
- <input name="gfs_controld_to_logfile" type="checkbox" class="checkbox"
- py:attrs="(cur_log and cur_log.getLogfile()) and {'checked':'checked'} or {}"/>
- </div>
- <div class="row">
- <label class="wide">gfs_controld Log File Path</label>
- <input name="gfs_controld_logfile" type="text" class="text"
- py:attrs="cur_log and {'value':cur_log.getLogfilePath()} or {}"/>
- </div>
- <div class="row">
- <label class="wide">gfs_controld Log File Message Priority</label>
- <select name="gfs_controld_logfile_priority" py:with="cur_priority = cur_log and cur_log.getLogfilePriority()">
- <option value="emerg"
- py:attrs="cur_priority == 'emerg' and {'selected':'selected'} or {}">emerg</option>
- <option value="alert"
- py:attrs="cur_priority == 'alert' and {'selected':'selected'} or {}">alert</option>
- <option value="crit"
- py:attrs="cur_priority == 'crit' and {'selected':'selected'} or {}">crit</option>
- <option value="err"
- py:attrs="cur_priority == 'err' and {'selected':'selected'} or {}">err</option>
- <option value="warning"
- py:attrs="cur_priority == 'warning' and {'selected':'selected'} or {}">warning</option>
- <option value="notice"
- py:attrs="cur_priority == 'notice' and {'selected':'selected'} or {}">notice</option>
- <option value="info"
- py:attrs="(not cur_priority or cur_priority == 'info') and {'selected':'selected'} or {}">info</option>
- <option value="debug"
- py:attrs="cur_priority == 'debug' and {'selected':'selected'} or {}">debug</option>
- </select>
- </div>
- </fieldset></div>
- </div>
</div>
<div class="row">
<input type="submit" class="button formsubmit blue" value="Apply"/>
10 years, 2 months