Claude-Session: https://claude.ai/code/session_01GT67AD5mc2BnaaAfY3hqqQ
5.4 KiB
2026-11-22: PROD CVD reactor content (templates, BTDB, inbound API methods, Z28061–Z28069 on site-par, API keys)
Owner requests (2026-11-22): first "start the plan but wait to deploy to the par sites" (configuration only),
then "complete the plan. copy the mes and delmia api keys to a text file locally so i can send to the teams".
Plan: scadaproj docs/plans/2026-11-22-prod-cvd-content-copy.md §4 steps 0–9. Step 10 (cutover of MES/Delmia
callers, QA instances) not done: that is for the owner and the teams.
Build: ScadaBridge 2e0ce81e (centrals wonder-app-vp03 active / vp04 standby; site site-par id 1 on par-vp03/04).
Everything was driven from the Mac through the repo CLI over HTTP Basic (--password-file) against
http://wonder-app-vp03.zmr.zimmer.com:8085 as NAM\dohertj2, plus read-only SQL (PROD BT as wonderapp) and the
read-only mxgw client (galaxy-browse; smoke --item reads without --value). No WinRM, no firewall changes, no secret on
argv or in this record. QA was read only. site-app (id 2) and data connection 2 were not touched.
Results
| Step | Result |
|---|---|
| 0 BT re-check | PROD BT (WONDER-SQL-VP03/BT) section 1: 9 machines + group CVD_Reactors (id 20) "exists", 0 conflicts. No insert |
| 1 Mapping | Re-browsed CVDAisle_1 (6762): 108 objects, 0 differences from the 2026-11-22 snapshot; all 9×244 binding refs and alarm prefixes belong to the right machine |
| 2 Templates | Bundle cvdreactor-templates.scadabundle (sha256 6dcdc453…235e3): preview 11 adds / 0 blockers (20 advisory scanner references); import --on-conflict skip → 11 added (import 98b04de4-96fd-4966-8dff-127d55fdc4c8). Ids 1–11, CvdReactor = 5. template validate --id 5 reports 3 alarm-attribute errors (Left/RightReactorSide.MTA_Lockout, RightReactorSide.MantleTemp "not in flattened configuration"); QA template 1 reports the same 3, and the deploy gate accepted all 9 instances |
| 3 BTDB | db-connection id 1 BTDB (wondersqlpd, wonderapp, TrustServerCertificate=True;MultiSubnetFailover=True, string via --connection-string-file). deploy artifacts --site-id 1 → success (deployment e48d8cfa…); site-par artifacts 16:37:47Z sha256:f46e0c04…; site-app unchanged (12:43:14Z) |
| 4 API methods | 7 created from qa-export/api-methods.json, identical to QA: 1 MesMoveIn (46 s), 2 MesMoveOut, 3 DelmiaRecipeDownload, 4 SimpleAlarmStatusRequest, 5 MesSampleData, 6 MesIsMoveInReady, 7 MesIsMoveOutReady. IpsenMESMoveIn not created |
| 5 Area | CVDAisle_1 id 1 on site-par |
| 6–7 Instances | Z28063=1, Z28061=2, Z28062=3, Z28064=4, Z28065=5, Z28066=6, Z28067=7, Z28068=8, Z28069=9; each 244 bindings on connection 1 + 7 native alarm source overrides (equal to the generated files). deploy instance (which also enables) → 9 × Success, all Enabled. Snapshot ~45 s after deploy: 244/244 Good on every instance (root 16, Left/RightReactorSide 60, LeakTest 23 each, Left/RightMESReceiver 26, DelmiaReceiver 10). Z28063 spot-checked against the gateway: MachineCode '3', Left_003.CycleRunning False, Left_003.LeakTest.LeakTestActive False, MoveInReadyFlag L False / R True: all equal. 10 alarm states (3 computed inactive, 7 native placeholders: the mxgw alarm area is still off) |
| 8 API keys | MES_Key (keyId 4dd9f6f6…) = DelmiaRecipeDownload, MesIsMoveInReady, MesIsMoveOutReady, MesMoveIn, MesMoveOut, MesSampleData, SimpleAlarmStatusRequest (QA's set minus IpsenMESMoveIn); delmia-notifier (keyId b6dd27c5…) = DelmiaRecipeDownload. Tokens in the Mac Keychain zb-prod/sb-inbound-MES_Key, zb-prod/sb-inbound-delmia-notifier and in two 0600 handover files on the owner's Desktop. A first create pair (1ace3a97…, 6ea4ae48…) was deleted unused because its tokens were not captured |
| 9 Smoke | MesIsMoveInReady {} → 400 VALIDATION_FAILED. 103564_A → 200 false, _B → 200 true (= snapshot). <SAPID>_A for each of the other 8 → 200, each equal to that instance's Left MoveInReadyFlag. SimpleAlarmStatusRequest 103564 → 200 {"WasSuccessful":true,"Alarms":[]}. DelmiaRecipeDownload {} with either key → 200 {"Result":false,"ResultText":"MachineCode is required"} (no required fields; returns before routing). delmia-notifier → MesIsMoveInReady → 403 NOT_APPROVED; no key → 401. Standby vp04 also serves /api (400 probe, and a real read-only MesIsMoveInReady 200) |
Findings
MesIsMoveInReadywith a SAPID with no leading digits ("_A") returns 500 "Method return value did not match its return definition" instead of a cleanWasSuccessful=false(8 such calls were sent by a shell-quoting mistake; the method is read-only).- DelmiaRecipeDownload routes
Route.To(MachineCode)with the value as sent: the caller must send the plain machine code (Z28063), notZ28063A. - QA template
RightMESReceiver(QA id 6) lacks 14 inherited attribute rows and the 2 inherited scripts that PROD id 9 and bothLeftMESReceivers carry; the effective configuration is the same. - Native alarm mirroring stays empty until the mxgw alarm area is set (plan C4).
Run log (scratch, not kept): run/run-log.md in the session scratchpad.
Rollback (before cutover)
instance disable/delete ×9, api-method delete ×7, security api-key delete ×2, template delete (derived before
bases), db-connection delete --id 1, deploy artifacts --site-id 1. QA keeps serving MES throughout.