summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-11-27 19:24:19 +0100
committerJan Pokorný <jpokorny@redhat.com>2013-11-27 19:24:19 +0100
commitde87d9a24b113590ec3c71f7899e224cc8359448 (patch)
tree75595369b66daa25397ed1465d371169b6955907
parentc0d42a9bda562e5d6bb557f45f58c0bb51430edf (diff)
downloadcluster-overview-de87d9a24b113590ec3c71f7899e224cc8359448.zip
cluster-overview-de87d9a24b113590ec3c71f7899e224cc8359448.tar.gz
cluster-overview-de87d9a24b113590ec3c71f7899e224cc8359448.tar.xz
cluster-cman: add some more dlm bits (+ MapsTo edge to the lib)
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rwxr-xr-xcluster-cman.py33
-rw-r--r--lib_edges.py8
2 files changed, 37 insertions, 4 deletions
diff --git a/cluster-cman.py b/cluster-cman.py
index fc78589..9857556 100755
--- a/cluster-cman.py
+++ b/cluster-cman.py
@@ -335,6 +335,17 @@ graph = lambda\
,_nodes=\
[Program('node_b-io'
,label='I/O'
+ )
+ ,Program('node_b-dlm'
+ ,label='dlm'
+ )
+ ,Artefact('node_b-configfs_dlm'
+ ,label='configfs/dlm/'
+ )]
+ ,_edges=\
+ [Produce\
+ ('node_b-dlm'
+ ,'node_b-configfs_dlm'
)]
)]
,_nodes=\
@@ -343,6 +354,12 @@ graph = lambda\
,RhelCimserver('node_b-cimserver'
)
,RhelSaslauthd('node_b-saslauthd'
+ )
+ ,Artefact('node_b-sys_kernel_config_dlm'
+ ,label='/sys/kernel/\nconfig/dlm/'
+ )
+ ,Artefact('node_b-dev_dlm'
+ ,label='/dev/dlm*'
)]
,_edges=\
[Consume\
@@ -423,10 +440,6 @@ graph = lambda\
,lhead='cluster.node_b-resource-agents'
)
,Delegate\
- ('node_b-libdlm'
- ,'node_b-io'
- )
- ,Delegate\
('fs.sh'
,'node_b-io'
,ltail='cluster.node_b-resources-aux'
@@ -440,6 +453,18 @@ graph = lambda\
,'node_b-fence_others'
,constraint='false'
,lhead='cluster.node_b-fence-agents'
+ )
+ ,Delegate\
+ ('node_b-libdlm'
+ ,'node_b-dev_dlm'
+ )
+ ,Databus\
+ ('node_b-dlm'
+ ,'node_b-dev_dlm'
+ )
+ ,MapsTo\
+ ('node_b-configfs_dlm'
+ ,'node_b-sys_kernel_config_dlm'
)]
)
,SubgraphImportant('cluster.node_a'
diff --git a/lib_edges.py b/lib_edges.py
index e2f96f6..5a1dc20 100644
--- a/lib_edges.py
+++ b/lib_edges.py
@@ -85,6 +85,14 @@ class Delegate(LibEdge):
))
+class MapsTo(LibEdge):
+ defaults = dict((
+ COLOR.tomato,
+ FONTCOLOR.tomato,
+ STYLE.dotted,
+ ))
+
+
class FencedBy(LibEdge):
defaults = dict((
COLOR.red,