Skip to content

Instantly share code, notes, and snippets.

View viglesiasce's full-sized avatar

Vic Iglesias viglesiasce

View GitHub Profile
@viglesiasce
viglesiasce / gist:8962470
Created February 12, 2014 19:12
Connection refused
[2014-02-12 11:05:57,746] [i-E52B464D] [DEBUG]: reset_ssh_connection for:i-E52B464D
[2014-02-12 11:05:57,868] [i-E52B464D] [DEBUG]: Connecting ssh i-E52B464D
[2014-02-12 11:05:57,868] [i-E52B464D] [DEBUG]: SSH connection has hostname:10.111.103.30 user:root and keypath: /Users/viglesias/Dropbox/git/eutester/testcases/cloud_user/instances/keypair-1392230738.09.pem
TESTUNIT FAILED: CreateImageTraceback (most recent call last):
File "/Users/viglesias/Dropbox/git/eutester/eutester/eutestcase.py", line 277, in run
ret = self.method(*self.args, **self.kwargs)
File "/Users/viglesias/Dropbox/git/eutester/testcases/cloud_user/instances/bfebstest.py", line 123, in CreateImage
instance.reset_ssh_connection()
File "/Users/viglesias/Dropbox/git/eutester/eutester/euinstance.py", line 269, in reset_ssh_connection
import boto
import sys
import time
import random
import string
import os
from concurrent.futures import ThreadPoolExecutor
bucket = "music-backup"
print "Uploading to bucket: " + bucket
@viglesiasce
viglesiasce / install_motherbrain.sh
Last active August 29, 2015 13:57
Install Motherbrain for use with the Eucalyptus repsoitory
#!/bin/bash -xe
echo "Enter this machines IP address."
echo
ifconfig | grep 'inet '
echo
read -p "Address: " CHEF_IP
read -s -p "Enter SSH password for Eucalyptus components: " SSH_PASSWORD
echo
echo
#!/usr/bin/env python
#
# Software License Agreement (BSD License)
#
# Copyright (c) 2013, Eucalyptus Systems, Inc.
# All rights reserved.
#
# Redistribution and use of this software in source and binary forms, with or
# without modification, are permitted provided that the following conditions
# are met:
import boto
from boto.regioninfo import RegionInfo
from troposphere import Base64, FindInMap, GetAtt
from troposphere import Parameter, Ref, Template
import troposphere.ec2 as ec2
region = RegionInfo()
region.endpoint = "10.111.5.163"
region.name = "eucalyptus"
stack_name = "vic-test-1"
{
"eucalyptus": {
"yum-options": "--nogpg",
"eucalyptus-repo": "http://downloads.eucalyptus.com/software/eucalyptus/nightly/4.0/centos/6/x86_64/",
"euca2ools-repo": "http://downloads.eucalyptus.com/software/euca2ools/nightly/3.1/centos/6/x86_64/",
"install-load-balancer": false,
"install-imaging-worker": false,
"topology": {
"clc-1": "10.0.1.188",
"walrus": "10.0.1.188",
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
Listen 0.0.0.0:8888
<VirtualHost *:8888>
ProxyRequests off
ServerName d-12.qa1.eucalyptus-systems.com
<Proxy balancer://mycluster>
BalancerMember http://10.111.5.137:8888
BalancerMember http://10.111.5.138:8888
Order Deny,Allow
Deny from none
# Software License Agreement (BSD License)
#
# Copyright (c) 2009-2014, Eucalyptus Systems, Inc.
# All rights reserved.
#
# Redistribution and use of this software in source and binary forms, with or
# without modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above
# Software License Agreement (BSD License)
#
# Copyright (c) 2009-2011, Eucalyptus Systems, Inc.
# All rights reserved.
#
# Redistribution and use of this software in source and binary forms, with or
# without modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above