Skip to content

[DNM] feat(test_operator): add parallel_group support for concurrent tempest stages#3967

Open
Valkyrie00 wants to merge 1 commit into
openstack-k8s-operators:mainfrom
Valkyrie00:feat/test-operator-parallel-stages
Open

[DNM] feat(test_operator): add parallel_group support for concurrent tempest stages#3967
Valkyrie00 wants to merge 1 commit into
openstack-k8s-operators:mainfrom
Valkyrie00:feat/test-operator-parallel-stages

Conversation

@Valkyrie00
Copy link
Copy Markdown
Contributor

🚨 POC - DNM - WIP 🚨

Add native parallel_group support to the test_operator Ansible role, enabling multiple Tempest CRs to execute simultaneously on the Kubernetes cluster. This leverages the existing spec.parallel: true field in the test-operator CRD, which was previously unused by ci-framework.

Stages sharing the same parallel_group name in cifmw_test_operator_stages are automatically collected, built as individual Tempest CRs with spec.parallel: true, and applied concurrently. The first CR is applied ahead of the others with a configurable wait (cifmw_test_operator_parallel_resource_wait) to allow discover-tempest-config --create to provision shared OpenStack resources (flavors, images, users, projects) before subsequent CRs start.

Stages without parallel_group continue to execute sequentially, preserving full backward compatibility.

…t stages

Add native parallel_group support to the test_operator Ansible role,
enabling multiple Tempest CRs to execute simultaneously by leveraging
the existing spec.parallel field in the test-operator CRD.

Stages sharing the same parallel_group name are collected, built as
individual Tempest CRs with spec.parallel: true, and applied
concurrently. The first CR is applied ahead with a configurable wait
(cifmw_test_operator_parallel_resource_wait) to allow
discover-tempest-config --create to provision shared OpenStack
resources before subsequent CRs start. Stages without parallel_group
continue to execute sequentially, preserving full backward
compatibility.

After all parallel pods complete, logs are collected from each CR's
PVCs via temporary pods, and all parallel resources are cleaned up
automatically.

Signed-off-by: Vito Castellano <vcastell@redhat.com>
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 27, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign sdatko for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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/d5ba57ffd28e47549003a1c52ce2d3ea

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 13m 50s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 27m 11s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 36m 49s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 2h 01m 24s
✔️ cifmw-multinode-tempest SUCCESS in 1h 47m 28s
✔️ cifmw-pod-zuul-files SUCCESS in 4m 53s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 08s
cifmw-pod-pre-commit FAILURE in 8m 51s
✔️ cifmw-molecule-test_operator SUCCESS in 3m 36s

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.

1 participant