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 / 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 |
# | |
# | |
# +-----+------+
@flavio-fernandes
flavio-fernandes / vagrantUp.log
Created May 24, 2020 10:44
Vagrant Bug Report -- vagrant up --debug
see https://gist.github.com/flavio-fernandes/54efab0832c011621e3e1cc1fe1d4740 for non-debug output
$ time vagrant up --debug
INFO global: Vagrant version: 2.2.9
INFO global: Ruby version: 2.6.6
INFO global: RubyGems version: 3.0.3
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/bin/vagrant"