Skip to content

[18.0-fr5] Remove go.work before container build#872

Open
openshift-cherrypick-robot wants to merge 1 commit intoopenstack-k8s-operators:18.0-fr5from
openshift-cherrypick-robot:cherry-pick-871-to-18.0-fr5
Open

[18.0-fr5] Remove go.work before container build#872
openshift-cherrypick-robot wants to merge 1 commit intoopenstack-k8s-operators:18.0-fr5from
openshift-cherrypick-robot:cherry-pick-871-to-18.0-fr5

Conversation

@openshift-cherrypick-robot
Copy link
Copy Markdown

This is an automated cherry-pick of #871

/assign stuggi

The go.work file is generated by the CI environment which may have a
higher Go version than the build image (go-toolset). This causes build
failures when go.work references a Go version that the build image
does not provide. Since the Dockerfile builds a single module, go.work
is not needed and can be safely removed before building.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
@stuggi
Copy link
Copy Markdown
Contributor

stuggi commented Apr 13, 2026

/retest

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/ef11f11f428247cab395953991a61db9

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 51m 14s
telemetry-operator-multinode-cloudkitty FAILURE in 20m 27s
✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 13m 48s
✔️ telemetry-operator-multinode-default-telemetry SUCCESS in 1h 34m 03s
functional-tests-osp18 FAILURE in 1h 49m 29s

@stuggi
Copy link
Copy Markdown
Contributor

stuggi commented Apr 13, 2026

recheck

Copy link
Copy Markdown
Contributor

@stuggi stuggi left a comment

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 added the lgtm label Apr 13, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 13, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: openshift-cherrypick-robot, stuggi

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

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/cd758969c668476792958c9b7a79264e

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 17m 55s
telemetry-operator-multinode-cloudkitty RETRY_LIMIT in 13m 03s
✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 50m 52s
✔️ telemetry-operator-multinode-default-telemetry SUCCESS in 1h 34m 36s
✔️ functional-tests-osp18 SUCCESS in 2h 01m 49s

@stuggi
Copy link
Copy Markdown
Contributor

stuggi commented Apr 14, 2026

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/a549f9ef76ec4d90979d13ee7d386192

openstack-k8s-operators-content-provider FAILURE in 4m 22s
telemetry-operator-multinode-cloudkitty FAILURE in 25m 04s
✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 02m 44s
⚠️ telemetry-operator-multinode-default-telemetry SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
functional-tests-osp18 FAILURE in 1h 46m 18s

@stuggi
Copy link
Copy Markdown
Contributor

stuggi commented Apr 14, 2026

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/ad1a18ccd1864cf89e20da3124ea9b16

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 47m 06s
telemetry-operator-multinode-cloudkitty FAILURE in 31m 11s
✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 43m 57s
✔️ telemetry-operator-multinode-default-telemetry SUCCESS in 1h 31m 13s
✔️ functional-tests-osp18 SUCCESS in 2h 20m 33s

@stuggi
Copy link
Copy Markdown
Contributor

stuggi commented Apr 15, 2026

not sure if this is a real issue with the minio setup for fr5 branch tests?

