- Timestamp:
- Mar 9, 2010 2:44:44 PM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 86a7bb8
- Parents:
- 9b3627e
- Location:
- fedd/federation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/emulab_access.py
r9b3627e r4e9719b 1009 1009 myname = e.name[0] 1010 1010 type = e.get_attribute('portal_type') 1011 testbed = e.get_attribute('testbed') 1011 1012 1012 1013 info = conninfo_to_dict(myname, connInfo) … … 1042 1043 if tunnelconfig: 1043 1044 print >>f, "tunnelip: %s" % tunnelconfig 1044 # XXX: send this an fedattr1045 #print >>f, "seercontrol: control.%s.%s%s" % \1046 #(meid.lower(), mproj.lower(), mdomain)1047 1045 print >>f, "peer: %s" % peer.lower() 1048 1046 print >>f, "ssh_pubkey: /proj/%s/exp/%s/tmp/%s" % \ … … 1055 1053 "Can't write protal config %s: %s" % (cfn, e)) 1056 1054 1057 # XXX: This little seer config file needs to go away.1058 #if not seer_out:1059 #try:1060 #seerfn = "%s/seer.conf" % tmpdir1061 #f = open(seerfn, "w")1062 #if not master:1063 #print >>f, "ControlNode: control.%s.%s%s" % \1064 #(meid.lower(), mproj.lower(), mdomain)1065 #print >>f, "ExperimentID: %s" % mexp1066 #f.close()1067 #except IOError, e:1068 #raise service_error(service_error.internal,1069 #"Can't write seer.conf: %s" %e)1070 #seer_out = True1071 1072 1055 if not client_out and type in ('control', 'both'): 1073 1056 try: … … 1080 1063 s.get('visibility','') == 'import': 1081 1064 client_service_out[s['name']](f, s) 1082 # Seer uses this ?1065 # Seer uses this. 1083 1066 print >>f, "ExperimentID: %s/%s" % (mproj, meid) 1067 # Better way... 1068 if testbed == master: 1069 print >>f, "SEERBase: True" 1084 1070 f.close() 1085 1071 except IOError, e: -
fedd/federation/proxy_protogeni_segment.py
r9b3627e r4e9719b 216 216 myname = e.name[0] 217 217 type = e.get_attribute('portal_type') 218 testbed = e.get_attribute('testbed') 218 219 219 220 info = conninfo_to_dict(myname, connInfo) … … 251 252 if tunnelconfig: 252 253 print >>f, "tunnelip: %s" % tunnelconfig 253 # XXX: send this an fedattr254 #print >>f, "seercontrol: control.%s.%s%s" % \255 #(meid.lower(), mproj.lower(), mdomain)256 254 print >>f, "peer: %s" % peer.lower() 257 255 print >>f, "ssh_pubkey: /usr/local/federation/etc/%s" % \ … … 263 261 raise service_error(service_error.internal, 264 262 "Can't write protal config %s: %s" % (cfn, e)) 265 266 # XXX: This little seer config file needs to go away.267 #if not seer_out:268 #try:269 #seerfn = "%s/seer.conf" % tmpdir270 #f = open(seerfn, "w")271 #if not master:272 #print >>f, "ControlNode: control.%s.%s%s" % \273 #(meid.lower(), mproj.lower(), mdomain)274 #print >>f, "ExperimentID: %s" % mexp275 #f.close()276 #except IOError, e:277 #raise service_error(service_error.internal,278 #"Can't write seer.conf: %s" %e)279 #seer_out = True280 263 281 264 if not client_out and type in ('control', 'both'): … … 290 273 # dir. 291 274 print >>f, "ExperimentID: %s/%s" % (mproj, meid) 275 if testbed == master: 276 print >>f, "SEERBase: True" 292 277 f.close() 293 278 except IOError, e:
Note: See TracChangeset
for help on using the changeset viewer.