1 |
|
# |
2 |
|
# BonFIRE Virtual Clusters on Federated Clouds Demonstration Kit |
3 |
|
# |
4 |
|
# Copyright (c) Fundacion Centro Tecnologico de Supercomputacion de Galicia 2012 |
5 |
|
# |
6 |
|
# License Apache Software |
7 |
|
# |
8 |
|
# The research leading to these results has received funding from |
9 |
|
# the European Community's Seventh Framework Programme (FP7/2007-2013) |
10 |
|
# under agreement number 257386 |
11 |
|
# |
12 |
|
# This software is provided with ABSOLUTELY NO WARRANTY |
13 |
|
# |
14 |
require 'rubygems' |
require 'rubygems' |
15 |
require 'restfully' |
require 'restfully' |
16 |
require 'restfully/addons/bonfire' |
require 'restfully/addons/bonfire' |
25 |
EXPERIMENT_DESCRIPTION = "Build image master for virtual cluster" |
EXPERIMENT_DESCRIPTION = "Build image master for virtual cluster" |
26 |
EXPERIMENT_WALLTIME = 3600 |
EXPERIMENT_WALLTIME = 3600 |
27 |
IMAGE_NAME = "BonFIRE Debian Squeeze 2G v3" |
IMAGE_NAME = "BonFIRE Debian Squeeze 2G v3" |
|
NEW_IMAGE_NAME = "VirtualClusterMaster-vcocdemo-v0.1" |
|
28 |
WAN_NAME = "BonFIRE WAN" |
WAN_NAME = "BonFIRE WAN" |
29 |
|
|
30 |
session = Restfully::Session.new( |
session = Restfully::Session.new( |
36 |
session.logger.level = Logger::INFO |
session.logger.level = Logger::INFO |
37 |
#session.logger.level = Logger::DEBUG |
#session.logger.level = Logger::DEBUG |
38 |
|
|
39 |
|
NEW_IMAGE_NAME = "VirtualClusterMaster-#{session.config[:username]}-v0.1" |
40 |
|
|
41 |
experiment = nil |
experiment = nil |
42 |
|
|
43 |
begin |
begin |