Repository navigation
mgr/cephadm: store nvmeof mtls certs in sub-directory - #70237
Conversation
VallariAg
left a comment
There was a problem hiding this comment.
nvmeof teuthology test failed: https://pulpito.ceph.com/vallariag-2026-07-16_12:56:40-nvmeof-wip-vallari-testing-mtls-distro-default-trial/
Error in nvmeof gateways initialisation due to "Error: statfs /var/lib/ceph/e4f9c4b7-8117-11f1-976f-d404e6e7d460/nvmeof.nvmeof.b/encryption_key: no such file or directory":
2026-07-16T13:14:06.440 INFO:[email protected]:Jul 16 13:14:06 trial127 bash[46136]: Writing manifest to image destination
2026-07-16T13:14:06.440 INFO:[email protected]:Jul 16 13:14:06 trial127 bash[46136]: Error: statfs /var/lib/ceph/e4f9c4b7-8117-11f1-976f-d404e6e7d460/nvmeof.nvmeof.b/encryption_key: no such file or directory
2026-07-16T13:14:06.440 INFO:[email protected]:Jul 16 13:14:06 trial127 podman[46136]: 2026-07-16 13:14:06.128514668 +0000 UTC m=+4.555711208 image pull abd4476edddfabe604786562aeef6d57974c66417b82488875cc849b7e47e524 quay.io/ceph/nvmeof:devel
2026-07-16T13:14:06.440 INFO:[email protected]:Jul 16 13:14:06 trial127 systemd[1]: ceph-e4f9c4b7-8117-11f1-976f-d404e6e7d460@nvmeof.nvmeof.b.service: Control process exited, code=exited, status=125/n/a
2026-07-16T13:14:06.440 INFO:[email protected]:Jul 16 13:14:06 trial127 systemd[1]: ceph-e4f9c4b7-8117-11f1-976f-d404e6e7d460@nvmeof.nvmeof.b.service: Failed with result 'exit-code'.
2026-07-16T13:14:06.441 INFO:[email protected]:Jul 16 13:14:06 trial127 systemd[1]: Failed to start ceph-e4f9c4b7-8117-11f1-976f-d404e6e7d460@nvmeof.nvmeof.b.service - Ceph nvmeof.nvmeof.b for e4f9c4b7-8117-11f1-976f-d404e6e7d460.
2026-07-16T13:14:06.441 INFO:[email protected]:Jul 16 13:14:06 trial127 systemd[1]: ceph-e4f9c4b7-8117-11f1-976f-d404e6e7d460@nvmeof.nvmeof.b.service: Consumed 6.887s CPU time, 1.1G memory peak.
| os.path.join(data_dir, fn) | ||
| ] = f'/{fn.replace("_", ".")}' | ||
| ] = f'/certs/mtls/{fn.replace("_", ".")}' | ||
| mounts[os.path.join(data_dir, 'encryption_key')] = '/encryption.key' |
There was a problem hiding this comment.
This seems wrong. It will mount /encryption.key as a directory instead a data file.
There was a problem hiding this comment.
the f'/{fn.replace("_", ".")}' from before should have come out to the same thing. This line was just maintaining old behavior for the encryption key. fn would have been encryption_key
c01ac9a to
91809aa
Compare
|
This PR has been added to wip-vallari2-testing-20260723.114249-main. |
This a requirement of nvmeof that the mtls certs are not stored in the root directory. Since cephadm controls the conf template and where the certs are mounted, we can just change both to be somewhere not in the root directory. /certs/mtls was chosen fairly arbitrarily Fixes: https://tracker.ceph.com/issues/78263 Signed-off-by: Adam King <[email protected]>
91809aa to
ee2098c
Compare
|
This is an automated message by src/script/redmine-upkeep.py. I found one or more
The referenced tickets are: Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them. |
This a requirement of nvmeof that the mtls certs are not stored in the root directory. Since cephadm controls the conf template and where the certs are mounted, we can just change both to be somewhere not in the root directory.
/certs/mtls was chosen fairly arbitrarily
Fixes: https://tracker.ceph.com/issues/78263
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.