G9 ran on an isolated 2-node pair (otopcua-g9, 003c7f89, Mode unset as
deployed) with otopcua-cli as the owner-approved client: A1-A3, A5, A7, A8
(graceful, ~11 s gap), B2 (docker kill, failover <1 s, ~2 s gap, 0 Bad,
survivor 250 at +44 s) and B3 (no failback) pass; A4/A5b unmet under Unset,
met under Warm (#717). G8 (CTT) waived by the owner for GA; G5 is the only
open exit criterion.
The run found the CLI printing every array as System.String[] (ServerArray
unreadable); ValueFormatter now renders [a, b] / hex for read, subscribe and
historyread, with tests. Runbook A4/A5b text updated for the #717 modes.
Evidence: docs/plans/evidence/2026-11-13-615-g9/RESULTS.md.
6.3 KiB
#615 G9: non-transparent redundancy cutover with a client (2026-11-13)
Result: PASS. Every runbook row in scope passes (A1–A3, A5, A7, A8, B2, B3). A4 and A5b are recorded as unmet
under the deployed Unset mode; they are met under Warm (#717 T13 L1). The client is otopcua-cli. The owner
approved it as the G9 client on 2026-11-13, in place of UaExpert or Ignition. The same day the owner waived G8 (CTT)
for GA.
Setup
| Item | Value |
|---|---|
| Build | master 003c7f89, published on the host into rig/Dockerfile (image otopcua-host:g9-003c7f89, removed afterwards). |
| Rig | compose project otopcua-g9 (rig/compose.g9.yml, derived from the #717 T13b rig): own network, SQL and volumes. Ports: OPC UA 25840 (central-1) / 25841 (central-2), HTTP 29310/29311, SQL 25339. The shared docker-dev rig and the 10.100.0.35 fixtures were not touched. |
| Topology | central-1 + central-2, roles admin,driver,cluster-MAIN, self-first seeds, each node's partner in OpcUa:PeerApplicationUris. |
| Mode | OpcUa__Redundancy__Mode absent = Unset, the default every deployment runs today. Warm cannot be enabled before #907 (ScadaBridge#138). |
| Config | Schema via dotnet ef database update, then rig/seed.sql: T13's seed without the API key and ACL rows (Security:Acl:Enabled=false, so the CLI reads anonymously), with the equipment created under its canonical id. Calculation driver t13-calc/Device1/calc-seconds (UTC seconds-of-day, 1 s timer), UNS reference t13/warm/t13-equipment/calc-seconds. Deployment 348cc165, sealed with both nodes Applied. |
| Client | otopcua-cli built from the same tree plus the CLI array-formatting fix below. subscribe … -F <other node> is the failover client. Times in client/*.txt are UTC in the value lines ([11/13/2026 hh:mm:ss]) and local EST (UTC−5) in the CLI's own log lines ([07:mm:ss INF]). client/actions.log is the operator timeline in UTC. |
A CLI defect found and fixed during the run. read printed every array value as its CLR type name
(System.String[]), so the CLI could not show ServerArray (A5) at all. The new Helpers/ValueFormatter prints
[a, b] (hex for byte strings) and is used by read, subscribe and historyread; ValueFormatterTests covers it.
The CLI tests pass (183).
Results
| Row | Check | Result | Evidence |
|---|---|---|---|
| A1 | ServiceLevel on the Primary (central-1, oldest) | PASS: 250 | client/A1-A7-baseline.txt |
| A2 | ServiceLevel on the follower | PASS: 240 | same |
| A3 | Stopping the follower does not demote the Primary | PASS: a 75 s subscription on central-1's i=2267 received only the initial 250 while central-2 was down (12:35:08 → 12:36:28). |
client/A3-c1-servicelevel.txt |
| A4 | RedundancySupport i=3709 |
UNMET under Unset: observed 0 (None), the SDK default. Unset deliberately leaves the metadata untouched; Warm serves Warm (#717 T13 L1). |
client/A1-A7-baseline.txt |
| A5 | ServerArray i=2254 peer discovery |
PASS: central-1 [urn:OtOpcUa:central-1, urn:OtOpcUa:central-2], central-2 [urn:OtOpcUa:central-2, urn:OtOpcUa:central-1]. |
same |
| A5b | ServerUriArray i=11314 |
UNMET under Unset: Good [] (the SDK's orphan node, documented in docs/Redundancy.md). Not counted as a pass via A5. Warm serves [self, peers] (#717 T13 L1). |
same |
| A6 | Endpoint-failure step-down | SKIP (not in the G9 minimum; covered by lmxopcua#761) | — |
| A7 | Client CLI reads ServiceLevel | PASS (A1/A2 were read with it) | same |
| A8 | CLI failover reconnect on a graceful Primary stop | PASS: docker stop of central-1 at 12:36:52.47 (stop returned 12:36:58.54). Both -F sessions logged "Session lost … Failover succeeded to :25841" (SL client 12:37:00, data client 12:37:03). ServiceLevel on central-2 already read 250 (source time 12:36:52). Data resumed Good; the gap was 12:36:52 → 12:37:03 (~11 s, the client noticing the loss by keep-alive) with no Bad value. |
client/A8-sl.txt, client/A8-data.txt |
| — | Rejoin after the graceful stop | PASS: central-1 restarted at 12:38:55 and settled at 240 by 12:39:06; central-2 stayed 250 (no failback). | client/rejoin-after-graceful.txt |
| B2 | Client cuts over on a Primary crash | PASS: docker kill of central-2 (then Primary) at 12:39:42.16. Both -F clients failed over to central-1 at 12:39:42 (connection refused, immediate). Data: last Good 12:39:41, next Good 12:39:43, 127 Good notifications and 0 Bad/Uncertain in the window. Survivor ServiceLevel: 240 → 200 at 12:40:07 (+25 s, stale snapshot while the dead node is downed) → 250 at 12:40:26 (+44 s), the same timings as #717 T13b. Data stayed Good throughout. |
client/B2-data.txt, client/B2-sl.txt, client/B2-survivor-sl.txt |
| B3 | Returning node settles as follower | PASS: central-2 restarted at 12:42:23 and read 240 by 12:42:31. A subscription on central-1's ServiceLevel saw only 250 throughout. Final: central-1 250 + data Good, central-2 240 + data Good. | client/B3-survivor-sl.txt, client/B3-final.txt |
| B1, B4, B5 | UaExpert / Kepware / OI Gateway | SKIP: the owner accepted the CLI as the G9 client. | — |
| C1–C3 | Galaxy failover | SKIP: no Galaxy on the rig (G6 covered Galaxy end to end). | — |
Server logs (rig/central-*-excerpt.log, from 12:31): no FTL. Every ERR/WRN matches a planned action:
- "The domain 'opc.tcp://localhost:2584x/OtOpcUa' is not listed in the server certificate": one per CLI session, because the CLI connects through a
localhostport mapping with securityNoneand the certificate names the container host. - Akka
Disassociated: the planned peer stops and kill. - Two
BadTimeoutservice faults at 12:36:58.28: pending Publish requests failed while central-1 shut itself down (A8). ForceChannelFault … BadConnectionClosedat 12:41:49: CLI subscriptions closing at their--durationend.
The ERR entries before 12:31 come from the first boot, before the schema existed (rig setup). The first deploy was
dropped with "No mesh gRPC targets" because central-1 had booted before the seed was retried. Both nodes were
restarted and redeployed; that is rig ordering, not a product issue.
Teardown: docker compose -p otopcua-g9 down -v and docker rmi otopcua-host:g9-003c7f89. The containers,
volumes and networks outside the project are identical to the pre-run snapshot.