From 6c52d2b27651badf201e09e6e9c3338f038d371a Mon Sep 17 00:00:00 2001 From: Elena Taivan Date: Tue, 12 Mar 2019 08:39:08 +0000 Subject: [PATCH] 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 --- service-mgmt/sm-db-1.0.0/database/create_sm_db.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service-mgmt/sm-db-1.0.0/database/create_sm_db.sql b/service-mgmt/sm-db-1.0.0/database/create_sm_db.sql index 54b1a8c4..a3e2b284 100644 --- a/service-mgmt/sm-db-1.0.0/database/create_sm_db.sql +++ b/service-mgmt/sm-db-1.0.0/database/create_sm_db.sql @@ -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);