omf_ec 6.0.2.pre.2 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/omf_ec +10 -15
- data/example/engine_oedl.rb +21 -18
- data/example/engine_test.rb +15 -11
- data/example/test_exp/test00.rb +5 -0
- data/example/test_exp/test01.rb +5 -0
- data/example/test_exp/test02.rb +5 -0
- data/example/test_exp/test03.rb +5 -0
- data/example/test_exp/test06.rb +6 -1
- data/example/test_exp/test07.rb +5 -0
- data/lib/omf_ec/app_definition.rb +5 -0
- data/lib/omf_ec/backward/app_definition.rb +25 -3
- data/lib/omf_ec/backward/core_ext/array.rb +5 -0
- data/lib/omf_ec/backward/default_events.rb +16 -10
- data/lib/omf_ec/backward/dsl.rb +5 -0
- data/lib/omf_ec/backward/exp/testbed.rb +7 -2
- data/lib/omf_ec/backward/group.rb +8 -1
- data/lib/omf_ec/context/app_context.rb +13 -7
- data/lib/omf_ec/context/def_app_context.rb +5 -0
- data/lib/omf_ec/context/group_context.rb +31 -0
- data/lib/omf_ec/context/net_context.rb +12 -0
- data/lib/omf_ec/context.rb +5 -0
- data/lib/omf_ec/core_ext/hash.rb +11 -0
- data/lib/omf_ec/dsl.rb +6 -1
- data/lib/omf_ec/experiment.rb +7 -2
- data/lib/omf_ec/experiment_property.rb +16 -11
- data/lib/omf_ec/group.rb +8 -2
- data/lib/omf_ec/version.rb +6 -1
- data/lib/omf_ec.rb +6 -0
- data/omf_ec.gemspec +3 -1
- data/test/omf_ec/context_spec.rb +5 -0
- data/test/omf_ec/dsl_spec.rb +87 -24
- data/test/omf_ec/experiment_property_spec.rb +18 -6
- data/test/omf_ec/experiment_spec.rb +6 -0
- data/test/omf_ec/group_spec.rb +32 -23
- data/test/test_helper.rb +33 -0
- metadata +27 -8
- data/config/ec.yml +0 -164
data/config/ec.yml
DELETED
@@ -1,164 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Copyright (c) 2006-2009 National ICT Australia (NICTA), Australia
|
3
|
-
#
|
4
|
-
# Copyright (c) 2004-2009 WINLAB, Rutgers University, USA
|
5
|
-
#
|
6
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
-
# of this software and associated documentation files (the "Software"), to deal
|
8
|
-
# in the Software without restriction, including without limitation the rights
|
9
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
-
# copies of the Software, and to permit persons to whom the Software is
|
11
|
-
# furnished to do so, subject to the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be included in
|
14
|
-
# all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
-
# THE SOFTWARE.
|
23
|
-
#
|
24
|
-
#
|
25
|
-
# This is the config file for the OMF Experiment Controller
|
26
|
-
#
|
27
|
-
# NOTE: use only 'spaces' to indent !
|
28
|
-
# ('tab' indents are not supported by the ruby yaml parser, which is used to
|
29
|
-
# read this file)
|
30
|
-
#
|
31
|
-
---
|
32
|
-
:econtroller:
|
33
|
-
|
34
|
-
:config:
|
35
|
-
|
36
|
-
# Config Parameter for the "default" profile
|
37
|
-
# IMPORTANT: There has to be a default entry. It should contain a complete
|
38
|
-
# set of parameters, so other profiles can fall back to it
|
39
|
-
:default:
|
40
|
-
|
41
|
-
# This is the domain name of the testbed
|
42
|
-
# You need a corresponding entry in the testbed table of your inventory
|
43
|
-
# that has this name set in the 'node_domain' column
|
44
|
-
:domain: 'norbit'
|
45
|
-
:slice: 'default_slice'
|
46
|
-
|
47
|
-
# This is the Path where EC should look for its repository of built-in
|
48
|
-
# experiments (e.g. example experiments, maintenance experiments, etc...)
|
49
|
-
:repository:
|
50
|
-
:path: ["../share/repository", "/usr/share/omf-expctl-5.4/repository"]
|
51
|
-
|
52
|
-
# URI to the OML server to use for this EC
|
53
|
-
# (can be overwritten on the EC command line)
|
54
|
-
:omluri: 'tcp:norbit.npc.nicta.com.au:3003'
|
55
|
-
|
56
|
-
# This should be the IP address of the local interface that is accessible
|
57
|
-
# from the nodes. This address will be given to the nodes so they can
|
58
|
-
# retrieve applications from the EC via HTTP.
|
59
|
-
:web:
|
60
|
-
:host: '10.0.0.200'
|
61
|
-
:resource_dir: ["../../omf-common/share/htdocs", "/usr/share/omf-common-5.4/share/htdocs"]
|
62
|
-
|
63
|
-
:communicator:
|
64
|
-
|
65
|
-
# set this to false if you want to disable signature checks and message signing
|
66
|
-
:authenticate_messages: false
|
67
|
-
# your RSA/DSA SSH private key file
|
68
|
-
:private_key: '~/.ssh/id_rsa'
|
69
|
-
# directory holding the public keys of your OMF peers
|
70
|
-
:public_key_dir: '~/.omf-expctl/peer_keys'
|
71
|
-
|
72
|
-
:type: 'xmpp'
|
73
|
-
:xmpp:
|
74
|
-
# Address of the server to use as gateway for PubSub communication
|
75
|
-
:pubsub_gateway: 'norbit.npc.nicta.com.au'
|
76
|
-
#:pubsub_port: 5222
|
77
|
-
# The 'pubsub_domain' is the hostname of the pubsub server on which
|
78
|
-
# you would like to host your slice's communications. Leave this
|
79
|
-
# commented if you wish to host them on the 'pubsub_gateway' server
|
80
|
-
# which you selected above.
|
81
|
-
#:pubsub_domain: 'norbit.npc.nicta.com.au'
|
82
|
-
# The following 'pubsub_user' and 'pubsub_pwd' are optional
|
83
|
-
# EC will create a unique user/pwd for itself if this is not provided
|
84
|
-
# In a typical OMF install, you should not uncomment these lines
|
85
|
-
# (do so only if you need to manually set user/password for
|
86
|
-
# your client to connect to your pubsub server)
|
87
|
-
#:pubsub_user: 'my_EC_name'
|
88
|
-
#:pubsub_pwd: 'my_EC_password'
|
89
|
-
# set this to "true" if you have a DNS SRV record pointing to the
|
90
|
-
# real pubsub server hostname
|
91
|
-
:pubsub_use_dnssrv: false
|
92
|
-
|
93
|
-
# AM contact details. By default, the AM is contacted through the EC's XMPP
|
94
|
-
# connection as specified in the ':communicator:' section above. In this
|
95
|
-
# ':services:' section, you can specify additional AM contact details.
|
96
|
-
# Supported protocols are XMPP and HTTP for legacy services.
|
97
|
-
:services:
|
98
|
-
-
|
99
|
-
:type: :http
|
100
|
-
:uri: 'http://norbit.npc.nicta.com.au:5054'
|
101
|
-
# -
|
102
|
-
# :type: :xmpp
|
103
|
-
# :uri: 'norbit.npc.nicta.com.au'
|
104
|
-
# :user: 'joe'
|
105
|
-
# :password: 'fluffy'
|
106
|
-
|
107
|
-
|
108
|
-
##########################
|
109
|
-
# config parameters for the "p2p" profile
|
110
|
-
:p2p:
|
111
|
-
:domain: 'planetlab'
|
112
|
-
:repository:
|
113
|
-
:path: [".", "../share/repository", "/usr/share/omf-expctl-5.4/repository"]
|
114
|
-
:inventory:
|
115
|
-
:url: 'http://planetlab-europe-07.ipv6.lip6.fr:5054/inventory'
|
116
|
-
# :web:
|
117
|
-
# :host: 'your_hostname_or_ip_here'
|
118
|
-
:result:
|
119
|
-
:url: 'http://planetlab-europe-07.ipv6.lip6.fr:5054/result/'
|
120
|
-
:communicator:
|
121
|
-
:type: 'xmpp'
|
122
|
-
:xmpp:
|
123
|
-
:server: planetlab-europe-07.ipv6.lip6.fr
|
124
|
-
:password: '123'
|
125
|
-
####
|
126
|
-
:planetlab:
|
127
|
-
:domain: 'planetlab'
|
128
|
-
:slice: 'ost_securexmpp'
|
129
|
-
:repository:
|
130
|
-
:path: ["../share/repository", "/usr/share/omf-expctl-5.4/repository"]
|
131
|
-
:inventory:
|
132
|
-
:url: 'http://mytestbed.net:5054/inventory'
|
133
|
-
|
134
|
-
:web:
|
135
|
-
:host: '10.0.0.200'
|
136
|
-
:resource_dir: ["../../omf-common/share/htdocs", "/usr/share/omf-common-5.4/share/htdocs"]
|
137
|
-
|
138
|
-
:communicator:
|
139
|
-
|
140
|
-
:authenticate_messages: true
|
141
|
-
:private_key: '~/.ssh/id_rsa'
|
142
|
-
:public_key_dir: '~/.omf-expctl/peer_keys'
|
143
|
-
|
144
|
-
:type: 'xmpp'
|
145
|
-
:xmpp:
|
146
|
-
:pubsub_gateway: 'mytestbed.net'
|
147
|
-
|
148
|
-
##########################
|
149
|
-
# config parameters for the "p2p" profile
|
150
|
-
#
|
151
|
-
# To use this testbed, call EC with the option PRINT_ONLY or "-d debug"
|
152
|
-
# Any parameter settings within this section will override the settings
|
153
|
-
# done in the "default" section. The EC first loads the "default"
|
154
|
-
# settings, then it uses the "debug" specific settings to override the
|
155
|
-
# relevant parameters
|
156
|
-
:debug:
|
157
|
-
:repository:
|
158
|
-
:path: ['.', '../share/repository']
|
159
|
-
:communicator:
|
160
|
-
:type: 'mock'
|
161
|
-
:log: '../etc/omf-expctl/debug_log.xml'
|
162
|
-
:inventory:
|
163
|
-
:url: 'http://norbit.npc.nicta.com.au:5054/inventory'
|
164
|
-
|