Skip to content

Instantly share code, notes, and snippets.

@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"
@flavio-fernandes
flavio-fernandes / vagrant up output
Last active May 24, 2020 10:41
Vagrant Bug Report
$ time vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'centos/7'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: mqtt2cmdgit_default_1590316820597_75300
==> default: Clearing any previously set network interfaces...
==> default: Destroying VM and associated drives...
Traceback (most recent call last):
131: from /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/batch_action.rb:86:in `block (2 levels) in run'
130: from /opt/vagrant/embedded/gems/2.2.9/gems/vagrant-2.2.9/lib/vagrant/machine.rb:198:in `action'
#!/bin/bash
set -o xtrace
set -o errexit
DOMAIN=${1:-$VM}
if [ -z "${DOMAIN}" ]; then
DOMAIN="$(basename $PWD)_default"
fi
@flavio-fernandes
flavio-fernandes / shell.txt
Created April 25, 2020 21:23
pip install shelljob failure
(env) OSX ~/Desktop/mqtt2cmd on testFix.wip
$ pip list
Package Version
---------- -------
dill 0.3.1.1
flashtext 2.7
paho-mqtt 1.5.0
pandoc 1.0.2
pip 20.0.2
ply 3.11
@flavio-fernandes
flavio-fernandes / shelljob.pip.log
Last active April 25, 2020 20:00
installing shell job dependency issue
I get this when installing shelljob via pip:
...
Collecting shelljob
Using cached shelljob-0.5.8.tar.gz (318 kB)
ERROR: Command errored out with exit status 1:
command: /Users/gute/Desktop/mqtt2cmd/env/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/d_/jjdk8f2d3k5gz2tvyb9cv74r0000gn/T/pip-install-svrq_xt3/shelljob/setup.py'"'"'; __file__='"'"'/private/var/folders/d_/jjdk8f2d3k5gz2tvyb9cv74r0000gn/T/pip-install-svrq_xt3/shelljob/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/d_/jjdk8f2d3k5gz2tvyb9cv74r0000gn/T/pip-install-svrq_xt3/shelljob/pip-egg-info
cwd: /private/var/folders/d_/jjdk8f2d3k5gz2tvyb9cv74r0000gn/T/pip-install-svrq_xt3/shelljob/
Complete output (12 lines):
Generating Description failed, press enter to process anyway, or kill to cancelTraceback (most recent cal