Ignore:
Timestamp:
Oct 7, 2011 5:29:41 PM (13 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, info-ops, master
Children:
58e5a4f
Parents:
743a102
Message:

Terminate nonce experiments #36

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_access.py

    r743a102 r05c41f5  
    933933        user = None
    934934        alloc_log = None
     935        nonce_experiment = False
    935936        vchars_re = '[^' + string.ascii_letters + string.digits  + '-]'
    936937
     
    973974            for i in range(0,5):
    974975                ename += random.choice(string.ascii_letters)
     976            nonce_experiment = True
    975977            self.log.warn("No experiment name or suggestion too long: " + \
    976978                    "picked one randomly: %s" % ename)
     
    988990            user = self.allocation[aid].get('user', None)
    989991            self.allocation[aid]['experiment'] = ename
     992            self.allocation[aid]['nonce'] = nonce_experiment
    990993            self.allocation[aid]['log'] = [ ]
    991994            # Create a logger that logs to the experiment's state object as
     
    11621165            user = self.allocation[aid].get('user', None)
    11631166            ename = self.allocation[aid].get('experiment', None)
     1167            nonce = self.allocation[aid].get('nonce', False)
    11641168        else:
    11651169            proj = None
    11661170            user = None
    11671171            ename = None
     1172            nonce = False
    11681173        self.state_lock.release()
    11691174
     
    11831188        stopper = self.stop_segment(keyfile=self.ssh_privkey_file,
    11841189                debug=self.create_debug, boss=self.boss, cert=self.xmlrpc_cert)
    1185         stopper(self, user, proj, ename, gid)
     1190        stopper(self, user, proj, ename, gid, nonce)
    11861191        return { 'allocID': req['allocID'], 'proof': proof.to_dict() }
Note: See TracChangeset for help on using the changeset viewer.