Repository navigation
mgr: add mgr daemon to DaemonStateIndex with metadata (hostname) - #20875
Conversation
|
retest this please |
There was a problem hiding this comment.
Fixed...mixed indentation foo.
There was a problem hiding this comment.
I think on the osd/mds path we do some checking of whether the metadata is already being fetched in DaemonStateIndex.updating, should do similar here to avoid firing off multiple requests
There was a problem hiding this comment.
Yes indeed...I wasn't aware of potential races when two standby daemons get the new map. I'm wondering wouldn't it make sense to put the call to daemon_state.notify_updating() in the MetadataUpdate constructor? The updating flag is already cleared in MetadataUpdate.finish() so we might as well set as part of this class.
There was a problem hiding this comment.
Yeah, anything to move the calls into a common place is 👍
159548e to
fd55f37
Compare
|
retest this please |
fd55f37 to
c85ba96
Compare
|
retest this please |
Before updating metadata a call site should check if an update has already been triggered. Adding the notify_update call to the constructor makes sure the correct info for this check is present. Signed-off-by: Jan Fajerski <[email protected]>
This commit changes when (and how) the mgr daemons are added to the DaemonStateIndex. A change in the mgr map now doesn't immediately trigger the addition of a mgr daemon, but triggers a MetadataUpdate operation so that the mgr daemon is added with metadata queried from the mon (most notably the hostname). Fixes: http://tracker.ceph.com/issues/23286 Signed-off-by: Jan Fajerski <[email protected]>
c85ba96 to
5c9db72
Compare
|
@jcsp any objections against moving forward with this? |
jcsp
left a comment
There was a problem hiding this comment.
Sorry for delay, this looks good. Will test and target for mimic.
This commit changes when (and how) the mgr daemons are added to the
DaemonStateIndex. A change in the mgr map now doesn't immediately
trigger the addition of a mgr daemon, but triggers a MetadataUpdate
operation so that the mgr daemon is added with metadata queried from the
mon (most notably the hostname). Depends on #20866.
Fixes: http://tracker.ceph.com/issues/23286
Signed-off-by: Jan Fajerski [email protected]