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 | |
set -e | |
containers_total=${1:-100} | |
containers_concur=${2:-10} | |
container_image=${3:-docker.io/library/busybox} | |
podman pull $container_image | |
docker pull $container_image | |
rm -f bench-jobs.txt |
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
generated from /usr/share/openstack-tripleo-heat-templates *and* /usr/share/openstack-puppet/modules/tripleo | |
edit this file /usr/share/openstack-puppet/modules/tripleo/manifests/profile/base/nova.pp | |
you will see the class '::nova::cache' just change the hardcoded backend there |
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
from inspect import signature | |
import copy | |
def expected(key, sign): | |
for el in sign.parameters.values(): | |
if key in el.name: | |
return True | |
return False |
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/sh | |
ipmitool -I lanplus -H 172.16.0.1 -L ADMINISTRATOR -p 6232 -U admin -R 12 -N 5 -Ppassword power status | |
ipmitool -I lanplus -H 172.16.0.1 -L ADMINISTRATOR -p 6232 -U admin -R 12 -N 5 -Ppassword power off | |
sleep 2 | |
ipmitool -I lanplus -H 172.16.0.1 -L ADMINISTRATOR -p 6232 -U admin -R 12 -N 5 -Ppassword power status |
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
import logging | |
logging.basicConfig() | |
logging.getLogger().setLevel(logging.DEBUG) | |
logging.getLogger('foo').debug('bah') | |
logging.getLogger().setLevel(logging.INFO) | |
logging.getLogger('foo').debug('debug') | |
logging.getLogger('foo').info('info') | |
logging.getLogger('foo').warn('warn') |
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
# On controllers | |
# ssh heat-admin@<controller-ip> | |
for el in $(sudo docker ps | grep nova | awk '{print $1}'); do sudo docker restart $el; done |
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
for el in $(ls /var/log/containers); do cp -v /var/log/containers/nova/impl_rabbit.py /var/log/containers/${el}; done | |
for el in $(infect_who_use_oslo messaging); do \ | |
name=$(echo $el | awk -F "_" '{print $1}'); \ | |
echo -e "patch ${name}\n"; \ | |
docker exec -it --user root ${el} cp /var/log/${name}/impl_rabbit.py /usr/lib/python2.7/site-packages/oslo_messaging/_drivers; \ | |
docker restart ${el}; \ | |
done | |
curl -4 https://review.opendev.org/changes/643056/revisions/current/patch?download | base64 -d | sudo patch -p1 |
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
cd /tmp | |
mkdir keystone | |
pipenv shell | |
pip install keystone | |
pypath=$(dirname $(which python) | sed 's/bin/lib/g') | |
grep -ri ${mypath} -e subprocess -exclude-dir="*/__pycache__" | grep import | more |
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
threads = [ | |
"", | |
"1111111111111-thread1-base ", | |
"1111111111111-thread2-base ", | |
"1111111111111-thread3-very-long ", | |
"1111111111111-short ", | |
"1111111111111-thread4-base ", | |
"1111111111111-thread3-very-long-long ", | |
"1111111111111-short ", | |
"1111111111111-thread5-base ", |
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
./tools/trigger-job.py --job periodic-foobar-proposal --project dev/foobar --pipeline periodic --url https://zuul.example.org/p --logpath /dev/null --newrev refs/heads/master --refname refs/heads/master |