Last active
November 15, 2019 07:45
-
-
Save fnordahl/b0a8701fcbbe7856e2aec06fe9bccd4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ juju run -m $(juju models |awk '/zaza-.*/{print$1;exit}'|tr -d "*") --application ovn-central 'sudo cat /var/log/openvswitch/ovn-northd.log |grep "This ovn-northd"|tail -1' | |
- Stdout: | | |
2019-11-15T07:36:54.261Z|00018|ovn_northd|INFO|ovn-northd lock acquired. This ovn-northd instance is now active. | |
UnitId: ovn-central/0 | |
- Stdout: | | |
2019-11-15T07:36:57.414Z|00047|ovn_northd|INFO|ovn-northd lock lost. This ovn-northd instance is now on standby. | |
UnitId: ovn-central/1 | |
- Stdout: | | |
2019-11-15T07:36:55.566Z|00035|ovn_northd|INFO|ovn-northd lock lost. This ovn-northd instance is now on standby. | |
UnitId: ovn-central/2 | |
$ juju run -m $(juju models |awk '/zaza-.*/{print$1;exit}'|tr -d "*") --application ovn-central 'sudo ovs-appctl -t ovn-northd is-active' | |
- Stdout: | | |
true | |
UnitId: ovn-central/0 | |
- Stdout: | | |
false | |
UnitId: ovn-central/1 | |
- Stdout: | | |
false | |
UnitId: ovn-central/2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment