]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr: race between daemon state and service map in 'service status'
authorMykola Golub <mgolub@suse.com>
Thu, 1 Nov 2018 12:05:23 +0000 (14:05 +0200)
committerMykola Golub <mgolub@suse.com>
Thu, 1 Nov 2018 12:05:23 +0000 (14:05 +0200)
commit9f53d1bab374f23f23bb355b7d77aa5fd6351aeb
tree52417500b1a80bbdd1ba05072ed97448764cf439
parent1b57df1d514588b1c8232fe0c348b21fcc90c4ee
mgr: race between daemon state and service map in 'service status'

If a daemon is removed from daemon_state it is still present in the
service map. So when 'service status' iterates daemons from service map,
it may not find it in daemon_state. Use pending_service_map instead
when building daemons lists, which is up ot date with daemon_state.

Fixes: http://tracker.ceph.com/issues/36656
Signed-off-by: Mykola Golub <mgolub@suse.com>
src/mgr/DaemonServer.cc