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
quincy: mon,auth,cephadm: support auth key rotation #48093
Conversation
Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit fa8ad55)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com> (cherry picked from commit 6139bb4)
Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit d54c49d)
Add commands to create, clear, or commit pending_key. Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit 9ed2162)
Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit cb8c7f6)
Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit c3562e9)
Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit 39da18b)
Only the async_call got this before. Signed-off-by: Sage Weil <sage@newdream.net> Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com> (cherry picked from commit 07ad8df)
Rotate the live auth key for a running daemon without restarting. Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit 5cf7944)
Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit 9fc4dc1)
Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit be9020a)
Also, leave out the caps. Signed-off-by: Sage Weil <sage@newdream.net> Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com> (cherry picked from commit 34ba1a5)
This writes the key to the osd_key in the block device label. Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit 0bf78de)
These messages are distracting. Signed-off-by: Sage Weil <sage@newdream.net> Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com> (cherry picked from commit b723bd0)
Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit 68abdc2)
Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit 2eedae9)
Caveats: - only works with osd, mds, mgr so far - sometimes we have to restart the daemon Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit 8ca919f)
Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit 4916fd2)
Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit 48f8c8a)
Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit ae45f1e)
Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit 772e426)
This is mostly pointless, *except* that after a key rotation it ensures that the new key is used immediately (and the pending_key is committed by the mon). Signed-off-by: Sage Weil <sage@newdream.net> (cherry picked from commit 84c4562)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com> (cherry picked from commit 99d3a59)
Signed-off-by: Adam King <adking@redhat.com> (cherry picked from commit c3bed0a)
The issue came in 98b89120321059397798170f7ae2bf7c64e4f4b2. Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com> (cherry picked from commit 708e5e8)
This is a fixup for: mgr/cephadm: add daemon 'rotate-key' action The way we rotate mgr's secret require: 1) writing the new pending-key to mgr's file, 2) restarting the mgr via the `mgr fail` mon command. Unfortunately, we might be doing the first step wrongly. `_create_daemoan()` is a coroutine (Python's `async def`) while we don't `wait` for it. IIUC the underlying doc correctly, this has no effect, and thus the mgr is restarted with old key. "Note that simply calling a coroutine will not schedule it to be executed" See: https://docs.python.org/3/library/asyncio-task.html#id1 Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com> (cherry picked from commit e9b9641)
this test needs to be updated to account for the new keyring information being introduced Signed-off-by: Adam King <adking@redhat.com> (cherry picked from commit b2085f0)
issue was not reproducible, other two test_nfs tests in the run + 5 reruns of the exact test that failed all passed (https://pulpito.ceph.com/adking-2022-12-07_15:13:51-orch:cephadm-wip-adk3-testing-2022-12-05-1317-quincy-distro-default-smithi/). Overall, nothing here that should block merging I think. First two are expected and last failure looks unrelated to PRs in the run (and obviously doesn't happen in most runs). Will watch in case I see it again. |
|
jenkins retest this please |
|
@yuriw can you include this PR next time you do a RADOS run on quincy? The orch run looked good, so just needs RADOS now. Thanks. |
|
jenkins retest this please |
|
Rados suite review: https://pulpito.ceph.com/?branch=wip-yuri7-testing-2023-01-30-1510-quincy Failures, unrelated: Details: |
This is the quincy backport of the PR #43655.
Backport ticket: https://tracker.ceph.com/issues/57541.
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. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows