Skip to content

msg/Policy: limit unregistered anon connections to mon#33163

Merged
liewegas merged 1 commit intoceph:masterfrom
liewegas:fix-42328
Feb 15, 2020
Merged

msg/Policy: limit unregistered anon connections to mon#33163
liewegas merged 1 commit intoceph:masterfrom
liewegas:fix-42328

Conversation

@liewegas
Copy link
Member

@liewegas liewegas commented Feb 9, 2020

When we were fixing 'tell mon' we changed the messenger to allow multiple
lossy connections to the same server. This was needed for the mon, and
assumed to be harmless for everyone else. However, for the OSD, it can
lead to out-of-order requests, as observed in this bug:
https://tracker.ceph.com/issues/42328

Fix by reverting this behavior change except for the mon:

  • Introduce a stateless_anon_server policy that sets
    register_lossy_clients = false

  • Effectively revert the behavior change in c48a29b
    so that lossy clients are registered for stateless_server policy.

  • Use the state_anon_server policy for the mon, which was the one place
    where we needed unregistered connections (for 'tell mon.x' to work).

Fixes: https://tracker.ceph.com/issues/42328
Signed-off-by: Sage Weil sage@redhat.com

When we were fixing 'tell mon' we changed the messenger to allow multiple
lossy connections to the same server.  This was needed for the mon, and
assumed to be harmless for everyone else.  However, for the OSD, it can
lead to out-of-order requests, as observed in this bug:
	https://tracker.ceph.com/issues/42328

Fix by reverting this behavior change except for the mon:

- Introduce a stateless_anon_server policy that sets
  register_lossy_clients = false

- Effectively revert the behavior change in c48a29b
  so that lossy clients *are* registered for stateless_server policy.

- Use the state_anon_server policy for the mon, which was the one place
  where we needed unregistered connections (for 'tell mon.x' to work).

Fixes: https://tracker.ceph.com/issues/42328
Signed-off-by: Sage Weil <sage@redhat.com>
Copy link

@dillaman dillaman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 🎉

liewegas added a commit that referenced this pull request Feb 15, 2020
* refs/pull/33163/head:
	msg/Policy: limit unregistered anon connections to mon

Reviewed-by: Neha Ojha <nojha@redhat.com>
@liewegas liewegas merged commit 507d213 into ceph:master Feb 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants