Closed vincepii closed 6 years ago
I debugged this a bit and the problem is actually the C library called by ceph-go crashing (or how it is used in ceph-go maybe).
Anyway, I wanted to re-implement the calls using shell commands and noticed that this fork has that done already: https://github.com/porcupie/rbd-docker-plugin.
It seemed to work fine with the initial tests that we did.
@porcupie why don't you try to open a PR? Your fork seems to work well with Jewel!
@vincepii I think you are correct that this is an issue with the go-ceph interface to the C-library Ceph libs. Due to issues with go-ceph, I have in that other fork completely removed go-ceph for all operations and replaced with shell equivalents; we are using it internally instead of this one. Still in discussions whether to replace yp-engineering/rbd-docker-plugin with porcupie/rbd-docker-plugin -- unfortunately, once code is out there it is hard to tell how many people rely on certain functionalities. However, since the rbd
binary is also already used for some operations not provided by go-ceph, I think it might be possible to merge this up more easily since the functionality is the same or better (less buggy).
Feel free to use porcupie/rbd-docker-plugin or open issues/features since that fork is under more active development. However, I do tend to use it as a test-bed for new features (e.g. I also changed the way remove operation works so plugin can optionally just ignore remove API command). I'll try to be more intentional and create github releases so a stable tag can be pulled and I will also endeavor to merge up the removal of go-ceph usage to this project.
@porcupie could you enable issue posting in your fork ?
Oops - thanks for heads up @tsaridas I didn't realize I had to enable 👍
Closing since I merged my fork here.
I am running
rbd-docker-plugin
using ceph version 10.2.1 (3a66dd4f30852819c1bdaa8ec23c795d4ad77269) and following the lines of this post: http://ceph.com/planet/getting-started-with-the-docker-rbd-volume-plugin/.I start the plugin with:
and I try to deploy a container with
This is what I see in the logs:
And this is the output of
rbd-docker-plugin
on the command line:Note that the ceph device is created and locked by this client.