Project

General

Profile

Actions

Bug #19420

open

stop ceph.target didn't stop osd daemon

Added by Vasu Kulkarni about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

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

Description

in the following test, i noticed that when we issue systemctl stop ceph.target, it didn't stop the osd

1) the first ps command show both mds and osd are running
2) then sudo systemctl stop ceph.target is run and a subsequent ps command shows only mds has stopped, but the systemd status shows inactive?

logs: http://qa-proxy.ceph.com/teuthology/vasu-2017-03-29_17:00:42-smoke-master---basic-vps/961413/teuthology.log


2017-03-29T17:30:08.070 INFO:teuthology.orchestra.run.vpm047:Running: 'sudo ps -eaf | grep ceph'
2017-03-29T17:30:08.156 INFO:teuthology.orchestra.run.vpm047.stdout:ceph     26000     1  0 17:28 ?        00:00:00 /usr/bin/ceph-mds -f --cluster ceph --id vpm047 --setuser ceph --setgroup ceph
2017-03-29T17:30:08.157 INFO:teuthology.orchestra.run.vpm047.stdout:ceph     27075     1  1 17:28 ?        00:00:01 /usr/bin/ceph-osd -f --cluster ceph --id 0 --setuser ceph --setgroup ceph
2017-03-29T17:30:08.157 INFO:teuthology.orchestra.run.vpm047.stdout:ubuntu   27236 23629  0 17:30 ?        00:00:00 bash -c sudo ps -eaf | grep ceph
2017-03-29T17:30:08.157 INFO:teuthology.orchestra.run.vpm047.stdout:ubuntu   27262 27236  0 17:30 ?        00:00:00 grep ceph
2017-03-29T17:30:08.157 INFO:teuthology.orchestra.run.vpm047:Running: 'sudo systemctl list-units | grep ceph'
2017-03-29T17:30:08.217 INFO:teuthology.orchestra.run.vpm047.stdout:  var-lib-ceph-osd-ceph\x2d0.mount                                                    loaded    active mounted   /var/lib/ceph/osd/ceph-0
2017-03-29T17:30:08.217 INFO:teuthology.orchestra.run.vpm047.stdout:  ceph-mds@vpm047.service                                                             loaded    active running   Ceph metadata server daemon
2017-03-29T17:30:08.217 INFO:teuthology.orchestra.run.vpm047.stdout:  ceph-osd@0.service                                                                  loaded    active running   Ceph object storage daemon osd.0
2017-03-29T17:30:08.218 INFO:teuthology.orchestra.run.vpm047.stdout:  system-ceph\x2ddisk.slice                                                           loaded    active active    system-ceph\x2ddisk.slice
2017-03-29T17:30:08.218 INFO:teuthology.orchestra.run.vpm047.stdout:  system-ceph\x2dmds.slice                                                            loaded    active active    system-ceph\x2dmds.slice
2017-03-29T17:30:08.218 INFO:teuthology.orchestra.run.vpm047.stdout:  system-ceph\x2dosd.slice                                                            loaded    active active    system-ceph\x2dosd.slice
2017-03-29T17:30:08.218 INFO:teuthology.orchestra.run.vpm047.stdout:  ceph-mds.target                                                                     loaded    active active    ceph target allowing to start/stop all ceph-mds@.service instances at once
2017-03-29T17:30:08.218 INFO:teuthology.orchestra.run.vpm047.stdout:  ceph-mgr.target                                                                     loaded    active active    ceph target allowing to start/stop all ceph-mgr@.service instances at once
2017-03-29T17:30:08.218 INFO:teuthology.orchestra.run.vpm047.stdout:  ceph-mon.target                                                                     loaded    active active    ceph target allowing to start/stop all ceph-mon@.service instances at once
2017-03-29T17:30:08.218 INFO:teuthology.orchestra.run.vpm047.stdout:  ceph-osd.target                                                                     loaded    active active    ceph target allowing to start/stop all ceph-osd@.service instances at once
2017-03-29T17:30:08.218 INFO:teuthology.orchestra.run.vpm047.stdout:  ceph-radosgw.target                                                                 loaded    active active    ceph target allowing to start/stop all ceph-radosgw@.service instances at once
2017-03-29T17:30:08.218 INFO:teuthology.orchestra.run.vpm047.stdout:  ceph.target                                                                         loaded    active active    ceph target allowing to start/stop all ceph*@.service instances at once
2017-03-29T17:30:08.219 INFO:tasks.systemd:  var-lib-ceph-osd-ceph\x2d0.mount                                                    loaded    active mounted   /var/lib/ceph/osd/ceph-0
  ceph-mds@vpm047.service                                                             loaded    active running   Ceph metadata server daemon
  ceph-osd@0.service                                                                  loaded    active running   Ceph object storage daemon osd.0
  system-ceph\x2ddisk.slice                                                           loaded    active active    system-ceph\x2ddisk.slice
  system-ceph\x2dmds.slice                                                            loaded    active active    system-ceph\x2dmds.slice
  system-ceph\x2dosd.slice                                                            loaded    active active    system-ceph\x2dosd.slice
  ceph-mds.target                                                                     loaded    active active    ceph target allowing to start/stop all ceph-mds@.service instances at once
  ceph-mgr.target                                                                     loaded    active active    ceph target allowing to start/stop all ceph-mgr@.service instances at once
  ceph-mon.target                                                                     loaded    active active    ceph target allowing to start/stop all ceph-mon@.service instances at once
  ceph-osd.target                                                                     loaded    active active    ceph target allowing to start/stop all ceph-osd@.service instances at once
  ceph-radosgw.target                                                                 loaded    active active    ceph target allowing to start/stop all ceph-radosgw@.service instances at once
  ceph.target                                                                         loaded    active active    ceph target allowing to start/stop all ceph*@.service instances at once

