Skip to content

Instantly share code, notes, and snippets.

View flavio-fernandes's full-sized avatar

Flavio Fernandes flavio-fernandes

View GitHub Profile
@flavio-fernandes
flavio-fernandes / log.txt
Created January 8, 2021 22:00
output of fw.sh with openstack ml2/ovn
ref: https://gist.github.com/flavio-fernandes/863e48f012b7975e1d46c896b262dfc9
vagrant@stack:~$ bash /vagrant/fw.sh
WARNING: setting legacy OS_TENANT_NAME to support cli tools.
+/vagrant/fw_2.sh:main:10 set -o errexit
+/vagrant/fw_2.sh:main:12 openstack server create --nic net-id=private,v4-fixed-ip=10.0.0.10 --flavor m1.nano --image 438ab721-342d-47b9-8e30-4158f39a18ee --key-name demo d
+-------------------------------------+-----------------------------------------------------------------+
| Field | Value |
+-------------------------------------+-----------------------------------------------------------------+
@flavio-fernandes
flavio-fernandes / fw.sh
Last active January 8, 2021 22:01
floating ip port forwarding status test
#!/usr/bin/env bash
#
# ref: https://bugs.launchpad.net/neutron/+bug/1910334
[ $EUID -eq 0 ] && { echo 'must NOT be root' >&2; exit 1; } ||:
. ${HOME}/devstack/openrc admin
set -o xtrace
set -o errexit
@flavio-fernandes
flavio-fernandes / circup.txt
Created January 6, 2021 15:03
current Adafruit Libraries and update output
# Ref: https://learn.adafruit.com/keep-your-circuitpython-libraries-on-devices-up-to-date-with-circup/usage
$ circup --version
CircUp, A CircuitPython module updater. Version 0.6.0
=-=-=-=-=-=-=-
# Before the update:
$ circup freeze
@flavio-fernandes
flavio-fernandes / compile.log
Created December 26, 2020 21:22
platformio esp12e (esp8266 based) build is giving me a really hard time
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 37 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <SPI> 1.0
|-- <ArduinoOTA> 1.0
| |-- <ESP8266WiFi> 1.0
| |-- <WiFi101> 0.16.1
| | |-- <SPI> 1.0
| |-- <ESP8266mDNS> 1.2
$ git rev-parse HEAD
8c693b29ed355361612ecedae19b8f85c9394b80
$ git diff master
diff --git a/ovn_cluster.sh b/ovn_cluster.sh
index 6e146d9..e3c6e68 100755
--- a/ovn_cluster.sh
+++ b/ovn_cluster.sh
@@ -716,34 +716,35 @@ function build-images-with-ovn-rpms() {
}
@flavio-fernandes
flavio-fernandes / gist:fead2b7bfb95ff9cfece9bc1ed67a3ff
Created November 9, 2020 20:12
ovn-northd-ddlog build issue
$ time make -j$(($(nproc) + 1)) V=0 ; echo $?
make: Warning: File 'utilities/.deps/ovn-trace.Po' has modification time 272847 s in the future
GEN lib/ovn-sb-idl.ovsidl
GEN lib/ovn-nb-idl.ovsidl
GEN lib/ovn-ic-nb-idl.ovsidl
GEN lib/ovn-ic-sb-idl.ovsidl
GEN northd/ovn-northd-ddlog-sb.inc
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/vagrant/ovn/build-aux/missing autoheader)
GEN northd/ovn-northd-ddlog-nb.inc
@flavio-fernandes
flavio-fernandes / create_fake_vm.sh
Last active October 14, 2020 20:30
create ip namespace and connect it to an ovs port
#!/bin/bash
[ $EUID -eq 0 ] || { echo 'must be root' >&2; exit 1; }
set -o errexit
# set -x
create_fake_vm() {
iface_id=$1
name=$2
@flavio-fernandes
flavio-fernandes / osp-port-fwd-cleanup.sh
Last active September 28, 2020 18:45
Undo setup sample OSP with vms using port forwarding
#!/usr/bin/env bash
#
[ $(whoami) != 'stack' ] && { echo 'must be user stack' >&2; } ||:
cd
source ./stackrc
ansible -i /usr/bin/tripleo-ansible-inventory -m shell -b -a "rm -vf /home/heat-admin/vm_key.pem" overcloud
source ./overcloudrc
@flavio-fernandes
flavio-fernandes / osp-port-fwd-setup.sh
Last active September 28, 2020 18:45
Setup sample OSP with vms using port forwarding
#!/usr/bin/env bash
[ $(whoami) != 'stack' ] && { echo 'must be user stack' >&2; } ||:
cd
source ./overcloudrc
set -o xtrace
set -o errexit
@flavio-fernandes
flavio-fernandes / osp-ovn-playground-create.sh
Last active September 17, 2020 19:44 — forked from danalsan/osp-ovn-playground-create.sh
osp-ovn-playground-create.sh
#!/bin/bash -x
#
#
# +------------+
# | |
# | |
# | public |
# | |
# | |
# +-----+------+