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

libcephfs: fix python tests and fix getcwd on missing dir #7901

Merged
merged 4 commits into from Mar 24, 2016

Conversation

jcsp
Copy link
Contributor

@jcsp jcsp commented Mar 3, 2016

No description provided.

@gregsfortytwo
Copy link
Member

@ukernel, please review

gregsfortytwo added a commit that referenced this pull request Mar 9, 2016
…greg-fs-testing

#7901

Reviewed-by: Yan, Zheng <zyan@redhat.com>
@gregsfortytwo gregsfortytwo assigned jcsp and unassigned gregsfortytwo Mar 10, 2016
@jcsp jcsp force-pushed the wip-pycephfs-fixes branch 2 times, most recently from f551b1e to 25e8e36 Compare March 10, 2016 13:24
gregsfortytwo added a commit that referenced this pull request Mar 11, 2016
…greg-fs-testing

#7901

Reviewed-by: Yan, Zheng <zyan@redhat.com>
John Spray added 4 commits March 14, 2016 12:32
Borrowed this from rados/test_python.  It's for
invoking the test that lives in src/test/pybind/test_cephfs.py

Signed-off-by: John Spray <john.spray@redhat.com>
This was passing 0 for mode on all opened files,
resulting in subsequent calls failing because the
files didn't have the right permission bits.

Did this ever work?  Perhaps if the client was laxer
in check before?

Signed-off-by: John Spray <john.spray@redhat.com>
...if the directory has been unlinked in
the background.  Previously this would
assert out, now it will just give you
the last string that you passed into chdir.

Signed-off-by: John Spray <john.spray@redhat.com>
The python bindings were expecting a different behaviour
than libcephfs actually has.  On overflow, it doesn't return
the data size, it just gives you -ERANGE.  The python bindings
need to cope with that, and also let you pass in a size param
so that you can handle it.

Signed-off-by: John Spray <john.spray@redhat.com>
@jcsp
Copy link
Contributor Author

jcsp commented Mar 14, 2016

Updated to run tests as root. Nothing rooty about the tests, other than that in teuthology the filesystem's root dir has uid 0, so so does everything that wants to write there.

@jcsp
Copy link
Contributor Author

jcsp commented Mar 16, 2016

@jcsp jcsp removed their assignment Mar 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants