Skip to content

Instantly share code, notes, and snippets.

View dosaboy's full-sized avatar

Edward Hope-Morley dosaboy

View GitHub Profile
#!/bin/bash -u
# Origin: https://gist.github.com/dosaboy/7bdd004d33d7eb39a93835576227ad4a
#
# Authors:
# - edward.hope-morley@canonical.com
#
# Tested on Ubuntu Bionic Ussuri
#
# Description:
# Fix arp entries affected by https://bugs.launchpad.net/neutron/+bug/1916761.
#!/bin/bash -u
# Origin: https://gist.github.com/dosaboy/f0f0b88a0fcb3553d3eeb21c9bb3963e
#
# Authors:
# - edward.hope-morley@canonical.com
#
# Tested on Ubuntu Bionic
#
# Description:
# Discover incorrect arp entries for rfp/fpr interfaces
#!/bin/bash -eu
# Origin: https://gist.github.com/dosaboy/d5de0a0fceea188f92109c96bdad49ad
#
# Authors:
# - edward.hope-morley@canonical.com
#
# Tested on:
# - Ubuntu Bionic
#
# Description:
This has been moved to https://github.com/dosaboy/openstack-toolkit. Please install the openstack-toolkit snap to get this check.
#!/bin/bash -u
# Origin: https://gist.github.com/dosaboy/45ed41d0c28d1656357dde40a87056fe
#
# Authors:
# - edward.hope-morley@canonical.com
#
# Tested on Ubuntu Bionic
#
# Description:
# Discover missing default routes on qrouter namespaces
#!/bin/bash -eu
# Origin: https://gist.github.com/dosaboy/eca8dcd4560f68d856f465ca8382c58b
#
# Authors:
# - edward.hope-morley@canonical.com
#
# Tested on:
# - Ubuntu Xenial
# - Ubuntu Bionic
#
#!bin/bash -u
# upgrade swift packages
sudo apt update
sudo apt install swift --only-upgrade
# increase this from default of 100 to allow kernel to release xfs cache data more readily
sudo sysctl -w vm.vfs_cache_pressure=200
# make a note of the following
#!/bin/bash -eux
# Origin: https://gist.github.com/dosaboy/37121dcfd6581066cec8f6377817a4ef
#
# Authors:
# - edward.hope-morley@canonical.com
#
# Description:
# Send a gratuitous arp for every floating ip in use on a node. Uses same
# method to send garp as neutron.
@dosaboy
dosaboy / cleanup-compute-placement-allocations-lp1756179.sh
Last active January 17, 2020 15:12
Cleanup compute host resource allocations in placement api left over from Nova bug LP 1756179
#!/bin/bash -ux
# Cleanup compute host resource allocations in placement api left over from Nova bug LP 1756179
# Background: It turns out that when you delete a service the associated resource provider (nova placement api) does not get deleted or updated.
mysql -s -N -h$host -u${user} -p$pw nova
# Get id of deleted compute host
select id from compute_nodes where host="__HOSTNAME_GOES_HERE__" and deleted_at!="NULL";
#!/bin/bash -eu
#
# Author: edward.hope-morley@canonical.com
# Origin: https://gist.github.com/dosaboy/8ce9540e669975fb4807ee1ab376ff3a
#
# Description:
# Test throughput between Openstack vm instances using various combinations
# of routed and unrouted networks and between vms that are located on
# the same hypervisor and remote hypervisors.
#