Skip to content

Fix AnsibleEE job name collisions for long names#1819

Open
holser wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
holser:OSPRH-26041
Open

Fix AnsibleEE job name collisions for long names#1819
holser wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
holser:OSPRH-26041

Conversation

@holser
Copy link

@holser holser commented Feb 16, 2026

Previously, when the combined service + deployment + nodeset name exceeded 63 characters (DNS1123 max), simple truncation could cause different jobs to end up with identical names, leading to collisions.

Replace the arbitrary -10 prefix truncation with a hash-based approach:

  • Build the full execution name without premature truncation
  • If the name exceeds 63 characters, truncate to 54 characters and append an 8-character SHA256 hash suffix
  • This guarantees unique names even when truncation is required

Closes: OSPRH-26041

Previously, when the combined service + deployment + nodeset name
exceeded 63 characters (DNS1123 max), simple truncation could cause
different jobs to end up with identical names, leading to collisions.

Replace the arbitrary -10 prefix truncation with a hash-based approach:
- Build the full execution name without premature truncation
- If the name exceeds 63 characters, truncate to 54 characters and
  append an 8-character SHA256 hash suffix
- This guarantees unique names even when truncation is required

Closes: OSPRH-26041

Signed-off-by: Sergii Golovatiuk <sgolovat@redhat.com>
@holser holser requested review from fao89 and jpodivin February 16, 2026 23:51
@openshift-ci openshift-ci bot requested review from dprince and rabi February 16, 2026 23:51
@holser holser requested a review from slagle February 16, 2026 23:52
Copy link
Contributor

@jpodivin jpodivin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this. It's much better than the solution we originally came up with.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 17, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: holser, jpodivin
Once this PR has been reviewed and has the lgtm label, please assign slagle 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

@karelyatin
Copy link
Contributor

/test openstack-operator-build-deploy-kuttl-4-18
/lgtm

@karelyatin
Copy link
Contributor

/test openstack-operator-build-deploy-kuttl-4-18

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 17, 2026

@holser: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/openstack-operator-build-deploy-kuttl-4-18 e2e44bc link true /test openstack-operator-build-deploy-kuttl-4-18

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@karelyatin
Copy link
Contributor

/test openstack-operator-build-deploy-kuttl-4-18
must gather failure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants