Changeset c167378
- Timestamp:
- Oct 11, 2011 10:38:17 AM (13 years ago)
- Branches:
- compt_changes, info-ops, master
- Children:
- 8cb269a
- Parents:
- 451fb96
- Location:
- fedd/federation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/emulab_access.py
r451fb96 rc167378 965 965 966 966 # Names longer than the emulab max are discarded 967 # Projects with a group require nonce experiment names as well 968 if ename and len(ename) <= self.max_name_len and '/' not in proj: 967 if ename and len(ename) <= self.max_name_len: 969 968 # Clean up the experiment name so that emulab will accept it. 970 969 ename = re.sub(vchars_re, '-', ename) -
fedd/federation/local_emulab_segment.py
r451fb96 rc167378 63 63 Start a sub-experiment on a federant. 64 64 65 Get the current state, modify or create as appropriate, ship data 65 Get the current state, and terminate the experiment if it exists. The 66 group membership of the experiment is difficult to determine or change, 67 so start with a clean slate. Create a new one and ship data 66 68 and configs and start the experiment. There are small ordering 67 69 differences based on the initial state of the sub-experiment. … … 70 72 state = self.get_state(pid, eid) 71 73 72 if state == 'none': 73 if not self.make_null_experiment(pid, eid, tmpdir, gid): 74 return False 74 if state != 'none': 75 self.terminate_exp(pid, eid) 76 77 if not self.make_null_experiment(pid, eid, tmpdir, gid): 78 return False 75 79 76 80 if not self.set_up_experiment_filespace(pid, eid, tmpdir): … … 84 88 return False 85 89 86 # Stage the new configuration (active experiments will stay swapped 87 # in now) 90 # Stage the new configuration 88 91 if not self.modify_exp(pid, eid, tcl): 89 92 self.log.error("modify failed") 90 93 return False 91 # Active experiments are still swapped, this swaps the others in. 92 if state != 'active':93 if not self.swap_exp(pid, eid, 'in'):94 94 95 if not self.swap_exp(pid, eid, 'in'): 96 self.log.error("swap in failed") 97 return False 95 98 # Everything has gone OK. 96 99 self.get_mapping(pid,eid) -
fedd/federation/proxy_emulab_segment.py
r451fb96 rc167378 285 285 Start a sub-experiment on a federant. 286 286 287 Get the current state, modify or create as appropriate, ship data 287 Get the current state, and terminate the experiment if it exists. The 288 group membership of the experiment is difficult to determine or change, 289 so start with a clean slate. Create a new one and ship data 288 290 and configs and start the experiment. There are small ordering 289 differences based on the initial state of the sub-experiment.290 291 """ 291 292 # ops node in the federant … … 296 297 return False 297 298 298 if state == 'none': 299 # Put a dummy in place to capture logs, and establish an experiment 300 # directory. 301 if not self.make_null_experiment(user, host, pid, eid, tmpdir, gid): 302 return False 299 if state != 'none': 300 self.ssh_cmd(user, host, 301 "/usr/testbed/bin/endexp -w %s %s" % (pid, eid)) 302 303 # Put a dummy in place to capture logs, and establish an experiment 304 # directory. 305 if not self.make_null_experiment(user, host, pid, eid, tmpdir, gid): 306 return False 303 307 304 308 if not self.set_up_experiment_filespace(user, host, pid, eid, tmpdir): … … 318 322 # if it hangs, assume the worst. 319 323 return False 320 # Active experiments are still swapped, this swaps the others in. 321 if state != 'active':322 if not self.swap_in(user, host, pid, eid):323 324 325 if not self.swap_in(user, host, pid, eid): 326 self.log.error("swap in failed") 327 return False 324 328 # Everything has gone OK. 325 329 self.get_mapping(user, host, pid,eid)
Note: See TracChangeset
for help on using the changeset viewer.