2017-03-29T17:30:08.219 INFO:tasks.systemd:Ceph services in failed state
2017-03-29T17:30:08.219 INFO:tasks.systemd:Stopping all Ceph services
2017-03-29T17:30:08.219 INFO:teuthology.orchestra.run.vpm047:Running: 'sudo systemctl stop ceph.target'
2017-03-29T17:30:08.288 INFO:teuthology.orchestra.run.vpm047:Running: 'sudo systemctl status ceph.target'
2017-03-29T17:30:08.392 INFO:teuthology.orchestra.run.vpm047.stdout:â— ceph.target - ceph target allowing to start/stop all ceph*@.service instances at once
2017-03-29T17:30:08.392 INFO:teuthology.orchestra.run.vpm047.stdout:   Loaded: loaded (/usr/lib/systemd/system/ceph.target; enabled; vendor preset: enabled)
2017-03-29T17:30:08.392 INFO:teuthology.orchestra.run.vpm047.stdout:   Active: inactive (dead) since Wed 2017-03-29 17:30:08 UTC; 113ms ago
2017-03-29T17:30:08.392 INFO:teuthology.orchestra.run.vpm047.stdout:
2017-03-29T17:30:08.393 INFO:teuthology.orchestra.run.vpm047.stdout:Mar 29 17:22:19 vpm047 systemd[1]: Reached target ceph target allowing to start/stop all ceph*@.service instances at once.
2017-03-29T17:30:08.393 INFO:teuthology.orchestra.run.vpm047.stdout:Mar 29 17:22:19 vpm047 systemd[1]: Starting ceph target allowing to start/stop all ceph*@.service instances at once.
2017-03-29T17:30:08.393 INFO:teuthology.orchestra.run.vpm047.stdout:Mar 29 17:30:08 vpm047 systemd[1]: Stopped target ceph target allowing to start/stop all ceph*@.service instances at once.
2017-03-29T17:30:08.393 INFO:teuthology.orchestra.run.vpm047.stdout:Mar 29 17:30:08 vpm047 systemd[1]: Stopping ceph target allowing to start/stop all ceph*@.service instances at once.
2017-03-29T17:30:08.393 INFO:tasks.systemd:Checking process status
2017-03-29T17:30:08.393 INFO:teuthology.orchestra.run.vpm047:Running: 'sudo ps -eaf | grep ceph'
2017-03-29T17:30:08.463 INFO:teuthology.orchestra.run.vpm047.stdout:ceph     27075     1  2 17:28 ?        00:00:01 /usr/bin/ceph-osd -f --cluster ceph --id 0 --setuser ceph --setgroup ceph
2017-03-29T17:30:08.463 INFO:teuthology.orchestra.run.vpm047.stdout:ubuntu   27348 23629  0 17:30 ?        00:00:00 bash -c sudo ps -eaf | grep ceph
2017-03-29T17:30:08.463 INFO:teuthology.orchestra.run.vpm047.stdout:ubuntu   27374 27348  0 17:30 ?        00:00:00 grep ceph

No data to display

Actions

Also available in: Atom PDF