Changeset 3c20a31 for fedd


Ignore:
Timestamp:
Jul 28, 2009 9:59:33 AM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
46e4682
Parents:
d5e3b8e
Message:

delete tarfiles directories on stop segment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/experiment_control.py

    rd5e3b8e r3c20a31  
    840840
    841841            self.log.info("[stop_segment]: Stopping %s on %s" % (eid, tb))
    842             return self.ssh_cmd(user, host,
    843                     "/usr/testbed/bin/swapexp -w %s %s out" % (pid, eid))
     842            rv = False
     843            try:
     844                # Clean out tar files: we've gone over quota in the past
     845                self.ssh_cmd(user, host, "rm -rf /proj/%s/rpms/%s" % (pid, eid))
     846                self.ssh_cmd(user, host, "rm -rf /proj/%s/tarfiles/%s" % \
     847                        (pid, eid))
     848                rv = self.ssh_cmd(user, host,
     849                        "/usr/testbed/bin/swapexp -w %s %s out" % (pid, eid))
     850            except self.ssh_cmd_timeout:
     851                rv = False
     852            return rv
    844853
    845854       
Note: See TracChangeset for help on using the changeset viewer.