summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-12-19 20:22:25 +0100
committerJan Pokorný <jpokorny@redhat.com>2013-12-19 20:22:25 +0100
commitc3564708ce88b0d73494231bb59e36826b71c4c7 (patch)
treef02e9a4ee5b4a4e67c75a7bd10d98cf3629d0984
parent643ff74197ad633f42dc9e7ea9216c173b9e550d (diff)
downloadcluster-overview-c3564708ce88b0d73494231bb59e36826b71c4c7.zip
cluster-overview-c3564708ce88b0d73494231bb59e36826b71c4c7.tar.gz
cluster-overview-c3564708ce88b0d73494231bb59e36826b71c4c7.tar.xz
cluster-cman: add ricci-worker
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rwxr-xr-xcluster-cman.py11
-rw-r--r--lib_cman.py24
2 files changed, 33 insertions, 2 deletions
diff --git a/cluster-cman.py b/cluster-cman.py
index eee48ee..f289dd1 100755
--- a/cluster-cman.py
+++ b/cluster-cman.py
@@ -133,6 +133,8 @@ graph = lambda\
)
,CmanRicci('node_b-ricci'
)
+ ,CmanRicciWorker('node_b-ricci-worker'
+ )
,CmanCmanTool('node_b-cman_tool'
)
,CmanFenceTool('node_b-fence_tool'
@@ -416,12 +418,17 @@ graph = lambda\
('node_b-ricci'
,'node_b-saslauthd'
)
- ,DelegateOddjobExec\
+ ,Delegate\
('node_b-ricci'
+ ,'node_b-ricci-worker'
+ ,constraint=False
+ )
+ ,DelegateOddjobExec\
+ ('node_b-ricci-worker'
,'node_b-modcluster'
)
,DelegateOddjobExec\
- ('node_b-ricci'
+ ('node_b-ricci-worker'
,'node_b-ricci-modules'
)
,Delegate\
diff --git a/lib_cman.py b/lib_cman.py
index 4f2ff6d..c1245fc 100644
--- a/lib_cman.py
+++ b/lib_cman.py
@@ -195,6 +195,30 @@ class CmanRicci(Daemon):
)
+class CmanRicciWorker(Program):
+ defaults = dict((
+ LABEL('ricci-worker'),
+ ))
+ summary = \
+ "ricci-worker is a ricci's slave to actually handle the task batches"
+ #web = 'https://sourceware.org/cluster/conga/'
+ location = '/usr/libexec/ricci/ricci-worker'
+ repo = dict(
+ git='git://git.fedorahosted.org/git/conga.git',
+ web='https://git.fedorahosted.org/cgit/conga.git',
+ )
+ ids = dict(
+ srpm='ricci',
+ rpm='ricci',
+ rhbz='ricci',
+ )
+ secprops = dict(
+ euser='ricci',
+ egroup='root',
+ #label='unconfined_u:system_r:ricci_t:s0',
+ )
+
+
class CmanCcs(Executable, CmanRicciRPCSrc):
defaults = dict((
LABEL('ccs'),