Closed seffyroff closed 6 years ago
The plugin installs successfully if I remove the RBD_CONF_POOL env, but if I then try to create a volume, predictably if fails with:
seffyroff@celery:/var/data$ docker volume create -d wetopi/rbd -o size=206 my_rbd_volume
Error response from daemon: create my_rbd_volume: VolumeDriver.Create: volume-rbd Name=my_rbd_volume Request=Create Message=pool option required
Adding -o pool=rbd allows me to successfully create an image:
seffyroff@celery:/var/data$ docker volume create -d wetopi/rbd -o size=206 my_rbd_volume -o pool="rbd"
my_rbd_volume
seffyroff@celery:/var/data$ docker volume ls
DRIVER VOLUME NAME
wetopi/rbd:latest my_rbd_volume
I see in your changelog:
Rbd pool: is a plugin config param. (changed in order to avoid the need to persist state of volumes).
Perhaps version 1.0 didn't get uploaded to the docker hub?
Continuing on, attempting to deploy from a compose file like this:
volumes:
data:
driver: wetopi/rbd
driver_opts:
size: 256M
pool: rbd
Errors out like this. Looks like it's trying to talk to a Consul KV store?
create container_data: VolumeDriver.Create: volume-rbd Name=container_data Request=Create Message=unable to save volume state: Put http://127.0.0.1:8500/v1/kv/docker/volume/rbd/container_data: dial tcp 127.0.0.1:8500: getsockopt: connection refused
Problem is you are not running the latest plugin version (our fault. makefile was pushing only with version tag)
You can check the version with a:
docker plugin inspect wetopi/rbd:latest | grep PLUGIN_VERSION
Solution:
docker plugin install wetopi/rbd:1.0.1 ... .. .
upon installation with the following arguments:
I get the following output:
Running Docker 18.05.0-ce on Ubuntu Bionic x64.