From aba912a95bc6ba6691c2e097006b0c81d03a8f10 Mon Sep 17 00:00:00 2001 From: Eric Price Date: Tue, 9 Oct 2007 23:15:11 -0400 Subject: [PATCH] Machine name cannot be changed while the machine is running without confusing the database. So, forbid it. Help text for the machine change "owner" field. svn path=/trunk/web/; revision=166 --- templates/info.tmpl | 10 ++++------ templates/main.py | 8 +++++++- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/templates/info.tmpl b/templates/info.tmpl index ca7d107..f9b3941 100644 --- a/templates/info.tmpl +++ b/templates/info.tmpl @@ -56,21 +56,19 @@ Info on $machine.name

Change settings: #if $on -(To edit ram and disk size, turn off the machine first.) +(To edit ram, disk size, or machine name, turn off the machine first.) #end if

- - + - #if $machine.nics - - + #end if #if not $on + #end if diff --git a/templates/main.py b/templates/main.py index 8e4c303..1567acc 100755 --- a/templates/main.py +++ b/templates/main.py @@ -676,7 +676,12 @@ hope that the sipb-xen maintainers add support for serial consoles.""", HVM machines use the virtualization features of the processor, while ParaVM machines use Xen's emulation of virtualization features. You want an HVM virtualized machine.""", - cpu_weight="""Don't ask us! We're as mystified as you are.""") + cpu_weight="""Don't ask us! We're as mystified as you are.""", + owner="""The Owner must be the name of a locker that you are an AFS +administrator of. In particular, you or an AFS group you are a member +of must have AFS rlidwka bits on the locker. You can check see who +administers the LOCKER locker using the command 'fs la /mit/LOCKER' on +Athena.)""") d = dict(user=user, simple=simple, @@ -757,6 +762,7 @@ def info(user, fields): ram=machine.memory, max_mem=max_mem, max_disk=max_disk, + owner_help=helppopup("owner"), fields = fields) return Template(file='info.tmpl', searchList=[d, global_dict]) -- 1.7.9.5
Owner:NOTE: The Owner must the name of a locker that you administer
Owner$owner_help:
Contact email:
Machine Name:
Hostname:.servers.csail.mit.eduNOTE: The hostname must being with "Owner_".
Hostname:.servers.csail.mit.edu
Machine Name:
Ram:MB (max $max_mem)
Disk:GB (max $max_disk)WARNING: Modifying disk size may corrupt your data.