@@ -3156,7 +3156,10 @@ CREATE TABLE IF NOT EXISTS omicron.public.support_bundle (
31563156 -- and later managing its storage.
31573157 assigned_nexus UUID,
31583158
3159- user_comment TEXT
3159+ user_comment TEXT ,
3160+
3161+ -- If this bundle was requested by an FM case, the case UUID.
3162+ fm_case_id UUID
31603163
31613164);
31623165
@@ -7440,6 +7443,70 @@ CREATE INDEX IF NOT EXISTS
74407443 lookup_fm_alert_requests_for_case
74417444ON omicron .public .fm_alert_request (sitrep_id, case_id);
74427445
7446+ CREATE TABLE IF NOT EXISTS omicron .public .fm_support_bundle_request (
7447+ -- Requested support bundle UUID.
7448+ id UUID NOT NULL ,
7449+ -- UUID of the current sitrep that this request record is part of.
7450+ --
7451+ -- Note that this is *not* the sitrep in which the bundle was requested.
7452+ sitrep_id UUID NOT NULL ,
7453+ -- UUID of the original sitrep in which the bundle was first requested.
7454+ requested_sitrep_id UUID NOT NULL ,
7455+ -- UUID of the case to which this request belongs.
7456+ case_id UUID NOT NULL ,
7457+
7458+ PRIMARY KEY (sitrep_id, id)
7459+ );
7460+
7461+ CREATE INDEX IF NOT EXISTS
7462+ lookup_fm_support_bundle_requests_for_case
7463+ ON omicron .public .fm_support_bundle_request (sitrep_id, case_id);
7464+
7465+ -- Per-variant data selection tables for fm_support_bundle_request.
7466+ -- Row existence = "include this category in the bundle."
7467+ -- No rows in any variant table = "collect everything."
7468+
7469+ CREATE TABLE IF NOT EXISTS omicron .public .fm_sb_req_reconfigurator (
7470+ sitrep_id UUID NOT NULL ,
7471+ request_id UUID NOT NULL ,
7472+
7473+ PRIMARY KEY (sitrep_id, request_id)
7474+ );
7475+
7476+ CREATE TABLE IF NOT EXISTS omicron .public .fm_sb_req_sled_cubby_info (
7477+ sitrep_id UUID NOT NULL ,
7478+ request_id UUID NOT NULL ,
7479+
7480+ PRIMARY KEY (sitrep_id, request_id)
7481+ );
7482+
7483+ CREATE TABLE IF NOT EXISTS omicron .public .fm_sb_req_sp_dumps (
7484+ sitrep_id UUID NOT NULL ,
7485+ request_id UUID NOT NULL ,
7486+
7487+ PRIMARY KEY (sitrep_id, request_id)
7488+ );
7489+
7490+ CREATE TABLE IF NOT EXISTS omicron .public .fm_sb_req_host_info (
7491+ sitrep_id UUID NOT NULL ,
7492+ request_id UUID NOT NULL ,
7493+ all_sleds BOOL NOT NULL ,
7494+ sled_ids UUID[] NOT NULL DEFAULT ARRAY[],
7495+
7496+ PRIMARY KEY (sitrep_id, request_id)
7497+ );
7498+
7499+ CREATE TABLE IF NOT EXISTS omicron .public .fm_sb_req_ereports (
7500+ sitrep_id UUID NOT NULL ,
7501+ request_id UUID NOT NULL ,
7502+ start_time TIMESTAMPTZ ,
7503+ end_time TIMESTAMPTZ ,
7504+ only_serials TEXT [] NOT NULL DEFAULT ARRAY[],
7505+ only_classes TEXT [] NOT NULL DEFAULT ARRAY[],
7506+
7507+ PRIMARY KEY (sitrep_id, request_id)
7508+ );
7509+
74437510/*
74447511 * List of datasets available to be sliced up and passed to VMMs for encrypted
74457512 * instance local storage.
@@ -8270,7 +8337,7 @@ INSERT INTO omicron.public.db_metadata (
82708337 version,
82718338 target_version
82728339) VALUES
8273- (TRUE, NOW(), NOW(), ' 240 .0.0' , NULL )
8340+ (TRUE, NOW(), NOW(), ' 241 .0.0' , NULL )
82748341ON CONFLICT DO NOTHING;
82758342
82768343COMMIT ;
0 commit comments