Changeset b90c44d for fedd


Ignore:
Timestamp:
Aug 23, 2012 4:10:49 PM (12 years ago)
Author:
Ted Faber <faber@…>
Branches:
master
Children:
6843d14
Parents:
8222e09
Message:

Clear started field of allocation on successful termination

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_access.py

    r8222e09 rb90c44d  
    10521052            raise service_error(service_error.internal,
    10531053                    "Can't find experiment name for %s" % aid)
     1054       
    10541055        stopper = self.stop_segment(keyfile=self.ssh_privkey_file,
    10551056                debug=self.create_debug, boss=self.boss, ops=self.ops,
     
    10581059        self.log.info("TerminateSegment succeeded for %s %s %s" % \
    10591060                (fid, proj, ename))
     1061        self.state_lock.acquire()
     1062        # Remove the started flag/info - the segment is no longer started
     1063        if aid in self.allocation:
     1064            del self.allocation[aid]['started']
     1065            self.write_state()
     1066        self.state_lock.release()
    10601067        return { 'allocID': req['allocID'], 'proof': proof.to_dict() }
    10611068
Note: See TracChangeset for help on using the changeset viewer.