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 |
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
variables: | |
openstack-origin: &openstack-origin cloud:bionic-train | |
worker-multiplier: &worker-multiplier 0.25 | |
osd-devices: &osd-devices /dev/vdb /dev/disk/by-dname/bcache1 /dev/disk/by-dname/bcache2 /dev/disk/by-dname/bcache3 | |
expected-osd-count: &expected-osd-count 3 | |
expected-mon-count: &expected-mon-count 3 | |
mysql-connections: &mysql-connections 1000 | |
machines: | |
'1': | |
constraints: cores=48 tags=^node-hippalus |
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
#!/usr/bin/env python3 | |
import collections | |
import sys | |
def main(): | |
"""Parse RadosGW civetweb log and group per connection. | |
The RadosGW civetweb log file is a funny chap. Lines for start and done |