From 8e1302cc83f72d71ca1998e31bf0d3aed6a099ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8Dtalo=20Vieira?= Date: Mon, 15 Sep 2025 14:56:14 -0300 Subject: [PATCH] Add dependency of drbd-etcd to etcd-fs on action disable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before disabling drbd-etcd, the service etcd-fs must be disabled, so that the device drbd7 is unmounted and the service etcd (already a disable dependency for etcd-fs) stop using it, otherwise the following error starts happening continuously after SM attempt to start drbd-etcd again: drbd-etcd/0 drbd7: State change failed: Device is held open by someone To ensure etcd-fs is disabled before drbd-etcd, an SM dependency on the disable action of drbd-etcd to etcd-fs is added. Test-Plan: PASS: build-pkgs and build-image PASS: Install iso and bootstrap PASS: Restart drbd-etcd and observe etcd-fs and etcd be disabled before drbd-etcd PASS: Force drbd-etcd to fail and observe it being recovered Closes-Bug: 2123875 Change-Id: I7fb5ceb0921a64de6a2f8f39b0096b92575f59ae Signed-off-by: Ítalo Vieira --- service-mgmt/sm-db/database/create_sm_db.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/service-mgmt/sm-db/database/create_sm_db.sql b/service-mgmt/sm-db/database/create_sm_db.sql index 9bbde0dc..0645fa51 100644 --- a/service-mgmt/sm-db/database/create_sm_db.sql +++ b/service-mgmt/sm-db/database/create_sm_db.sql @@ -367,6 +367,7 @@ INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','drbd-etcd','not-applicable','g INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','drbd-etcd','not-applicable','go-active','management-ipv6','enabled-active'); INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','etcd-fs','not-applicable','enable','drbd-etcd','enabled-active'); INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','drbd-etcd','not-applicable','go-standby','etcd-fs','disabled'); +INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','drbd-etcd','not-applicable','disable','etcd-fs','disabled'); INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','barbican-api','not-applicable','enable','postgres','enabled-active'); INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','barbican-api','not-applicable','enable','rabbit','enabled-active'); INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','barbican-api','not-applicable','enable','dnsmasq','enabled-active');