Changeset d87778f


Ignore:
Timestamp:
Feb 14, 2010 12:04:40 PM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
c0a8738
Parents:
94a00cb
Message:

Some bugs that weren't shaken out. Wrong peer in the config file, active configs not marked, and startcmds not munged.

Location:
fedd/federation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_access.py

    r94a00cb rd87778f  
    986986            active = info.get('active', 'False')
    987987
    988 
    989988            cfn = "%s/%s.gw.conf" % (tmpdir, myname.lower())
    990989            tunnelconfig = self.attrs.has_key('TunnelCfg')
     
    992991                f = open(cfn, "w")
    993992                if active == 'True':
     993                    print >>f, "active: True"
    994994                    if type in ('control', 'both'):
    995995                        for s in [s for s in services \
     
    11021102                elif node_cmd:
    11031103                    if e.get_attribute('startup'):
    1104                         s.set_attribute('startup', "%s \\$USER '%s'" % \
     1104                        e.set_attribute('startup', "%s \\$USER '%s'" % \
    11051105                                (node_cmd, e.get_attribute('startup')))
    11061106                    else:
    1107                         s.set_attribute('startup', node_cmd)
     1107                        e.set_attribute('startup', node_cmd)
    11081108
    11091109                # Remove portal interfaces that do not connect to DRAGON
  • fedd/federation/experiment_control.py

    r94a00cb rd87778f  
    13631363        be attached.
    13641364        """
    1365         sproject = tbparams[st].get('project', 'project')
    1366         sdomain = tbparams[st].get('domain', ".example.com")
     1365        dproject = tbparams[dt].get('project', 'project')
     1366        ddomain = tbparams[dt].get('domain', ".example.com")
    13671367        mdomain = tbparams[master].get('domain', '.example.com')
    13681368        mproject = tbparams[master].get('project', 'project')
     
    13911391                "portal": myname,
    13921392                'peer': "%s.%s.%s%s" %  (desthost.lower(), eid.lower(),
    1393                             sproject.lower(), sdomain.lower()),
     1393                            dproject.lower(), ddomain.lower()),
    13941394                'fedAttr': [
    13951395                        { 'attribute': 'masterdomain', 'value': mdomain},
    13961396                        { 'attribute': 'masterexperiment', 'value':
    13971397                            "%s/%s" % (mproject, eid)},
    1398                         { 'attribute': 'active', 'value': "%s" % active},
     1398                        { 'attribute': 'active', 'value': active},
    13991399                        # Move to SMB service description
    14001400                        { 'attribute': 'masteruser', 'value': muser},
Note: See TracChangeset for help on using the changeset viewer.