Skip to content

[macos] scale-api: desired_replicas=2 never reaches ready_replicas=2 (stuck at 1) #266

Closed

Description

@CharlieZiChen

Summary

On macOS HVF (a3s-box v3.2.5 / 2d5d7cb61c968d7f3dd852f42f48530066c3c03a), scale-api accepts desired_replicas=2 but observation stays at replicas=2, ready_replicas=1 for ≥300s. Server logs repeatedly report scale reconciliation failures during startup.

Severity: P1 (scale desired-state reconcile does not converge)

Acceptance case: TC-ADV-008 / ADV-R-SCALE-WORKLOAD

Local tracking: BUG-0006

Note: the macOS endpoint scale lane correctly refuses endpoints (503 reconcile_failed) and is not this bug.

Expected

After an accepted Up to desired_replicas=2, within a bounded window the observation shows ready_replicas=2 (and inventory has two live service boxes executing the workload command).

Actual

  • Up receipt: accepted=true, actual_replicas=1, message like Box reconciled service 'api' to 1 ready replicas (receipt is ready-count at return time — harness already waits for convergence).
  • Poll for 300s: replicas=2, ready_replicas=1, endpoints=[] unchanged.
  • Server log excerpt: Scale workload reconciliation failed … execution completed during startup (repeated).

Repro (under acceptance harness; 300s wait)

Minimal shape (same as advanced acceptance scale lane without endpoints):

export A3S_HOME="$(mktemp -d /private/var/tmp/a3s-bug0006.XXXXXX)"
# Seed/load the image used by scale services (acceptance uses qa-advanced:local / alpine OCI).
# Start scale-api against a services catalog that defines service "api" with desired-state Up to 2,
# then:

# POST /v1/scale/api
# {
#   "schema_version": 1,
#   "operation_id": "advanced-scale-up",
#   "service": "api",
#   "expected_revision": "0",
#   "direction": "Up",
#   "current_replicas": 0,
#   "desired_replicas": 2,
#   "reason": "repro"
# }

# Then GET /v1/scale/api every 1s for 300s and record observation.

Full scripted repro used in macOS acceptance: scripts/advanced_acceptance.py scale against release binary (evidence: advanced-scale-http.json, advanced-scale-server.log).

Repro rate: in QA_RUN pmxP8i (2026-09-08) with 300s convergence wait.

Environment

Item Value
OS macOS 15 arm64
Backend HVF / microvm
Binary v3.2.5 release macos-arm64
Commit 2d5d7cb61c968d7f3dd852f42f48530066c3c03a
Isolation dedicated A3S_HOME (advanced-home), not shared with release leftover boxes

Notes

Harness no longer asserts actual_replicas==2 on the immediate Up receipt; failure is non-convergence of ready_replicas. Many replica start attempts appear to complete/exit during startup rather than becoming ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions