Skip to content

Shorten AWS cluster names in kubetest2-kops#18160

Open
rifelpet wants to merge 1 commit intokubernetes:masterfrom
rifelpet:cluster-name-length
Open

Shorten AWS cluster names in kubetest2-kops#18160
rifelpet wants to merge 1 commit intokubernetes:masterfrom
rifelpet:cluster-name-length

Conversation

@rifelpet
Copy link
Copy Markdown
Member

@rifelpet rifelpet commented Apr 4, 2026

Some presubmit job names are so long that the resulting cluster names aren't accepted. This shortens kubetest2-kops' generated cluster names.

https://prow.k8s.io/view/gs/kubernetes-ci-logs/pr-logs/pull/kops/18152/pull-kops-aws-upgrade-k133-ko133-to-kstable-kolatest-many-addons/2039944759954378752

W0403 06:13:56.677631 58468 executor.go:141] error running task "LaunchTemplate/master-ap-southeast-2b.masters.e2e-pr18152.pull-kops-aws-upgrade-k133-ko133-to-kstable-kolatest-many-addons.tests-kops-aws.k8s.io" (3m39s remaining to succeed): operation error EC2: DescribeLaunchTemplateVersions, https response error StatusCode: 400, RequestID: 38269238-47fb-425d-92c5-d8d1e9f9098b, api error InvalidLaunchTemplateName.MalformedException: A launch template name must be between 3 and 128 characters, and may contain letters, numbers, and the following characters: - ( ) . / _.

Error: error running tasks: deadline exceeded executing task SQS/e2e-pr18152-pull-kops-aws-upgrade-k133-ko133-to-kstable-kolatest-many-addons-tests-kops-aws-k8s-io-nth. Example error: error creating SQS queue: operation error SQS: CreateQueue, https response error StatusCode: 400, RequestID: 6979b7ae-7ccd-556f-8022-d5e7202c1849, api error InvalidParameterValue: Can only include alphanumeric characters, hyphens, or underscores. 1 to 80 in length

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 4, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[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 rifelpet 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

@k8s-ci-robot k8s-ci-robot requested review from hakman and zetaab April 4, 2026 18:37
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 4, 2026
jobName = jobName[:gcpLimit]
}

// AWS launch template names have a 128-char limit. The longest
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think it's the right way to do it, ideally we would have added something to trim those names.
It is not a good approach for GCP either...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

are you thinking this should happen in build_jobs.py instead?

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

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants