Skip to content

On OpenShift Cluster (configured with k8s mode) not propagating back logs and return codes to actions #4393

@karthik-pixel

Description

@karthik-pixel

Checks

Controller Version

0.13.1

Deployment Method

Helm

Checks

  • This isn't a question or user support case (For Q&A and community support, go to Discussions).
  • I've read the Changelog before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes

To Reproduce

There are two issues:
1. When we use container image (non-root) the pod does not actually runs any actions but pipelines shows passed, to reproduce this, created a container file with non-root(example 1001) and push to container registry, and use the same image in github workflows, and it says pipelines are passed, but it wont execute any steps mentioned.
2. When we use container image(root) the pod does run the actions but the error code wont propagate back to actions, when there is failure it wont fails the pipeline.

Describe the bug

runners' values.yaml:

containerMode:
  type: "kubernetes"
  kubernetesModeWorkVolumeClaim:
    accessModes: ["ReadWriteOnce"]
    storageClassName: "px-csi-db"
    resources:
      requests:
        storage: 1Gi

Describe the expected behavior

  1. Expected non-root container images working properly and run the specified actions.
  2. Expected root container propagating the error code from runner to action

Additional Context

runners' values.yaml:


containerMode:
  type: "kubernetes"
  kubernetesModeWorkVolumeClaim:
    accessModes: ["ReadWriteOnce"]
    storageClassName: "px-csi-db"
    resources:
      requests:
        storage: 1Gi

Controller Logs

due to compliance issue can't attach the runner or controller logs

Runner Pod Logs

same as above

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggha-runner-scale-setRelated to the gha-runner-scale-set modeneeds triageRequires review from the maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions