yp-engineering / rbd-docker-plugin

Ceph RBD docker volume driver plugin.
MIT License
102 stars 70 forks source link

problem with docker 1.10 #23

Closed nidorpi closed 8 years ago

nidorpi commented 8 years ago

Hi, I try to use rbd plugin but unfortunately I've error like this:

go get github.com/yp-engineering/rbd-docker-plugin

src/github.com/yp-engineering/rbd-docker-plugin/main.go:83: cannot use d (type cephRBDVolumeDriver) as type volume.Driver in function argument:
        cephRBDVolumeDriver does not implement volume.Driver (missing Get method)

It's fresh installation of ubuntu 14.04 but on ubuntu 15.10 I've the same error. Any idea how to resolve this ?

--- edit

after analyzing code other pluggins I see that file driver.go should implement method :

func (d cephRBDVolumeDriver) Get(r dkvolume.Request) dkvolume.Response { ... }
func (d cephRBDVolumeDriver) List(r dkvolume.Request) dkvolume.Response { ... }
hekaldama commented 8 years ago

relates to #21. Been working on a mesos framework. Will try and get to these soon. PRs are always welcome ;)

zhubingbing commented 8 years ago

Me too, how to resolve this ?

nidorpi commented 8 years ago

zhubingbing, I wrote this two functions and compile plugin again

zhubingbing commented 8 years ago

Be able to share the next?,I don‘t know to write。

hekaldama commented 8 years ago

Try latest and see if that fixes you. If not, reopen with details. Thanks!

ebertech commented 8 years ago

Hi, still getting them same thing...

alfredcs commented 8 years ago

Same here on centos 7.2

[root@dcosa16 codes]# go version go version go1.6 linux/amd64 [root@dcosa16 codes]# uname -a Linux dcosa16 3.10.0-327.10.1.el7.x86_64 #1 SMP Tue Feb 16 17:03:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux [root@dcosa16 codes]# go get github.com/yp-engineering/rbd-docker-plugin go/bin/src/github.com/yp-engineering/rbd-docker-plugin/main.go:83: cannot use d (type cephRBDVolumeDriver) as type volume.Driver in argument to volume.NewHandler: cephRBDVolumeDriver does not implement volume.Driver (missing Capabilities method)

pineking commented 8 years ago

still the same error

jiamliang commented 8 years ago

still the same error +1

tanmx commented 8 years ago

still the same error +1 [root@localhost ~]# docker version Client: Version: 1.9.1 API version: 1.21 Go version: go1.4.2 Git commit: a34a1d5 Built: Fri Nov 20 13:25:01 UTC 2015 OS/Arch: linux/amd64 Cannot connect to the Docker daemon. Is the docker daemon running on this host? [root@localhost ~]# uname -a Linux localhost 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux [root@localhost ~]# go version go version go1.6.3 linux/amd64

porcupie commented 8 years ago

All the +1 are not actually reading this ticket - likely what you actually have is a #41

The OP ticket issue has already been resolved. locking this issue now.