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

Add missing 'https://' to cifmw_ceph_rgw_keystone_ep #1795

Conversation

fultonj
Copy link
Contributor

@fultonj fultonj commented May 30, 2024

The default value for the cifmw_ceph_rgw_keystone_ep variable in the role cifmw_cephadm was missing the https:// part of the keystone endpoint URL so RGW was not getting configured with a correct keystone endpoint.

As a pull request owner and reviewers, I checked that:

  • Appropriate testing is done and actually running
  • Appropriate documentation exists and/or is up-to-date:
    • README in the role
    • Content of the docs/source is reflecting the changes

@fultonj fultonj requested a review from fmount May 30, 2024 20:44
@github-actions github-actions bot marked this pull request as draft May 30, 2024 20:44
Copy link

Thanks for the PR! ❤️
I'm marking it as a draft, once your happy with it merging and the PR is passing CI, click the "Ready for review" button below.

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/500203bcc1954e6dbc258b2a57e2614c

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 02m 22s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 21m 24s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 11m 12s
✔️ podified-multinode-hci-deployment-crc SUCCESS in 1h 45m 18s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 11s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 18s
✔️ cifmw-molecule-cifmw_cephadm SUCCESS in 5m 03s

@fultonj
Copy link
Contributor Author

fultonj commented May 31, 2024

recheck

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/389777511f8648849cb21bb7596bd34c

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 05m 33s
podified-multinode-edpm-deployment-crc FAILURE in 1h 12m 13s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 18m 54s
✔️ podified-multinode-hci-deployment-crc SUCCESS in 1h 48m 59s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 8m 45s
✔️ cifmw-pod-pre-commit SUCCESS in 7m 39s
✔️ cifmw-molecule-cifmw_cephadm SUCCESS in 5m 51s

@@ -66,7 +66,7 @@ cifmw_cephadm_pacific_filter: "16.*"
# The path of the rendered rgw spec file
cifmw_ceph_rgw_spec_path: /tmp/ceph_rgw.yml
cifmw_ceph_mds_spec_path: /tmp/ceph_mds.yml
cifmw_ceph_rgw_keystone_ep: "keystone-internal.openstack.svc:5000"
cifmw_ceph_rgw_keystone_ep: "https://keystone-internal.openstack.svc:5000"
Copy link
Contributor

Choose a reason for hiding this comment

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

https here is added to the internal keystone endpoint: if tls is not enabled at Pod level (podLevel: true in the ctlplane) but the ingress is configured as an edge router [1] this will fail.
While I think https should be the default, we should isolate the prefix in it's own variable.
I'm ok to follow up on that, but I would try something like:

cifmw_ceph_rgw_keystone_ep: "{{ cifmw_ceph_rgw_keystone_urischeme | default("https") }}:keystone-internal.openstack.svc:5000"

so we can make it configurable w/o introducing extra complexity.

[1] https://www.redhat.com/architect/encryption-secure-routes-openshift

Copy link
Contributor

Choose a reason for hiding this comment

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

However, considering you can override the entire variable, my comment is not a blocker for the patch, more of a consideration.
So let me know if you want to keep it as it is and I can approve.

@fmount fmount self-requested a review May 31, 2024 16:21
Copy link
Contributor

@fmount fmount left a comment

Choose a reason for hiding this comment

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

/lgtm

@fmount
Copy link
Contributor

fmount commented May 31, 2024

Let's rebase/recheck and merge this patch to and see how CI behaves. I'm not sure it's enough to solve the current problem but given we have jobs w/ tls enabled at pod level I think we need this.

The default value for the cifmw_ceph_rgw_keystone_ep
variable in the role cifmw_cephadm was missing the
https:// part of the keystone endpoint URL so RGW
was not getting configured with a correct keystone
endpoint.

Signed-off-by: John Fulton <fulton@redhat.com>
@fultonj fultonj force-pushed the ceph_rgw_keystone_http branch from 7839e2f to 6b0ad23 Compare May 31, 2024 19:54
@openshift-ci openshift-ci bot removed the lgtm label May 31, 2024
@fultonj fultonj marked this pull request as ready for review May 31, 2024 20:16
@fultonj fultonj requested review from pablintino and abays May 31, 2024 20:17
@fmount
Copy link
Contributor

fmount commented May 31, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label May 31, 2024
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/e47e0526cb45484d9840ac1b7591edbd

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 35m 49s
podified-multinode-edpm-deployment-crc FAILURE in 1h 10m 18s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 18m 28s
podified-multinode-hci-deployment-crc RETRY_LIMIT in 12m 03s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 03s
✔️ cifmw-pod-pre-commit SUCCESS in 8m 18s
✔️ cifmw-molecule-cifmw_cephadm SUCCESS in 4m 58s

@mandre
Copy link
Contributor

mandre commented Jun 3, 2024

I have tested this patch in my local environment and I confirm it allows me to use RGW with enableSecureRBAC: true. This fixes https://issues.redhat.com/browse/OSPRH-6199.

recheck

@fmount fmount requested a review from rebtoor June 3, 2024 08:05
@fmount
Copy link
Contributor

fmount commented Jun 3, 2024

recheck

@rebtoor
Copy link
Contributor

rebtoor commented Jun 3, 2024

/approve

Copy link
Contributor

openshift-ci bot commented Jun 3, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rebtoor

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

@openshift-merge-bot openshift-merge-bot bot merged commit d638f7d into openstack-k8s-operators:main Jun 3, 2024
6 checks passed
@fultonj fultonj deleted the ceph_rgw_keystone_http branch January 28, 2025 23:51
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.

4 participants