Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cls: new force-promotion flag for class methods #6217

Merged
merged 1 commit into from Oct 13, 2015

Conversation

dillaman
Copy link

@dillaman dillaman commented Oct 9, 2015

Class methods that use the cls_get_request_origin should not be
proxied to a base tier -- otherwise the origin will reflect the
cache tier instead of the client.

Fixes: #13380

Signed-off-by: Jason Dillaman dillaman@redhat.com

Class methods that use the cls_get_request_origin should not be
proxied to a base tier -- otherwise the origin will reflect the
cache tier instead of the client.

Fixes: ceph#13380

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
@dillaman
Copy link
Author

dillaman commented Oct 9, 2015

Verified rbd/cli/{base/install.yaml cachepool/small.yaml clusters/fixed-1.yaml features/object_map.yaml fs/btrfs.yaml msgr-failures/few.yaml workloads/rbd_cli_copy.yaml} test case now passes

@dillaman dillaman added this to the infernalis milestone Oct 9, 2015
@jdurgin
Copy link
Member

jdurgin commented Oct 9, 2015

It seems like making Message::get_orig_source_inst() actually have the original source instance would be more generally useful. It seems like having inaccurate addrs could cause scheduling problems for forwarded requests otherwise.

@dillaman
Copy link
Author

I thought about adding the client data -- but since the proxy ops are just forwarding the standard op, the message payload would need to be expanded to include the originator. Then I thought it might introduce a (minor) security hole since at that point, anybody could craft a message saying that they were anybody (without adding additional logic to stop bad actors).

In the long term, I think forwarding the origin fits in nicely with a future capability to forward / act-on-the-behalf-of clients.

@athanatos
Copy link
Contributor

Passed tests

athanatos pushed a commit that referenced this pull request Oct 13, 2015
cls: new force-promotion flag for class methods

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
@athanatos athanatos merged commit 46953cb into ceph:infernalis Oct 13, 2015
@dillaman dillaman deleted the wip-13380-infernalis branch October 13, 2015 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants