Don't mistake the daemon-helper line for the actual
daemon process.
Fixes: http://tracker.ceph.com/issues/15900
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit
66901ccc04077c86dbb713ddb4c1ab6de075f482)
lines = ps_txt.split("\n")[1:]
for line in lines:
- if line.find("ceph-mds") != -1:
+ if "ceph-mds" in line and not "daemon-helper" in line:
if line.find("-i {0}".format(mds_id)) != -1:
log.info("Found ps line for daemon: {0}".format(line))
return int(line.split()[0])