From b4fb57c610e5d0768735845bc7fdb77aebd2138d Mon Sep 17 00:00:00 2001 From: Erickson Silva de Oliveira Date: Mon, 19 Dec 2022 17:44:59 +0000 Subject: [PATCH] Increase retries and timeouts on "audit-enabled" of mgr-restful-plugin in SM database When the system is unstable, using a lot of CPU, it takes more time for the communication between the components to happen. So it's necessary to increase the maximum of retries and timeouts in the "audit-enable" of the mgr-restful-plugin to prevent errors from happening. Test Plan: PASS: mgr-restful-plugin restarted by SM (AIO-SX) Closes-bug: 2000080 Signed-off-by: Erickson Silva de Oliveira Change-Id: I0f8462fef20196a3bb913fa7d374a86a2c6565f1 --- service-mgmt/sm-db/database/create_sm_db.sql | 2 +- 1 file changed, 1 insertion(+), 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 809176da..fb444be3 100644 --- a/service-mgmt/sm-db/database/create_sm_db.sql +++ b/service-mgmt/sm-db/database/create_sm_db.sql @@ -461,7 +461,7 @@ INSERT INTO "SERVICE_ACTIONS" VALUES('haproxy','audit-enabled','lsb-script','',' INSERT INTO "SERVICE_ACTIONS" VALUES('haproxy','audit-disabled','lsb-script','','haproxy','status','',0,0,0,15,40); INSERT INTO "SERVICE_ACTIONS" VALUES('mgr-restful-plugin','enable','lsb-script','','mgr-restful-plugin','start','',2,2,2,15,''); INSERT INTO "SERVICE_ACTIONS" VALUES('mgr-restful-plugin','disable','lsb-script','','mgr-restful-plugin','stop','',1,1,1,15,''); -INSERT INTO "SERVICE_ACTIONS" VALUES('mgr-restful-plugin','audit-enabled','lsb-script','','mgr-restful-plugin','status','',2,2,2,15,40); +INSERT INTO "SERVICE_ACTIONS" VALUES('mgr-restful-plugin','audit-enabled','lsb-script','','mgr-restful-plugin','status','',3,3,3,60,90); INSERT INTO "SERVICE_ACTIONS" VALUES('mgr-restful-plugin','audit-disabled','lsb-script','','mgr-restful-plugin','status','',0,0,0,15,40); INSERT INTO "SERVICE_ACTIONS" VALUES('ceph-manager','enable','lsb-script','','ceph-manager','start','',2,2,2,15,''); INSERT INTO "SERVICE_ACTIONS" VALUES('ceph-manager','disable','lsb-script','','ceph-manager','stop','',1,1,1,15,'');