Skip to content

Preheat API consistently returns HTTP 500 for Dragonfly endpoint validation #22288

@shuwei819-blip

Description

@shuwei819-blip

Description:
Harbor's preheat API fails consistently when creating preheat instances or P2P policies with Dragonfly endpoints.

Steps to Reproduce:

  1. Deploy Harbor v2.13.2 with Dragonfly P2P
  2. Try to create preheat instance via API: POST /api/v2.0/p2p/preheat/instances
  3. Use Dragonfly endpoint: http://dragonfly-manager:8080
  4. Result: HTTP 500 "internal server error"

Expected Behavior:
Preheat instance should be created successfully.

Actual Behavior:
API consistently returns HTTP 500 errors.

Environment:

  • Harbor Version: v2.13.2
  • Dragonfly Version: Latest
  • Kubernetes: v1.32
  • Deployment: Helm chart v1.17.2

Additional Notes:

  • UI works fine (manual creation succeeds)
  • API fails for both instance creation and policy creation
  • Issue persists across Harbor versions v2.10.0 → v2.13.2
  • Fake endpoints work, real Dragonfly endpoints fail

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions