]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commit
sync-pull: Check the actual repo readiness 2550/head
authorDavid Galloway <david.galloway@ibm.com>
Thu, 12 Mar 2026 22:44:35 +0000 (18:44 -0400)
committerDavid Galloway <david.galloway@ibm.com>
Thu, 12 Mar 2026 23:06:15 +0000 (19:06 -0400)
commit6b77bd036cfa86a2e902eadb3eb89d3ebc52d0ff
tree29ebef1d9278da1a0384386445c88cd8ef4d7410
parenta07a37ae4af20f4f909b2b2c95cfd8e51338bc8e
sync-pull: Check the actual repo readiness

This has been broken for.. possibly ever.

--head results in 405 Method Not Allowed

Just a GET results in 200 no matter what, whether the repo exists or not.

```
++ curl -fsSo - --connect-timeout 5 --max-time 10 https://shaman.ceph.com/api/repos/ceph/reef/efac5a54607c13fa50d4822e50242b86e6e446df/rocky/10/flavors/default/
++ jq -r '.[].status // empty'
+ status=
+ '[' '' = ready ']'
+ echo 'Shaman repo for rocky/10 is not ready (status: unknown). Skipping.'
Shaman repo for rocky/10 is not ready (status: unknown). Skipping.
```

Signed-off-by: David Galloway <david.galloway@ibm.com>
scripts/sync-pull