0440703030
- PE: Demote from Master does not clear previous errors - crmd: Prevent secondary DC fencing resulting from CIB updates that are lost due to elections - crmd: Log duplicate DC detection as a WARNING not ERROR - crmd: Bug lf#2632 - Correctly handle nodes that return faster than stonith - Core: Treat GNUTLS_E_UNEXPECTED_PACKET_LENGTH as normal termination of a TLS session - cib: Call gnutls_bye() and shutdown() when disconnecting from remote TLS connections - cib: Remove disconnected remote connections from mainloop - cib: Attempt a graceful sign-off for remote TLS connections - Core: Ensure there is sufficient space for EOS when building short-form option strings (prevents segfault) - Core: Fix variable expansion in pkg-config files - PE: Resolve memory leak reported by valgrind - PE: Fix memory leak for re-allocated resources reported by valgrind - PE: Improve the merging with template's operations - crmd: Allow nodes to fence themselves if they're the last one standing (lf#2584) - stonith: Add an API call for listing installed agents - stonith: Allow the fencing history to be queried - stonith: Ensure completed operations are recorded as such in the history - stonith: Support --quiet to display just the seconds since epoch at which a node was last shot - stonith: Serialize actions for a given device - stonith: Add missing entries to stonith_error2string() (missing OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/pacemaker?expand=0&rev=18
48 lines
1.8 KiB
Diff
48 lines
1.8 KiB
Diff
# HG changeset patch
|
|
# User Dejan Muhamedagic <dejan@hello-penguin.com>
|
|
# Date 1314196090 -7200
|
|
# Node ID 709ef91cfada2822aca53dcef085ddb6952393c5
|
|
# Parent 3a81b7eae66672dd9873fe6b53ee3c0da6fc87d7
|
|
Low: Shell: update pe not found message
|
|
|
|
diff --git a/shell/modules/ui.py.in b/shell/modules/ui.py.in
|
|
--- a/shell/modules/ui.py.in
|
|
+++ b/shell/modules/ui.py.in
|
|
@@ -1822,7 +1822,6 @@ Examine Pacemaker's history: node and re
|
|
crm_report.refresh_source()
|
|
f = self._get_pe_byidx(-1)
|
|
if not f:
|
|
- common_err("no transitions found")
|
|
return False
|
|
crm_report.show_transition_log(f)
|
|
def resource(self,cmd,*args):
|
|
@@ -1878,7 +1877,7 @@ Examine Pacemaker's history: node and re
|
|
def _get_pe_byidx(self, idx):
|
|
l = crm_report.pelist()
|
|
if len(l) < abs(idx):
|
|
- common_err("pe input file not found")
|
|
+ common_err("pe input file for index %d not found" % (idx+1))
|
|
return None
|
|
return l[idx]
|
|
def _get_pe_bynum(self, n):
|
|
@@ -1913,7 +1912,8 @@ Examine Pacemaker's history: node and re
|
|
f = self._get_pe_bynum(n)
|
|
argl.pop(0)
|
|
else:
|
|
- f = self._get_pe_byidx(-1)
|
|
+ common_err("<%s> doesn't sound like a PE input" % argl[0])
|
|
+ return False
|
|
else:
|
|
f = self._get_pe_byidx(-1)
|
|
if not f:
|
|
@@ -1922,8 +1922,7 @@ Examine Pacemaker's history: node and re
|
|
if subcmd == "show":
|
|
self.pe_file = f # self.pe_file needed by self.ptest
|
|
common_info("running ptest with %s" % f)
|
|
- rc = ptestlike(self.ptest,'vv',"%s %s" % \
|
|
- (cmd, subcmd), *argl)
|
|
+ rc = ptestlike(self.ptest,'vv', cmd, *argl)
|
|
else:
|
|
f = crm_report.pe2dot(f)
|
|
if not f:
|