- 15 Apr, 2003 1 commit
-
-
Leigh B. Stoller authored
per Eric's request. I had left out the trailing /images/.
-
- 08 Apr, 2003 1 commit
-
-
Leigh B. Stoller authored
-
- 26 Mar, 2003 1 commit
-
-
Leigh B. Stoller authored
only pid, to pid/gid like most other things in the testbed. Also add a "global" slot to denote images that are globally available to all projects (system images). The older "shared" attribute is now used to denote images that are shared within a project (available to all subgroups in the project). The migration path for existing DBs is given in the migrate file. Be sure to run those commands on an existing testbed or things will break! www/newimageid, www/newimageid_ez: A bunch of changes for shared/global attributes. Added a group menu to the form so users can create images in subgroups. Beefed up the Java code that constructs the path name to use the gid, shared, and global attributes of the form to give the user the best possible path that we can. Improved the pathname checking code so that we do not allow just any old path in case the user elects to disregard the path we carefully constructed for them. Also check the proj/group membership, and setup defaults for users that have permission in just one pid/gid to create images. libdb.in: Changed permission check in TBImageIDAccessCheck() to reflect shared/global attribute changes. os_load: Get rid of test that checked path of the image. The path checking is done in the web interface anyway, so why duplicate in 4 places. Other minor changes reflecting shared->global name change. Also note that images can come from the group directory now. create_image: Get rid of test that checked path of the image. The path checking is done in the web interface anyway, so why duplicate in 4 places. Also note that images can come from the group directory now. www/dbdefs: Changed permission check in TBImageIDAccessCheck() to reflect shared/global attribute changes. www/showimageid_list, www/showstuff: Minor global/shared attribute changes. www/menu: Change osids/imageids pointer to point to the image list, not the osid list. This is more reasonable for mere users who have access to the EZ form, and thus never really need to concern themselves with osids. www/editimageid: Add proper pathname checking. There were no checks at all before!
-
- 25 Mar, 2003 1 commit
-
-
Leigh B. Stoller authored
the newimageid_explain front page, since I had actually moved most of that text into the tutorial a couple of months ago. I moved the rest of the text over, and changed the links to point to the short form. Added a link at the top of the short form pointing to the tutorial section, and for admin types, a link to the long form.
-
- 06 Dec, 2002 1 commit
-
-
Leigh B. Stoller authored
-
- 10 Sep, 2002 1 commit
-
-
Chad Barb authored
Improved error reporting style.. also added image for uky, though right now it is the same as the standard image (will edit it soon.)
-
- 17 Jul, 2002 1 commit
-
-
Leigh B. Stoller authored
-
- 07 Jul, 2002 1 commit
-
-
Leigh B. Stoller authored
-
- 17 Jun, 2002 1 commit
-
-
Leigh B. Stoller authored
create images from/for each node type. Use this in the newimageid forms to present a shortened list of node types. Also, add a footnote explaining typical usage.
-
- 02 Mar, 2002 1 commit
-
-
Leigh B. Stoller authored
pedantic than either opera or IE, or more likely just stupid).
-
- 14 Feb, 2002 1 commit
-
-
Leigh B. Stoller authored
when backing up (cause of an error that needs to be fixed) since not all browsers handle this the same. Instead, redraw the form with all of the original info and a list of error messages at the top. Conceptually simple change, but it turns out to be a pain to implement since you need to combine the form and processing code in one page (well, its just a lot easier to do that), and then change all of the forms to deal with a "default" value. That is, each different kind of input tag (text, radio, select, checkbox, etc.) requires slightly different changes to do that. Lots of forms, lots of entries on the forms, and its a long slow tedious process. Much nicer though, although the code is a bit harder to grok. At the same time, I added a lot more sanity checks of the information being passed in. The other change is to deal with how browsers handle the back button on a form thats been properly submitted. Not all browsers use the cache directives the same, and I was often typing back, only to have some form get reposted. Thats a major pain in the butt. The way to deal with that is to have the processor send out a Location header, which modifies the browser history so that the post is no longer in the history. You back up straight to the unposted form (if its in the cache). I've done this to only some forms, since its a bit of a pain to rework things so that you can jump ahead to a page that spits out the requisite warm fuzzies for the specific operation just completed. I've done newproject, joinproject, update user info, newimageid, and newimaged_dz forms.
-
- 11 Feb, 2002 1 commit
-
-
Leigh B. Stoller authored
Update pages appropriately. Also cleanup up a few more sub menus.
-
- 08 Feb, 2002 1 commit
-
-
Leigh B. Stoller authored
supporting autocreating and autoloading images. The imageid form now sports a field to specify a nodeid to create the image from; If set, the backend create_image script is invoked. Thats the easy part. Slightly harder is autoloading images based on the osid specified in the NS file. To support this, I have added a new DB table called osidtoimageid, which holds the mapping from osid/pctype to imageid. When users create images, they must specify what node types that image is good for. Obviously, the mappings have to be unique or it would be impossible to figure it out! Anyway, once that image mapping is in place and the image created, the user can specify that ID in the NS file. I've changed os_setup to to look for IDs that are not loaded, and to try and find one in the osidtoimageid. If found, it invokes os_load. To keep things running in parallel as much as possible, os_setup issues all the loads/reboots (could be more than a single set of loads is multiple IDs are in the NS file) at once, and waits for all the children to exit. I've hacked up os_load a bit to try and be more robust in the face of PXE failures, which still happen and are rather troublsesome. Need an event system! Contained in this revision are unrelated changed to make the OS and Image IDs per-project unique instead of globally unique, since thats a pain for the users. This turns out to be very messy, since underneath we do not want to pass around pid/ID in all the various places its used. Rather, I create a globally unique name and extened the OS and Image tables to include pid/name/ID. The user selects pid/name, and I create the globally unique ID. For the most part this is invisible throughout the system, except where we interface with the user, say in the web pages; the user should see his chosen name where possible, and the should invoke scripts (os_load, create_image, etc) using his/her name not the internal ID. Also, in the front end the NS file should use the user name not the ID. All in all, this accounted for a number of annoying changes and some special cases that are unavoidable.
-
- 18 Oct, 2001 2 commits
-
-
Leigh B. Stoller authored
-
Leigh B. Stoller authored
done a couple of weeks ago).
-