TASK [Deploy loki operator _raw_params=oc apply -f {{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/telemetry-operator'].src_dir }}/ci/deploy-loki-for-ck.yaml
] ***
Tuesday 14 April 2026  09:03:41 +0000 (0:00:00.028)       0:00:00.072 ********* 
Tuesday 14 April 2026  09:03:41 +0000 (0:00:00.028)       0:00:00.071 ********* 
task path: /home/zuul/src/github.com/openstack-k8s-operators/telemetry-operator/ci/cloudkitty-pre_deploy-install_loki.yml:17
fatal: [localhost]: FAILED! => 
    changed: true
    cmd: |
      oc apply -f /home/zuul/src/github.com/openstack-k8s-operators/telemetry-operator/ci/deploy-loki-for-ck.yaml
    delta: '0:00:00.398251'
    end: '2026-04-14 09:03:41.788823'
    msg: non-zero return code
    rc: 1
    start: '2026-04-14 09:03:41.390572'
    stderr: |-
      Warning: would violate PodSecurity "restricted:latest": allowPrivilegeEscalation != false (container "minio" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container "minio" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or container "minio" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container "minio" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
      resource mapping not found for name: "minio-console" namespace: "minio-dev" from "/home/zuul/src/github.com/openstack-k8s-operators/telemetry-operator/ci/deploy-loki-for-ck.yaml": no matches for kind "Route" in version "route.openshift.io/v1"
      ensure CRDs are installed first
      resource mapping not found for name: "minio-api" namespace: "minio-dev" from "/home/zuul/src/github.com/openstack-k8s-operators/telemetry-operator/ci/deploy-loki-for-ck.yaml": no matches for kind "Route" in version "route.openshift.io/v1"
      ensure CRDs are installed first
    stderr_lines:
    - 'Warning: would violate PodSecurity "restricted:latest": allowPrivilegeEscalation
      != false (container "minio" must set securityContext.allowPrivilegeEscalation=false),
      unrestricted capabilities (container "minio" must set securityContext.capabilities.drop=["ALL"]),
      runAsNonRoot != true (pod or container "minio" must set securityContext.runAsNonRoot=true),
      seccompProfile (pod or container "minio" must set securityContext.seccompProfile.type
      to "RuntimeDefault" or "Localhost")'
    - 'resource mapping not found for name: "minio-console" namespace: "minio-dev" from
      "/home/zuul/src/github.com/openstack-k8s-operators/telemetry-operator/ci/deploy-loki-for-ck.yaml":
      no matches for kind "Route" in version "route.openshift.io/v1"'
    - ensure CRDs are installed first
    - 'resource mapping not found for name: "minio-api" namespace: "minio-dev" from "/home/zuul/src/github.com/openstack-k8s-operators/telemetry-operator/ci/deploy-loki-for-ck.yaml":
      no matches for kind "Route" in version "route.openshift.io/v1"'
    - ensure CRDs are installed first
    stdout: |-
      namespace/openshift-operators-redhat created
      operatorgroup.operators.coreos.com/loki-operator created
      subscription.operators.coreos.com/loki-operator created
      namespace/minio-dev created
      pod/minio created
      persistentvolumeclaim/minio-pvc created
      service/minio created
      secret/cloudkitty-loki-s3 created
    stdout_lines:
    - namespace/openshift-operators-redhat created
    - operatorgroup.operators.coreos.com/loki-operator created
    - subscription.operators.coreos.com/loki-operator created
    - namespace/minio-dev created
    - pod/minio created
    - persistentvolumeclaim/minio-pvc created
    - service/minio created
    - secret/cloudkitty-loki-s3 created

@vyzigold
Copy link
Copy Markdown
Contributor

@stuggi I think I've seen most of the issue previously and it usually didn't result in a CI failure. What I think is the interesting part of that message is:

no matches for kind "Route" in version "route.openshift.io/v1"'
    - ensure CRDs are installed first

I've seen that fail in the past and I've added waits for the CRD to be present. I'll try it again, maybe we'll get more lucky. I'll take a look at our playbooks and maybe move the route CRD wait around, so that it catches this issue as well.

@vyzigold
Copy link
Copy Markdown
Contributor

recheck

@vyzigold
Copy link
Copy Markdown
Contributor

I see. I never cherry-picked the "route wait PR" into fr-5. I created the PR #874

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/7e31cac2884a4ea882179ca3f2108b74

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 27m 46s
telemetry-operator-multinode-cloudkitty FAILURE in 27m 00s
✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 3h 02m 23s
✔️ telemetry-operator-multinode-default-telemetry SUCCESS in 1h 31m 42s
✔️ functional-tests-osp18 SUCCESS in 2h 14m 42s

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.

3 participants