From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga ./conga.spec.in.in luci/cluster/form-mac ...
Date: 6 Nov 2007 19:58:02 -0000 [thread overview]
Message-ID: <20071106195802.13939.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-11-06 19:58:01
Modified files:
. : conga.spec.in.in
luci/cluster : form-macros
luci/site/luci/Extensions: LuciClusterInfo.py
cluster_adapters.py
Log message:
fix 337041: Add option to not fail-back service
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/conga.spec.in.in.diff?cvsroot=cluster&r1=1.88&r2=1.89
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.215&r2=1.216
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/LuciClusterInfo.py.diff?cvsroot=cluster&r1=1.15&r2=1.16
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.273&r2=1.274
--- conga/conga.spec.in.in 2007/10/09 21:41:46 1.88
+++ conga/conga.spec.in.in 2007/11/06 19:58:00 1.89
@@ -298,6 +298,8 @@
- Fixed bz249619 (luci "Manage Systems and Clusters" display of clusters and storage systems is cascaded)
- Fixed bz315631 (conga doesn't handle the cluster restart operation properly)
- Fixed bz320411 (conga should use the node name in cluster.conf and not FQDN for fencing)
+- Fixed bz253727 (RFE: graphical view should be default in partiton tables view)
+- Fixed bz337041 (Add option to not fail-back service)
* Mon Aug 27 2007 Ryan McCabe <rmccabe@redhat.com> 0.10.0-6
- Fixed bz253783
--- conga/luci/cluster/form-macros 2007/09/27 21:42:15 1.215
+++ conga/luci/cluster/form-macros 2007/11/06 19:58:00 1.216
@@ -4867,6 +4867,13 @@
</strong>
</div>
+ <tal:block tal:define="nofailback python:fdom.get('nofailback')">
+ <div class="formordered"
+ tal:condition="python:nofailback is True">
+ <h4>Services running in this failover domain will not be failed back.
+ </div>
+ </tal:block>
+
<div class="fdomrestricted">
<h4>This Failover Domain is <span tal:replace="python: fdom['restricted'] == True and 'Restricted' or 'Unrestricted'"/></h4>
</div>
@@ -4930,7 +4937,7 @@
<table class="systemsTable" width="100%">
<thead class="systemsTable">
<tr class="systemsTable">
- <td><strong>Failover Domain Name</strong></td>
+ <td width="60%"><strong>Failover Domain Name</strong></td>
<td>
<input type="text" name="name"
tal:attributes="value fdom/name | nothing" />
@@ -4952,6 +4959,13 @@
</td>
</tr>
<tr class="systemsTable">
+ <td>Do not fail back services in this domain</td>
+ <td>
+ <input type="checkbox" name="nofailback"
+ tal:attributes="checked python: (fdom and 'nofailback' in fdom and fdom['nofailback'] == '1') and 'checked' or ''" />
+ </td>
+ </tr>
+ <tr class="systemsTable">
<td class="systemsTable" colspan="2">
<p></p>
<p class="reshdr">Failover domain membership</p>
--- conga/luci/site/luci/Extensions/LuciClusterInfo.py 2007/09/21 16:06:52 1.15
+++ conga/luci/site/luci/Extensions/LuciClusterInfo.py 2007/11/06 19:58:00 1.16
@@ -453,6 +453,13 @@
else:
fhash['prioritized'] = '0'
+
+ nofailback = fdom.getAttribute('nofailback')
+ if nofailback is not None and (nofailback == 'true' or nofailback == '1'):
+ fhash['nofailback'] = '1'
+ else:
+ fhash['nofailback'] = '0'
+
restricted_attr = fdom.getAttribute('restricted')
if restricted_attr is not None and (restricted_attr == 'true' or restricted_attr == '1'):
fhash['restricted'] = '1'
@@ -504,6 +511,12 @@
else:
fdom_map['restricted'] = False
+ nofailback = fdom.getAttribute('nofailback')
+ if nofailback is not None and (nofailback == 'true' or nofailback == '1'):
+ fdom_map['nofailback'] = True
+ else:
+ fdom_map['nofailback'] = False
+
nodelist = list()
for node in fdom.getChildren():
nodesmap = {}
--- conga/luci/site/luci/Extensions/cluster_adapters.py 2007/10/09 21:31:05 1.273
+++ conga/luci/site/luci/Extensions/cluster_adapters.py 2007/11/06 19:58:00 1.274
@@ -1931,6 +1931,12 @@
except:
restricted = False
+ nofailback = False
+ try:
+ nofailback = request.form.has_key('nofailback')
+ except:
+ nofailback = False
+
oldname = fvar['oldname']
if oldname is None or oldname != name:
@@ -1964,6 +1970,11 @@
else:
fdom.addAttribute('restricted', '0')
+ if nofailback:
+ fdom.addAttribute('nofailback', '1')
+ else:
+ fdom.addAttribute('nofailback', '0')
+
for i in model.getNodeNames():
if request.form.has_key(i):
fdn = FailoverDomainNode()
next reply other threads:[~2007-11-06 19:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-06 19:58 rmccabe [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-01-26 17:01 [Cluster-devel] conga ./conga.spec.in.in luci/cluster/form-mac rmccabe
2007-09-21 3:24 rmccabe
2007-08-27 18:38 rmccabe
2007-08-23 18:47 rmccabe
2006-12-12 13:26 kupcevic
2006-12-08 20:47 rmccabe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071106195802.13939.qmail@sourceware.org \
--to=rmccabe@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).