Add dependency of drbd-etcd to etcd-fs on action disable

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 <italo.gomesvieira@windriver.com>
This commit is contained in:
Ítalo Vieira
2025-09-15 14:56:14 -03:00
parent e502c601fc
commit 8e1302cc83

View File

@@ -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');