Recovery tool for broken Juju raft clusters
rebootstrap-raft
creates an empty raft cluster directory with server
configuration based on the current replicaset members. It's intended as
an emergency utility to resolve situations where the raft store has been
corrupted somehow.
For safety, it won't overwrite raft data—any existing raft directory
/var/lib/juju/raft
will need to be removed or renamed. The new raft
directory won't have any lease information in it, but if the Juju
controller is part of an HA cluster and the other nodes still have lease
information, it will be replicated to this one when the controller agent
is started.