deploy(prod): PROD ScadaBridge DB data rows applied as wwpdsbrw (history 65, schema_version, mappings 1-10); DBA indexes owed (scadaproj#59)
Claude-Session: https://claude.ai/code/session_01GT67AD5mc2BnaaAfY3hqqQ
This commit is contained in:
@@ -44,7 +44,7 @@ Ask the owner for each of these explicitly; none is implied by the staging reque
|
||||
|
||||
| Needed for | What | Question | Where it goes |
|
||||
|---|---|---|---|
|
||||
| Phase 3, 5 | **Q1 partly answered 2026-11-20** (owner file `ScadaBridge/prod.txt`): `wondersqlpd.zmr.zimmer.com` (= `WONDER-SQL-VP03`, SQL 2022 CU16), DB `ScadaBridge`, SQL login `wwpdsbrw` (db_datareader + db_datawriter, **no DDL**). The DB was pre-built by a DBA at 2026-11-20 09:37: all 46 tables, PKs, 27 FKs, defaults, computed columns and the AuditLog partition scheme match QA, all tables empty, **but none of the 104 nonclustered/unique indexes, no `__EFMigrationsHistory` rows, no `schema_version` rows**. As is, the central refuses to start (65 pending migrations) and the zbauth migrator's `CREATE INDEX` is denied. **Needed: a DBA runs `sql\prod-complete-dba-schema.sql`** (sha `17e0e7d6bb67…`; idempotent; compiled OK on PROD under NOEXEC), not `scadabridge-schema-2e0ce81e.sql`. Still open: backup target, who runs DDL | Q1 | value files `ScadaBridge__Database__ConfigurationDb.txt` and `Secrets__SqlServer__ConnectionString.txt` (`User ID=wwpdsbrw`; password from `prod.txt`, move it to the Keychain) |
|
||||
| Phase 3, 5 | **Q1 partly answered 2026-11-20** (owner file `ScadaBridge/prod.txt`): `wondersqlpd.zmr.zimmer.com` (= `WONDER-SQL-VP03`, SQL 2022 CU16), DB `ScadaBridge`, SQL login `wwpdsbrw` (db_datareader + db_datawriter, **no DDL**). The DB was pre-built by a DBA at 2026-11-20 09:37: all 46 tables, PKs, 27 FKs, defaults, computed columns and the AuditLog partition scheme match QA, all tables empty, **but none of the 104 nonclustered/unique indexes, no `__EFMigrationsHistory` rows, no `schema_version` rows**. As is, the central refuses to start (65 pending migrations) and the zbauth migrator's `CREATE INDEX` is denied. **DML half DONE 2026-11-20 19:48Z** as `wwpdsbrw` (`sql\prod-app-dml-setup.sql`: 65 history rows, both `schema_version` v1, seed ids 1–5, plus `sb-role-mappings-prod.sql` → `_PROD` ids 6–10). **⏰ REMINDER (scadaproj#59): the DBA still owes the 104 indexes** → `sql\prod-complete-dba-schema.sql` (only its `CREATE INDEX` lines do anything now). **Do not start the central until index count = 104.** Still open: backup target | Q1 | value files `ScadaBridge__Database__ConfigurationDb.txt` and `Secrets__SqlServer__ConnectionString.txt` (`User ID=wwpdsbrw`; password from `prod.txt`, move it to the Keychain) |
|
||||
| Phase 4 | Prod Galaxy Repository SQL + alarm area | Q2 | `MxGateway__Galaxy__ConnectionString.txt`; replace `__Q2_ALARM_EXPRESSION__` in `mxgw.env` (`\\<GR node>\Galaxy!<area>`) |
|
||||
| Phase 6 | `SiteId` | Q8 | replace `__Q8_SITE_ID__` in both `appsettings.Site.json.prod-*` |
|
||||
| Phase 2–6 | Firewall: the §4 rows, incl. the Overview rows (5320; centrals → PAR 8084/5130) | Q5 | IT request; `preflight-prod.ps1` shows open / refused / timeout per path |
|
||||
@@ -67,7 +67,7 @@ the install scripts: `scadabridge.kek` on vp03 only, then carried to vp04 and bo
|
||||
`winrm ps <box> '& E:\psrem-stage\prod-common\preflight-prod.ps1 -SqlHost <Q1> -GrHost <Q2>'`. Gates: rootca + LDAPS
|
||||
ok, greenfield paths/ports free, paths `refused` (not `timeout`), staged hashes ok. Optional:
|
||||
`otel-54\Install-OtelCollector.ps1 -StageDir E:\psrem-stage\otel-54 -Tier PROD -NssmPath E:\psrem-stage\prod-common\nssm.exe`.
|
||||
3. **Phase 3 SQL** (DBA, DDL rights; `wwpdsbrw` has none): the DB already holds the tables, so run `sql\prod-complete-dba-schema.sql` (indexes + history + schema_version) → gate 65 migrations, 104 nonclustered indexes, LdapGroupMappings ids 1–5; re-run the QA-vs-PROD schema diff (2026-11-20 record) → 0 index differences;
|
||||
3. **Phase 3 SQL** — data rows DONE 2026-11-20; **gate: scadaproj#59 closed (DBA indexes) before Phase 5.** (DBA, DDL rights; `wwpdsbrw` has none): the DB already holds the tables, so run `sql\prod-complete-dba-schema.sql` (indexes + history + schema_version) → gate 65 migrations, 104 nonclustered indexes, LdapGroupMappings ids 1–5; re-run the QA-vs-PROD schema diff (2026-11-20 record) → 0 index differences;
|
||||
(`sql\zbsecrets-schema-v1.sql` is now redundant: zbsecrets already exists); `sql\sb-role-mappings-prod.sql` (DML, `wwpdsbrw` can run it) → 5 `_PROD` rows after ids 1–5; first backup.
|
||||
4. **Phase 4 mxgw on vp03, then vp04:** `mxgw-e74918cc\install-mxgw.ps1 -Mode dry -ValuesDir <dir>`, then `-Mode real`;
|
||||
`prod-common\seed-secret-prod.ps1 -Target MxAccessGw -ValueFile <file>`; `nssm start MxAccessGw`; §3A.5 checks; mint
|
||||
|
||||
Reference in New Issue
Block a user