This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eux | |
ARCH=${1:-arm64} | |
IMAGES=/home/ubuntu/images | |
URL=https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-${ARCH}.img | |
LIBVIRT_IMAGES=/var/lib/libvirt/images | |
if ! [[ -d $LIBVIRT_IMAGES ]]; then | |
sudo apt install -y virtinst libvirt-daemon-system cloud-image-utils | |
sudo usermod -a -G libvirt-qemu $USER | |
newgrp libvirt-qemu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Description: wait until system load reaches threshold then start | |
# scripts and run for period then kill. | |
# | |
LIMIT=90 | |
RUNTIME=300 | |
SESSION_ID=`uuidgen` | |
declare -A PIDS=() | |
log () { echo -e "[`date '+%F %X'`] $@"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eu | |
# Origin: https://gist.github.com/dosaboy/d5de0a0fceea188f92109c96bdad49ad | |
# | |
# Authors: | |
# - edward.hope-morley@canonical.com | |
# | |
# Tested on: | |
# - Ubuntu Bionic | |
# | |
# Description: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This has been moved to https://github.com/dosaboy/openstack-toolkit. Please install the openstack-toolkit snap to get this check. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -eu | |
# Origin: https://gist.github.com/dosaboy/eca8dcd4560f68d856f465ca8382c58b | |
# | |
# Authors: | |
# - edward.hope-morley@canonical.com | |
# | |
# Tested on: | |
# - Ubuntu Xenial | |
# - Ubuntu Bionic | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
NewerOlder