OSD: block until we have the same map as the client on pg commands
Right now, if a client has a newer map than we do and sends a PG command (like list_missing, #9219) we can reply ENOENT even if we should have the PG locally. We should probably block pg commands until we're up-to-date with the client, at which point we can say we don't have the PG while acknowledging that we should and are waiting for notifications from other replicas.
OSD: add a get_latest_osdmap command to the admin socket
The command blocks and ensures we have the latest map from the
mon. This is useful in testing and to "unstick" clusters in some
Fixes: #9483, #9484 (maybe)
Signed-off-by: Mykola Golub <firstname.lastname@example.org>
Instead of blocking for every tell command (or even a subset), we can add one new command 'get_latest_osdmap' or similar that blocks and ensures we have the latest map from the mon. The teuthology tests can then use this where appropriate.
Also available in: Atom