From 07d4ddc84db47d4ff7aa80e15f854e078a879d1e Mon Sep 17 00:00:00 2001 From: astokes Date: Tue, 8 Sep 2009 15:51:19 +0000 Subject: cluster.py check zeroed fence id git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@630 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- src/lib/sos/plugins/cluster.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/sos/plugins/cluster.py b/src/lib/sos/plugins/cluster.py index f291c077..adeec620 100644 --- a/src/lib/sos/plugins/cluster.py +++ b/src/lib/sos/plugins/cluster.py @@ -263,3 +263,12 @@ class cluster(sos.plugintools.PluginBase): if re.match('^\W*%s = ' % field, line): return line.split("=")[1].strip() return False + + # Diagnostic testing functions + def test_fence_id(self): + # resolves rhbz 499468 and 499472 + for line in commands.getoutput("/sbin/gfs_tool -v").split("\n")[1:]: + for a in line.split(): + if re.match('00000000', a): + self.addDiagnose('Invalid fence id: %s' % (line,)) + return -- cgit