Changeset c8853fd


Ignore:
Timestamp:
Dec 4, 2008 9:34:07 PM (16 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:
2ac63f7d
Parents:
1b376ca
Message:

Bug with experiment creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/experiment_control.py

    r1b376ca rc8853fd  
    568568        if not self.scp_file("%s/%s/%s" % (tmpdir, tb, tclfile), user, host):
    569569            return False
    570         # Clear the federation files
     570        # Clear the federation config dirs
    571571        if not self.ssh_cmd(user, host,
    572572                "/bin/sh -c \"'/bin/rm -rf %s'\"" % proj_dir):
    573             return False
    574         if not self.ssh_cmd(user, host,
    575                 "/bin/sh -c \"'mkdir -p %s'\"" % proj_dir):
    576573            return False
    577574        # Clear and create the tarfiles and rpm directories
     
    585582       
    586583        if state == 'active':
     584            # Create the federation config dirs (do not move outside the
     585            # conditional.  Happens later in new expriment creation)
     586            if not self.ssh_cmd(user, host,
     587                    "/bin/sh -c \"'mkdir -p %s'\"" % proj_dir):
     588                return False
    587589            # Remote experiment is active.  Modify it.
    588590            for f in base_confs:
     
    608610            return True
    609611        elif state == "swapped":
     612            # Create the federation config dirs (do not move outside the
     613            # conditional.  Happens later in new expriment creation)
     614            if not self.ssh_cmd(user, host,
     615                    "/bin/sh -c \"'mkdir -p %s'\"" % proj_dir):
     616                return False
    610617            # Remote experiment swapped out.  Modify it and swap it in.
    611618            for f in base_confs:
     
    653660                    "/usr/testbed/bin/startexp -i -f -w -p %s -e %s %s" % \
    654661                            (pid, eid, tclfile), "startexp"):
     662                return False
     663            # Create the federation config dirs (do not move outside the
     664            # conditional.)
     665            if not self.ssh_cmd(user, host,
     666                    "/bin/sh -c \"'mkdir -p %s'\"" % proj_dir):
    655667                return False
    656668            # After startexp the per-experiment directories exist
Note: See TracChangeset for help on using the changeset viewer.