Giter VIP home page Giter VIP logo

Comments (10)

gourao avatar gourao commented on August 18, 2024

Hi @yoanisgil - This is because you have not specified a key/value database for the OSD to use.

By default OSD will use an in memory ephemeral DB. So volumes created will be lost across restarts.

To use a persistent key/value DB such as ETCD, specify the URL via the --kvdb option.

I suppose the README should document this.

from openstorage.

yoanisgil avatar yoanisgil commented on August 18, 2024

@gourao thanks! Is consul supported? You probably use libkv but I just wanted to check.

from openstorage.

yoanisgil avatar yoanisgil commented on August 18, 2024

Well, looks like is not :(. It would be nice thought to support consul or any other backend support by Swarm, probably using https://github.com/docker/libkv. Anyhow, I will go with etcd for the moment.

from openstorage.

gourao avatar gourao commented on August 18, 2024

It seems pretty easy to use libkv. I'll take a look at swapping to it.

from openstorage.

yoanisgil avatar yoanisgil commented on August 18, 2024

Thanks! That will be a valuable addition since it will make things easier for those using Swarm ;)

from openstorage.

yoanisgil avatar yoanisgil commented on August 18, 2024

@gourao I am running OSD on 3 nodes (the goal is to have persistent volumes on top of a Swarm cluster). I am running osd like this:

/usr/local/bin/osd -d -f /usr/local/etc/osd.yml --kvdb etcd-kv://aws034:4001

and I was expecting that when creating a volume on node1 it should then be listed on node2 with docker volume ls. Isn't that the expect result?

from openstorage.

jvinod avatar jvinod commented on August 18, 2024

@yoanisgil 'docker volume ls' should work seamlessly with swarm pending 'docker-archive/classicswarm#1189' - if you use 'osd <driver_name> enumerate/inspect' that will display cluster wide persistent volumes. There is also work being done for docker to directly query the volume plugin api to ls volumes - this would make 'docker volume ls' persistent across docker restarts which it currently is not.

from openstorage.

gourao avatar gourao commented on August 18, 2024

Hey @yoanisgil
I just checked in support for consul. I did very basic testing on it, but it seems to work for me.

Run it as
osd -d -f config.yaml --kvdb=consul-kv://localhost:8500

I could not use libkv as is because OSD has other extensions it uses and the KVDB it currently uses supports transactions.

In any event, try this out and see if it works.

from openstorage.

yoanisgil avatar yoanisgil commented on August 18, 2024

All right! Will take a look at let you know.

from openstorage.

gourao avatar gourao commented on August 18, 2024

Closing since consul support is in.

from openstorage.

Related Issues (20)

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.