From 8579794e2505c0817311b32dcd32113e044f5328 Mon Sep 17 00:00:00 2001 From: Betty Date: Thu, 4 Jun 2026 08:07:14 +0200 Subject: [PATCH] post: commit dd71731 in bojemoi --- .../commits/2026-06-04-commit-dd71731.md | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 content/posts/commits/2026-06-04-commit-dd71731.md diff --git a/content/posts/commits/2026-06-04-commit-dd71731.md b/content/posts/commits/2026-06-04-commit-dd71731.md new file mode 100644 index 0000000..45217b2 --- /dev/null +++ b/content/posts/commits/2026-06-04-commit-dd71731.md @@ -0,0 +1,50 @@ +--- +title: "[bojemoi] feat(orchestrator): déploiement VM async avec job tracking" +date: 2026-06-04T08:07:14+02:00 +draft: false +tags: ["commit", "bojemoi", "main"] +categories: ["Git Activity"] +summary: "Commit dd71731 par Betty dans bojemoi" +author: "Betty" +--- + +## Commit `dd71731` + +| | | +|---|---| +| **Repository** | bojemoi | +| **Branch** | `main` | +| **Author** | Betty | +| **Hash** | `dd717311fdc842976b15b47207ec9be69bf3dbe3` | + + +### Description + +POST /api/v1/vm/deploy retourne immédiatement un job_id. +GET /api/v1/vm/job/{job_id} permet de poller le statut. + +xenserver_client_real fixes: +- Fix 1: timeout asyncio.wait_for 600s sur toutes les ops XenAPI +- Fix 2: timeout TCP socket 120s pour éviter les hangs réseau +- Fix 3: session lock asyncio pour thread-safety XenAPI +- Fix 4: check VM doublon avant clone (VM_ALREADY_EXISTS) +- Logs étape [1/8]→[8/8] pour traçabilité complète + +Co-Authored-By: Claude Sonnet 4.6 + +### Files Changed + +``` +M provisioning/orchestrator/app/main.py +M provisioning/orchestrator/app/models/schemas.py +M provisioning/orchestrator/app/services/xenserver_client_real.py +``` + +### Diff Summary + +``` + provisioning/orchestrator/app/main.py | 136 +++++++++++++-------- + provisioning/orchestrator/app/models/schemas.py | 23 ++++ + .../app/services/xenserver_client_real.py | 77 ++++++++++-- + 3 files changed, 180 insertions(+), 56 deletions(-) +```