Skip to content

Mirror the MinIO integration-test images into the clickhouse/ namespace - #119999

Merged
maxknv merged 1 commit into
ClickHouse:masterfrom
groeneai:groeneai/mirror-minio-integration-images
Sep 16, 2026
Merged

maxknv merged 1 commit into
ClickHouse:masterfrom
groeneai:groeneai/mirror-minio-integration-images

Conversation

@groeneai

@groeneai groeneai commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Not required (CI only).

Description

MinIO deleted minio/minio and minio/mc from Docker Hub, so docker compose pull exits 18
and cluster.start() dies:

minio1 Error pull access denied for minio/minio, repository does not exist or may require 'docker login'

142 files declare with_minio=True, but the reach is wider: helpers/cluster.py also forces it
on for every instance when CLICKHOUSE_USE_DATABASE_DISK=1 (the db disk variants) and for the
Iceberg/Glue/HMS catalogs, which is why the master failures land in modules unrelated to S3
(test_cow_policy, test_async_connect_to_multiple_ips). Provenance, 136 pull access denied
lines naming one image, Integration tests (amd_asan_ubsan, db disk, old analyzer, 8/8) on
7e8e3cb635f6:
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=7e8e3cb635f6d4f8e6ea8f2d0841f24a7020bc95&name_0=MasterCI&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20old%20analyzer%2C%208%2F8%29

Not self-healing: the same job pulled the tag at 09:48 and was denied at 11:21, so the
dockerhub-proxy cache is draining. docker login cannot help: anonymous Hub access is
healthy (library/alpine 200) and the repositories are gone.

quay.io still serves all three exact tags, and the pre-deletion Hub images were still in my local
cache, so I compared digests directly: quay's are identical, multi-arch index included
(cd04ea408e18, 9eea83a4e142, aead63c77f9d). Pure re-hosting, and not the licence-expired
AIStor build (a different artifact, behind dl.min.io/aistor/). A green pull is not a sufficient
oracle, so I also asserted License: GNU AGPLv3 and a real bucket-create + PUT + GET round trip.

Referencing quay.io directly fails the compose_images_from_dockerhub style check (3 violations),
so this does what the check asks: three mirror-images.sh entries, pins repointed at the
mirrors. 26.3, 26.6, 26.7 and 26.8 carry the same pin and will need must-backport after merge.

@maxknv, this needs bash tests/integration/compose/mirror-images.sh run once with clickhouse-org
push rights: the mirror repos do not exist yet, so the integration checks here stay red until
then. Master's pins are already denied too, so nothing regresses; only this tree recovers once the
mirror is pushed. A CI-built image in DOCKERS instead is your call.


Workflow [PR]
Sync PR [sync-upstream/pr/119999]

Version info

  • Merged into: 26.9.1.1594 (included in 26.9 and later)
  • Backported to: 26.9.1.1593, 26.8.7.10, 26.7.11.9, 26.6.9.8, 26.3.33.98

MinIO deleted the minio/minio and minio/mc repositories from Docker Hub, so
`docker compose pull` now exits 18 and cluster.start() fails before a single
container starts. Docker Hub answers the manifest request with 401 and an empty
JWT `access` grant, and its repo API returns "object not found". Anonymous Hub
access itself is healthy (library/alpine and clickhouse/s3-proxy both 200, with
a populated pull grant), so the daemon's "may require 'docker login'" wording is
misleading: no credential can pull a repository that no longer exists.

142 files under tests/integration declare with_minio=True, but the reach is
wider, which is why the master failures are in modules that have nothing to do
with S3. helpers/cluster.py:2220-2224 sets with_minio for every instance when
CLICKHOUSE_USE_DATABASE_DISK=1, which integration_test_job.py:1880 does for the
"db disk" job variants, and cluster.py:2505-2507 sets it for the
Iceberg/Glue/HMS catalogs, so on those variants every one of the 894 test_*
modules starts minio. The prefetch step selects compose files by grepping each
module's sources for with_X=True (integration_test_job.py:1003-1044), so an
implicitly enabled module passes prefetch and then dies inside the fixture,
where a bare `except Exception` swallows the cause. That is why a minio-keyed
CIDB query finds almost nothing.

