From 846fe3a73b3fb70daa099d76ac05cd8872f08b84 Mon Sep 17 00:00:00 2001 From: Travis Brown Date: Thu, 12 Mar 2026 16:46:25 +0000 Subject: [PATCH 1/3] [Nexthop] Add empty FSDB config This default, empty FSDB configuration is required to support FSDB starting as a service. --- .../templates/centos-09.0/root_files/etc/coop/fsdb/current | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 fboss-image/image_builder/templates/centos-09.0/root_files/etc/coop/fsdb/current diff --git a/fboss-image/image_builder/templates/centos-09.0/root_files/etc/coop/fsdb/current b/fboss-image/image_builder/templates/centos-09.0/root_files/etc/coop/fsdb/current new file mode 100644 index 0000000000000..06a096ae4351f --- /dev/null +++ b/fboss-image/image_builder/templates/centos-09.0/root_files/etc/coop/fsdb/current @@ -0,0 +1,6 @@ +{ + "defaultCommandLineArgs": {}, + "trustedSubnets": [], + "publishers": {}, + "subscribers": {} +} From 0df427a8d3fa720c3b2d26c66dd8bc9b42626a5d Mon Sep 17 00:00:00 2001 From: Travis Brown Date: Mon, 30 Mar 2026 16:20:58 +0000 Subject: [PATCH 2/3] Copy fsdb config from link_test_configs The empty config prevents FSDB from crashing on startup, but isn't terribly useful. Copy the recent link_test_config to be the Distro Image bootstrap FSDB config as it has more useful defaults. --- .../root_files/etc/coop/fsdb/current | 67 ++++++++++++++++++- 1 file changed, 64 insertions(+), 3 deletions(-) diff --git a/fboss-image/image_builder/templates/centos-09.0/root_files/etc/coop/fsdb/current b/fboss-image/image_builder/templates/centos-09.0/root_files/etc/coop/fsdb/current index 06a096ae4351f..04f6516bac3b8 100644 --- a/fboss-image/image_builder/templates/centos-09.0/root_files/etc/coop/fsdb/current +++ b/fboss-image/image_builder/templates/centos-09.0/root_files/etc/coop/fsdb/current @@ -1,6 +1,67 @@ { - "defaultCommandLineArgs": {}, + "defaultCommandLineArgs": { + "serveHeartbeats": "true", + "statsSubscriptionHeartbeat_s": "5", + "useIdPathsForSubs": "true" + }, "trustedSubnets": [], - "publishers": {}, - "subscribers": {} + "publishers": { + "agent": { + "paths": [ + { + "path": { "raw": ["agent"] }, + "isExpected": true, + "isStats": false + }, + { + "path": { "raw": ["agent"] }, + "isExpected": true, + "isStats": true + } + ], + "skipThriftStreamLivenessCheck": false + }, + "build_info": { + "paths": [ + { + "path": { "raw": ["build_info"] }, + "isExpected": false, + "isStats": false + } + ], + "skipThriftStreamLivenessCheck": true + }, + "qsfp_service": { + "paths": [ + { + "path": { "raw": ["qsfp_service"] }, + "isExpected": true, + "isStats": false + }, + { + "path": { "raw": ["qsfp_service"] }, + "isExpected": true, + "isStats": true + } + ], + "skipThriftStreamLivenessCheck": false + } + }, + "subscribers": { + ":agent": { + "trackReconnect": true, + "allowExtendedSubscriptions": true, + "numExpectedSubscriptions": 0 + }, + "fboss2": { + "trackReconnect": false, + "allowExtendedSubscriptions": true, + "numExpectedSubscriptions": 1 + }, + "switch_agent": { + "trackReconnect": true, + "allowExtendedSubscriptions": false, + "numExpectedSubscriptions": 1 + } + } } From 7541e9f66e41e3a232667e7de4521c4898537f05 Mon Sep 17 00:00:00 2001 From: Travis Brown Date: Mon, 30 Mar 2026 18:38:25 +0000 Subject: [PATCH 3/3] Add sensor_service --- .../centos-09.0/root_files/etc/coop/fsdb/current | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/fboss-image/image_builder/templates/centos-09.0/root_files/etc/coop/fsdb/current b/fboss-image/image_builder/templates/centos-09.0/root_files/etc/coop/fsdb/current index 04f6516bac3b8..8ff7c8c01f10c 100644 --- a/fboss-image/image_builder/templates/centos-09.0/root_files/etc/coop/fsdb/current +++ b/fboss-image/image_builder/templates/centos-09.0/root_files/etc/coop/fsdb/current @@ -45,6 +45,20 @@ } ], "skipThriftStreamLivenessCheck": false + }, + "sensor_service": { + "paths": [ + { + "isExpected": false, + "isStats": true, + "path": { + "raw": [ + "sensor_service" + ] + } + } + ], + "skipThriftStreamLivenessCheck": false } }, "subscribers": {