carlos / platform Public

ops, host: comments say group boxes drill their non-HA hosts (#898)

The unit header, verifyassign.go's package note and the drill's reason
list caught up with the final fix wave: a group box's assignment decides
only its HA hosts, and no_record is one of dbverify's own reasons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 7a38491abc5d4e05ddb88b85d2a0064202919963 parent d6a9d2e
3 files changed, +5 −4
  • internal/host/units/carlos-hibernate-verify.service +2 −2
  • internal/host/verifyassign.go +2 −1
  • internal/ops/hibernate_verify.go +1 −1
diff --git a/internal/host/units/carlos-hibernate-verify.service b/internal/host/units/carlos-hibernate-verify.service
index 9b4052e4c..3889cc791 100644
--- a/internal/host/units/carlos-hibernate-verify.service
+++ b/internal/host/units/carlos-hibernate-verify.service
@@ -17,8 +17,8 @@
# <ref> is this box's reference, which only the agent knows: the drill reads
# it from <data>/monitor/self.json, which the agent rewrites every few
# minutes, and refuses to run on a stale or missing one. On a group box it
-# also reads <data>/monitor/verify-assign.json and drills only the HA hosts
-# assigned to this box.
+# also reads <data>/monitor/verify-assign.json: of its HA hosts it drills
+# only those assigned to this box; its non-HA hosts it drills itself.
#
# Armed on every box by bootstrap (the timer). A box whose host.env carries
# no CARLOS_HIBERNATE_BUCKET exits 0 at once; one with no hibernating
diff --git a/internal/host/verifyassign.go b/internal/host/verifyassign.go
index fb62eb68f..13e6a50bb 100644
--- a/internal/host/verifyassign.go
+++ b/internal/host/verifyassign.go
@@ -15,7 +15,8 @@ import (
// The nightly restore drill's two inputs from the agent (member backups
// slice 2a, P-9, P2-9). The drill (carlos ops hibernate-verify) publishes
// under the box's lease reference, which only the agent knows, and on a
-// group box tests only the HA hosts this box is assigned. The agent writes
+// group box tests, of its HA hosts, only those this box is assigned (its
+// non-HA hosts are its own to test). The agent writes
// both under <data>/monitor/ (boxself), as user carlos, the user the
// drill's unit runs as.
diff --git a/internal/ops/hibernate_verify.go b/internal/ops/hibernate_verify.go
index 5e813c9e6..d66f08951 100644
--- a/internal/ops/hibernate_verify.go
+++ b/internal/ops/hibernate_verify.go
@@ -91,7 +91,7 @@ func HibernatingHosts(reg *registry.Registry) ([]HibernatingRoute, error) {
}
// The reasons the drill gives a failed or unverified verdict, besides
-// dbverify's own not_reached and no_assignment.
+// dbverify's own not_reached, no_assignment and no_record.
const (
// ReasonRecordChanged: the instance's record changed between the
// bracket's open and close: it went, left this box's region, or names