Skip to content

Instantly share code, notes, and snippets.

View jaybuff's full-sized avatar

Jay Buffington jaybuff

  • Ontario, Canada
View GitHub Profile
@jaybuff
jaybuff / gist:4f2b390c886d76ba6060
Created June 20, 2014 16:48
aurora-scheduler -help output
$ ./aurora-scheduler.sh
+ AURORA_SCHEDULER_HOME=/usr/local/aurora-scheduler
+ JAVA_OPTS=(-server -Xmx1g -Xms1g -Djava.library.path=/usr/lib64)
+ AURORA_FLAGS=(-help)
+ export GLOG_v=0
+ GLOG_v=0
+ export LIBPROCESS_PORT=8083
+ LIBPROCESS_PORT=8083
+ export LIBPROCESS_IP=17.177.63.106
+ LIBPROCESS_IP=17.177.63.106
$ cat ~/aurora-config/hello_port.aurora
hello = Process(
name = 'hello',
cmdline = """
while true; do
echo hello {{thermos.ports[hello]}} My task id is {{thermos.task_id}}
sleep 10
done
""")
$ cat /etc/quantum/plugins/nicira/nvp.ini
[DATABASE]
sql_connection = mysql://quantum:password@localhost/quantum?charset=utf8
reconnect_interval = 2
[CLUSTER:main]
# these uuids are made up and do not yet exist. They need to be replaced with
# real values once we have them
default_tz_uuid = d3afb164-b263-4aaa-a3e4-48e0e09bb33c
default_l3_gw_service_uuid = d3afb164-b263-4aaa-a3e4-48e0e09bb33c
$ sudo yum install kmod-openvswitch-1.7.2.17811-1.el6.x86_64.rpm openvswitch-1.7.2.17811-1.x86_64.rpm -y
Loaded plugins: security
Setting up Install Process
Examining kmod-openvswitch-1.7.2.17811-1.el6.x86_64.rpm: kmod-openvswitch-1.7.2.17811-1.el6.x86_64
Marking kmod-openvswitch-1.7.2.17811-1.el6.x86_64.rpm to be installed
Examining openvswitch-1.7.2.17811-1.x86_64.rpm: openvswitch-1.7.2.17811-1.x86_64
Marking openvswitch-1.7.2.17811-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package kmod-openvswitch.x86_64 0:1.7.2.17811-1.el6 will be installed
[EXIT 1] $ git rev-parse HEAD
58cb347cfa9b48a8464ebb384a93b1cb3edd4578
16:14:25 jaybuff@keystone-test:~/openstack/keystoneclient (master)
$ nosetests -x --tests=tests.test_auth_token_middleware
AuthTokenMiddlewareTest
test_assert_valid_memcache_protection_config ERROR 0.32
======================================================================
ERROR: tests.test_auth_token_middleware.AuthTokenMiddlewareTest.test_assert_valid_memcache_protection_config
diff --git a/glance/common/config.py b/glance/common/config.py
index 4f58e2e..0a4bfb3 100644
--- a/glance/common/config.py
+++ b/glance/common/config.py
@@ -28,8 +28,7 @@ import sys
from paste import deploy
-from glance.openstack.common import cfg
-from glance.version import version_info as version
@jaybuff
jaybuff / gist:1566440
Created January 5, 2012 18:12
start ssh agent
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Starting new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
/usr/bin/ssh-add;
}
@jaybuff
jaybuff / LVM.pm
Created November 2, 2010 01:07
When I first started Joot I used LVM rather than QCOW for backing files.
package Joot;
use strict;
use warnings;
use IPC::Cmd;
use LWP::Simple;
use Log::Log4perl qw(:easy);
use YAML::Tiny;