make sync to push on a work/test plc
[sfa.git] / INSTALL.txt
1 ========== INSTALL
2 Assuming that you've set up your yum repo like for a myplc install,
3 you should be abe to just
4 # yum install geniwrapper
5
6 ========== CONFIGURE
7
8 ---
9 Inspect your plc config:
10
11 [2009.06.09--1l-f8-32-vplc07] / # plc-config-tty 
12 Enter command (u for usual changes, w to save, ? for help) s PLC_ROOT_USER
13 PLC_ROOT_USER = root@test.onelab.eu
14 Enter command (u for usual changes, w to save, ? for help) s PLC_ROOT_PASSWORD
15 PLC_ROOT_PASSWORD = test++
16 ---
17 geni-config-tty
18
19 * set GENI_PLC_USER             to PLC_ROOT_USER 
20 * set GENI_PLC_PASSWORD         to PLC_ROOT_PASSWORD
21 write and quit
22
23 *NOTE* xxx at this point you get a warning b/c the authorities hierarchy has not been created yet; ignore
24 ---
25 run gimport
26
27 [2009.06.09--1l-f8-32-vplc07] / # gimport.py 
28 Import: creating top level authorities
29 Hierarchy: creating authority: plc
30 plc : 
31 Import: creating table for authority plc
32 NOTICE:  table "geni$plc" does not exist, skipping
33   inserting authority record for plc
34
35 --- 
36 run geni-config-tty again
37
38 copy authorities/ple/ple.pkey to geni/server.key
39
40
41
42 Federation:
43 ===========
44 edit /etc/geni/aggregates.xml and /etc/geni/registries.xml  
45 * set addr to ip or hostname of federated peer
46 * set port to geni service port on federated peer
47 * set hrn to humarn readable name of federated peer interface
48
49 trade trusted root gid's (found in /usr/share/geniwrapper/geni/trusted_roots/) 
50
51 Run:
52 ====
53
54 First run:
55 # initialize the registry by running the registry import tool 
56 python gimport.py
57
58 # start the services
59 /etc/init.d/geniwrapper start 
60
61 or 
62
63 plc.py -r -d
64 plc.py -a -d
65 plc.py -s -d
66
67
68 Use:
69 ==== 
70
71 Copy my private PL (RSA) ssh key to ~/.sfi/quetier.pkey
72
73 in cmdline
74 edit  configSfi.sh
75 export SFI_AUTH=ple.upmc
76 export SFI_USER=$SFI_AUTH.quetier
77 export SFI_REGISTRY=http://138.96.255.199:12345/
78 export SFI_SM=http://138.96.255.199:12346/
79
80 source configSfi.sh
81
82 ./sfi.py list ple
83 ./sfi.py show ple.upmc.quetier