f826af8e8a
v2-ci / unit-tests (push) Waiting to run
Every applicable T13 leg passes on0c19f26c+c569f806. The leg list covers: - metadata and ServiceLevel bands; - standby projection; - alarm suppression with Standby ConditionRefresh and the promotion refresh; - the three D4 demotion timings, run live; - standby write and Part 9 refusal (BadInvalidState); - graceful and crash failover, with no failback; - subscription transfer; - the Mode=Unset regression. The two crash-path defects the gate found are fixed inc569f806. Evidence, rig files and the raw-client harness are in docs/plans/evidence/2026-11-13-717-t13/. Claude-Session: https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
104 lines
4.2 KiB
YAML
104 lines
4.2 KiB
YAML
# Isolated #717 T13 pair. Project name otopcua-t13; own network, own SQL + volumes, own image tag.
|
|
name: otopcua-t13
|
|
x-host-env: &host-env
|
|
OTOPCUA_ROLES: "admin,driver,cluster-MAIN"
|
|
ASPNETCORE_URLS: "http://+:9000"
|
|
ConnectionStrings__ConfigDb: "Server=sql,1433;Database=OtOpcUa;User Id=sa;Password=OtOpcUa!Dev123;TrustServerCertificate=True;"
|
|
Secrets__SqlitePath: "/data/otopcua-secrets.db"
|
|
Secrets__Replication__Enabled: "true"
|
|
Secrets__Replication__AnnounceInterval: "00:00:05"
|
|
ZB_SECRETS_MASTER_KEY: "ZYGhIX0luS/XsevpCB2W18jYHMcqO6AjM9oXy+T6Zp4="
|
|
Security__ApiKeys__Pepper: "t13-apikey-pepper-not-for-production"
|
|
# LDAP block is validated at boot; it is AdminUI-login only and login is disabled, so point it at loopback
|
|
# (nothing here contacts the shared GLAuth).
|
|
Security__Ldap__Enabled: "true"
|
|
Security__Ldap__DevStubMode: "false"
|
|
Security__Ldap__Server: "127.0.0.1"
|
|
Security__Ldap__Port: "3893"
|
|
Security__Ldap__Transport: "None"
|
|
Security__Ldap__AllowInsecure: "true"
|
|
Security__Ldap__SearchBase: "dc=zb,dc=local"
|
|
Security__Ldap__ServiceAccountDn: "cn=serviceaccount,dc=zb,dc=local"
|
|
Security__Ldap__ServiceAccountPassword: "unused"
|
|
Cluster__Hostname: "0.0.0.0"
|
|
Cluster__Port: "4053"
|
|
ConfigServe__GrpcListenPort: "4055"
|
|
ConfigServe__ApiKey: "configserve-t13-key"
|
|
ConfigSource__Mode: "Direct"
|
|
Telemetry__GrpcListenPort: "4056"
|
|
Telemetry__Mode: "Grpc"
|
|
Telemetry__ApiKey: "telemetry-t13-key"
|
|
TelemetryDial__Mode: "Grpc"
|
|
TelemetryDial__ApiKey: "telemetry-t13-key"
|
|
Cluster__Roles__0: "admin"
|
|
Cluster__Roles__1: "driver"
|
|
Cluster__Roles__2: "cluster-MAIN"
|
|
MeshTransport__Mode: "Grpc"
|
|
MeshTransport__GrpcPsk: "t13-mesh-psk-MAIN"
|
|
MeshTransport__CentralGrpcEndpoints__0: "http://central-1:4055"
|
|
MeshTransport__CentralGrpcEndpoints__1: "http://central-2:4055"
|
|
MeshTransport__ClusterPsks__MAIN: "t13-mesh-psk-MAIN"
|
|
Security__Jwt__SigningKey: "t13-signing-key-with-at-least-32-bytes-of-utf8-content-12345678"
|
|
Security__Jwt__Issuer: "otopcua-t13"
|
|
Security__Jwt__Audience: "otopcua-t13"
|
|
Security__DeployApiKey: "t13-deploy-key"
|
|
Security__Auth__DisableLogin: "true"
|
|
Security__Acl__Enabled: "false"
|
|
ServerHistorian__Enabled: "false"
|
|
ContinuousHistorization__Enabled: "false"
|
|
Serilog__MinimumLevel__Override__Microsoft.EntityFrameworkCore: "Warning"
|
|
Serilog__MinimumLevel__Override__Microsoft.AspNetCore: "Warning"
|
|
LocalDb__Path: "/app/data/otopcua-localdb.db"
|
|
OpcUa__Redundancy__Mode: "${T13_MODE:-Warm}"
|
|
Serilog__WriteTo__0__Args__outputTemplate: "[{Timestamp:HH:mm:ss.fff} {Level:u3}] {Message:lj}{NewLine}{Exception}"
|
|
|
|
services:
|
|
sql:
|
|
image: mcr.microsoft.com/mssql/server:2022-latest
|
|
environment:
|
|
ACCEPT_EULA: "Y"
|
|
SA_PASSWORD: "OtOpcUa!Dev123"
|
|
MSSQL_PID: Developer
|
|
ports: ["14339:1433"]
|
|
volumes: [t13-mssql-data:/var/opt/mssql]
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P 'OtOpcUa!Dev123' -No -Q 'SELECT 1' || exit 1"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 20
|
|
|
|
central-1:
|
|
image: otopcua-host:${T13_IMAGE:-t13-0c19f26c}
|
|
mem_limit: 2g
|
|
restart: unless-stopped
|
|
depends_on: { sql: { condition: service_healthy } }
|
|
environment:
|
|
<<: *host-env
|
|
Cluster__PublicHostname: "central-1"
|
|
OpcUa__ApplicationUri: "urn:OtOpcUa:central-1"
|
|
OpcUa__PeerApplicationUris__0: "urn:OtOpcUa:central-2"
|
|
Cluster__SeedNodes__0: "akka.tcp://otopcua@central-1:4053"
|
|
Cluster__SeedNodes__1: "akka.tcp://otopcua@central-2:4053"
|
|
ports: ["14840:4840", "19210:9000"]
|
|
volumes: [t13-c1:/app/data, t13-c1:/data]
|
|
|
|
central-2:
|
|
image: otopcua-host:${T13_IMAGE:-t13-0c19f26c}
|
|
mem_limit: 2g
|
|
restart: unless-stopped
|
|
depends_on: { sql: { condition: service_healthy }, central-1: { condition: service_started } }
|
|
environment:
|
|
<<: *host-env
|
|
Cluster__PublicHostname: "central-2"
|
|
OpcUa__ApplicationUri: "urn:OtOpcUa:central-2"
|
|
OpcUa__PeerApplicationUris__0: "urn:OtOpcUa:central-1"
|
|
Cluster__SeedNodes__0: "akka.tcp://otopcua@central-2:4053"
|
|
Cluster__SeedNodes__1: "akka.tcp://otopcua@central-1:4053"
|
|
ports: ["14841:4840", "19211:9000"]
|
|
volumes: [t13-c2:/app/data, t13-c2:/data]
|
|
|
|
volumes:
|
|
t13-mssql-data:
|
|
t13-c1:
|
|
t13-c2:
|