ceph-mon failed on active controller after a failed swact

The reason why swact is failing is because ceph-radosgw is sometimes
enabled before ceph-mon has started.
Since ceph-mon is not running, ceph-radosgw will be disabled.
The solution implemented is to add dependencies so that
ceph-radosgw starts after ceph-mon and stops before ceph-mon.

Closes-Bug: 1818095
Change-Id: I4cd600422ff3cb2edc1e9f21e9b827e99731af37
Signed-off-by: Elena Taivan <elena.taivan@windriver.com>
This commit is contained in:
Elena Taivan 2019-03-12 08:39:08 +00:00
parent 588b4998bd
commit 6c52d2b276
1 changed files with 2 additions and 0 deletions

View File

@ -1051,6 +1051,8 @@ INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','cephmon-fs','not-applicable','
INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','ceph-mon','not-applicable','enable','cephmon-fs','enabled-active');
INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','drbd-cephmon','not-applicable','go-standby','cephmon-fs','disabled');
INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','cephmon-fs','not-applicable','disable','ceph-mon','disabled');
INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','ceph-radosgw','not-applicable','enable','ceph-mon','enabled-active');
INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','ceph-mon','not-applicable','disable','ceph-radosgw','disabled');
INSERT INTO "SERVICE_ACTIONS" VALUES('cephmon-fs','enable','ocf-script','heartbeat','Filesystem','start','',2,2,2,60,'');
INSERT INTO "SERVICE_ACTIONS" VALUES('cephmon-fs','disable','ocf-script','heartbeat','Filesystem','stop','',1,1,1,180,'');
INSERT INTO "SERVICE_ACTIONS" VALUES('cephmon-fs','audit-enabled','ocf-script','heartbeat','Filesystem','monitor','',2,2,2,60,40);