Bug 2282560
| Summary: | vSphere ceph Plugin will not work if we Enable mTLS configuration in ceph cluster | ||
|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Krishna Ramaswamy <kramaswa> |
| Component: | Ceph-Dashboard | Assignee: | Nizamudeen <nia> |
| Status: | CLOSED ERRATA | QA Contact: | Krishna Ramaswamy <kramaswa> |
| Severity: | urgent | Docs Contact: | Anjana Suparna Sriram <asriram> |
| Priority: | urgent | ||
| Version: | 7.1 | CC: | akraj, ceph-eng-bugs, cephqe-warriors, jcaratza, mburkhar, mmurthy, rlepaksh, rpollack, vdas |
| Target Milestone: | --- | Keywords: | External |
| Target Release: | 7.1z1 | Flags: | kramaswa:
needinfo+
|
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | ceph-18.2.1-223 | Doc Type: | Known Issue |
| Doc Text: |
.REST APIs expect `root_ca_cert` to be present in the nVMEoF specification for mTLS to work
Previously, REST API would expect `root_ca_cert` to be present in the nVMEoF specification for mTLS to work. Due to this, the REST API would fail for nVMEoF requests when `root_ca_cert` is not provided.
As a workaround, follow the below steps to configure mTLS and enable nVMEoF requests.
. Add the server certificate content into the `root_ca_cert` attribute.
+
----
root_ca_cert: |
-----BEGIN CERTIFICATE-----
MIIFKjCCAxKgAwIBAgIUPwXJd2aunZqKQt1wIRy5KxdGN6UwDQYJKoZIhvcNAQEL
BQAwEzERMA8GA1UEAwwIYXV0aG5vZGUwHhcNMjQwNzAyMDg0NjU4WhcNMzQwNjMw
MDg0NjU4WjATMREwDwYDVQQDDAhhdXRobm9kZTCCAiIwDQYJKoZIhvcNAQEBBQAD
ggIPADCCAgoCggIBANuY5yi2s7NeVgMbqDs4hRCzdvcc2fPil6UUAfcbtptzK9+q
-----END CERTIFICATE-----
----
. Set the `enable_auth` attribute to 'true'.
+
----
enable_auth: true
----
. Verify the nvmeof-gateway-list.
+
----
ceph dashboard nvmeof-gateway-list
{"gateways": {"cephqe-node2": {"service_url": "10.70.39.49:5500"}, "cephqe-node3": {"service_url": "10.70.39.50:5500"}, "cephqe-node5": {"service_url": "10.70.39.52:5500"}, "cephqe-node7": {"service_url": "10.70.39.54:5500"}}}
----
. Remove the hostname entry and replace the `nvmeof.rbd` service name with following command.
+
----
ceph dashboard nvmeof-gateway-rm cephqe-node2
ceph dashboard nvmeof-gateway-rm cephqe-node3
ceph dashboard nvmeof-gateway-rm cephqe-node5
ceph dashboard nvmeof-gateway-rm cephqe-node7
----
. Add the nVMEoF gateway URL, along with its service name, to the dashboard.
+
----
ceph dashboard nvmeof-gateway-add nvmeof.rbd -i <(echo 10.70.39.49:5500)
----
Result: mTLS is configured and the nVMEoF requests work.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-08-07 11:21:31 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2298581 | ||
|
Description
Krishna Ramaswamy
2024-05-22 14:48:16 UTC
Non-blocker. mTLS to be fixed in z1, post-GA The mTLS issue will be fixed in 7.1z1. Hence this issue will be in NEW state for tracking. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat Ceph Storage 7.1 security and bug fix update.), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2024:5080 |