]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: workaround unit replace failure
author胡玮文 <huww98@outlook.com>
Sun, 13 Jun 2021 06:23:56 +0000 (14:23 +0800)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 10 Aug 2021 14:31:20 +0000 (16:31 +0200)
commit9c8ae01dafa026e630d061538321454a5a3596d4
tree41449a287a6282ec22e3aee9fc2ba4d17d9ad355
parenta3eada916767a90cbfb36fefecd6eecceb68c052
cephadm: workaround unit replace failure

This should be a bug in systemd. It failed to cleanup cgroups when stop the
unit. Then if we start a new unit with the same name, the 'ExecStartPre' command
will fail with status=219/CGROUP (Only when systemd unified cgroup hierarchy is
enabled), because cgroup v2 does not allow process in non-leaf group. This
should be fixed in systemd commit e08dabfec7304dfa0d59997dc4219ffaf22af717.

By now, we just remove these left over cgroups before start new unit.

Fixes: https://tracker.ceph.com/issues/50998
Signed-off-by: 胡玮文 <huww98@outlook.com>
(cherry picked from commit 1fee255ee4ceab99684c34e3e64532b2eb555a9e)
src/cephadm/cephadm