region HA G3-B10: refusal copy and CLI docs (Luna pass)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/site/cli.md+3 −1internal/console/createleftovers.go+2 −2internal/console/ha_pool_scope_test.go+2 −2internal/console/hacreate_test.go+2 −2internal/console/hap2_wiring_test.go+1 −1internal/console/nocapacity.go+1 −1
CI cancelled — superseded by a newer push — run details
Intent
<task-notification> <task-id>by97j061q</task-id> <tool-use-id>toolu_01JmRizBgxHhEXAv6K8Adacm</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/265811d8-fa99-4f28-a191-8a01ce8693ac/tasks/by97j061q.output</output-file> <status>completed</status> <summary>Background command "last=0; stall=0; until [ -f /home/paulca/.cache/tmp/b10-impl.done ]; do sleep 60; n=$(stat -c %s /home/paulca/.cache/tmp/b10-impl.log); if [ "$n" = "$last" ]; then stall=$((stall+1)); else stall=0; fi; last=$n; if [ $stall -ge 20 ]; then echo "STALLED 20m at $n bytes"; exit 1; fi; done; cat /home/paulca/.cache/tmp/b10-impl.done" completed (exit code 0)</summary> </task-notification>
diff --git a/docs/site/cli.md b/docs/site/cli.md| index 3a87806db..a50fad2ce 100644 |
| --- a/docs/site/cli.md |
| +++ b/docs/site/cli.md |
| @@ -1052,7 +1052,9 @@ working. Use `carlos env set` for a value that is meant to be empty. |
| In an active high availability region, a non-hibernating binary socket create is refused with status 400 before the instance or its data is created. The refusal does not apply to resident rootfs instances. A binary socket import gets the same refusal before import work begins. A hibernating import keeps the existing status 409 refusal. |
| -If earlier data remains for the address, the create is refused with status 409. The message names only the fixed class of data found: lock, files, replica or other. Choose another address, or ask an operator to purge the old data. If home data cannot be checked, the create is refused with status 503 before any write. Try again. A non-home or pooled high availability data create is refused with status 409 because that data cannot be checked here. Use the console's home region without a pool. |
| +If earlier data remains for the address, the create is refused with status 409. The message names the data found: lock, files, replica or other. Choose another address, or ask an operator to purge the old data. |
| + |
| +An operator can enable high availability for named pools in a region. Only instances and sidecars for apps placed in those pools use high availability there. Other creates work as usual. High availability creates also work outside the console's home region, using that region's data for the earlier-data check. If the data cannot be checked, the create is refused with status 503 before any write. Try again. If any box uses different data storage from the region, high availability creates are refused with status 503. The message names the box. An operator must reconfigure or retire it. If high availability covers every create in a region, a non-home or pooled high availability create is refused with status 409: "Use the console's home region without a pool." |
| New creates in an HA region need a box with room. A 503 response tells you to retry after 60 seconds. Missing evidence pauses creates. It does not report zero capacity. Existing instances can still wake. |
diff --git a/internal/console/createleftovers.go b/internal/console/createleftovers.go| index 8d7ffe1c5..7e89d3ec3 100644 |
| --- a/internal/console/createleftovers.go |
| +++ b/internal/console/createleftovers.go |
| @@ -174,7 +174,7 @@ func (s *Server) leftoverReplicaRefusal(parent context.Context, c leftoverCreate |
| if s.homeRegionIn(c.region) != "" || c.pool != "" { |
| return &doorRefusal{Status: http.StatusConflict, Msg: fmt.Sprintf("high availability data creation is not available yet in %s. use the console's home region without a pool.", name)} |
| } |
| - unsure = fmt.Sprintf("could not check this %s's data in %s. nothing was created. try again. persistent failures may require an operator to check home data access.", kind, name) |
| + unsure = fmt.Sprintf("could not check this %s's data in %s. nothing was created. try again. persistent failures may require an operator to check data access for this region.", kind, name) |
| if s.cfg.SeedData == nil || !s.leftoverCheckApplies(c.region, c.pool) { |
| return &doorRefusal{Status: http.StatusServiceUnavailable, Msg: unsure} |
| } |
| @@ -207,7 +207,7 @@ func (s *Server) leftoverReplicaRefusal(parent context.Context, c leftoverCreate |
| func (s *Server) scopedHALeftoverRefusal(ctx context.Context, c leftoverCreate, kind, name string) *doorRefusal { |
| unsure := &doorRefusal{Status: http.StatusServiceUnavailable, |
| - Msg: fmt.Sprintf("could not check this %s's data in %s. nothing was created. try again. persistent failures may require an operator to check home data access.", kind, name), haCapacityRetryAfter: 60} |
| + Msg: fmt.Sprintf("could not check this %s's data in %s. nothing was created. try again. persistent failures may require an operator to check data access for this region.", kind, name), haCapacityRetryAfter: 60} |
| store := s.cfg.HADataStores[s.homeRegionOut(c.region)] |
| if s.cfg.HibernateBucket == "" || store == nil { |
| return unsure |
diff --git a/internal/console/ha_pool_scope_test.go b/internal/console/ha_pool_scope_test.go| index 8ace84df3..69c263dd9 100644 |
| --- a/internal/console/ha_pool_scope_test.go |
| +++ b/internal/console/ha_pool_scope_test.go |
| @@ -511,7 +511,7 @@ func TestHAPoolMixedStorage(t *testing.T) { |
| if label == "us" { |
| t.Fatal("fixture did not load the region label") |
| } |
| - want := fmt.Sprintf("%s has a box on a different data bucket (%s). Nothing was created. An operator must fix or retire that box.", label, "mismatch") |
| + want := fmt.Sprintf("%s has a box using different data storage: %s. Nothing was created. An operator must reconfigure or retire that box.", label, "mismatch") |
| if code != 503 || hdr.Get("Retry-After") != "60" || errorText(out) != want { |
| t.Fatalf("I-B10=%d %v %s", code, hdr, out) |
| } |
| @@ -709,7 +709,7 @@ func TestHAPoolRefusalsBeforeLifetimeAndStoreGrant(t *testing.T) { |
| if status == 409 && !strings.Contains(out, "still holds") { |
| t.Fatal(out) |
| } |
| - if mode == "mixed-storage" && !strings.Contains(out, "different data bucket") { |
| + if mode == "mixed-storage" && !strings.Contains(out, "different data storage") { |
| t.Fatal(out) |
| } |
| w.noWrites(t) |
diff --git a/internal/console/hacreate_test.go b/internal/console/hacreate_test.go| index cbdf4c8a4..add41de19 100644 |
| --- a/internal/console/hacreate_test.go |
| +++ b/internal/console/hacreate_test.go |
| @@ -205,7 +205,7 @@ func TestHACreateUninspectableRefusesBeforeWrites(t *testing.T) { |
| } |
| code, headers, out := haCreatePost(t, fx, body) |
| status := 503 |
| - want := "could not check this instance's data in ie. nothing was created. try again. persistent failures may require an operator to check home data access." |
| + want := "could not check this instance's data in ie. nothing was created. try again. persistent failures may require an operator to check data access for this region." |
| if mode == "remote" || mode == "pool" { |
| status = 409 |
| region := "ie" |
| @@ -461,7 +461,7 @@ func TestHACreateMoveStagingBudget(t *testing.T) { |
| } |
| control, data := haCreateTrack(fx) |
| code, _, out := haCreatePost(t, fx, leftoverDoors[0].body) |
| - if code != 503 || errorText(out) != "could not check this instance's data in ie. nothing was created. try again. persistent failures may require an operator to check home data access." { |
| + if code != 503 || errorText(out) != "could not check this instance's data in ie. nothing was created. try again. persistent failures may require an operator to check data access for this region." { |
| t.Fatalf("staging error=%d %s", code, out) |
| } |
| haCreateNoWrites(t, control, data) |
diff --git a/internal/console/hap2_wiring_test.go b/internal/console/hap2_wiring_test.go| index b38496ab2..6b0f352ef 100644 |
| --- a/internal/console/hap2_wiring_test.go |
| +++ b/internal/console/hap2_wiring_test.go |
| @@ -309,7 +309,7 @@ func TestHAP2ProductionDoors(t *testing.T) { |
| tr.setData("instances/" + fromHost + "/secret-key") |
| case "unreadable", "missing-home-wiring": |
| status = 503 |
| - want = "could not check this instance's data in ie. nothing was created. try again. persistent failures may require an operator to check home data access." |
| + want = "could not check this instance's data in ie. nothing was created. try again. persistent failures may require an operator to check data access for this region." |
| if mode == "unreadable" { |
| tr.setFailure(func(a hap2Attempt) bool { return a.bucket == "data-test" }) |
| } else { |
diff --git a/internal/console/nocapacity.go b/internal/console/nocapacity.go| index c564738bc..2e4c9394f 100644 |
| --- a/internal/console/nocapacity.go |
| +++ b/internal/console/nocapacity.go |
| @@ -56,7 +56,7 @@ func (s *Server) requireHACreateCapacity(ctx context.Context, region, pool strin |
| if len(s.haPools[name]) > 0 { |
| if box, mixed := obs.MixedStorage(name); mixed { |
| log.Printf("console: HA create in %s: mixed storage in %s", name, edgesfile.Prefix+box+".json") |
| - return &doorRefusal{Status: http.StatusServiceUnavailable, Msg: fmt.Sprintf("%s has a box on a different data bucket (%s). Nothing was created. An operator must fix or retire that box.", s.offlinePlace(region), box), haCapacityRetryAfter: 60} |
| + return &doorRefusal{Status: http.StatusServiceUnavailable, Msg: fmt.Sprintf("%s has a box using different data storage: %s. Nothing was created. An operator must reconfigure or retire that box.", s.offlinePlace(region), box), haCapacityRetryAfter: 60} |
| } |
| } |
| if available { |