Adopt genesis's bus through the bus's planned step, its streams snapshotted first (hq issue 590, ADR 0333 §3)
The broker step sent the nats module with a plain push, and the controller refuses a push that would replace the bus: that is a planned step, bus upgrade, which snapshots the streams first and checks them after (ADR 0236). Genesis stopped at step 18. The step now snapshots every stream with the module's own snapshot program (no backup holder exists yet to be asked), asks bus upgrade with that snapshot and why, says the one restart, and waits until the bus runs the module's image, answers, and the controller ends the step done. The bundle's bus runs the release the module's image is built on (2.11.17, by the same digest, where it ran 2.10.29), so the step changes no server release and is said reversible.
This commit is contained in:
@@ -60,6 +60,14 @@ func aMeshThatAgrees(answers map[string]string) func(string, []string) (string,
|
||||
switch {
|
||||
case name == "sh" && len(args) == 2 && strings.Contains(args[1], "accounts.conf"):
|
||||
return "", nil // the bus's users placed after a push (issue 608)
|
||||
case name == "sh" && len(args) == 2 && strings.Contains(args[1], "mesh-nats-snapshot"):
|
||||
return "", nil // the streams snapshotted before the bus's planned step (issue 590)
|
||||
case name == "docker" && strings.HasSuffix(joined, "/mesh-controller bus"):
|
||||
return "the bus is nats, built 53e51864, on anchor\nlast step 1: not known → 53e51864 on anchor by installer (" +
|
||||
adoptionWhy + "): done at 2026-10-13 11:40; snapshot " + busSnapshotFile + "\n", nil
|
||||
case name == "docker" && strings.Contains(joined, "/mesh-controller builds nats -n 1"):
|
||||
return "nats built 53e51864 anchor\n image artifact-store://nats/server@sha256:" +
|
||||
strings.Repeat("4", 64) + "\n bundle artifact-store://nats/tools/blobs/sha256:" + strings.Repeat("5", 64) + "\n", nil
|
||||
case name != "docker":
|
||||
return "", fmt.Errorf("unexpected program %q", name)
|
||||
case strings.HasSuffix(joined, "broker accounts"):
|
||||
|
||||
Reference in New Issue
Block a user