Skip to content

Instantly share code, notes, and snippets.

View jburwell's full-sized avatar

John Burwell jburwell

View GitHub Profile
@jburwell
jburwell / 00problem_description.txt
Last active August 29, 2015 14:02
Duplicate Node Name in Riak 2.0 Ansible
I have run into the following error when upgrading the ansible-riak project to support Riak 2.0 using the Vagrantfile in the examples directory:
root@riak-01:~# riak console
config is OK
-config /var/lib/riak/generated.configs/app.2014.06.17.14.30.16.config -args_file /var/lib/riak/generated.configs/vm.2014.06.17.14.30.16.args -vm_args /var/lib/riak/generated.configs/vm.2014.06.17.14.30.16.args
Exec: /usr/lib/riak/erts-5.10.3/bin/erlexec -boot /usr/lib/riak/releases/2.0.0beta7/riak -config /var/lib/riak/generated.configs/app.2014.06.17.14.30.16.config -args_file /var/lib/riak/generated.configs/vm.2014.06.17.14.30.16.args -vm_args /var/lib/riak/generated.configs/vm.2014.06.17.14.30.16.args -pa /usr/lib/riak/lib/basho-patches -- console
Root: /usr/lib/riak
{error_logger,{{2014,6,17},{14,30,17}},"Protocol: ~tp: the name riak@10.42.0.6 seems to be in use by another Erlang node",["inet_tcp"]}
{error_logger,{{2014,6,17},{14,30,17}},crash_report,[[{initial_call,{net_kernel,
@jburwell
jburwell / s3xen_test.py
Created August 1, 2013 03:58
Test harness for the s3xen plugin. In order to use it, comment out the XenAPIPlugin imports, make the log method only print the message, and the if block at the bottom pass. Finally, create a symlink in the same directory named s3xen.py to the s3xen script.
#!/usr/bin/env python
from s3xen import S3Client
import traceback
S3_CREDENTIALS = {
'access_key': '<insert access key here>',
'secret_key': '<insert secret key here>',
'end_point' : 's3.amazonaws.com',
'use_https' : "true"
@jburwell
jburwell / create-s3-patch.sh
Last active December 18, 2015 10:49
Creates a squashed patch from a Git feature branch. This example was used create he S3-backed Secondary Storage patch for CloudStack This script does not rebase/merge with the REF_BRANCH upstream. It is expected these operations will be performed as needed before this script is executed.
#!/bin/bash
WORK_HOME=/Users/jburwell/Documents/projects/cloudstack/src/cloudstack-basho
REF_BRANCH=master
FEATURE_BRANCH=s3-secondarystorage
WORK_BRANCH="$FEATURE_BRANCH-prep"
PATCH_FILE=$1
COMMIT_MSG=$2
if [ -z $PATCH_FILE ]; then
@jburwell
jburwell / jsonHelper.py
Last active December 11, 2015 16:09
Cloudstack single zone devcloud configuration with S3 (credentials omitted)
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#