From da832e0ad655da5b28dd55716bcc74e59c724de0 Mon Sep 17 00:00:00 2001 From: Alyson Deives Pereira Date: Thu, 26 Jan 2023 20:12:04 -0300 Subject: [PATCH] Remove disable dependence between ceph-manager and sysinv-conductor When the system is unstable, using a lot of CPU, it takes more time for the communication between the components to happen, such as the communication between mgr-restful-plugin and ceph-mgr. This communication failure may result on a failed audit by SM, which then restarts the mgr-restful-plugin. Change [1] resolved this issue by increasing the timeout and retries of mgr-restful-plugin in SM database. However, there is a disable dependence chain between mgr-restful, ceph-manager, and sysinv-conductor which results on sysinv-conductor being restarted if mgr-restful-plugin or ceph-manager is also disabled by SM. This can impact platform-integ-apps apply or any other action being executed by sysinv-conductor. The ceph manager -> sysinv-conductor dependence is not necessary anymore after the changes [2] and [3] were merged, thus this change removes this dependence. TEST PLAN: PASS: AIO-SX: bootstrap, unlock and apply platform-integ-apps PASS: Force ceph-manager to be restarted by SM, and verify that sysinv-conductor keeps running Related-Bug: 2000080 [1] https://review.opendev.org/c/starlingx/ha/+/868118 [2] https://review.opendev.org/c/starlingx/utilities/+/856320 [3] https://review.opendev.org/c/starlingx/utilities/+/860570 Signed-off-by: Alyson Deives Pereira Change-Id: I949ccebd509b8099870b3dfda252a60b6b423715 --- service-mgmt/sm-db/database/create_sm_db.sql | 1 - 1 file changed, 1 deletion(-) diff --git a/service-mgmt/sm-db/database/create_sm_db.sql b/service-mgmt/sm-db/database/create_sm_db.sql index d5d29c88..4e015896 100644 --- a/service-mgmt/sm-db/database/create_sm_db.sql +++ b/service-mgmt/sm-db/database/create_sm_db.sql @@ -238,7 +238,6 @@ INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','etcd-fs','not-applicable','dis INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','cinder-lvm','not-applicable','disable','iscsi','disabled'); INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','drbd-cinder','not-applicable','go-standby','cinder-lvm','disabled'); INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','drbd-cinder','not-applicable','disable','cinder-lvm','disabled'); -INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','ceph-manager','not-applicable','disable','sysinv-conductor','disabled'); INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','dcorch-engine','not-applicable','enable','rabbit','enabled-active'); INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','dcorch-engine','not-applicable','enable','postgres','enabled-active'); INSERT INTO "SERVICE_DEPENDENCY" VALUES('action','dcorch-engine','not-applicable','enable','management-ip','enabled-active');