Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[validation] check glanceAPI names are valid #955

Merged

Conversation

stuggi
Copy link
Contributor

@stuggi stuggi commented Jul 19, 2024

The glanceAPI controller creates StatefulSet for glanceapi to run. This adds a StatefulSet pod's label
"controller-revision-hash": "<statefulset_name>-" to the pod.
The kubernetes label is restricted under 63 char and the revision hash is an int32, 10 chars + the hyphen. Which results in a default statefulset max len of 52 chars. The statefulset name also contain the glance name and the glanceAPI type + 2 hyphens. So the max len also need to be reduced bye the length of those.

Also the name of the created rabbitmq instance must match a lowercase RFC 1123.

Depends-On: openstack-k8s-operators/lib-common#532
Depends-On: openstack-k8s-operators/glance-operator#587

Jira: https://issues.redhat.com/browse/OSPRH-8063

@openshift-ci openshift-ci bot requested review from dprince and viroel July 19, 2024 08:42
@stuggi stuggi requested review from gibizer and fmount and removed request for dprince and viroel July 19, 2024 08:43
@stuggi stuggi requested a review from abays July 19, 2024 09:27
Copy link
Contributor

@abays abays left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link
Contributor

openshift-ci bot commented Jul 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abays, gibizer, stuggi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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

Copy link

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://review.rdoproject.org/zuul/buildset/b9b15a1daf51423ab5338b343b263809

✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 29m 09s
podified-multinode-edpm-deployment-crc FAILURE in 25m 22s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 34m 42s
✔️ cifmw-data-plane-adoption-osp-17-to-extracted-crc SUCCESS in 2h 32m 12s
openstack-operator-tempest-multinode FAILURE in 2h 29m 13s

Copy link
Contributor

openshift-ci bot commented Jul 23, 2024

New changes are detected. LGTM label has been removed.

@stuggi
Copy link
Contributor Author

stuggi commented Jul 23, 2024

rebased

@abays abays added the lgtm label Jul 23, 2024
The glanceAPI controller creates StatefulSet for glanceapi to run.
This adds a StatefulSet pod's label
"controller-revision-hash": "<statefulset_name>-<hash>"
to the pod.
The kubernetes label is restricted under 63 char and the revision
hash is an int32, 10 chars + the hyphen. Which results in a default
statefulset max len of 52 chars. The statefulset name also
contain the glance name and the glanceAPI type + 2 hyphens. So the
max len also need to be reduced bye the length of those.

Also the name of the created rabbitmq instance must match a lowercase
RFC 1123.

Depends-On: openstack-k8s-operators/lib-common#532
Depends-On: openstack-k8s-operators/glance-operator#587

Jira: https://issues.redhat.com/browse/OSPRH-8063

Signed-off-by: Martin Schuppert <[email protected]>
Copy link
Contributor

openshift-ci bot commented Jul 23, 2024

New changes are detected. LGTM label has been removed.

@stuggi
Copy link
Contributor Author

stuggi commented Jul 23, 2024

once more a rebase

@abays abays added the lgtm label Jul 23, 2024
@stuggi
Copy link
Contributor Author

stuggi commented Jul 24, 2024

/test openstack-operator-build-deploy-kuttl

@openshift-merge-bot openshift-merge-bot bot merged commit dfdde79 into openstack-k8s-operators:main Jul 24, 2024
8 checks passed
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.

3 participants