From: jparsons@sourceware.org <jparsons@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/site/luci/Extensions ModelBuilder.py
Date: 10 Jan 2007 19:26:56 -0000 [thread overview]
Message-ID: <20070110192656.3528.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: jparsons at sourceware.org 2007-01-10 19:26:56
Modified files:
luci/site/luci/Extensions: ModelBuilder.py
Log message:
part of bz212021 for two-node case
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ModelBuilder.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.8.2.3&r2=1.8.2.4
--- conga/luci/site/luci/Extensions/ModelBuilder.py 2006/12/22 17:50:16 1.8.2.3
+++ conga/luci/site/luci/Extensions/ModelBuilder.py 2007/01/10 19:26:56 1.8.2.4
@@ -965,8 +965,14 @@
return True
def check_two_node(self):
- if self.getLockType() == DLM_TYPE:
+ if self.getLockType() == DLM_TYPE and self.quorumd_ptr == None:
clusternodes_count = len(self.clusternodes_ptr.getChildren())
+ #Make certain that there is a cman tag in the file
+ #If missing, it will not hurt to add it here
+ if self.CMAN_ptr == None:
+ cman = Cman()
+ self.cluster_ptr.addChild(cman)
+ self.CMAN_ptr = cman
if clusternodes_count == 2:
self.CMAN_ptr.addAttribute('two_node', '1')
self.CMAN_ptr.addAttribute('expected_votes', '1')
next reply other threads:[~2007-01-10 19:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-10 19:26 jparsons [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-01-15 21:29 [Cluster-devel] conga/luci/site/luci/Extensions ModelBuilder.py jparsons
2007-01-15 21:29 jparsons
2007-01-10 19:11 jparsons
2006-08-09 21:49 jparsons
2006-07-20 21:36 jparsons
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=20070110192656.3528.qmail@sourceware.org \
--to=jparsons@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).