Project

General

Profile

Bug #48779

orchestrator provides no ceph-[mon,mgr,osd,mds,...].target equivalent

Added by Jan Fajerski about 3 years ago. Updated almost 3 years ago.

Status:
Won't Fix
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

In the olden days systemd could stop all daemons of a type on a single node via the daemon type specific targets (e.g. ceph-mon.target). Since octopus and the orchestrator taking over this is no longer possible.

Changing cephadm to produce these daemon type specific targets seems unfeasible (would have to change the existing naming scheme, would break backwards compatibility). Possibly the orchestrator could provide a command for that.

I'm opening this just to keep track of this "regression". Feel free to close if this is deemed unnecessary.

History

#1 Updated by Sebastian Wagner about 3 years ago

If you want to stop all all OSDs, on a particular host, you should probably call

ceph osd ok-to-stop osd.x osd.y ...
systemctl stop ceph-osd.target 

otherwise you'd risk to render your cluster in a read-only mode.
I for one wound not recommend to make use of those additional targets, except if you know what you are doing.
I'd like to encourage users to use the orch cli in order to stop daemons, mainly because this way we can prevent daemons from getting stopped that are critical to the operation of the cluster.

We now have four use cases for (e.g. stopping) daemons:

  • stop services per host
  • stop services per daemon
  • stop services per service
  • stop services limited by services and by host

Right now, there are only two commands for this kind of operation:

ceph orch daemon stop osd.x # to stop individual osds
ceph orch stop grafana # to stop complete services

Do we need to extend the orch CLI here?

This also relates to https://github.com/ceph/ceph/pull/38560#issuecomment-754057945

#3 Updated by Sebastian Wagner about 3 years ago

  • Priority changed from Normal to Low

#4 Updated by Sebastian Wagner almost 3 years ago

  • Status changed from New to Won't Fix

let's encourage users to use

ceph orch stop <servicee-name>

instead.

Also available in: Atom PDF