]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/log
ceph-build.git
2 weeks agoChange quay-quay-quay.... to quay.ceph.io 2500/head
Dan Mick [Tue, 9 Dec 2025 05:09:45 +0000 (21:09 -0800)]
Change quay-quay-quay.... to quay.ceph.io

The external name works from locations outside the existing sepia lab,
and there's no good reason not to use the public name.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
3 weeks agoMerge pull request #2496 from dmick/fix-quay-pruner
David Galloway [Fri, 5 Dec 2025 23:53:23 +0000 (18:53 -0500)]
Merge pull request #2496 from dmick/fix-quay-pruner

quay-pruner: completely overhaul prune-quay.py

6 weeks agoreview comments: 2496/head
Dan Mick [Sat, 15 Nov 2025 00:00:40 +0000 (16:00 -0800)]
review comments:

- explain --stragglers a bit in help text
- add re match group names and use them
- use variables for URLs in messages
- dryrun -> dry-run
- remove dead code

will squash before merge if approved.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
6 weeks agoMerge pull request #2475 from ceph/podman-prune-external
Dan Mick [Thu, 13 Nov 2025 01:32:11 +0000 (17:32 -0800)]
Merge pull request #2475 from ceph/podman-prune-external

setup_container_runtime.sh: prune ext. containers

6 weeks agoquay-pruner: completely overhaul prune-quay.py
Dan Mick [Tue, 11 Nov 2025 00:17:18 +0000 (16:17 -0800)]
quay-pruner: completely overhaul prune-quay.py

Pruning had stopped working (up to >26000 image tags), and the
reasons were many; one, pruning's always been less deterministic
than I'd hope; two, when I switched us to ceph.git/container for
building images, I mistakenly changed the format of the 'fulltag'
(no longer has a short sha1 in it) and that was sort of driving
the pruning process.  three, I suspect some of the newer flavors
etc. were slipping through the cracks.

So here's an attempt to fix all that by changing the algorithm
fundamentally; now, tags of a certain manifest digest are considered
at the same time, and their sha1 checked in shaman as usual (but
only their sha1); if it's found, the tags are all left, and if not,
they're all removed.  This should be cleaner, faster, and more
reliable.

Also refactored a lot of the worker routines to util.py so I could
add some helper/debug/info scripts:

get-tagdates.py generates JSON showing tag-to-age for examining the
state of things

delete-tags.py takes tags on the CLI to delete, or can be invoked
with '--stragglers <age>' to remove anything older than age (as long
as it's not in shaman or seems like it might be a 'distinguished' build
(with recent release names in its name)).

prune-quay.py also now reports summary statistics of its operation.