Changeset 27b6aea
- Timestamp:
- Sep 11, 2008 5:07:31 PM (16 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- c52c48d
- Parents:
- 89d9502
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_create_experiment.py
r89d9502 r27b6aea 841 841 fs = tbparams[master].get('fs', "fs") 842 842 event_server = "%s%s" % \ 843 (tbparams[ master].get('eventserver', "event_server"),844 tbparams[ master].get('domain', "example.com"))843 (tbparams[gw].get('eventserver', "event_server"), 844 tbparams[gw].get('domain', "example.com")) 845 845 remote_event_server = "%s%s" % \ 846 846 (tbparams[dtb].get('eventserver', "event_server"), 847 847 tbparams[dtb].get('domain', "example.com")) 848 848 seer_control = "%s%s" % \ 849 (tbparams[gw].get('control', "control"), sdomain) 849 850 remote_script_dir = "/proj/%s/exp/%s/tmp" % ( dproject, eid) 850 851 local_script_dir = "/proj/%s/exp/%s/tmp" % ( sproject, eid) … … 876 877 print >>gwconfig, "EventServerName: %s" % event_server 877 878 print >>gwconfig, "RemoteEventServerName: %s" % remote_event_server 879 print >>gwconfig, "SeerControl: %s" % seer_control 878 880 print >>gwconfig, "Type: %s" % type 879 881 print >>gwconfig, "RemoteScriptDir: %s" % remote_script_dir -
fedkit/fed-tun.pl
r89d9502 r27b6aea 34 34 my $SMBFS_PORT = 139; 35 35 my $PUBSUB_PORT = 16505; 36 my $SEER_PORT = 16606; 36 37 37 38 … … 126 127 } 127 128 129 # Forward connections to seer from remote TBs to control in this TB 130 if (defined($opts{'seercontrol'})) { 131 push(@ssh_port_fwds,"-R :$SEER_PORT:$opts{seercontrol}:$SEER_PORT"); 132 } 133 128 134 @ssh_port_fwds = () if ($opts{'type'} eq 'experiment'); 129 135 -
fedkit/federate.sh
r89d9502 r27b6aea 56 56 57 57 # Find this experiment's stashed scripts. (Perl for advanced parsing) 58 SCRIPTDIR=`$EMUDIR/tmcc -b status | $PERL -ne '/ALLOCATED=([^\/]+)\/([^\s]+)/ && print "/proj/$1/exp/$2/tmp\n";'` 58 PROJECT=`$EMUDIR/tmcc -b status | $PERL -ne '/ALLOCATED=([^\/]+)\/([^\s]+)/ && print "$1\n";'` 59 EXP=`$EMUDIR/tmcc -b status | $PERL -ne '/ALLOCATED=([^\/]+)\/([^\s]+)/ && print "$2\n";'` 60 SCRIPTDIR="/proj/$PROJECT/exp/$EXP/tmp" 59 61 60 62 # Die if Scripts are not where they should be. NB, this is checked by the … … 66 68 fi 67 69 68 # Copy the global hostnames file into /etc/hosts so this node can address69 # others in the experiment on other testbeds. The extra steps preserves teh70 # localhost entry that's aliased to this host's name.71 grep 127\\.0\\.0\\.1 /etc/hosts > /tmp/hosts72 cat "$SCRIPTDIR/hosts" >> /tmp/hosts73 cp /tmp/hosts /etc/hosts && rm /tmp/hosts74 75 70 # Get our gateway, share, and mount user from the configuration file. 76 71 # There's probably a way to get all three at once, but this works. … … 79 74 SMBUSER=`$PERL -ne '/ProjectUser:\s+(.*)/i && print "$1\n";' $SCRIPTDIR/client.conf` 80 75 SMBPROJECT=`$PERL -ne '/ProjectName:\s+(.*)/i && print "$1\n";' $SCRIPTDIR/client.conf` 76 77 GWIP=`host -N 10 $GATEWAY | $PERL -ne 's/.* has address // && print;'` 78 # Copy the global hostnames file into /etc/hosts so this node can address 79 # others in the experiment on other testbeds. The extra steps preserves teh 80 # localhost entry that's aliased to this host's name. 81 grep 127\\.0\\.0\\.1 /etc/hosts > /tmp/hosts 82 cat "$SCRIPTDIR/hosts" >> /tmp/hosts 83 # If there's no node in this experiment called control, fake one so 84 # that SEER events get through (if SEER's in use) 85 if ! grep -q control $SCRIPTDIR/hosts; then 86 echo "$GWIP control.$EXP.$PROJECT" >> /tmp/hosts 87 fi 88 cp /tmp/hosts /etc/hosts && rm /tmp/hosts 81 89 82 90 # XXX:
Note: See TracChangeset
for help on using the changeset viewer.