Skip to content

Add logic for pending pods timeout - #482

Draft
kstrenkova wants to merge 1 commit into
openstack-k8s-operators:mainfrom
kstrenkova:use-timeout-for-pending-pods
Draft

Add logic for pending pods timeout#482
kstrenkova wants to merge 1 commit into
openstack-k8s-operators:mainfrom
kstrenkova:use-timeout-for-pending-pods

Conversation

@kstrenkova

Copy link
Copy Markdown
Contributor

Recently a way to distinguish pending pods from running pods was added. This brings new opportunities for improvement in test-operator, including early exist for stuck (pending) pods.

This PR introduces parameter PendingTimeout, which will allow users to set the maximum time they are willing to wait for a pod in a pending state until it is marked as stuck. Once the limit is exceeded we can mark it as stuck and move onto the next pod.

This feature will also help in times, when the pods are stuck and therefore exceed the full testing time limit, resulting in no log collection. With this change the job should end early and have logs reporting the pending state.

One thing to note is that it is important to make sure pods that exceeded the pending timeout should be considered as failed by jobs. There should be no false positives by introducing this change!

Recently a way to distinguish pending pods from running pods was
added. This brings new opportunities for improvement in
test-operator, including early exist for stuck (pending) pods.

This PR introduces parameter PendingTimeout, which will allow users
to set the maximum time they are willing to wait for a pod in a
pending state until it is marked as stuck. Once the limit is
exceeded we can mark it as stuck and move onto the next pod.

This feature will also help in times, when the pods are stuck and
therefore exceed the full testing time limit, resulting in no log
collection. With this change the job should end early and have
logs reporting the pending state.

One thing to note is that it is important to make sure pods that
exceeded the pending timeout should be considered as failed by
jobs. There should be no false positives by introducing this
change!
@openshift-ci

openshift-ci Bot commented Jul 29, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci

openshift-ci Bot commented Jul 29, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kstrenkova

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

@centosinfra-prod-github-app

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://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/db7e380899c64186a7de18be9431ee7b

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 05m 55s
✔️ test-operator-kuttl SUCCESS in 45m 46s
podified-multinode-edpm-deployment-crc-test-operator FAILURE in 2h 42m 16s

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.

1 participant