Skip to content

Instantly share code, notes, and snippets.

@fnordahl
Last active November 15, 2019 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fnordahl/b0a8701fcbbe7856e2aec06fe9bccd4b to your computer and use it in GitHub Desktop.
Save fnordahl/b0a8701fcbbe7856e2aec06fe9bccd4b to your computer and use it in GitHub Desktop.
$ 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