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

Hammer uclient checking #4629

Merged
3 commits merged into from May 11, 2015
Merged

Hammer uclient checking #4629

3 commits merged into from May 11, 2015

Conversation

gregsfortytwo
Copy link
Member

Backports the new preemptive pool permission checking.

Fixes: #11510.

ukernel and others added 3 commits May 8, 2015 11:17
Signed-off-by: Yan, Zheng <zyan@redhat.com>
(cherry picked from commit 3c4028e)
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Just because it's easier to read.

Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 289ee3b)
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Previously, on an error such as a pool not existing,
the caller doing the check would error out, but
anyone waiting on waiting_for_pool_perm would
block indefinitely (symptom was that reads on a
file with a bogus layout would block forever).

Fix by triggering the wait list on errors and
clear the CHECKING state so that the other callers
also perform the check and find the error.

Additionally, don't return the RADOS error code
up to filesystem users, because it can be
misleading.  For example, nonexistent pool is
ENOENT, but we shouldn't give ENOENT on IO
to a file which does exist, we should give EIO.

Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit e08cf25)
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
@gregsfortytwo gregsfortytwo added the cephfs Ceph File System label May 8, 2015
@gregsfortytwo gregsfortytwo assigned ghost May 8, 2015
@gregsfortytwo gregsfortytwo added this to the hammer milestone May 8, 2015
@gregsfortytwo
Copy link
Member Author

We don't normally do backports of FS features, but this one prevents us from running into an ObjectCacher bug that isn't exposed via librbd and for which the fixing patch is in the middle of a fairly big series.

@ghost
Copy link

ghost commented May 9, 2015

http://pulpito.ceph.com/loic-2015-05-09_11:11:23-fs-hammer-uclient-checking-testing-basic-multi/

./virtualenv/bin/teuthology-suite --priority 101 --suite fs -k testing --suite-branch hammer --machine-type plana,burnupi,mira --distro ubuntu --email greg@gregs42.com --ceph hammer-uclient-checking

it that completes successfully, feel free to merge before QE starts testing (that will be announced on ceph-devel, probably monday) and it will be in v0.94.2

@ghost
Copy link

ghost commented May 11, 2015

ghost pushed a commit that referenced this pull request May 11, 2015
Hammer uclient checking

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@ghost ghost merged commit 0f02512 into hammer May 11, 2015
@gregsfortytwo gregsfortytwo deleted the hammer-uclient-checking branch May 11, 2015 16:32
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cephfs Ceph File System
Projects
None yet
3 participants