Skip to content

Fix opm render failure due to v1-format registries.conf#171

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
lmiccini:fix-opm-registries-conf
May 27, 2026
Merged

Fix opm render failure due to v1-format registries.conf#171
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
lmiccini:fix-opm-registries-conf

Conversation

@lmiccini

@lmiccini lmiccini commented May 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Recent containers/image library versions (used by opm) now hard-error on v1-format registries.conf instead of silently converting it
  • GitHub Actions ubuntu-latest runners ship /etc/containers/registries.conf in v1 format, breaking the "Create index image" step for all operators
  • Fix: set CONTAINERS_REGISTRIES_CONF=/dev/null for the opm steps — safe because opm render pulls by fully-qualified image reference and needs no registry aliases

Failure example

opm render quay.io/.../infra-operator-bundle:abc123 --output yaml
error: loading registries configuration "/etc/containers/registries.conf": registries.conf must be in v2 format but is in v1

Example failed run: https://github.com/lmiccini/infra-operator/actions/runs/26489664801/job/78004845915

Related

Recent versions of the containers/image library (used by opm) now
hard-error on v1-format registries.conf instead of silently converting
it. GitHub Actions ubuntu-latest runners ship with a v1-format config
at /etc/containers/registries.conf, breaking the "Create index image"
step for all operators using this reusable workflow.

Set CONTAINERS_REGISTRIES_CONF=/dev/null for the opm steps. This is
safe because opm render pulls by fully-qualified image reference and
does not need local registry aliasing.

See also: operator-framework/operator-lifecycle-manager#3839

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@openshift-ci openshift-ci Bot requested review from stuggi and viroel May 27, 2026 04:04
@lmiccini

Copy link
Copy Markdown
Contributor Author

@lmiccini lmiccini requested review from abays and dprince and removed request for stuggi and viroel May 27, 2026 04:54
Comment thread .github/workflows/reusable-build-operator.yaml

@abays abays left a comment

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.

/lgtm

@openshift-ci

openshift-ci Bot commented May 27, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abays, lmiccini

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot Bot merged commit 9e9bb98 into openstack-k8s-operators:main May 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants