Skip to content

Instantly share code, notes, and snippets.

$ 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
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
@fnordahl
fnordahl / charmed-ovn-with-openstack.png
Last active October 9, 2019 13:32
Charmed OVN with OpenStack
charmed-ovn-with-openstack.png
@fnordahl
fnordahl / parse-rgw.py
Last active July 8, 2019 08:15
parse-rgw.py
#!/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