]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-daemon: fix pod stop 32157/head
authorSage Weil <sage@redhat.com>
Tue, 10 Dec 2019 19:19:40 +0000 (13:19 -0600)
committerSage Weil <sage@redhat.com>
Tue, 10 Dec 2019 19:20:03 +0000 (13:20 -0600)
- rm -f, not stop, so we don't leave things lingering in 'podman ps -a'
  output
- this also seems to fix/work around a problem where stopping the container
  leaves the daemon running?

Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-daemon/ceph-daemon

index 8acf4a258a4a17ca5b51f276c560ce31d35d42ef..87fa36a05f2f7a8c69a644dd2c944c31973127f3 100755 (executable)
@@ -829,7 +829,7 @@ def deploy_crash(fsid, uid, gid, config, keyring):
                 '[Service]\n'
                 'Type=simple\n'
                 'ExecStart={cmd}\n'
-                'ExecStop=-{container_path} stop ceph-{fsid}-crash\n'
+                'ExecStop=-{container_path} rm -f ceph-{fsid}-crash\n'
                 'Restart=always\n'
                 'RestartSec=10\n'
                 'StartLimitInterval=10min\n'
@@ -869,7 +869,7 @@ EnvironmentFile=-/etc/environment
 ExecStartPre=-{container_path} rm ceph-{fsid}-%i
 ExecStartPre=-{install_path} -d -m0770 -o {uid} -g {gid} /var/run/ceph/{fsid}
 ExecStart=/bin/bash {data_dir}/{fsid}/%i/cmd
-ExecStop=-{container_path} stop ceph-{fsid}-%i
+ExecStop=-{container_path} rm -f ceph-{fsid}-%i
 Restart=on-failure
 RestartSec=10s
 TimeoutStartSec=120