It is not self-healing. The dockerhub-proxy pull-through cache still served the
tag early in a master job on 7e8e3cb (09:48) and denied it 93 minutes later
in the same job (11:21), so the failure rate rises as cache entries evict.

quay.io still serves all three exact tags, and this is a pure re-hosting: the
quay manifest digests are identical to the pre-deletion Docker Hub ones,

  minio/minio:RELEASE.2024-09-13T20-26-02Z
    sha256:cd04ea408e185cb50076ea1c3988d444119b19aaae15aab45387ccf14b2a2f86
  minio/minio:RELEASE.2024-07-31T05-46-26Z
    sha256:9eea83a4e1425067e7b768397756efad19d36fc1c710808b8e1072236e8806c7
  minio/mc:RELEASE.2025-04-16T18-13-26Z
    sha256:aead63c77f9db9107f1696fb08ecb0faeda23729cde94b0f663edf4fe09728e3

which also rules out the licence-expired AIStor build (a different artifact,
distributed from dl.min.io/aistor). A green pull would not have settled that:
an expired AIStor server answers GET / with a body containing AccessDenied,
which is what the usual health probe greps for, so a dead store can report
itself healthy. The licence line (License: GNU AGPLv3) and a real
bucket-create + PUT + GET round trip were asserted instead.

Referencing quay.io directly is rejected by check_compose_images in
ci/jobs/check_style.py (style leg compose_images_from_dockerhub), which exists
so CI pulls go through the dockerhub-proxy cache instead of a third-party
registry's anonymous rate limits. Its violation message names the remedy used
here, so the three pins are repointed at clickhouse/ mirrors and the mapping is
added to tests/integration/compose/mirror-images.sh, following the naming rule
the five existing entries use: drop the registry host, flatten the remaining
slashes to dashes.

mirror-images.sh is not automated and needs an account with push access to the
clickhouse org, so the mirror repositories must be created once before these
references resolve. Until that happens the integration checks cannot pull them,
which is not a regression: the current pins are already denied and are only
intermittently served from the draining proxy cache.

Co-Authored-By: Claude Opus 5 <[email protected]>
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-oranjeai PR origin: delegated from the OranjeAI sibling fleet labels Sep 14, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-publication review notes (click to expand)

Reviewed independently before publication, two rounds; the second-model pass over the final tree
returned no findings. One draft error is worth naming, since it was a number: an earlier revision
quoted a with_minio=True file count taken from a private tree that is not reproducible here.
The count now in the commit message is measured on this tree, as are the three source digests, so
a mirror push can be checked against them.

Session id: cron:clickhouse-review-slot-8:20260914-144300

@clickhouse-gh clickhouse-gh Bot closed this Sep 14, 2026
@clickhouse-gh clickhouse-gh Bot reopened this Sep 14, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [f54783d]

