Navigation Menu

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

pybind: add ceph_volume_client interface for Manila and similar frameworks #6205

Merged
merged 13 commits into from Jan 20, 2016

Conversation

jcsp
Copy link
Contributor

@jcsp jcsp commented Oct 8, 2015

No description provided.

@jcsp jcsp added cephfs Ceph File System feature labels Oct 8, 2015
@liewegas
Copy link
Member

Looks good to me. We just need to add this to ceph.spec.in and debian/* so that it goes in the python-ceph package

self.libcephfs = load_libcephfs()
self.cluster = c_void_p()

self.state = "uninitialized"
if rados_inst is not None:
return self.create_with_rados(rados_inst)
Copy link
Member

Choose a reason for hiding this comment

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

Should probably check here that the caller hasn't filled in the auth_id (and possibly the conf/conffile) since we're ignoring it in favor of the existing rados inst.

@gregsfortytwo
Copy link
Member

I know you're doing stuff with this for Manila, but we should get something that tests it in the nightlies too.

@jcsp
Copy link
Contributor Author

jcsp commented Nov 9, 2015

Related test PR: ceph/ceph-qa-suite#680

@jcsp jcsp changed the title Wip volume client pybind: add ceph_volume_client interface for Manila and similar frameworks Nov 19, 2015
@jcsp
Copy link
Contributor Author

jcsp commented Nov 19, 2015

ping @gregsfortytwo any outstanding issues?

@gregsfortytwo
Copy link
Member

Nothing I know of. Need to check tests (which are still not passing linter, looks like).

@gregsfortytwo
Copy link
Member

Looks like the test failed in my integration branch. I doubt anything else there is causing issues for this: http://pulpito.ceph.com/ubuntu-2015-11-24_12:55:44-fs-greg-fs-verify---basic-multi/1158617/

@gregsfortytwo gregsfortytwo removed their assignment Nov 25, 2015
John Spray added 13 commits January 5, 2016 00:47
For those folks who aren't running as 'admin'.  We
already allow this at the C layer, it was just left
out of the python binding.

Signed-off-by: John Spray <john.spray@redhat.com>
Things got weird (tcmalloc exceptions) if one used
both libraries from the same process, presumably
because of some of these dependencies.

Signed-off-by: John Spray <john.spray@redhat.com>
Enable setting up cephfs while borrowing
the CephContext from an already-set-up
rados python client.

Signed-off-by: John Spray <john.spray@redhat.com>
This is for applications that want to use
librados and libcephfs in the same process,
without trying to have two CephContexts

Signed-off-by: John Spray <john.spray@redhat.com>
This is for FSaaS interfaces like Manila.

Signed-off-by: John Spray <john.spray@redhat.com>
Tests for VolumeClient will use this.

Signed-off-by: John Spray <john.spray@redhat.com>
Signed-off-by: John Spray <john.spray@redhat.com>
Generalize authorization so that an ID can be authorized
for multiple shares.

Remove commented blocks.

Separate purge from delete.  Up to the caller to background
the purge part.

Signed-off-by: John Spray <john.spray@redhat.com>
Signed-off-by: John Spray <john.spray@redhat.com>
Signed-off-by: John Spray <john.spray@redhat.com>
Signed-off-by: John Spray <john.spray@redhat.com>
Don't try waiting on empty context gatherbuilder.

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

jcsp commented Jan 8, 2016

Passing happily now with no breakage to other stuff that I can see: http://pulpito.ceph.com/jspray-2016-01-07_15:02:38-fs-wip-jcsp-testing---basic-smithi/17155

@jcsp jcsp assigned gregsfortytwo and unassigned jcsp Jan 8, 2016
gregsfortytwo added a commit that referenced this pull request Jan 13, 2016
@jcsp
Copy link
Contributor Author

jcsp commented Jan 13, 2016

@gregsfortytwo
Copy link
Member

Need to ID new failures in that integration branch but I hope to click the button.

@jcsp
Copy link
Contributor Author

jcsp commented Jan 18, 2016

Here's another passing run. Only non-green jobs are ones that didn't get nodes in time (5) or one that couldn't download apt key (1).

http://pulpito.ceph.com/jspray-2016-01-15_02:26:10-fs-wip-volume-client---basic-mira/

gregsfortytwo added a commit that referenced this pull request Jan 18, 2016
…reg-fs-testing

#6205

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
gregsfortytwo added a commit that referenced this pull request Jan 19, 2016
…reg-fs-testing

#6205

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
gregsfortytwo added a commit that referenced this pull request Jan 20, 2016
pybind: add ceph_volume_client interface for Manila and similar frameworks

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
@gregsfortytwo gregsfortytwo merged commit f3e58a0 into ceph:master Jan 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants