diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2009-09-08 15:51:19 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2009-09-08 15:51:19 +0000 |
commit | 07d4ddc84db47d4ff7aa80e15f854e078a879d1e (patch) | |
tree | 519b84d032f4b5c06645de71721e72b9cccb6da2 /src/lib | |
parent | b1e8d16a2e4bda525f2004e0976819a7bb371e26 (diff) | |
download | sos-07d4ddc84db47d4ff7aa80e15f854e078a879d1e.tar.gz |
cluster.py check zeroed fence id
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@630 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/sos/plugins/cluster.py | 9 |
1 files changed, 9 insertions, 0 deletions
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 |