Skip to content
Discussion options

You must be logged in to vote

So it finally worked with this steps:

  • stop the cluster
  • add --snapshot-count=1 and the flag --enable-v2 so i can delete the user
  • start the cluster
  • delete role and user (user is deleted and the role it says auth: Cannot modify role root: is root role)
ETCDCTL_API=2 etcdctl user remove root
ETCDCTL_API=2 etcdctl role remove root
  • add and delete some keys
for i in {1..100}; do etcdctl put test${i} hello;done
for i in {1..100}; do etcdctl del test${i};done
  • stop the cluster
  • remove the flag --enable-v2 and restore the previous value of --snapshot-count
  • check the store
etcdutl check v2store --data-dir /var/lib/etcd/default.etcd/
No custom content found in v2store.
  • start the cluster
  • upgra…

Replies: 4 comments 40 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
27 replies
@kvaikla
Comment options

@DTLP
Comment options

@ahrtr
Comment options

@lukasertl
Comment options

@DTLP
Comment options

Comment options

You must be logged in to vote
13 replies
@ahrtr
Comment options

@mavpath
Comment options

@ahrtr
Comment options

@mavpath
Comment options

Answer selected by fuweid
@ahrtr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment