nitos_testbed_rc 1.0.0.pre.8 → 1.0.0.pre.9
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/README.md +26 -9
- data/etc/cm_proxy_conf.yaml +3 -0
- data/etc/frisbee_proxy_conf.yaml +1 -0
- data/lib/nitos_testbed_rc/cm_factory.rb +2 -2
- data/lib/nitos_testbed_rc/imagezip_client.rb +1 -1
- data/lib/version.rb +1 -1
- data/nitos_testbed_rc.gemspec +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -10,11 +10,21 @@ save and load images to nodes.
|
|
10
10
|
|
11
11
|
- User resource controller which administers users.
|
12
12
|
|
13
|
-
-
|
13
|
+
- omf6 script which orchistrates the above.
|
14
14
|
|
15
15
|
These tools are under development. Unpredictable behaviour is to be expected untill
|
16
16
|
a stable version is provided.
|
17
17
|
|
18
|
+
|
19
|
+
Prerequirements
|
20
|
+
---------------
|
21
|
+
|
22
|
+
Install frisbee, which is required by the frisbee proxy
|
23
|
+
|
24
|
+
% apt-get install frisbee
|
25
|
+
|
26
|
+
If that fails add this line 'deb http://pkg.mytestbed.net/ubuntu precise/ ' to your /etc/apt/sources.list and then 'apt-get update'.
|
27
|
+
|
18
28
|
Installation
|
19
29
|
------------
|
20
30
|
|
@@ -22,7 +32,7 @@ First you need to install the gem
|
|
22
32
|
|
23
33
|
% gem install nitos_testbed_rc --pre
|
24
34
|
|
25
|
-
Then you need to run the install_ntrc script to generate the configuration files.
|
35
|
+
Then you need to run the install_ntrc script to generate the configuration files [tutorial](http://mytestbed.net/doc/omf/file.set_up_communication_server.html).
|
26
36
|
|
27
37
|
% install_ntrc
|
28
38
|
|
@@ -36,25 +46,30 @@ Use omf_cert.rb script to generate the following certificates and place them on
|
|
36
46
|
% cd /root/.omf
|
37
47
|
|
38
48
|
Create a root certificate (change DOMAIN).
|
39
|
-
Importand!!! If you already have a root certificate (probably created while installing omf_sfa) DO NOT create this certificate again and use the old one instead.
|
40
49
|
|
41
|
-
|
50
|
+
Important!!! If you already have a root certificate (probably created while installing omf_sfa) DO NOT create this certificate again and use the old one instead.
|
51
|
+
|
52
|
+
% omf_cert.rb --email root@DOMAIN -o /root/.omf/trusted_roots/root.pem --duration 5000000 create_root
|
42
53
|
|
43
54
|
Create a certificate for user_proxy of NTRC (change DOMAIN, XMPP_DOMAIN and if you wish the output file names).
|
44
55
|
|
45
|
-
%
|
56
|
+
% omf_cert.rb -o user_factory.pem --email user_factory@DOMAIN --resource-type user_factory --resource-id xmpp://user_factory@XMPP_DOMAIN --root /root/.omf/trusted_roots/root.pem --duration 50000000 create_resource
|
46
57
|
|
47
58
|
Create a certificate for cm_proxy of NTRC (change DOMAIN, XMPP_DOMAIN and if you wish the output file names).
|
48
59
|
|
49
|
-
%
|
60
|
+
% omf_cert.rb -o cm_factory.pem --email cm_factory@DOMAIN --resource-type cm_factory --resource-id xmpp://cm_factory@XMPP_DOMAIN --root /root/.omf/trusted_roots/root.pem --duration 50000000 create_resource
|
50
61
|
|
51
62
|
Create a certificate for frisbee_proxy of NTRC (change DOMAIN, XMPP_DOMAIN and if you wish the output file names).
|
52
63
|
|
53
|
-
%
|
64
|
+
% omf_cert.rb -o frisbee_factory.pem --email frisbee_factory@DOMAIN --resource-type frisbee_factory --resource-id xmpp://frisbee_factory@XMPP_DOMAIN --root /root/.omf/trusted_roots/root.pem --duration 50000000 create_resource
|
65
|
+
|
66
|
+
|
54
67
|
|
55
68
|
Create a certificate for the omf6 script, this certificate is inside the directory '~/.omf', every user of the testbed should have his own certificate in order to use omf6 script (change DOMAIN, USERNAME and if you wish the output file names).
|
56
69
|
|
57
|
-
|
70
|
+
Important!!! If you already have a user_cert.pem certificate in folder /root/.omf (probably created while installing omf_sfa) DO NOT create this certificate again and use the old one instead.
|
71
|
+
|
72
|
+
% omf_cert.rb -o user_cert.pem --email USERNAME@DOMAIN --user USERNAME --root ~/.omf/trusted_roots/root.pem --duration 50000000 --geni_uri URI:urn:publicid:IDN+DOMAIN+user+USERNAME create_user
|
58
73
|
|
59
74
|
Configuration files
|
60
75
|
-------------------
|
@@ -142,7 +157,9 @@ Change configuration file '/etc/nitos_testbed/frisbee_proxy_conf.yaml', which is
|
|
142
157
|
#multicastIF: 192.168.204.1
|
143
158
|
:multicastIF: 10.0.1.200
|
144
159
|
|
145
|
-
|
160
|
+
Important!!! DO NOT modify the file /etc/nitos_testbed_rc/omf_script_conf.yaml. It is a skeleton used by the user_proxy to generate the configuration file for every user it creates.
|
161
|
+
|
162
|
+
Finaly, create/modify for each user the configuration file '~/.omf/etc/omf_script_conf.yaml', which is related to omf6 script of NTRC, every user of the testbed should have his own configuration file in order to use omf6 script. For example:
|
146
163
|
|
147
164
|
:xmpp:
|
148
165
|
:script_user: script_user
|
data/etc/cm_proxy_conf.yaml
CHANGED
data/etc/frisbee_proxy_conf.yaml
CHANGED
@@ -267,7 +267,7 @@ module OmfRc::ResourceProxy::CMFactory
|
|
267
267
|
if resp == :on
|
268
268
|
symlink_name = "/tftpboot/pxelinux.cfg/01-#{node[:node_mac]}"
|
269
269
|
if !File.exists?("#{symlink_name}")
|
270
|
-
File.symlink("/tftpboot/pxelinux.cfg
|
270
|
+
File.symlink("/tftpboot/pxelinux.cfg/#{@config[:pxeSymLinkConfFile]}", "#{symlink_name}")
|
271
271
|
end
|
272
272
|
debug "Start_node_pxe RESET: http://#{node[:node_cm_ip].to_s}/reset"
|
273
273
|
begin
|
@@ -284,7 +284,7 @@ module OmfRc::ResourceProxy::CMFactory
|
|
284
284
|
elsif resp == :off
|
285
285
|
symlink_name = "/tftpboot/pxelinux.cfg/01-#{node[:node_mac]}"
|
286
286
|
if !File.exists?("#{symlink_name}")
|
287
|
-
File.symlink("/tftpboot/pxelinux.cfg
|
287
|
+
File.symlink("/tftpboot/pxelinux.cfg/#{@config[:pxeSymLinkConfFile]}", "#{symlink_name}")
|
288
288
|
end
|
289
289
|
debug "Start_node_pxe ON: http://#{node[:node_cm_ip].to_s}/on"
|
290
290
|
begin
|
@@ -53,7 +53,7 @@ module OmfRc::ResourceProxy::ImagezipClient #Imagezip client
|
|
53
53
|
|
54
54
|
client.property.app_id = client.hrn.nil? ? client.uid : client.hrn
|
55
55
|
|
56
|
-
command = "#{client.property.binary_path} -o -z1 #{client.property.hardrive} - |
|
56
|
+
command = "#{client.property.binary_path} -o -z1 #{client.property.hardrive} - | #{@fconf[:imagezipClientNC]} -q 0 #{client.property.ip} #{client.property.port}"
|
57
57
|
debug "Executing command #{command}"
|
58
58
|
# nod = {node_name: "node1", node_ip: "10.0.0.1", node_mac: "00-03-1d-0d-4b-96", node_cm_ip: "10.0.0.101"}
|
59
59
|
summary = ''
|
data/lib/version.rb
CHANGED
data/nitos_testbed_rc.gemspec
CHANGED
@@ -23,5 +23,5 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_runtime_dependency "omf_rc", "~> 6.1.3"
|
24
24
|
s.add_runtime_dependency "nokogiri", "~> 1.6.0"
|
25
25
|
s.add_runtime_dependency "progress_bar", "~> 1.0.3"
|
26
|
-
s.
|
26
|
+
s.add_runtime_dependency "net-ssh", "~> 2.8.0"
|
27
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nitos_testbed_rc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.
|
4
|
+
version: 1.0.0.pre.9
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-11-
|
12
|
+
date: 2014-11-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omf_common
|
@@ -83,7 +83,7 @@ dependencies:
|
|
83
83
|
- - ~>
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: 2.8.0
|
86
|
-
type: :
|
86
|
+
type: :runtime
|
87
87
|
prerelease: false
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|