Coder Social home page Coder Social logo

drbdmanage-docker-volume's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pwfoo

drbdmanage-docker-volume's Issues

Device /dev/drbd<X> isn't created

I tried to use the docker volume plugin but the needed device /dev/drbd isn't created.

# docker volume create --driver drbdmanage --name=drdbvolume1 --opt fs=xfs --opt size=20
Error response from daemon: create drdbvolume1: Could not create volume drdbvolume1
# docker volume ls | grep drdbvolume1
drbdmanage          drdbvolume1
# drbdmanage list-volumes
+------------------------------------------------------------------------------------------------------------+
| Name        | Vol ID |   Size | Minor |                                                            | State |
|------------------------------------------------------------------------------------------------------------|
| drdbvolume1 |      0 | 20 MiB |   101 |                                                            |    ok |
+------------------------------------------------------------------------------------------------------------+

Now there should be a /dev/drbd101 but it's missing!

# ls -lh /dev/drbd[0-9]*
brw-rw---- 1 root disk 147, 0 Oct 18 09:42 /dev/drbd0
brw-rw---- 1 root disk 147, 1 Oct 18 09:42 /dev/drbd1

It works fine if I create it with drbdmanage instead of the drbdmanage-docker-volume plugin.

drbdmanage add-resource web
drbdmanage add-volume web 200MB
drbdmanage deploy-resource web 1
# drbdmanage list-volumes
+------------------------------------------------------------------------------------------------------------+
| Name | Vol ID |       Size | Minor |                                                               | State |
|------------------------------------------------------------------------------------------------------------|
| web  |      0 | 190.74 MiB |   100 |                                                               |    ok |
+------------------------------------------------------------------------------------------------------------+

Device was created as should.

# ls -lh /dev/drbd100 
brw-rw---- 1 root disk 147, 100 Oct 17 15:33 /dev/drbd100

It looks like the docker volume create process doesn't fit the needed drdbmanage commands?

Error install: drbdmanage-docker-volume.8.gz don't exist

Hi,

File drbd manage-docker-volume.8.gz don't exist and return an error with:

running install
running build
running install_data
copying systemd/docker-drbdmanage-plugin.service -> /lib/systemd/system/
copying systemd/docker-drbdmanage-plugin.socket -> /lib/systemd/system/
creating /usr/libexec
creating /usr/libexec/docker
copying drbdmanage-docker-volume -> /usr/libexec/docker/
error: can't copy 'drbdmanage-docker-volume.8.gz': doesn't exist or not a regular file

Please read setup.py file, fix with add file or remove line 61.

Regards

Can't build this package with pip

Looks like drbdmanage-docker-volume.8.gz is missing.

# pip install git+https://github.com/LINBIT/drbdmanage-docker-volume.git
Collecting git+https://github.com/LINBIT/drbdmanage-docker-volume.git
  Cloning https://github.com/LINBIT/drbdmanage-docker-volume.git to /tmp/pip-_4adw4cy-build
Installing collected packages: drbdmanage-docker-volume
  Running setup.py install for drbdmanage-docker-volume ... error
    Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-_4adw4cy-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-549uqra4-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running install_data
    copying systemd/docker-drbdmanage-plugin.service -> /lib/systemd/system/
    copying systemd/docker-drbdmanage-plugin.socket -> /lib/systemd/system/
    creating /usr/libexec
    creating /usr/libexec/docker
    copying drbdmanage-docker-volume -> /usr/libexec/docker/
    error: can't copy 'drbdmanage-docker-volume.8.gz': doesn't exist or not a regular file

    ----------------------------------------
Command "/usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-_4adw4cy-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-549uqra4-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-_4adw4cy-build/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.