# work out who the leader is
juju run --service swift-proxy "is-leader"
...
# then poweroff the leader unit (assuming /0 here)
juju ssh swift-proxy/0 sudo poweroff
Now wait at least 60 seconds then re-run the is-leader check. When i do this, even after 15 minutes, I see that neither of the remaining units is now the leader.
As a follow on to my previous comment, here is what seems to be a failry reliable reproducer:
bzr branch https:/ /code.launchpad .net/~openstack -charm- testers/ +junk/swift- rings swift-test
cd swift-test
juju-deployer -c swift-next -d trusty-liberty
[wait for deployment to complete]
# work out who the leader is
juju run --service swift-proxy "is-leader"
...
# then poweroff the leader unit (assuming /0 here)
juju ssh swift-proxy/0 sudo poweroff
Now wait at least 60 seconds then re-run the is-leader check. When i do this, even after 15 minutes, I see that neither of the remaining units is now the leader.