Dispatch replication independently of the efficient guest path, coalesce bounded runtime-scoped reads and fence obsolete client/runtime completions. Preserve prior inventory on unavailable input or cancellation; only an explicitly complete empty read clears it. Bind scheduler, replacement and HTTP cancellation controls to this repair.
Contract-Neutral: Repair existing replication scheduling and cancellation ownership; no wire, endpoint, cadence, permission or host-agent lifecycle contract changes.
Change-source: pulse-maintainer
Withdraw any configuration-carried outcome before status enrichment so missing source identity, denied and malformed reads remain unknown. The HTTP matrix starts with a success-shaped configuration string and still requires observed source-job status.
Contract-Neutral: Enforces the observed-only replication outcome contract without changing its shape or polling policy.
Change-source: pulse-maintainer
Report successful syncs and zero-count errors truthfully without inferring health from configuration or unavailable data. Match response job/source identity before enrichment and verify fourteen-job polling, wire projection and failure recovery. The separate lifecycle report remains unresolved.
Change-source: pulse-maintainer
- Add comprehensive debug logging to diagnose replication status fetch failures
- Handle both array and single-object response formats from Proxmox API
- Log raw response body for easier debugging
- Log success/failure for each enrichment step
This helps diagnose issue #992 where replication last/next sync times aren't
showing. The logging will reveal if the API call is failing, returning empty
data, or returning data in an unexpected format.
Related to #992
The /cluster/replication endpoint only returns job configuration (guest,
schedule, source, target), not status data (last_sync, next_sync,
duration, fail_count, state).
This fix enriches each replication job with status from the per-node
endpoint /nodes/{node}/replication/{id}/status to get timing and state
data needed for proper UI display.
Added integration tests to verify:
- Status endpoint is called and data is merged correctly
- Graceful handling when status endpoint fails
Fixes#992