Skip to content

Instantly share code, notes, and snippets.

IRC Chat on #openstack-nova on 2015/05/06
06:38 alex_xu: sdague: dims one more case for change search option https://review.openstack.org/#/c/171523/ ... hope we can got agreement on this guideline https://review.openstack.org/177778
06:39 dims: alex_xu: same deal as the other one - works for admin and does not work for others?
06:41 alex_xu: dims: yes as I remember. the patch add on more option at https://review.openstack.org/#/c/171523/1/nova/api/openstack/compute/plugins/v3/servers.py
06:44 sdague: dims: the *whole* point of microversions was that it gave us a reliable way to signal API changes
06:44 sdague: instead of the old way which is randomly changing stuff... assuming "meh, no one really cares about this one" and creating a compatibility mess in the ecosystem
06:45 sdague: and yes, that's going to give us a lot of microversions, and yes that's going to mean a bunch of compat code, but that's the cost of a versioned interface
06:46 sdague: we do it in db migrations, library releases, rpc version bum
@dims
dims / gist:0bad31d9a0c02e5b1b9d
Created June 9, 2015 23:04
RabbitMQ cheat sheet
rabbitmqctl list_queues
rabbitmqctl cluster_status
rabbitmqctl report
rabbitmqctl status
ls -altr /var/log/rabbitmq/*
@dims
dims / gist:3761b61593182742173a
Created June 19, 2015 22:26
DevStack + Murano
#!/bin/bash
export MY_IP=$(ip route | awk '/src/ { print $9 }')
export GATEWAY=$(/sbin/ip route | awk '/default/ { print $3 }')
export NET=$(echo $MY_IP | awk -F. '{print $1"."$2"."$3}')
git clone https://git.openstack.org/openstack-dev/devstack
git clone https://git.openstack.org/openstack/murano
cp murano/contrib/devstack/lib/murano devstack/lib/.
cp murano/contrib/devstack/lib/murano-dashboard devstack/lib/.
cat $filename | msmtp -t --read-envelope-from --read-recipients -a [email protected]
@dims
dims / gist:7426fc81b559e4baacec
Created June 23, 2015 14:19
Send email from release notes
cat relnotes/oslotest-1.8.0 | msmtp -d -t --read-envelope-from --read-recipients [email protected]
@dims
dims / gist:6180265768ec20563a4f
Created June 26, 2015 12:16
Add new lines to end of the requirements files
find . -name requirements*.txt -exec gsed -i -e '$a\' {} \;
@dims
dims / test_project_with_oslo_lib
Created July 13, 2015 17:32
Handy script from Dan Smith
#!/bin/bash
PROJ="$1"
OLIB="$2"
function usage() {
echo 'Usage: test_oslo_with.sh PROJECT OSLO_LIBRARY'
echo
echo 'Example:'
echo ' test_oslo_with.sh openstack/nova oslo.versionedobjects'
@dims
dims / restart_all_processes.py
Last active August 29, 2015 14:25
Dmitry Mescheryakov's script
import subprocess
CONTROLLER_PROCS = [
'nova-api',
'nova-cert',
'nova-conductor',
'nova-consoleauth',
'nova-novncproxy',
gawk '{print " - version: "$1"\n projects:\n - repo: openstack/"$3"\n hash: "$2;}' ~/junk/untitled2.txt
@dims
dims / heartbeat-logging.diff
Created August 4, 2015 14:57
pyampq diff for logging heartbeat (from Dmitry Mescheryakov)
--- amqp/connection.py.initial 2015-08-04 17:38:06.000000000 +0300
+++ amqp/connection.py 2015-07-29 17:32:29.000000000 +0300
@@ -39,6 +39,9 @@
from .serialization import AMQPWriter
from .transport import create_transport
+import random
+rnd = random.Random()
+
HAS_MSG_PEEK = hasattr(socket, 'MSG_PEEK')