- 10 Jul, 2014 1 commit
-
-
Leigh B Stoller authored
-
- 09 Jul, 2014 1 commit
-
-
Leigh B Stoller authored
php to the backend newimageid script so that the web interface does not have to worry about provenance issues. Cleaner too. Also some cleanups to log image spew.
-
- 01 Jul, 2014 1 commit
-
-
Leigh B Stoller authored
-
- 16 Dec, 2013 1 commit
-
-
Leigh B Stoller authored
-
- 06 Nov, 2013 1 commit
-
-
Mike Hibler authored
That option is no longer supported as of PHP 5.4.
-
- 11 Jul, 2013 1 commit
-
-
Leigh B Stoller authored
-
- 04 Jul, 2013 1 commit
-
-
Leigh B Stoller authored
-
- 31 May, 2013 1 commit
-
-
Leigh B Stoller authored
a single slice image, since we can now pull the kernel (ramdisk) out from the guest filesystem (using pygrub for linux, or just mounting BSD filesystems). This is a lot faster and easier to deal with. I added an option to the newimage page so that people can set this, but in general we need a better way to guess that we need it. Always set for EC2 images.
-
- 14 May, 2013 1 commit
-
-
Leigh B Stoller authored
To create a new descriptor that will be an import from EC2 (and thus run under XEN), add ?ec2=1 to newimage_ez.php3. Eventually will link it in someplace. The form will create a XEN based VM, but instead of node to snapshot from, provide user@host for the EC2 instance. On the image snapshot page, instead of node use user@host for the EC2 instance. The backend script (create_image) will call over to ops and invoke Srikanth's code. I have called that script ec2import-image.pl. See create_image for how arguments are passed to the script.
-
- 14 Jan, 2013 1 commit
-
-
Leigh B Stoller authored
when created via the ProtoGeni interface; we run everything as GeniUser and so lose that info. We want to know this for history information and so we can manage permissions on image deletion effectively. Also add updater, updater_idx, and updater_urn to track last change to the image. CAVEAT: For system images, we do not actually overwrite the image, but store it out in /proj/$pid/images and then sometime later maybe we copy it back to boss. This wrecks the tracking info quite effectively since the image may never be copied back. Needs more thought.
-
- 03 Oct, 2012 1 commit
-
-
Leigh B Stoller authored
we change often.
-
- 24 Sep, 2012 1 commit
-
-
Eric Eide authored
This commit is intended to makes the license status of Emulab and ProtoGENI source files more clear. It replaces license symbols like "EMULAB-COPYRIGHT" and "GENIPUBLIC-COPYRIGHT" with {{{ }}}-delimited blocks that contain actual license statements. This change was driven by the fact that today, most people acquire and track Emulab and ProtoGENI sources via git. Before the Emulab source code was kept in git, the Flux Research Group at the University of Utah would roll distributions by making tar files. As part of that process, the Flux Group would replace the license symbols in the source files with actual license statements. When the Flux Group moved to git, people outside of the group started to see the source files with the "unexpanded" symbols. This meant that people acquired source files without actual license statements in them. All the relevant files had Utah *copyright* statements in them, but without the expanded *license* statements, the licensing status of the source files was unclear. This commit is intended to clear up that confusion. Most Utah-copyrighted files in the Emulab source tree are distributed under the terms of the Affero GNU General Public License, version 3 (AGPLv3). Most Utah-copyrighted files related to ProtoGENI are distributed under the terms of the GENI Public License, which is a BSD-like open-source license. Some Utah-copyrighted files in the Emulab source tree are distributed under the terms of the GNU Lesser General Public License, version 2.1 (LGPL).
-
- 30 Aug, 2012 1 commit
-
-
Leigh B Stoller authored
image_metadata.php will return an Emulab style image descriptor in XML format. A remote emulab, given an image URL, will grab this XML description and use it to create a local descriptor. Inside the descriptor is an additional URL that is used to download ndz file. The dumpdescriptor script is now web accessible, and takes a new -e (export) option that adds the extra URL and other bits that are needed to import the descriptor and the image. On the Show Image page, show the metadata URL, which is suitable for using in an NS file or an rspec (when that code is committed).
-
- 15 May, 2012 1 commit
-
-
Leigh B Stoller authored
-
- 22 Dec, 2011 1 commit
-
-
Leigh B Stoller authored
the new/edit/show pages. Only admins get to change it though.
-
- 13 Oct, 2011 1 commit
-
-
Leigh B Stoller authored
-
- 10 Oct, 2011 1 commit
-
-
Leigh B Stoller authored
image_permissions stores access info for images. You can share an image with a user or a group (project), and you can specify write access to allow updating the image in place. Note that write access does not allow the descriptor to be modified, only the image itself. Well, that is how it will be after Mike changes mfrisbeed. The front end script to modify permissions is grantimage: boss> grantimage -u stoller -w tbres,myimage boss> grantimage -u stoller -w tbres,myimage which grants write access to stoller. Or: boss> grantimage -g testbed,testbed tbres,myimage which grants access to the testbed project. Notice that you can specify subgroups this way. boss> grantimage -l tbres,myimage will give you a list of current permissions. To revoke, just add -r option: boss> grantimage -g testbed,testbed -r tbres,myimage Who is allowed to grant access to an image? 1) An adminstrator of course, 2) the image creator, and 3) any group_root in the group that the image belongs to. Being granted access to use an image does not confer permission to grant access to others. One last task; while the web interface displays the permissions, there is no web interface to modify the permissions; users will still have to ask us for now.
-
- 18 Jan, 2011 1 commit
-
-
Mike Hibler authored
No more frisbeelauncher or assorted subboss frisbee stuff.
-
- 16 Nov, 2010 1 commit
-
-
Kevin Atkinson authored
"tb-set-tarfiles" is like "tb-set-node-tarfiles" except that it distributes the tarfile to all nodes rather than just one and that it uses frisbee to distribute the file. These changes involved 1) refactoring frisbee info from images table into a new table, frisbee_blobs, 2) a new experiment_blobs table, and 3) a new tmcd command so the node knows how to get the files from the server. The changes where designed to be general purpose enough to eventually support: 1) Distributing arbitrary files (not just tarfiles) to nodes 2) Perform arbitrary actions on those files 3) Use arbitrary methods to get the files As such the tmcd line is as follows: URL=* ACTION=* where URL is currently: frisbee.mcast://<ADDR>/<FILE> for example frisbee.mcast://234.16.184.192:18092/users/kevina/home-dir.tar.gz and when we get around to using a master Frisbee server it could be frisbee://* or it could be a file://, http://, etc. and ACTION is currently: unpack:<LOCATION> for example unpackt:/users with future syntax to be determined.
-
- 19 Nov, 2007 1 commit
-
-
Russ Fish authored
-
- 24 Oct, 2007 1 commit
-
-
Russ Fish authored
-
- 19 Oct, 2007 1 commit
-
-
Russ Fish authored
www/newimageid_ez.php3 - The reworked PHP page. Calls Image::NewImageId with ez=1. www/newimageid.php3 - Call Image::NewImageId with ez=0. www/imageid_defs.php - Re-use the Image::NewImageId class method, adding an 'ez' arg. backend/{newimageid_ez,GNUmakefile}.in configure configure.in - New backend script. After checks, calls OSinfo->Create and Image->Create with the same XML args array. db/Image.pm.in - Re-use the Image->Create method, adding an imageid over-ride arg. db/OSinfo.pm.in - Filter out extraneous db slot args from XML in the Create method. db/libdb.pm.in - Add TB_{OS,IMAGE}ID_* constants from dbdefs.php3 . sql/database-fill.sql - Add OS entries to the table_regex 'images' pattern set.
-
- 12 Oct, 2007 1 commit
-
-
Russ Fish authored
www/newimageid.php3 - The reworked PHP page. www/imageid_defs.php - Add an Image::NewImageId class method bridging to the script via XML. backend/{newimageid,GNUmakefile}.in configure configure.in - New backend script. db/Image.pm.in - Add a Create class method for script arg checking. sql/database-fill.sql - Add to the table_regex 'images' checking patterns.
-
- 03 Oct, 2007 1 commit
-
-
Russ Fish authored
www/editimageid.php3 - The reworked PHP page. www/imageid_defs.php - Add an Experiment::EditImageid class method bridging to the script via XML. backend/{editimageid,GNUmakefile}.in configure configure.in - New backend script. db/Image.pm.in - Add an EditImageid worker class method for script arg checking. sql/database-fill.sql - Add to the table_regex 'images' checking patterns.
-
- 21 Aug, 2007 1 commit
-
-
Leigh B. Stoller authored
widearea reloading support. * New slot in the images table to store an access key which remote sites must provide in order to download an image (via https). * tmcd returns a different kind of ADDRESS field from doloadinfo. Instead of the multicast stuff, return a URL that points to boss' web server. The URL is of the form: https://www.myemulab.net/spewimage.php?imageid=10013&access_key=abcdef which as you can see is fully specified; the client does not need to know anything else. * New webpage and backend scripts appropriately called "spewimage" which also includes support for the http HEAD request (from wget) to avoid downloading images that are already on the node. I just learned about this HEAD request stuff today ... but otherwise these operate as expected, spewing the image if the access key is provided. * Changes to rc.frisbee to deal with remote loading. In addition to URL support, I also added support for simple paths, the intent being that we will probably distribute images offline (say, at night) so that when a node reboots it doesn't actually have to wait 60 minutes for an image to download. I have not added any server side support for this yet though. Maybe later this week. * Other bits and pieces and fixes to make this work.
-
- 24 Apr, 2007 1 commit
-
-
Mike Hibler authored
"select" to a "select distinct" on osidtoimageid since there will be multiple osid entries for combo images.
-
- 17 Apr, 2007 1 commit
-
-
Leigh B. Stoller authored
working on this a few weeks ago when I got sidetracked by the pubsub project.
-
- 12 Feb, 2007 1 commit
-
-
Leigh B. Stoller authored
register_globals=1 to turn POST/GET/COOKIES arguments in local variables. This is known to be a terrible security risk, and we keep saying we are going to fix it, and now I am. In order to accomplish this on a transitional basis (since I don't want the entire web interface to stop working while I debug it), and because the code just needs the cleanup, I am doing it like this: Each page will sport new declarations at the top: RequiredPageArguments("experiment", PAGEARG_EXPERIMENT, "template", PAGEARG_TEMPLATE, "instance", PAGEARG_INSTANCE, "metadata", PAGEARG_METADATA, "osinfo", PAGEARG_OSINFO, "image", PAGEARG_IMAGE, "project", PAGEARG_PROJECT, "group", PAGEARG_GROUP, "user", PAGEARG_USER, "node", PAGEARG_NODE, "yesno", PAGEARG_BOOLEAN, "message", PAGEARG_STRING, "age", PAGEARG_INTEGER, "cost", PAGEARG_NUMERIC, "formfields", PAGEARG_ARRAY, "unknown", PAGEARG_ANYTHING); OptionalPageArguments("canceled", PAGEARG_BOOLEAN); The first token in each pair is the name of the global variable to set, and the second token is the type. So, for "experiment" we look at the URL for a pid/eid or exptidx, etc, sanity check them (safe for a DB query), and then try to find that experiment in the DB. If it maps to an experiment, set global variable $experiment to the object. Since its a required argument, produce an error if not supplied. Similar treatment for optional arguments, with the obvious difference. The goal is to have ALL argument processing in one place, consistent, and correct. I've found numerous places where we leak unchecked arguments into queries. It also cuts out a lot of duplicated code. * To make the above easier to deal with, I've been replacing lots of hardcoded URLS in the code of the form: foo.php3?pid=$pid&eid=$eid ... with CreateURL("foo", $experiment) which creates and returns the neccessary url string, by looking at the type of its arguments (experiment, template, instance, etc.) Eventually plan to replace them all so that URL handling throughout the code is all defined in one place (all the new URL code is in url_defs.php). * I have cranked up error reporting to tell me anytime a variable is used before it is initialized, plus a bunch of other stuff that PHP deems improper. Think of it like -Wall ... and boy we get a lot of warnings. A very large percentage of the diffs are to fix all these warnings. The warnings are currently going to /usr/testbed/log/php-errors.log, and I'll be adding a script to capture them each night and mail them to tbops. This file also gets errors (this will be a change for developers; rather then seeing errors and warnings dumped in the middle of web pages, they will go to this file instead). * Major refactoring of the code. More objects (nodes, images, osids). Moving tons of queries into the objects in the hopes of someday getting to a point where we can split the web interface onto a different server. Lots of general cleanup.
-