Page MenuHomePhabricator

[cookbooks.ceph] Add a cookbook to drain a ceph osd in a safe manner
Closed, ResolvedPublic

Description

Things that it should take into account:

  • The cluster will not become read only due to space issues
  • That there's no placement group missing an osd placed in this osd (so it does not become read only)
  • That there's no placement only in this osd (so it does not become missing)
  • Optionally wait until the rebalance is done

Related Objects

Event Timeline

dcaro changed the task status from Open to In Progress.
dcaro triaged this task as High priority.
dcaro moved this task from To refine to Doing on the User-dcaro board.

Mentioned in SAL (#wikimedia-cloud) [2023-02-16T10:15:33Z] <dcaro> purges osd daemons 48 and 40 from eqiad ceph cluster (T329709)

Change 889775 had a related patch set uploaded (by David Caro; author: David Caro):

[cloud/wmcs-cookbooks@main] ceph.osd: Add a cookbook to depool_and_destroy osd daemons

https://gerrit.wikimedia.org/r/889775

Change 889775 merged by jenkins-bot:

[cloud/wmcs-cookbooks@main] ceph.osd: Add a cookbook to depool_and_destroy osd daemons

https://gerrit.wikimedia.org/r/889775

Change 966136 had a related patch set uploaded (by David Caro; author: David Caro):

[cloud/wmcs-cookbooks@main] ceph: add drain/undrain host and rack cookbooks

https://gerrit.wikimedia.org/r/966136

Change 966136 merged by jenkins-bot:

[cloud/wmcs-cookbooks@main] ceph: add drain/undrain host and rack cookbooks

https://gerrit.wikimedia.org/r/966136

Change #1013369 had a related patch set uploaded (by David Caro; author: David Caro):

[cloud/wmcs-cookbooks@main] ceph: drain and undrain in chunks

https://gerrit.wikimedia.org/r/1013369

Change #1013369 merged by jenkins-bot:

[cloud/wmcs-cookbooks@main] ceph: drain and undrain in chunks

https://gerrit.wikimedia.org/r/1013369