Files
ScadaBridge/docs/plans/2026-11-12-leader-auto-down-env2-drill/seeded-seed-sites.out
T
Joseph Doherty 644f564c30 docs(drill): env2 seeded data-path soak - site-x and central failovers with live data and S&F, no buffered loss (#116)
Unreplicated, the site-x survivor came up empty (by design: no LocalDb peer);
replicated, kill and freeze each lost only the 26-30 s takeover window, every
buffered message was delivered once, and the 4 duplicate ticks came from the
frozen victim's 6 s zombie window. Central kill: 0 gap.

Claude-Session: https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
2026-11-12 23:56:18 -05:00

44 lines
3.8 KiB
Plaintext

=== Seeding ScadaBridge Env2 Sites ===
Creating Site-X (Env2 Site X)...
{"id":3,"name":"Env2 Site X","siteIdentifier":"site-x","description":"Env2 test site - two-node cluster","nodeAAddress":"akka.tcp://scadabridge@scadabridge-env2-site-x-a:8082","nodeBAddress":"akka.tcp://scadabridge@scadabridge-env2-site-x-b:8082","grpcNodeAAddress":"http://scadabridge-env2-site-x-a:8083","grpcNodeBAddress":"http://scadabridge-env2-site-x-b:8083"}
Creating Engineering Alerts notification list...
{"id":1,"name":"Engineering Alerts","type":0,"recipients":[{"id":1,"notificationListId":1,"name":"engineer@company.com","emailAddress":"engineer@company.com"}]}
Creating MxGateway data connection (shared gateway) on site-x...
site-x (id=3): creating 'ScadaBridge Site X'...
{"id":3,"siteId":3,"name":"ScadaBridge Site X","protocol":"MxGateway","failoverRetryCount":3,"primaryConfiguration":"{\u0022endpoint\u0022:\u0022http://10.100.0.48:5120\u0022,\u0022apiKey\u0022:\u0022***REDACTED***\u0022,\u0022clientName\u0022:\u0022\u0022,\u0022writeUserId\u0022:0,\u0022useTls\u0022:false,\u0022caFile\u0022:\u0022\u0022,\u0022serverName\u0022:\u0022\u0022,\u0022readTimeoutMs\u0022:5000}","hasSecrets":true}
Seeding LDAP group mappings (Design + Deployment)...
Msg 2601, Level 14, State 1, Server 590cd6f80a52, Line 4
Cannot insert duplicate key row in object 'dbo.LdapGroupMappings' with unique index 'IX_LdapGroupMappings_LdapGroupName'. The duplicate key value is (SCADA-Designers).
The statement has been terminated.
Msg 2601, Level 14, State 1, Server 590cd6f80a52, Line 6
Cannot insert duplicate key row in object 'dbo.LdapGroupMappings' with unique index 'IX_LdapGroupMappings_LdapGroupName'. The duplicate key value is (SCADA-Deploy-All).
The statement has been terminated.
(1 rows affected)
Creating MxAlarm demo template + native alarm source binding...
{"id":8,"name":"MxAlarmDemo","description":"Demo: mirrors native MxAccess Gateway alarms (read-only)","attributes":[],"alarms":[],"scripts":[],"compositions":[],"nativeAlarmSources":[],"isDerived":false}
template 'MxAlarmDemo' (id=8): adding native alarm source 'GalaxyAlarms'...
{"id":1,"templateId":8,"name":"GalaxyAlarms","connectionName":"ScadaBridge Site X","sourceReference":"$Area_001","isMesReportable":false,"isLocked":false,"isInherited":false,"lockedInDerived":false}
creating instance 'MxAlarmDemo-1' at site-x...
{"id":8,"templateId":8,"siteId":3,"uniqueName":"MxAlarmDemo-1","state":2,"attributeOverrides":[],"alarmOverrides":[],"connectionBindings":[],"nativeAlarmSourceOverrides":[]}
Deploying artifacts to all env2 sites (pushes the data connection so the
site establishes it — the MxGateway DataConnectionActor connects eagerly)...
{"deploymentId":"de39728df90b49f0a8d16a07c78356d5","siteResults":[{"siteId":"site-x","siteName":"Env2 Site X","success":true}],"successCount":1,"failureCount":0}
Deploying the MxAlarm demo instance to site-x...
{"id":1,"instanceId":8,"status":2,"deploymentId":"d50295d79cfc494c97e97e616c1719a1","revisionHash":"sha256:51383094b6b6794f05f34774bafd89d6d1b3acae9d708e45b28d4abab21cfb30","deployedBy":"multi-role","deployedAt":"2026-11-13T04:32:33.3297321+00:00","completedAt":"2026-11-13T04:32:33.5445571+00:00","rowVersion":"AAAAAAACmFg="}
=== Env2 site seeding complete ===
Verify with: dotnet run --project /Users/dohertj2/Desktop/ScadaBridge-wt-env2-seed/src/ZB.MOM.WW.ScadaBridge.CLI -- --url http://localhost:9100 --username multi-role --password password site list
Verify connections: dotnet run --project /Users/dohertj2/Desktop/ScadaBridge-wt-env2-seed/src/ZB.MOM.WW.ScadaBridge.CLI -- --url http://localhost:9100 --username multi-role --password password data-connection list
Verify MxGateway is live: docker logs scadabridge-env2-site-x-a 2>&1 | grep -i mxgateway
Multi-role test user now has Admin + Design + Deployment in env2.
Sign out and back in to refresh session role claims.