Changeset 863 for trunk/packages/sipb-xen-www/code/controls.py
- Timestamp:
- Aug 4, 2008, 10:16:16 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/controls.py
r695 r863 3 3 """ 4 4 5 from sipb_xen_database import Machine, Disk, Type, NIC, CDROM, ctx, meta6 5 import validation 7 6 from webcommon import CodeError, InvalidInput … … 14 13 import yaml 15 14 15 from invirt.config import structs as config 16 from invirt.database import Machine, Disk, Type, NIC, CDROM, ctx, meta 17 16 18 # ... and stolen from xend/uuid.py 17 19 def randomUUID(): … … 26 28 # end stolen code 27 29 28 def kinit( username = 'daemon/sipb-xen.mit.edu', keytab = '/etc/sipb-xen.keytab'):30 def kinit(): 29 31 """Kinit with a given username and keytab""" 30 31 p = subprocess.Popen(['kinit', "-k", "-t", keytab, username],32 p = subprocess.Popen(['kinit', "-k", "-t", '/etc/invirt/keytab', 33 'daemon/'+config.web.hostname], 32 34 stderr=subprocess.PIPE) 33 35 e = p.wait() … … 47 49 """ 48 50 checkKinit() 49 p = subprocess.Popen(['remctl', 'remote.mit.edu']51 p = subprocess.Popen(['remctl', config.remote.hostname] 50 52 + list(args), 51 53 stdout=subprocess.PIPE,
Note: See TracChangeset
for help on using the changeset viewer.