Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions deploy/opensearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,24 +357,24 @@ does not prove that a native issuer stopped.
recovery observes the old instance stopped before non-forced detach, waits
for attach on the approved target, verifies filesystem and mount identity,
and starts the pinned service. It never formats or provisions.
- Unresolved prior physical issuer: execute `operator.py fence-host` in its own
- Unresolved prior physical issuer: execute `native_operator.py fence-host` in its own
physical unit. The plan binds the exact actual `old_issuer_receipt_path` and
raw `old_issuer_receipt_sha256`, plus the old issuer identity fields. The
source gate reserves one durable fencing intent before the SSM sends. It
retains the actual command IDs and confirms the exact operator control group
and native unit are stopped. If an acknowledgment is lost,
`operator.py reconcile-fence --fence-token ORIGINAL_UUID` observes existing
`native_operator.py reconcile-fence --fence-token ORIGINAL_UUID` observes existing
tagged commands only; it never reissues them. Takeover requires the proven
receipt and exact old-token CAS. No TTL frees unknown authority.
- An interrupted first shadow pilot while PostgreSQL is serving can use
`operator.py release-empty-shadow` with the same old-issuer plan. The command
`native_operator.py release-empty-shadow` with the same old-issuer plan. The command
observes the collected transient unit through SSM and checks the exact native
identity, namespace inventory, and primary shard history. It records the
release only before any migration attempt or native write. The shared native
service stays online. Run the selected inputs through the read-only
preflight under the pilot's temporary database role before retrying.
- A shadow backfill that stopped after native writes while PostgreSQL is
serving can use `operator.py release-stopped-shadow` with the same
serving can use `native_operator.py release-stopped-shadow` with the same
old-issuer plan. It observes the collected transient unit through SSM like
`release-empty-shadow`, then releases only when no migration attempt is
pending or running, no migration build is writing, no lease is unreleased,
Expand All @@ -387,7 +387,7 @@ does not prove that a native issuer stopped.
attempt, writing build or uncertain lease, and the command refuses; use
`fence-host` then. Check each condition with read-only SQL before running it.
- After a successful host restart, execute the source-owned
`operator.py reconcile-restart` against the same recovery operation UUID in
`native_operator.py reconcile-restart` against the same recovery operation UUID in
a new physical invocation. The plan binds `inventory_path`, `inventory_sha256`,
`host_recovery_receipt_path`, `transition_script_sha256`, `target_backend`
and `maximum_step_seconds`. The restart inventory v1 contains
Expand Down Expand Up @@ -515,7 +515,7 @@ of about 100 units each:
limit keeps more namespaces warm and makes such bursts rarer.

Use `launch-issuer.py --kind operator` with the `release` child command shown
by `operator.py --help`. Review separate plans for `phase:"prepare"`,
by `native_operator.py --help`. Review separate plans for `phase:"prepare"`,
`"forward"` and `"rollback"`. Each plan binds `account_id`, exact source hash,
transition script SHA, existing gate rule ARN, conditions SHA, original forward
actions and a known fixed 503 response. The tool checks the actual route
Expand Down
2 changes: 1 addition & 1 deletion deploy/opensearch/launch-issuer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


_ROOT: Path = Path(__file__).resolve().parents[2]
_PROGRAMS: dict[str, Path] = {"operator": _ROOT / "deploy/opensearch/operator.py",
_PROGRAMS: dict[str, Path] = {"operator": _ROOT / "deploy/opensearch/native_operator.py",
"recovery": _ROOT / "deploy/opensearch/recovery.py",
"release-step": _ROOT / "deploy/opensearch/release.py",
"workload": _ROOT / "scripts/probes/run-opensearch-workload.py"}
Expand Down
2 changes: 1 addition & 1 deletion deploy/opensearch/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def _main() -> int:
result = OpenSearchOperations.planCost(_readJson(arguments.quote), _readJson(arguments.usage))
elif command == "backup-cycle":
if arguments.execute:
raise ValueError("Run the authoritative operator.py backup command to snapshot and qualify data")
raise ValueError("Run the authoritative native_operator.py backup command to snapshot and qualify data")
inventory: object = _readJson(arguments.inventory)
boundaryDigest: str = sha256(arguments.boundary.read_bytes()).hexdigest()
result = {"mode": "dry-run", "data_verified": False, "retention_authorized": False,
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions deploy/opensearch/tests/test_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ def test_manifest_seed_is_an_explicit_fenced_operator_command(tmp_path: Path) ->
assert launch.returncode == 0, launch.stderr
launchPlan = json.loads(launch.stdout)
assert launchPlan["resource_mutations_issued"] is False
assert launchPlan["command"][-len(arguments) - 4:] == [str(directory / "operator.py"), *arguments,
assert launchPlan["command"][-len(arguments) - 4:] == [str(directory / "native_operator.py"), *arguments,
"--issuer-token", launchPlan["invocation_token"], "--execute"]

result: subprocess.CompletedProcess[str] = subprocess.run([sys.executable, str(directory / "operator.py"), *arguments],
result: subprocess.CompletedProcess[str] = subprocess.run([sys.executable, str(directory / "native_operator.py"), *arguments],
capture_output=True, text=True, check=False)
assert result.returncode == 0, result.stderr
assert json.loads(result.stdout)["operation"] == "seed-manifests"
Expand All @@ -106,7 +106,7 @@ def test_manifest_seed_is_an_explicit_fenced_operator_command(tmp_path: Path) ->
def test_manifest_seed_requires_receipt_from_the_admitted_epoch(
tmp_path: Path, monkeypatch: pytest.MonkeyPatch, receiptEpoch: int,
) -> None:
path: Path = Path(__file__).parents[1] / "operator.py"
path: Path = Path(__file__).parents[1] / "native_operator.py"
monkeypatch.syspath_prepend(str(path.parent))
specification = importlib.util.spec_from_file_location("native_operator", path)
assert specification is not None and specification.loader is not None
Expand Down
2 changes: 1 addition & 1 deletion deploy/opensearch/workload_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _run(configuration: dict[str, object], request: dict[str, object], *, should
def persist(value: dict[str, object]) -> None:
_writeJson(journal, {**value, "binding": binding}, replace=journal.exists())

specification = importlib.util.spec_from_file_location("knowhere_native_operator", Path(__file__).with_name("operator.py"))
specification = importlib.util.spec_from_file_location("knowhere_native_operator", Path(__file__).with_name("native_operator.py"))
if specification is None or specification.loader is None:
raise ValueError("Authoritative backup implementation is unavailable")
module = importlib.util.module_from_spec(specification)
Expand Down
Loading