Comments (10)
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.
@gourao thanks! Is consul supported? You probably use libkv but I just wanted to check.
from openstorage.
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.
It seems pretty easy to use libkv
. I'll take a look at swapping to it.
from openstorage.
Thanks! That will be a valuable addition since it will make things easier for those using Swarm ;)
from openstorage.
@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.
@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.
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.
All right! Will take a look at let you know.
from openstorage.
Closing since consul support is in.
from openstorage.
Related Issues (20)
- SDK REST Gateway server cannot be extended
- Add cloud group-backup in SDK
- During volume create, SDK should not return existing volume not in up state HOT 2
- Documentaion is lacking, even compared to earlier releases
- How do I debug this thing? HOT 1
- Add support for all secrets providers for pkg/auth/secrets
- PVC Metadata not being added to VolumeLabels
- CSI: NodeUnpublishVolume failing during statefulsets deletion
- Some libraries in vendor.json are not supported upstream and should be replaced
- OpenstorageMigrate proto should be inline with Openstorage-Sdk
- Cloud backup group create access denied error
- Panic on csi/node.go:169
- Remove flaky Alerts test.
- GPLv3 dependency?
- Errors you may encounter when upgrading the libraries HOT 3
- Potential security issue: CVE-2020-26160 HOT 1
- gRPC backupClient.EnumerateWithFilters to support date ranges HOT 1
- introduce and API Call similar to pxctl volume list HOT 1
- osd nfs enumerate and osd nfs inspect <volume> commands raise exception
- Why were the patch versions for vulnerability (snky id: SNYK-GOLANG-GITHUBCOMLIBOPENSTORAGEOPENSTORAGEAPISERVER-565845) released so late?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openstorage.