Changeset 4e9719b


Ignore:
Timestamp:
Mar 9, 2010 2:44:44 PM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
86a7bb8
Parents:
9b3627e
Message:

SEER stuff

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_access.py

    r9b3627e r4e9719b  
    10091009            myname = e.name[0]
    10101010            type = e.get_attribute('portal_type')
     1011            testbed = e.get_attribute('testbed')
    10111012
    10121013            info = conninfo_to_dict(myname, connInfo)
     
    10421043                if tunnelconfig:
    10431044                    print >>f, "tunnelip: %s" % tunnelconfig
    1044                 # XXX: send this an fedattr
    1045                 #print >>f, "seercontrol: control.%s.%s%s" % \
    1046                         #(meid.lower(), mproj.lower(), mdomain)
    10471045                print >>f, "peer: %s" % peer.lower()
    10481046                print >>f, "ssh_pubkey: /proj/%s/exp/%s/tmp/%s" % \
     
    10551053                        "Can't write protal config %s: %s" % (cfn, e))
    10561054           
    1057             # XXX: This little seer config file needs to go away.
    1058             #if not seer_out:
    1059                 #try:
    1060                     #seerfn = "%s/seer.conf" % tmpdir
    1061                     #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" % mexp
    1066                     #f.close()
    1067                 #except IOError, e:
    1068                     #raise service_error(service_error.internal,
    1069                             #"Can't write seer.conf: %s" %e)
    1070                 #seer_out = True
    1071 
    10721055            if not client_out and type in ('control', 'both'):
    10731056                try:
     
    10801063                                s.get('visibility','') == 'import':
    10811064                            client_service_out[s['name']](f, s)
    1082                     # Seer uses this?
     1065                    # Seer uses this.
    10831066                    print >>f, "ExperimentID: %s/%s" % (mproj, meid)
     1067                    # Better way...
     1068                    if testbed == master:
     1069                        print >>f, "SEERBase: True"
    10841070                    f.close()
    10851071                except IOError, e:
  • fedd/federation/proxy_protogeni_segment.py

    r9b3627e r4e9719b  
    216216            myname = e.name[0]
    217217            type = e.get_attribute('portal_type')
     218            testbed = e.get_attribute('testbed')
    218219
    219220            info = conninfo_to_dict(myname, connInfo)
     
    251252                if tunnelconfig:
    252253                    print >>f, "tunnelip: %s" % tunnelconfig
    253                 # XXX: send this an fedattr
    254                 #print >>f, "seercontrol: control.%s.%s%s" % \
    255                         #(meid.lower(), mproj.lower(), mdomain)
    256254                print >>f, "peer: %s" % peer.lower()
    257255                print >>f, "ssh_pubkey: /usr/local/federation/etc/%s" % \
     
    263261                raise service_error(service_error.internal,
    264262                        "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" % tmpdir
    270                     #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" % mexp
    275                     #f.close()
    276                 #except IOError, e:
    277                     #raise service_error(service_error.internal,
    278                             #"Can't write seer.conf: %s" %e)
    279                 #seer_out = True
    280263
    281264            if not client_out and type in ('control', 'both'):
     
    290273                    # dir.
    291274                    print >>f, "ExperimentID: %s/%s" % (mproj, meid)
     275                    if testbed == master:
     276                        print >>f, "SEERBase: True"
    292277                    f.close()
    293278                except IOError, e:
  • fedkit/prep_gateway.pl

    r9b3627e r4e9719b  
    1313my $peer;
    1414my $use_file;
     15my $fed_dir = "/usr/local/federation/";
    1516my %opts = (
    1617    'ssh_pubkey=s' => \$ssh_pubkey,
     
    2829my $uname = `uname`;
    2930chomp $uname;
     31
     32# on portals make sure client.conf is in the override position (in fed_dir).
     33my $client_conf = gateway_lib::client_conf_filename();
     34
     35copy($client_conf, "$fed_dir/etc/client.conf")
     36    unless $client_conf =~ /^$fed_dir/;
    3037
    3138if ($uname =~ /Linux/) {
  • fedkit/smbmount.FreeBSD.pl

    r9b3627e r4e9719b  
    4646open(TM, "/usr/local/federation/etc/userconf")or die("Failed to open userconf");
    4747open(CONFIG, ">/etc/nsmb.conf") or die("Failed to open /etc/nsmb.conf");
    48 open(MAP, ">$AMDMAP") or die("Failed to open $AMDMAP");
    49 open(PMAP, ">$PAMDMAP") or die("Failed to open $PAMDMAP");
     48#open(MAP, ">$AMDMAP") or die("Failed to open $AMDMAP");
     49#open(PMAP, ">$PAMDMAP") or die("Failed to open $PAMDMAP");
    5050open(FSTAB,">>$FSTAB") or die("Cannot Open File $FSTAB");
    5151
    5252print FSTAB "\n# SMB Configuration Generated by smbmount.pl\n";
    53 print MAP "# AMD Configuration Generated by smbmount.pl\n";
     53#print MAP "# AMD Configuration Generated by smbmount.pl\n";
    5454print CONFIG "# SMB Configuration Generated by smbmount.pl\n\n";
    5555print CONFIG "[$SHARE]\naddr=$ADDR\n\n";
     
    7676
    7777        print FSTAB "//$user\@$SHARE/$user\t";
    78         print FSTAB "$AMDROOT$homedir\t$FSTYPE\t";
    79         print FSTAB "noauto,rw,-N,-f744,-d755,-u$uid,-g$gid\t0\t0\n";
     78        print FSTAB "$homedir\t$FSTYPE\t";
     79        print FSTAB "rw,-N,-f744,-d755,-u$uid,-g$gid\t0\t0\n";
    8080
    81         print MAP "\n$userlc type:=program;fs:=$AMDROOT$homedir;\\\n";
    82         print MAP "mount:=\"$MOUNT mount $AMDROOT$homedir\";\\\n";
    83         print MAP "unmount:=\"$UMOUNT unmount $AMDROOT$homedir\";";
     81        #print MAP "\n$userlc type:=program;fs:=$AMDROOT$homedir;\\\n";
     82        #print MAP "mount:=\"$MOUNT mount $AMDROOT$homedir\";\\\n";
     83        #print MAP "unmount:=\"$UMOUNT unmount $AMDROOT$homedir\";";
    8484
    8585        #
     
    9191        if($user =~ m/$PUSER/i) {
    9292            print FSTAB "//$user\@$SHARE/proj-$PNAME\t";
    93             print FSTAB "$AMDROOT/proj\t$FSTYPE\t";
    94             print FSTAB "noauto,rw,-N,-f774,-d775,-u$uid,-g$gid\t0\t0\n";
     93            print FSTAB "/proj/$PNAME\t$FSTYPE\t";
     94            print FSTAB "rw,-N,-f774,-d775,-u$uid,-g$gid\t0\t0\n";
    9595
    96             print PMAP "$PNAME type:=program;fs:=$AMDROOT/proj;\\\n";
    97             print PMAP "mount:=\"$MOUNT mount $AMDROOT/proj\";\\\n";
    98             print PMAP "unmount:=\"$UMOUNT unmount $AMDROOT/proj\";\n";
     96            #print PMAP "$PNAME type:=program;fs:=$AMDROOT/proj;\\\n";
     97            #print PMAP "mount:=\"$MOUNT mount $AMDROOT/proj\";\\\n";
     98            #print PMAP "unmount:=\"$UMOUNT unmount $AMDROOT/proj\";\n";
    9999
    100             if(! -d "$AMDROOT/proj") {
    101                     system("$MKDIR -p $AMDROOT/proj") &&
     100            if(! -d "/proj/$PNAME") {
     101                    system("$MKDIR -p /proj/$PNAME") &&
    102102                        die("Failed to make directory");
    103103            }
    104104            if ( $share) {
    105105                print FSTAB "//$user\@$SHARE/share\t";
    106                 print FSTAB "$AMDROOT/share\t$FSTYPE\t";
    107                 print FSTAB "noauto,rw,-N,-f774,-d775,-u$uid,-g$gid\t0\t0\n";
     106                print FSTAB "/share\t$FSTYPE\t";
     107                print FSTAB "rw,-N,-f774,-d775,-u$uid,-g$gid\t0\t0\n";
    108108
    109                 print PMAP "$PNAME type:=program;fs:=$AMDROOT/share\\\n";
    110                 print PMAP "mount:=\"$MOUNT mount $AMDROOT/share\";\\\n";
    111                 print PMAP "unmount:=\"$UMOUNT unmount $AMDROOT/share\";\n";
     109                #print PMAP "$PNAME type:=program;fs:=$AMDROOT/share\\\n";
     110                #print PMAP "mount:=\"$MOUNT mount $AMDROOT/share\";\\\n";
     111                #print PMAP "unmount:=\"$UMOUNT unmount $AMDROOT/share\";\n";
    112112
    113                 if(! -d "$AMDROOT/share") {
    114                         system("$MKDIR -p $AMDROOT/share") &&
     113                if(! -d "/share") {
     114                        system("$MKDIR -p /share") &&
    115115                            die("Failed to make directory");
    116116                }
     
    122122close(CONFIG);
    123123close(FSTAB);
    124 close(MAP);
    125 close(PMAP);
     124print("Mounting the $FSTYPE versions of everything\n");
     125system("$MOUNT -a -t $FSTYPE");
     126#close(MAP);
     127#close(PMAP);
    126128
    127 print "Starting the automounter: $AMD -l syslog -a $AMDROOT $HOMEROOT $AMDMAP $PROJROOT $PAMDMAP\n";
    128 system("$AMD -l syslog -a $AMDROOT $HOMEROOT $AMDMAP $PROJROOT $PAMDMAP") && die("Unable to start amd");
     129#print "Starting the automounter: $AMD -l syslog -a $AMDROOT $HOMEROOT $AMDMAP $PROJROOT $PAMDMAP\n";
     130#system("$AMD -l syslog -a $AMDROOT $HOMEROOT $AMDMAP $PROJROOT $PAMDMAP") && die("Unable to start amd");
Note: See TracChangeset for help on using the changeset viewer.