Changeset c8853fd
- Timestamp:
- Dec 4, 2008 9:34:07 PM (16 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- 2ac63f7d
- Parents:
- 1b376ca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_control.py
r1b376ca rc8853fd 568 568 if not self.scp_file("%s/%s/%s" % (tmpdir, tb, tclfile), user, host): 569 569 return False 570 # Clear the federation files570 # Clear the federation config dirs 571 571 if not self.ssh_cmd(user, host, 572 572 "/bin/sh -c \"'/bin/rm -rf %s'\"" % proj_dir): 573 return False574 if not self.ssh_cmd(user, host,575 "/bin/sh -c \"'mkdir -p %s'\"" % proj_dir):576 573 return False 577 574 # Clear and create the tarfiles and rpm directories … … 585 582 586 583 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 587 589 # Remote experiment is active. Modify it. 588 590 for f in base_confs: … … 608 610 return True 609 611 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 610 617 # Remote experiment swapped out. Modify it and swap it in. 611 618 for f in base_confs: … … 653 660 "/usr/testbed/bin/startexp -i -f -w -p %s -e %s %s" % \ 654 661 (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): 655 667 return False 656 668 # After startexp the per-experiment directories exist
Note: See TracChangeset
for help on using the changeset viewer.