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 CHANGED
@@ -10,11 +10,21 @@ save and load images to nodes.
10
10
 
11
11
  - User resource controller which administers users.
12
12
 
13
- - om6 script which orchistrates the above.
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
- % ruby omf_cert.rb --email root@DOMAIN -o /root/.omf/trusted_roots/root.pem --duration 5000000 create_root
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
- % ruby 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
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
- % ruby 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
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
- % ruby 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
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
- % ./omf_cert.rb -o user_cert.pem --email root@DOMAIN --user root --root ~/.omf/trusted_roots/root.pem --duration 50000000 --geni_uri URI:urn:publicid:IDN+DOMAIN+user+USERNAME create_user
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
- Change configuration file '~/.omf/etc/user_proxy_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:
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
@@ -15,6 +15,9 @@
15
15
  #time (in seconds) before timeout error occurs
16
16
  :timeout: 80
17
17
 
18
+ #time (in seconds) before timeout error occurs
19
+ :pxeSymLinkConfFile: omf-5.4
20
+
18
21
  #operation mode for OmfCommon.init (development, production, etc)
19
22
  :operationMode: development
20
23
 
@@ -41,6 +41,7 @@
41
41
  :frisbeedBin: /usr/sbin/frisbeed
42
42
  :frisbeeBin: /usr/sbin/frisbee
43
43
  :imagezipClientBin: /usr/bin/imagezip
44
+ :imagezipClientNC: /bin/nc
44
45
  :imagezipServerBin: /bin/nc
45
46
 
46
47
  # Local interface to bind to for frisbee traffic
@@ -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/omf-5.4", "#{symlink_name}")
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/omf-5.4", "#{symlink_name}")
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} - | /bin/nc -q 0 #{client.property.ip} #{client.property.port}"
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
@@ -1,5 +1,5 @@
1
1
  module NITOS
2
2
  module TestbedRc
3
- VERSION = "1.0.0.pre.8"
3
+ VERSION = "1.0.0.pre.9"
4
4
  end
5
5
  end
@@ -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.add_development_dependency "net-ssh", "~> 2.8.0"
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.8
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-07 00:00:00.000000000 Z
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: :development
86
+ type: :runtime
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
89
89
  none: false