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

mgr/cephadm: Add OSDService.post_remove() #42989

Merged

Conversation

sebastian-philipp
Copy link
Contributor

Do not remove the osd.N keyring, if we failed to deploy the OSD, because
we cannot recover from it. The OSD keys are created by ceph-volume and not by
us.

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

Copy link
Member

@liewegas liewegas left a comment

Choose a reason for hiding this comment

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

cephadm/tests/test_cephadm.py:851:13: E124 closing bracket does not match visual indentation
cephadm/tests/test_cephadm.py:857:13: E124 closing bracket does not match visual indentation
cephadm/tests/test_cephadm.py:863:13: E124 closing bracket does not match visual indentation
cephadm/tests/test_cephadm.py:868:13: E124 closing bracket does not match visual indentation
cephadm/tests/test_cephadm.py:1385:13: E306 expected 1 blank line before a nested definition, found 0
4     E124 closing bracket does not match visual indentation
1     E306 expected 1 blank line before a nested definition, found 0

otherwise lgtm!

We should never remove the mon keyring. Let's move
this piece of code into the MonService class

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
Do not remove the osd.N keyring, if we failed to deploy the OSD, because
we cannot recover from it. The OSD keys are created by ceph-volume and not by
us.

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants