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

librbd: proper check for get_data_pool compatibility #11755

Merged
merged 1 commit into from Nov 4, 2016

Conversation

trociny
Copy link
Contributor

@trociny trociny commented Nov 3, 2016

Fixes: http://tracker.ceph.com/issues/17791
Signed-off-by: Mykola Golub mgolub@mirantis.com

trociny pushed a commit that referenced this pull request Nov 3, 2016
librbd: handle get_data_pool failure due to old version OSD #11755
@@ -303,7 +303,7 @@ Context *OpenRequest<I>::handle_v2_get_data_pool(int *result) {
if (*result == 0) {
bufferlist::iterator it = m_out_bl.begin();
*result = cls_client::get_data_pool_finish(&it, &data_pool_id);
} else if (*result == -ENOEXEC) {
} else if (*result == -ENOEXEC || *result == -EOPNOTSUPP) {
Copy link

Choose a reason for hiding this comment

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

Whoops -- the original ENOEXEC check was just supposed to be EOPNOTSUPP. Not sure why I put the wrong error code in there.

@dillaman dillaman added this to the kraken milestone Nov 3, 2016
Fixes: http://tracker.ceph.com/issues/17791
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
@trociny trociny changed the title librbd: handle get_data_pool failure due to old version OSD librbd: proper check for get_data_pool compatibility Nov 3, 2016
@trociny
Copy link
Contributor Author

trociny commented Nov 3, 2016

@dillaman updated

@dillaman
Copy link

dillaman commented Nov 3, 2016

lgtm

trociny pushed a commit that referenced this pull request Nov 4, 2016
librbd: proper check for get_data_pool compatibility #11755
@dillaman dillaman merged commit ff00d41 into ceph:master Nov 4, 2016
@trociny trociny deleted the wip-17791 branch November 5, 2016 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants