Skip to content

Force arch for pulling bundle#51

Merged
mclasmeier merged 1 commit into
mainfrom
mc/docker-bundle-oci-arch
Feb 16, 2026
Merged

Force arch for pulling bundle#51
mclasmeier merged 1 commit into
mainfrom
mc/docker-bundle-oci-arch

Conversation

@mclasmeier
Copy link
Copy Markdown
Collaborator

@mclasmeier mclasmeier commented Feb 16, 2026

The recent change in the docker building + using a new format (OCI instead of Docker), caused a breakage for roxie -- it was not able to pull the images anymore:

❯ MAIN_IMAGE_TAG=4.11.x-114-g3749e29c22 ./roxie deploy operator 
00:00 Running with a controlling terminal.
00:02 🚀 ACS Deployer initialized
00:02 roxctl version: 4.11.x-94-g682dc835b2
00:02 Looking up main image tag
00:02 Using MAIN_IMAGE_TAG from environment: 4.11.x-114-g3749e29c22
00:02 Preparing and verifying Docker credentials...
00:02 REGISTRY_USERNAME/REGISTRY_PASSWORD unset. Trying to obtain Docker credentials from config file: /Users/mclasmeier/.docker/config.json
00:03 Successfully verified credentials for quay.io (repository: rhacs-eng/main)
00:03 Docker credentials verified successfully
00:03 Initiating deployment of Operator
00:03 🚀 Deploying Operator only...
00:05 Missing CRDs detected (centrals.platform.stackrox.io, securedclusters.platform.stackrox.io, securitypolicies.config.stackrox.io)
00:05 Fetching bundle quay.io/rhacs-eng/stackrox-operator-bundle:v4.11.0-114-g3749e29c22
00:05 Created temporary directory: /var/folders/mt/4vkmn4ps3dq_ylx6drvnl1ph0000gn/T/stackrox-operator-bundle-1817998613
00:05 Using podman to extract bundle
00:05 Pulling operator bundle image...
00:06 Command output:
00:06 Trying to pull quay.io/rhacs-eng/stackrox-operator-bundle:v4.11.0-114-g3749e29c22...
Error: unable to copy from source docker://quay.io/rhacs-eng/stackrox-operator-bundle:v4.11.0-114-g3749e29c22: choosing an image from manifest list docker://quay.io/rhacs-eng/stackrox-operator-bundle:v4.11.0-114-g3749e29c22: no image found in image index for architecture "arm64", variant "v8", OS "linux"

Error: deployment failed: failed to ensure CRDs installed: failed to pull bundle image: exit status 125

This PR makes it so that the bundle is pulled for arch amd64 -- also on e.g. arm64. Let me quote from the commit:

+               // Force amd64 platform for pulling the operator bundle image.
+               // This is
+               //   1. fine because bundle images only contain platform-agnostic YAML files and
+               //   2. required to pull the image after the recent changes to the operator bundle image build process.
+               pullCmd := exec.CommandContext(ctx, containerTool, "pull", "--platform", "linux/amd64", bundleImage)

Now, deploying works again:

 MAIN_IMAGE_TAG=4.11.x-114-g3749e29c22 ./roxie deploy operator
00:00 Running with a controlling terminal.
00:00 🚀 ACS Deployer initialized
00:00 roxctl version: 4.11.x-94-g682dc835b2
00:00 Looking up main image tag
00:00 Using MAIN_IMAGE_TAG from environment: 4.11.x-114-g3749e29c22
00:00 Preparing and verifying Docker credentials...
00:00 REGISTRY_USERNAME/REGISTRY_PASSWORD unset. Trying to obtain Docker credentials from config file: /Users/mclasmeier/.docker/config.json
00:01 Successfully verified credentials for quay.io (repository: rhacs-eng/main)
00:01 Docker credentials verified successfully
00:01 Initiating deployment of Operator
00:01 🚀 Deploying Operator only...
00:03 Missing CRDs detected (centrals.platform.stackrox.io, securedclusters.platform.stackrox.io, securitypolicies.config.stackrox.io)
00:03 Fetching bundle quay.io/rhacs-eng/stackrox-operator-bundle:v4.11.0-114-g3749e29c22
00:03 Created temporary directory: /var/folders/mt/4vkmn4ps3dq_ylx6drvnl1ph0000gn/T/stackrox-operator-bundle-1206150949
00:03 Using podman to extract bundle
00:03 Pulling operator bundle image...
00:07 ✓ Bundle extracted to: /var/folders/mt/4vkmn4ps3dq_ylx6drvnl1ph0000gn/T/stackrox-operator-bundle-1206150949
00:07 Applying 3 CRD(s) to cluster
00:09 ✓ Successfully applied CRD config.stackrox.io_securitypolicies.yaml
00:10 ✓ Successfully applied CRD platform.stackrox.io_centrals.yaml
00:12 ✓ Successfully applied CRD platform.stackrox.io_securedclusters.yaml
00:12 Cleaned up CRD bundle directory: /var/folders/mt/4vkmn4ps3dq_ylx6drvnl1ph0000gn/T/stackrox-operator-bundle-1206150949
00:13 Operator tag: 4.11.0-114-g3749e29c22
00:14 Created temporary directory: /var/folders/mt/4vkmn4ps3dq_ylx6drvnl1ph0000gn/T/stackrox-operator-bundle-312725600
00:14 Using podman to extract bundle
00:14 Bundle image already available locally, skipping pull
00:15 ✓ Bundle extracted to: /var/folders/mt/4vkmn4ps3dq_ylx6drvnl1ph0000gn/T/stackrox-operator-bundle-312725600
00:15 Bundle image: quay.io/rhacs-eng/stackrox-operator-bundle:v4.11.0-114-g3749e29c22
00:15 Applying 3 CRD(s) to cluster
00:16 ✓ Successfully applied CRD config.stackrox.io_securitypolicies.yaml
00:17 ✓ Successfully applied CRD platform.stackrox.io_centrals.yaml
00:18 ✓ Successfully applied CRD platform.stackrox.io_securedclusters.yaml
00:18 🔍 Parsing ClusterServiceVersion deployment specification
00:18 📋 Operator deployment plan:
00:18   • Namespace: rhacs-operator-system
00:18   • ServiceAccount: rhacs-operator-controller-manager
00:29 ⏳ Waiting for operator deployment to become ready...
00:42 ✓ Operator deployment is ready (1 replicas)
00:42 🎉 Operator deployment completed successfully!
00:42 Cleaned up operator bundle directory: /var/folders/mt/4vkmn4ps3dq_ylx6drvnl1ph0000gn/T/stackrox-operator-bundle-312725600
00:42 ✓ Operator deployed successfully
00:42 You can now deploy Central or SecuredCluster components separately
00:42 🎉 Deployment complete!

roxie on  mc/docker-bundle-oci-arch [$!?] via 🐹 v1.25.0 on ☁️  mclasmei@redhat.com took 43s 
❯ kc -n rhacs-operator-system get pods
NAME                                                 READY   STATUS    RESTARTS   AGE
rhacs-operator-controller-manager-5bcb7b565b-2hwmd   1/1     Running   0          89s

Comment thread internal/deployer/operator.go
@mclasmeier mclasmeier merged commit 1e257ac into main Feb 16, 2026
3 checks passed
@mclasmeier mclasmeier deleted the mc/docker-bundle-oci-arch branch May 18, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants