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/pybind: Add missing python bindings #33406
Conversation
b7b3cfe
to
8ea41ee
Compare
8ea41ee
to
d23f9d9
Compare
Please add tests to src/test/pybind/test_cephfs.py. And in the commit message, change |
937f14c
to
38969b9
Compare
38969b9
to
fa20b1b
Compare
Rebased and added tests to few fops. I will add tests to remaining fops and refresh |
fb056d4
to
7d7ab98
Compare
Fixed pwritev/preadv issue |
075289b
to
ec37282
Compare
Done |
ec37282
to
1956e61
Compare
@gregsfortytwo could you assign someone to review this ? |
Fixes: https://tracker.ceph.com/issues/44171 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Fixes: https://tracker.ceph.com/issues/44171 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Fixes: https://tracker.ceph.com/issues/44171 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Fixes: https://tracker.ceph.com/issues/44171 Signed-off-by: Kotresh HR <khiremat@redhat.com>
…_return_timeout Fixes: https://tracker.ceph.com/issues/44171 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Fixes: https://tracker.ceph.com/issues/44171 Signed-off-by: Kotresh HR <khiremat@redhat.com>
6388220
to
a123c6f
Compare
@rishabh-d-dave please take a look at this patch when you find time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. But I intend to take look again since the PR has plenty commits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except for few minor issue, looks good.
Also, there are no tests for |
These function are for nfs-ganesha. maybe not export them to python bindings. |
Fixes: https://tracker.ceph.com/issues/44171 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Fixes: https://tracker.ceph.com/issues/44171 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Fixes: https://tracker.ceph.com/issues/44171 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Fixes: https://tracker.ceph.com/issues/44171 Signed-off-by: Kotresh HR <khiremat@redhat.com>
Fixes: https://tracker.ceph.com/issues/44171 Signed-off-by: Kotresh HR <khiremat@redhat.com>
a123c6f
to
ee14806
Compare
Done |
assert('pool_id' in dp_dict.keys()) | ||
assert('pool_name' in dp_dict.keys()) | ||
assert_equal(cephfs.get_pool_id(dp_dict["pool_name"]), dp_dict["pool_id"]) | ||
get_rep_cnt_cmd = "ceph osd pool get " + dp_dict["pool_name"] + " size" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note, tests in qa/
are written with the assumption that Ceph binaries are not accessible via $PATH. But I'm not sure if we should go that way here too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@batrick Is that the case here too ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note, tests in
qa/
are written with the assumption that Ceph binaries are not accessible via $PATH. But I'm not sure if we should go that way here too.
? The workunits like qa/workunits/fs/test_python.sh
assume ceph utils are in $PATH?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIS, test_python.sh run test_cephfs.py and test_cephfs.py doesn't use Ceph commands yet, so it's upto us to decide.
Great work, thanks @kotreshhr ! |
libcephfs/pybind: Add missing python bindings
Fixes: https://tracker.ceph.com/issues/44171
Signed-off-by: Kotresh HR khiremat@redhat.com
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test dashboard backend
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox