This file contains hidden or 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
#!/usr/bin/env python | |
import os | |
import sys | |
import urllib2 | |
import json | |
import hashlib | |
import zlib | |
from optparse import OptionParser |
This file contains hidden or 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 | |
# This script is for configuring server | |
# environment before installing Eucalyptus. | |
# This is tested on CentOS 6.3 x86_64 | |
if [ "$1" = "" ]; | |
then | |
echo "Please provide an argument, e.g frontend or nc" | |
exit 1 |
This file contains hidden or 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 | |
yum groupinstall Desktop -y | |
yum install xorg-x11-fonts-100dpi.noarch xorg-x11-fonts-ISO8859-1-100dpi.noarch xorg-x11-fonts-misc.noarch xorg-x11-fonts-Type1.noarch virt-manager tigervnc-server -y | |
echo "" | |
echo 'VNCSERVERS="2:root"' >> /etc/sysconfig/vncservers | |
echo 'VNCSERVERARGS[2]="-geometry 1024x768"' >> /etc/sysconfig/vncservers |
This file contains hidden or 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
euare-accountcreate -a ui-test-acct-00 | |
euare-useraddloginprofile --delegate ui-test-acct-00 -u admin -p mypassword0 | |
euare-useraddkey --delegate ui-test-acct-00 -u admin | |
euare-usercreate --delegate ui-test-acct-00 -u user00 | |
euare-useraddloginprofile --delegate ui-test-acct-00 -u user00 -p mypassword1 | |
euare-useraddkey --delegate ui-test-acct-00 -u user00 | |
euare-accountcreate -a ui-test-acct-01 | |
euare-useraddloginprofile --delegate ui-test-acct-01 -u admin -p mypassword2 | |
euare-useraddkey --delegate ui-test-acct-01 -u admin | |
euare-usercreate --delegate ui-test-acct-01 -u user00 |
This file contains hidden or 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
#!/usr/bin/expect | |
set timeout 1 | |
set cmd {uname -a} | |
spawn ssh root@$argv | |
expect_after eof { exit 0 } | |
## interact with SSH |
This file contains hidden or 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 | |
if [ "$*" == "" ] | |
then | |
echo "Usage: $0 <instance id> <new cloud ip>" | |
exit 1 | |
fi | |
if [ "$2" == "" ] | |
then |
This file contains hidden or 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
#!/usr/bin/expect | |
set timeout 2 | |
set user [lindex $argv 0] | |
set password [lindex $argv 1] | |
set host [lindex $argv 2] | |
set data_snap [lindex $argv 3] | |
set dummy_snap [lindex $argv 4] |
This file contains hidden or 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 | |
export PASSWORD=yourpassword | |
export HOSTNAME='scalr' | |
export DOMAIN='.local' | |
export SCALR_BASE=/usr/local/scalr | |
export SCALR_HOME=$SCALR_BASE/scalr-home | |
export SCALR_FILES=$SCALR_BASE/scalr-files | |
export CURRENT=$SCALR_BASE/current |
This file contains hidden or 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
2013-03-06 21:56:52 ERROR | com.eucalyptus.util.EucalyptusCloudException: Invalid volume group name: vg01/lv_storage | |
| Run `vgdisplay --help' for more information. | |
com.eucalyptus.util.EucalyptusCloudException: Invalid volume group name: vg01/lv_storage | |
Run `vgdisplay --help' for more information. | |
at edu.ucsb.eucalyptus.util.SystemUtil.run(SystemUtil.java:92) | |
at com.eucalyptus.storage.DASManager.getVolumeGroup(DASManager.java:234) | |
at com.eucalyptus.storage.DASManager.updateVolumeGroup(DASManager.java:157) | |
at com.eucalyptus.storage.DASManager.createVolume(DASManager.java:393) | |
at edu.ucsb.eucalyptus.cloud.ws.BlockStorage$VolumeCreator.run(BlockStorage.java:1415) |
OlderNewer