This file contains hidden or 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: | |
# - [email protected] | |
# | |
# Tested on: | |
# - Ubuntu Xenial | |
# - Ubuntu Bionic | |
# |
This file contains hidden or 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 hidden or 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: | |
# - [email protected] | |
# | |
# Description: | |
# Send a gratuitous arp for every floating ip in use on a node. Uses same | |
# method to send garp as neutron. |
This file contains hidden or 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 -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"; |
This file contains hidden or 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 | |
# | |
# Author: [email protected] | |
# 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. | |
# |
This file contains hidden or 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 | |
# http://erlang.org/doc/man/erlang.html#system_info-1 | |
flags=( | |
allocated_areas | |
allocator | |
alloc_util_allocators | |
allocator_sizes | |
elib_malloc | |
cpu_topology |
This file contains hidden or 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 | |
# To get a list of all your compute hosts do: | |
# | |
# openstack compute service list --service nova-compute -c Host -f value | |
# | |
# To get a list of UUIDs of all vms running on a host do: | |
# | |
# openstack server list --host <hostname> -c ID -f value | |
# |
This file contains hidden or 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/e7b5d142fd56540b6600dc428edf5656 | |
# | |
# Authors: | |
# - [email protected] | |
# - [email protected] | |
# | |
# Query Nova Placement API |
This file contains hidden or 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/c04fce37b99990bd1994da90e8e72e7e | |
# | |
# Authors: | |
# - [email protected] | |
# - [email protected] | |
# | |
# This must be executed on Juju client node. | |
# |
This file contains hidden or 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/7fff340efdd1787e58eb27cc78e12360 | |
# | |
# Authors: | |
# - [email protected] | |
# - [email protected] | |
# | |
# This must be executed on the hypervisor node where the instance is running | |
# |