Skip to content

platform/api: /backup/v1/open_iaas/policies intermittent multi-minute hangs (root cause behind #339; OpenIaaS counterpart of #315) #391

Description

@chrlesur

Platform reliability issue — OpenIaaS counterpart of #315 (VPC ComputeManager) on the backup-policies read path.

Symptom

GET /api/backup/v1/open_iaas/policies intermittently hangs for several minutes before returning normally — the exact symptom that prompted #339 ("Observed live: a GET /backup/v1/open_iaas/policies hung ~3 minutes during a datasource read before manual abort").

Latest live reproduction (2026-06-29)

  • Recette OpenIaaS, shiva.cloud-temple.com, tenant fc37d401-….
  • During a terraform apply (provider built from main @ v1.8.0):
    • data.cloudtemple_compute_iaas_opensource_availability_zones stalled ~2 min.
    • data.cloudtemple_backup_iaas_opensource_policies was still "Still reading… [03m50s elapsed]" when the run was manually aborted.
  • ~30 minutes later, a direct curl to the same endpoint returned HTTP 200 in 306 ms (5 policies, 1577 bytes; TLS 74 ms, TTFB 304 ms).
  • Cross-check GET /api/backup/v1/spp/policies (VMware SPP equivalent, same proxy chain): 132 ms — slowness is isolated to the OpenIaaS backup path, not the HTTP/IAM/proxy stack.
  • Therefore: a transient platform-side condition (likely a lock or queue on the OpenIaaS / Xen Orchestra policy backend) sporadically inflates this endpoint's latency by ~750× over normal.

Relationship with #339 and #315

Latency baseline (from #339's diagnostic + live cross-check)

Ask

Stabilise the /backup/v1/open_iaas/policies read path:

  1. Identify the platform-side cause of the multi-minute excursions (locking, GC pause, queue, slow downstream Xen Orchestra call, etc.).
  2. Document an expected nominal SLO for this endpoint so the provider can size its timeout/retry policy accordingly.
  3. Notify when remediation is deployed so we can re-baseline CLOUDTEMPLE_HTTP_TIMEOUT and the retry parameters.

Provider-side: no change required (the #339 mitigation already protects user runs from infinite hangs). This issue tracks the upstream stabilisation only.

Refs

Metadata

Metadata

Labels

S4-missing-issuesWorkstream S4: known gaps awaiting fixesapibugSomething isn't working

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions