Changeset 522


Ignore:
Timestamp:
May 10, 2008, 9:02:29 PM (17 years ago)
Author:
price
Message:

use remote in web interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/controls.py

    r437 r522  
    4646    """
    4747    checkKinit()
    48     p = subprocess.Popen(['remctl', 'black-mesa.mit.edu']
     48    p = subprocess.Popen(['remctl', 'remote.mit.edu']
    4949                         + list(args),
    5050                         stdout=subprocess.PIPE,
     
    9191        raise CodeError('"%s" on "control %s create %s'
    9292                        % (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)
    10193
    10294def createVm(owner, contact, name, memory, disk_size, machine_type, cdrom, clone_from):
     
    138130        transaction.rollback()
    139131        raise
    140     registerMachine(machine)
    141132    makeDisks(machine)
    142133    if clone_from:
     
    225216    for mname, dname in delete_disk_pairs:
    226217        remctl('web', 'lvremove', mname, dname)
    227     unregisterMachine(machine)
    228218
    229219def commandResult(user, fields):
     
    294284        remctl("web", "lvrename", old_name,
    295285               disk.guest_device_name, new_name)
    296     remctl("web", "moveregister", old_name, new_name)
    297286   
Note: See TracChangeset for help on using the changeset viewer.