Changeset 522
- Timestamp:
- May 10, 2008, 9:02:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/controls.py
r437 r522 46 46 """ 47 47 checkKinit() 48 p = subprocess.Popen(['remctl', ' black-mesa.mit.edu']48 p = subprocess.Popen(['remctl', 'remote.mit.edu'] 49 49 + list(args), 50 50 stdout=subprocess.PIPE, … … 91 91 raise CodeError('"%s" on "control %s create %s' 92 92 % (err, machine.name, cdtype)) 93 94 def registerMachine(machine):95 """Register a machine to be controlled by the web interface"""96 remctl('web', 'register', machine.name)97 98 def unregisterMachine(machine):99 """Unregister a machine to not be controlled by the web interface"""100 remctl('web', 'unregister', machine.name)101 93 102 94 def createVm(owner, contact, name, memory, disk_size, machine_type, cdrom, clone_from): … … 138 130 transaction.rollback() 139 131 raise 140 registerMachine(machine)141 132 makeDisks(machine) 142 133 if clone_from: … … 225 216 for mname, dname in delete_disk_pairs: 226 217 remctl('web', 'lvremove', mname, dname) 227 unregisterMachine(machine)228 218 229 219 def commandResult(user, fields): … … 294 284 remctl("web", "lvrename", old_name, 295 285 disk.guest_device_name, new_name) 296 remctl("web", "moveregister", old_name, new_name)297 286
Note: See TracChangeset
for help on using the changeset viewer.