Skip to content

Fix Keystone Memcached endpoints for TLS and IPv6 - #697

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
lmiccini:fix-keystone-memcached-ipv6-tls
Oct 15, 2026
Merged

openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
lmiccini:fix-keystone-memcached-ipv6-tls

Conversation

@lmiccini

Copy link
Copy Markdown
Contributor

The [keystone_authtoken] section emitted memcached_servers using the TLS-listener list unconditionally, which for a non-TLS Memcached uses the wrong list and drops the inet6: prefix required for IPv6 addresses. It also gated memcache_tls_enabled and the MTLS cert files on MemcachedAuthCert (MTLS presence) rather than on whether the Memcached server runs with TLS.

Select the server list based on .MemcachedTLS (TLS listener list when TLS, inet-prefixed plain list otherwise) and gate memcache_tls_enabled on .MemcachedTLS, nesting the MTLS cert files inside as an optional extra. Wire the MemcachedTLS template parameter in manila_controller.go, which was not previously exposed.

Add functional tests covering the non-TLS keystone_authtoken output and the MTLS-with-TLS case.

The [keystone_authtoken] section emitted memcached_servers using the
TLS-listener list unconditionally, which for a non-TLS Memcached uses the
wrong list and drops the inet6: prefix required for IPv6 addresses. It
also gated memcache_tls_enabled and the MTLS cert files on
MemcachedAuthCert (MTLS presence) rather than on whether the Memcached
server runs with TLS.

Select the server list based on .MemcachedTLS (TLS listener list when
TLS, inet-prefixed plain list otherwise) and gate memcache_tls_enabled on
.MemcachedTLS, nesting the MTLS cert files inside as an optional extra.
Wire the MemcachedTLS template parameter in manila_controller.go, which
was not previously exposed.

Add functional tests covering the non-TLS keystone_authtoken output and
the MTLS-with-TLS case.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Central YAML (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 135201c7-765e-44eb-a1f5-6f0f7cd6b2b0
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@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/833139b8e4e94e33a4f654a12c90a96e

✔️ manila-s2i-content-provider SUCCESS in 5h 59m 30s
❌ manila-s2i-test-cephfs FAILURE in 16m 38s
✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 59m 32s
❌ manila-operator-kuttl FAILURE in 17m 50s

@lmiccini

Copy link
Copy Markdown
Contributor Author

recheck

@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/6de6675866a042448b51e9bede1d15d5

✔️ manila-s2i-content-provider SUCCESS in 15m 27s
⚠️ manila-s2i-test-cephfs SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
❌ openstack-k8s-operators-content-provider FAILURE in 14m 37s
⚠️ manila-operator-kuttl SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider

@lmiccini

Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build succeeded (check pipeline).
https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/0f1fe58c906d4f1fb62d86b29572e71a

✔️ manila-s2i-content-provider SUCCESS in 6h 14m 20s
✔️ manila-s2i-test-cephfs SUCCESS in 1h 43m 45s
✔️ openstack-k8s-operators-content-provider SUCCESS in 3h 18m 35s
✔️ manila-operator-kuttl SUCCESS in 39m 38s

@stuggi stuggi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci

openshift-ci Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lmiccini, stuggi

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

@openshift-merge-bot
openshift-merge-bot Bot merged commit b9cb7f3 into openstack-k8s-operators:main Oct 15, 2026
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.

2 participants