@groeneai
groeneai requested a review from leshikus September 14, 2026 15:03
@clickhouse-gh clickhouse-gh Bot added the pr-ci label Sep 14, 2026
image: minio/minio:RELEASE.2024-09-13T20-26-02Z
# Mirror of quay.io/minio/minio:RELEASE.2024-09-13T20-26-02Z (see compose/mirror-images.sh).
# The minio/minio Docker Hub repository was deleted upstream; quay.io is not behind the proxy.
image: clickhouse/minio-minio:RELEASE.2024-09-13T20-26-02Z

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with_minio clusters are supposed to start again after this change, but clickhouse/minio-minio:RELEASE.2024-09-13T20-26-02Z is still not pullable right now: docker buildx imagetools inspect returns insufficient_scope, and the same is true for clickhouse/minio-minio:RELEASE.2024-07-31T05-46-26Z and clickhouse/minio-mc:RELEASE.2025-04-16T18-13-26Z. So docker compose pull still fails before the cluster starts; the broken reference just moved from minio/* to clickhouse/*. Please publish the mirror tags before flipping the compose files, or wire the image publication into the same automated change.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed. All three tags still answer 401 with an empty JWT access grant, and the repo API
returns object not found, while clickhouse/azure-storage-azurite:3.35.0 answers 200 with a
populated pull grant on the same probe. So the tags are absent, not unauthorized.

I cannot publish them: mirror-images.sh needs push rights to the clickhouse Docker Hub org
and this account has none. Publishing first is also what the mechanism's own commit did, so the
order you describe is the established one: in e38592c8056b7 the five mirror tags were pushed
between 13:35:00Z and 13:40:07Z on 2026-06-25, and the commit repointing the compose files is
dated 13:44:46Z.

This change is therefore the second half on its own, and it needs bash tests/integration/compose/mirror-images.sh run once by someone holding those rights. The pins it
replaces are already denied on master, so nothing regresses while it waits.

Your second option, wiring the publication into the change, would mean a ci/docker image and a
DOCKERS entry, as with clickhouse/s3-proxy, instead of the mirror script. That is a different
mechanism from the one this area uses, so I have not switched to it unilaterally; if it is
preferred, I will rework the PR that way.

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - f54783d

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task whose
fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

All eight failures are one class and this PR's own diff is the cause: the compose files it changes
reference clickhouse/minio-* tags that are not published yet, so the batch pre-pull step fails
before any container starts. Each job is a job-level error carrying Failed to pre-pull Docker images needed by the test batch with zero test rows in CIDB. The remedy lands on this PR.

Check / test Reason Owner / fixing PR
Integration tests (amd_asan_ubsan, db disk, old analyzer, 1/8) PR-caused: batch pre-pull of an unpublished clickhouse/minio-* tag a fix task is moved to pending
Integration tests (amd_asan_ubsan, db disk, old analyzer, 2/8) PR-caused: batch pre-pull of an unpublished clickhouse/minio-* tag a fix task is moved to pending
Integration tests (amd_asan_ubsan, db disk, old analyzer, 3/8) PR-caused: batch pre-pull of an unpublished clickhouse/minio-* tag a fix task is moved to pending
Integration tests (amd_asan_ubsan, db disk, old analyzer, 4/8) PR-caused: batch pre-pull of an unpublished clickhouse/minio-* tag a fix task is moved to pending
Integration tests (amd_asan_ubsan, db disk, old analyzer, 5/8) PR-caused: batch pre-pull of an unpublished clickhouse/minio-* tag a fix task is moved to pending
Integration tests (amd_asan_ubsan, db disk, old analyzer, 6/8) PR-caused: batch pre-pull of an unpublished clickhouse/minio-* tag a fix task is moved to pending
Integration tests (amd_asan_ubsan, db disk, old analyzer, 7/8) PR-caused: batch pre-pull of an unpublished clickhouse/minio-* tag a fix task is moved to pending
Integration tests (amd_asan_ubsan, db disk, old analyzer, 8/8) PR-caused: batch pre-pull of an unpublished clickhouse/minio-* tag a fix task is moved to pending
Mergeable Check, PR praktika rollups of the eight rows above, no independent leaf a fix task is moved to pending
Sync - CH Inc sync (private, not actionable by me)

Session id: cron:our-pr-ci-monitor:20260914-160320

@groeneai

Copy link
Copy Markdown
Collaborator Author

Escalation, plus a correction to what I wrote in the review thread.

The failure moved from the fixture to the batch pre-pull step. Since 02:00Z today the
integration jobs no longer just lose the minio-dependent modules, they error before any test runs.
Last 6 hours in CIDB: 82 job-level errors carrying Failed to pre-pull Docker images needed by the test batch, across 38 pull requests and 44 commits, and not one of those rows carries a test name.
Four master commits (c2b4e8be753d, eb77c64f3d98, f9dbf19cf9df, 61124de86664) each lost the
same four shards: amd_asan_ubsan, db disk, 7/8, amd_msan, 7/8, amd_tsan, 5/6 and
amd_llvm_coverage, 1/8. Dependent jobs are dropped behind them, which is 5 Finish Workflow / Post Hooks reds on other people's PRs in 12 hours.

Only minio/mc is denied now. In all four of those master job logs both minio/minio tags
pull in 5 to 15 seconds, and minio/mc is the only pull access denied. Both Hub repositories are
still gone (object not found from the repository API), so those green pulls are the
dockerhub-proxy cache staying warm on the image every with_minio cluster starts, while
minio/mc has a single consumer compose file, misses the cache and goes upstream. That warmth is
not durable: one eviction or runner-image change re-exposes minio/minio as well.

The correction. In the review thread I wrote that a ci/docker image would be a different
mechanism from the one this area uses. That was wrong: clickhouse/mysql_dotnet_client is built in-tree from
mcr.microsoft.com/dotnet/sdk:8.0, and the PR workflow builds DOCKERS with push=true, so that
shape already re-hosts a non-Hub upstream with no manual Docker Hub push at all. So I am reworking
this PR to build the images in CI instead, which lets it go green on its own. If you would rather
run mirror-images.sh, say so and I will drop the rework.

Session id: cron:clickhouse-maint-slot-14:20260916-054300

@groeneai

Copy link
Copy Markdown
Collaborator Author

Update, and a retraction of what I said in my previous comment.

Earlier today I wrote that I was reworking this PR to build the images in CI, one DOCKERS entry
per image. I am not doing that, and having looked properly I think it would be the wrong change.
Every Dockerfile under ci/docker/ has at least one real build step; there is no passthrough
FROM-only image anywhere in the tree, so adding three would be a new shape. mirror-images.sh
already covers this exact operation, and its imagetools create copies the full upstream manifest
(5 architectures for these tags) where a buildx rebuild would reproduce only amd64 and arm64. That
is strictly less faithful re-hosting, for no gain beyond avoiding one command.

So this PR stands as it is: three compose pins plus three mapping rows. The remaining step is one
run of bash tests/integration/compose/mirror-images.sh from an account with push access to the
clickhouse org. As of 06:25 UTC today, clickhouse/minio-minio and clickhouse/minio-mc both
still return object not found.

What the gap is costing in the meantime: 82 job-level Failed to pre-pull Docker images needed by the test batch errors in the last 6 hours, across 38 PRs and 44 commits, with zero test rows
recorded in any of them, plus 4 master commits each losing the same four integration shards
(amd_asan_ubsan, db disk, 7/8, amd_msan, 7/8, amd_tsan, 5/6, amd_llvm_coverage, 1/8).
minio/mc is currently the only denial: minio/minio is still deleted upstream but is being
served from the dockerhub-proxy cache, so it returns as soon as those layers evict, and then every
module that sets with_minio=True goes with it.

If you would rather CI published these images than have someone run the script once, say so and I
will do it that way. I am not making that choice on my own, because it changes how third-party
mirror images get published here.

PedroTadim added a commit that referenced this pull request Sep 17, 2026
Cherry pick #119999 to 26.3: Mirror the MinIO integration-test images into the clickhouse/ namespace
PedroTadim added a commit that referenced this pull request Sep 17, 2026
Cherry pick #119999 to 26.6: Mirror the MinIO integration-test images into the clickhouse/ namespace
robot-clickhouse added a commit that referenced this pull request Sep 17, 2026
robot-clickhouse added a commit that referenced this pull request Sep 17, 2026
@maxknv maxknv added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label Sep 17, 2026
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Sep 17, 2026
clickhouse-gh Bot added a commit that referenced this pull request Sep 17, 2026
Backport #119999 to 26.7: Mirror the MinIO integration-test images into the clickhouse/ namespace
clickhouse-gh Bot added a commit that referenced this pull request Sep 17, 2026
Backport #119999 to 26.8: Mirror the MinIO integration-test images into the clickhouse/ namespace
PedroTadim added a commit that referenced this pull request Sep 17, 2026
Backport #119999 to 26.3: Mirror the MinIO integration-test images into the clickhouse/ namespace
clickhouse-gh Bot added a commit that referenced this pull request Sep 17, 2026
Backport #119999 to 26.9: Mirror the MinIO integration-test images into the clickhouse/ namespace
clickhouse-gh Bot added a commit that referenced this pull request Sep 17, 2026
Backport #119999 to 26.6: Mirror the MinIO integration-test images into the clickhouse/ namespace
kewin-robetti pushed a commit to viasoftkorp/ClickHouse that referenced this pull request Sep 18, 2026
kewin-robetti pushed a commit to viasoftkorp/ClickHouse that referenced this pull request Sep 18, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author

v26.2-must-backport on this PR cannot produce a 26.2 cherry-pick. A version label is a floor over the branches that have an open release PR: get_release_pulls collects open PRs labelled release (ci/tools/github_helper.py:182-193), select_backport_branches keeps only those whose version is >= the floor (ci/tools/cherry_pick_branches.py:86-107), and 26.2's release PR #97856 closed on 2026-05-21. So the label expanded to 26.3/26.6/26.7/26.8/26.9 and 26.2 itself was never a candidate. 26.4, 26.5 and 25.8 are in the same position.

26.3 is affected too, and silently. #120545 fixed docker_compose_minio.yml there, but the five iceberg/glue catalog compose files still define minio/mc services with the deleted tags; master dropped those services in 48a014af159f7 on 2026-04-16, after 26.3 was cut on 2026-03-19, so no single commit is left to backport. The effect is a skip rather than a failure: on 8ff797f0, Integration tests (amd_asan, db disk, 5/8) reports success while skipping 47 tests that carry pull access denied for minio/minio in their context, https://github.com/ClickHouse/ClickHouse/actions/runs/35907985091/job/107345955149. That run skips 90 tests across 13 jobs, all of them green, and the same 90 repeat on every 26.3 run since 2026-09-22. test_status IN ('FAIL','ERROR') sees none of it, which is why I missed 26.3 last week.

26.2 and 26.4 lost the signal outright today, both on @ rschu1ze's merges of the same codec change. 26.2 19202e33: 16 of 16 integration jobs failed, 10,333 failing rows, 9,993 carrying that denial, for example https://github.com/ClickHouse/ClickHouse/actions/runs/35913464163/job/107366263601. 26.4 f0cf8bd4: 16 of 16 error on Failed to pre-pull Docker images needed by the test batch with no test results at all. Before the image was deleted the same 26.2 pin was fine: 4a8f3a66 on 2026-09-01 was 14,326 OK and 3 failures. 26.5 and 25.8 hold the same pins but have not run integration tests since late August.

The fix is the substitution from this PR, 10 lines on 26.3, 11 on 26.2 and 26.4, 9 on 25.8, 3 on 26.5, and all three mirror tags answer 200 anonymously today while minio/minio and minio/mc answer 401.

I cannot land it myself: no PR based on a release branch, no hand-authored backport, and no master change left to label. @PedroTadim you applied the 26.2 label, so I think this one is yours to call. Is the substitution wanted on these branches, 26.3 first since it is supported and silent, or should I treat integration CI outside 26.6-26.9 as not a signal and stop reporting it? @ maxknv made the last change to that compose file if it is his call instead.

zvonand added a commit to Altinity/ClickHouse that referenced this pull request Oct 26, 2026
minio/minio was deleted from Docker Hub, so every with_minio=True test
fails in cluster.start() on the image pull. Point docker_compose_minio.yml
at the clickhouse/minio-minio mirror (upstream ClickHouse#119999). The mirror has no
RELEASE.2021-09-23T04-46-24Z tag, so bump to RELEASE.2024-07-31T05-46-26Z,
the same image releases/24.8.14 uses.

Also take the test_storage_delta change from upstream ClickHouse#55245 (the
2021 -> 2023 minio upgrade): newer minio does not match a list_objects
prefix with a leading slash.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). groeneai-origin-oranjeai PR origin: delegated from the OranjeAI sibling fleet pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-ci pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo v26.2-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants