coreos / torus

Torus Distributed Storage
https://coreos.com/blog/torus-distributed-storage-by-coreos.html
Apache License 2.0
1.77k stars 172 forks source link

ring manual-change doesn't work when there are no peers in the ring #364

Closed nak3 closed 7 years ago

nak3 commented 7 years ago

version

Version: b6f7aba

Issue

ring manual-change doesn't work when there are no peers in ring

Reproduction steps

1. Create ring

./bin/torusctl init

./bin/torusctl ring get
Ring: Ketama
Replication:2
Peers:

2. Try to change the ring type (you will get error below)

$ ./bin/torusctl ring manual-change  --type=mod --all-peers
need one of --uuids or --all-peers