ChangeLog 200 KB
Newer Older
Mike Hibler's avatar
Mike Hibler committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
mike        2004/04/12 16:06:52 MDT

  Modified files:
    capture              capture.c 
  Log:
  Getting back ETIMEDOUT from a socket read should not be fatal to capture.
  Now it is treaded just like ECONNRESET.
  
  Also, don't clobber the read errno with the intermediate sigsetmask call
  (though it should never fail and errno should never be affected)
  
  Change warn() to warning() to avoid conflict with standard BSD library
  routine.  This showed up when statically linking capture.
  
  Revision  Changes    Path
  1.31      +24 -16    testbed/capture/capture.c

mike        2004/04/07 11:22:32 MDT

  Modified files:
    os/imagezip          global.h imagezip.c 
    os/imagezip/ntfs     ntfs_glue.c 
    os/imagezip/ntfs/libntfs ntfs.patch 
  Log:
  Get rid of the hacky code to figure out what special file was associated
  with every DOS partition.  It was only used by NTFS and has been replaced
  by equally hacky changes to the NTFS library.
  
  The benefit of the latter is that it at least works all the time on
  Linux and all FreeBSD versions.
  
  Revision  Changes    Path
  1.3       +0 -1      testbed/os/imagezip/global.h
  1.46      +1 -106    testbed/os/imagezip/imagezip.c
  1.2       +9 -14     testbed/os/imagezip/ntfs/ntfs_glue.c

mike        2004/03/30 17:27:04 MST

  Modified files:
    www/tutorial         tutorial.html 
  Added files:
    www/tutorial         ixp.html 
  Log:
  Add IXP documentation from Abhijeet
  
  Revision  Changes    Path
  1.73      +3 -0      testbed/www/tutorial/tutorial.html

mike        2004/03/30 14:44:33 MST

  Modified files:
    www/tutorial         vnodes.html 
  Log:
  Alright, I am now officially sick of writing vnode documentation.
  I have said all that I want to say.
  
  Revision  Changes    Path
  1.4       +268 -47   testbed/www/tutorial/vnodes.html

mike        2004/03/29 16:31:10 MST

  Modified files:
    www/tutorial         tutorial.html 
  Added files:
    www/tutorial         control-net.png 
  Log:
  Add a section on the control net
  
  Revision  Changes    Path
  1.72      +124 -0    testbed/www/tutorial/tutorial.html

72 73 74 75 76 77 78 79 80 81 82 83 84 85
ricci       2004/03/23 15:56:53 MST

  Added files:
    www                  widearea_nodeinfo.php3
  Log:
  New web page: widearea_nodeinfo.php3

  Intended as a replacement for the old widearea_info page, which
  was just not scaling with the number of nodes we now have in the
  database.

  Allows the user to give a set of criteria (such as node, bandwidth,
  latency, and packet loss), and grabs links that match those criteria.

86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
mike        2004/03/23 10:51:55 MST

  Modified files:
    tmcd                 tmcd.c 
  Log:
  Move some of our "policy" about watchdog intervals from the watchdog
  client to here.  Policies are things like only plab service slices do
  rusage reports and local nodes don't check for cvsup updates, etc.
  Maybe these should all be sitevars, but I didn't really want to have
  20 different watchdog-related timeout values.
  
  Note: the detection of what is a plab service slice is a hack right
  now (string ends in "-20").  Kirk will be giving me a better way RSN.
  
  Revision  Changes    Path
  1.220     +40 -8     testbed/tmcd/tmcd.c

mike        2004/03/20 19:43:53 MST

  Modified files:
    tmcd                 tmcd.c 
  Log:
  Use setproctitle to report what we are up to.
  Now ps will show info about the request being processed,
  or the total number of requests processed when idle.
  
  Revision  Changes    Path
  1.219     +22 -13    testbed/tmcd/tmcd.c

mike        2004/03/20 01:14:07 MST

  Modified files:
    tmcd/common          watchdog 
  Log:
  Two fubars:
  1. make sure we send an immediate isalive on startup rather than waiting
     for the first interval to pass
  2. don't fall back on a tcp call on plab nodes, this just eventually hangs
     all our tmcds on flaky plab machines
  
  Revision  Changes    Path
  1.15      +13 -3     testbed/tmcd/common/watchdog

mike        2004/03/18 23:03:19 MST

  Modified files:
    tmcd/common          libtmcc.pm watchdog 
  Log:
  The new watchdog:
  	- check intervals driven by sitevars delivered by TMCD command
  	- handles rusage stats return on plab nodes
  It is now a single process and executes any auxilliary scripts synchronously.
  This may prove to be unwieldy in the face of long running scripts like
  update.  If so, we'll have to add all that fork/exec/waitpid mucky-muck.
  
  Revision  Changes    Path
  1.11      +3 -1      testbed/tmcd/common/libtmcc.pm
  1.14      +578 -83   testbed/tmcd/common/watchdog

mike        2004/03/17 14:53:46 MST

  Modified files:
    tmcd                 tmcd.c 
  Log:
  Fix problem with large ssh pubkeys.  We now malloc a special buffer
  if the pubkey is too large to fit in the default buffer.
  
  Also added a F_MAXLOG value that you can set to force maximum logging
  for a particular command.
  
  Fix an off-by-one in the OUTPUT macro
  
  Revision  Changes    Path
  1.215     +40 -7     testbed/tmcd/tmcd.c

mike        2004/03/17 09:41:59 MST

  Modified files:
    tmcd                 tmcd.c 
  Log:
  Add the "watchdog" info command to configure timeouts for the client
  watchdog process based on sitevars.
  
  Also added a command flags field to take care of a couple of misc. attributes
  like whether a command can be allowed from a remote site via UDP or whether
  we should not perform as much logging.
  
  Revision  Changes    Path
  1.214     +142 -57   testbed/tmcd/tmcd.c

176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
ricci       2004/03/16 15:38:16 MST

  Modified files:
    db                   node_status.in
  Log:
  Use Mike's new sitevars to get timeouts for keepalives.

  Also, split out the checks for local vnodes and plab vnodes, since
  they can actually have different reporting intervals.

ricci       2004/03/16 14:48:45 MST

  Modified files:
    db                   node_status.in
  Log:
  Add another part to node_status - move plab phys nodes that have not
  checked in for a while into hwdown.

  Adding another query to do this was much simpler than trying to make the one
  monster query already in this script get what we wanted.

197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
mike        2004/03/15 22:55:36 MST

  Modified files:
    tmcd/linux           GNUmakefile.in 
  Added files:
    tmcd/linux           mkextrafs.pl 
  Log:
  Linux version of script to make the "extra" filesystem in the 4th partition.
  Sometime we might want to offer an option on the experiment create page to
  automatically setup the 4th partition for people.
  
  For now they can run it as /usr/testbed/bin/mkextrafs
  
  Revision  Changes    Path
  1.40      +1 -0      testbed/tmcd/linux/GNUmakefile.in

mike        2004/03/12 16:10:59 MST

  Modified files:
    os/imagezip          Makefile-linux.sa Makefile.sa global.h 
                         imagedump.c imagehdr.h imageunzip.c 
                         imagezip.8 imagezip.c 
    os/imagezip/extfs    GNUmakefile.in extfs.c 
    os/imagezip/ffs      ffs.c 
  Added files:
    os/imagezip/extfs    lilo.h reloc_lilo.c 
  Log:
  Random imagezip hacking:
  
  1. Make imagezip (and imageunzip) understand LILO bootblocks.
     Imagezip will create relocation information for all the absolute
     blocks that LILO embeds in the partition.  Imageunzip will correctly
     relocate those locations when laying down the new image.  Thus
     Linux slice images can be layed down anywhere on the disk (as can
     BSD images).
  
  2. Because #1 is incompatible with the old imageunzip, I bumped the
     imagezip format version number (to 3) on images that contain relocations
     (i.e., slice images).  Make sure you have a new imageunzip to unzip
     new slice images.  Whole disk images are still created as version 2
     since they contain no relocs and thus are no different than before.
  
  3. Added -N option to imagezip to create slice images without any
     relocations.  [ We could create our Emulab images this way, since we
     don't have any mechanism for, or reason to, let the user choose which
     partition to load an image in.  Hence our slice images always wind up
     at the same offset on the disk and relocations are unnecessary. ]
     Note that there is no significant expense in either time or space for
     relocations, this option was more of a debugging thing.
  
  Revision  Changes    Path
  1.3       +1 -1      testbed/os/imagezip/Makefile-linux.sa
  1.4       +1 -1      testbed/os/imagezip/Makefile.sa
  1.2       +2 -1      testbed/os/imagezip/global.h
  1.9       +40 -10    testbed/os/imagezip/imagedump.c
  1.7       +13 -2     testbed/os/imagezip/imagehdr.h
  1.27      +61 -5     testbed/os/imagezip/imageunzip.c
  1.10      +36 -12    testbed/os/imagezip/imagezip.8
  1.44      +43 -17    testbed/os/imagezip/imagezip.c
  1.3       +3 -2      testbed/os/imagezip/extfs/GNUmakefile.in
  1.2       +16 -2     testbed/os/imagezip/extfs/extfs.c
  1.2       +5 -3      testbed/os/imagezip/ffs/ffs.c

260 261 262 263 264 265 266 267 268 269 270 271
ricci       2004/03/11 17:44:45 MST

  Modified files:
    www/cvsweb           cvsweb.cgi cvsweb.conf
  Log:
  Update to the latest version of cvsweb in the 2.0 branch. (There is
  now a 3.0 branch, but it seems substantially different.)

  This doesn't solve the problem I was hoping it would (being unable to
  grab a tarball of the top-level directory), but I've already done the
  work to update...

Leigh Stoller's avatar
Leigh Stoller committed
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305
stoller     2004/03/09 10:43:54 MST

  Modified files:
    sql                  database-fill.sql 
    tbsetup              batchexp.in 
    www                  beginexp_xml.php3 
  Log:
  Clean up of the web to batchexp interface:
  
  * Add proper check_slot() calls to all of the user input that is going into
    the DB (already had taint checking), since batchexp is now available for
    interactive use from ops.
  
  * Remove separate DB insertions of noswap/noidleswap reasons from web
    script, and pass on the command line from web to batchexp. Now inserted
    in the backend script so that they can be provided on the command line
    when batchexp is used interactively.
  
  * Change defaults in backend script; experiments now default to swappable
    and idleswap; previously defaulted to not swappable and no idleswap.
  
  * Remove [-s] (swappable) and add [-S <reason>] option. -S sets experiment to
    not swappable, with supplied reason (text string).
  
  * Add [-L <reason>] option. -L sets experiment to no idleswap, with
    supplied reason (text string).
  
  * Add several missing table_regex entries for experiments table.
  
  Revision  Changes    Path
  1.66      +5 -0      testbed/sql/database-fill.sql
  1.47      +67 -34    testbed/tbsetup/batchexp.in
  1.8       +7 -20     testbed/www/beginexp_xml.php3

Kirk Webb's avatar
Kirk Webb committed
306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364
kwebb       2004/03/03 18:41:33 MST

  Modified files:
    .                    configure configure.in
    rc.d                 3.plab.sh.in
    tbsetup/plab         GNUmakefile.in libplab.py.in
                         libtestbed.py.in mod_PLC.py.in
                         mod_dslice.py.in
  Added files:
    tbsetup/plab         plabdiscover.in plabrenewd.in
  Removed files:
    tbsetup/plab         plabdaemon.in
  Log:
  More plab updates/changes

  * implemented PLC slice renewal
  * restructured daemon code/startup
    - removed getfree daemon (replaced by plabdiscover; run from cron)
    - moved generic daemonizing code into libtestbed (class)
    - created plabrenewd - small script that utilizes daemonizing class
    - removed plabdaemon file.
    - updated bossnode startup scripts
  * changed slice prefix - PLC denies permission w/ anything other than "utah"
  * Minor semantic changes to module API to be more consistent with other parts.
  * Some bug fixes.

  Revision  Changes    Path
  1.202     +3 -3      testbed/configure
  1.209     +3 -3      testbed/configure.in
  1.3       +3 -5      testbed/rc.d/3.plab.sh.in
  1.9       +2 -2      testbed/tbsetup/plab/GNUmakefile.in
  1.55      +117 -35   testbed/tbsetup/plab/libplab.py.in
  1.3       +140 -0    testbed/tbsetup/plab/libtestbed.py.in
  1.3       +34 -12    testbed/tbsetup/plab/mod_PLC.py.in
  1.3       +8 -4      testbed/tbsetup/plab/mod_dslice.py.in

kwebb       2004/03/02 18:28:45 MST

  Modified files:
    tbsetup/plab         libplab.py.in mod_PLC.py.in
                         mod_dslice.py.in
  Log:
  Some updates to plab support:

  * removed unused and not generally useful ping checking
  * reorganized node discovery and added node info updating
    - e.g., update IP, SITE, or HOSTNAME when they have changed
    - no longer part of the backend module as this is independent of
      which backend is used; may modularize it due to plab's new "trumpet"
      service, which is basically its node DB available via a decentralized
      transport/API.
  * introduced new method of getting node info - use plab sites.xml file
  * various other cleanups.

  Revision  Changes    Path
  1.54      +220 -110  testbed/tbsetup/plab/libplab.py.in
  1.2       +0 -22     testbed/tbsetup/plab/mod_PLC.py.in
  1.2       +0 -6      testbed/tbsetup/plab/mod_dslice.py.in

Leigh Stoller's avatar
Leigh Stoller committed
365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457
stoller     2004/03/08 12:44:01 MST

  Modified files:
    tbsetup              GNUmakefile.in node_reboot.in os_load.in 
                         os_setup.in 
  Added files:
    tbsetup              libosload.pm.in libreboot.pm.in 
  Log:
  Converted os_load and node_reboot into libraries. Basically that meant
  splitting the existing code between a frontend script that parses arguments
  and does taint checking, and a backend library where all the work is done
  (including permission checks). The interface to the libraries is simple
  right now (didn't want to spend a lot of time on designing interface
  without knowing if the approach would work long term).
  
  	use libreboot;
  	use libosload;
  
          nodereboot(\%reboot_args, \%reboot_results);
          osload(\%reload_args, \%reload_results);
  
  Arguments are passed to the libraries in the form of a hash. For example,
  in os_setup:
  
  	$reload_args{'debug'}     = $dbg;
  	$reload_args{'asyncmode'} = 1;
  	$reload_args{'imageid'}   = $imageid;
  	$reload_args{'nodelist'}  = [ @nodelist ];
  
  Results are passed back both as a return code (-1 means total failure right
  away, while a positive argument indicates the number of nodes that failed),
  and in the results hash which gives the status for each individual node. At
  the moment it is just success or failure (0 or 1), but in the future might
  be something more meaningful.
  
  os_setup can now find out about individual failures, both in reboot and
  reload, and alter how it operates afterwards. The main thing is to not wait
  for nodes that fail to reboot/reload, and to terminate with no retry when
  this happens, since at the moment it indicates an unusual failure, and it
  is better to terminate early. In the past an os_load failure would result
  in a tbswap retry, and another failure (multiple times). I have already
  tested this by trying to load images that have no file on disk; it is nice
  to see those failures caught early and the experiment failure to happen
  much quicker!
  
  A note about "asyncmode" above. In order to promote parallelism in
  os_setup, asyncmode tells the library to fork off a child and return
  immediately. Later, os_setup can block and wait for status by calling
  back into the library:
  
  	my $foo = nodereboot(\%reboot_args, \%reboot_results);
  	nodereboot_wait($foo);
  
  If you are wondering how the child reports individual node status back to
  the parent (so it can fill in the results hash), Perl really is a kitchen
  sink. I create a pipe with Perl's pipe function and then fork a child to so
  the work; the child writes the results to the pipe (status for each node),
  and the parent reads that back later when nodereboot_wait() is called,
  moving the results into the %reboot_results array. The parent meanwhile can
  go on and in the case of os_setup, make more calls to reboot/reload other
  nodes, later calling the wait() routines once all have been initiated.
  Also worth noting that in order to make the libraries "reentrant" I had to
  do some cleaning up and reorganizing of the code. Nothing too major though,
  just removal of lots of global variables. I also did some mild unrelated
  cleanup of code that had been run over once too many times with a tank.
  
  So how did this work out. Well, for os_setup/os_load it works rather
  nicely!
  
  node_reboot is another story. I probably should have left it alone, but
  since I had already climbed the curve on osload, I decided to go ahead and
  do reboot. The problem is that node_reboot needs to run as root (its a
  setuid script), which means it can only be used as a library from something
  that is already setuid. os_setup and os_load runs as the user. However,
  having a consistent library interface and the ability to cleanly figure out
  which individual nodes failed, is a very nice thing.
  
  So I came up with a suitable approach that is hidden in the library. When the
  library is entered without proper privs, it silently execs an instance of
  node_reboot (the setuid script), and then uses the same trick mentioned
  above to read back individual node status. I create the pipe in the parent
  before the exec, and set the no-close-on-exec flag. I pass the fileno along
  in an environment variable, and the library uses that to the write the
  results to, just like above. The result is that os_setup sees the same
  interface for both os_load and node_reboot, without having to worry that
  one or the other needs to be run setuid.
  
  Revision  Changes    Path
  1.104     +1 -1      testbed/tbsetup/GNUmakefile.in
  1.51      +85 -658   testbed/tbsetup/node_reboot.in
  1.58      +119 -344  testbed/tbsetup/os_load.in
  1.92      +98 -53    testbed/tbsetup/os_setup.in

458 459 460 461 462 463 464 465 466 467 468 469 470 471
ricci       2004/02/27 16:36:37 MST

  Modified files:
    www                  showimageid.php3 showosinfo.php3
                         showstuff.php3
  Log:
  Add a function to showstuff.php3 to display all experiments using a
  given OSID, and include this view on the image and osinfo pages.

  Revision  Changes    Path
  1.13      +37 -1     testbed/www/showimageid.php3
  1.8       +11 -1     testbed/www/showosinfo.php3
  1.127     +66 -0     testbed/www/showstuff.php3

472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547
stoller     2004/02/17 15:06:34 MST

  Modified files:
    tmcd/common          GNUmakefile.in bootvnodes libsetup.pm 
                         libtmcc.pm rc.linktest rc.slothd 
                         rc.testbed runstartup update vnodesetup 
                         watchdog 
    tmcd/freebsd         GNUmakefile.in delaysetup liblocsetup.pm 
                         mkextrafs.pl prepare rc.conf 
                         rc.delayagent rc.kname rc.mfs supfile.in 
                         testbed.sh 
    tmcd/freebsd/jail    mkjail.pl rc.injail rc.local 
    tmcd/linux           GNUmakefile.in delaysetup liblocsetup.pm 
                         prepare supfile.in testbed 
    tmcd/plab            GNUmakefile.in rc.inplab 
  Added files:
    tmcd/common          ifsetup rc.bootsetup 
    tmcd/common/config   librc.pm rc.accounts rc.config rc.delays 
                         rc.hostnames rc.ifconfig rc.keys rc.misc 
                         rc.mounts rc.progagent rc.route rc.rpms 
                         rc.simulator rc.startcmd rc.syncserver 
                         rc.tarfiles rc.template rc.trafgen 
                         rc.tunnels 
  Removed files:
    tmcd/common          bootsetup rc.agents rc.progagent rc.setup 
    tmcd/freebsd         ifsetup 
    tmcd/freebsd/jail    jailsetup 
    tmcd/plab            plabsetup 
  Log:
  Medium size cleanup of the client side code. The main impetus behind
  this was to add soft reconfig support so that nodes could be
  reconfigured without having to reboot them. This appears to work, and
  has been tested with jails getting moved around. I've also tested the
  new code on the MFS, but still no testing has been done on PLAB nodes.
  
  The main change is that most of the code moved out of libsetup.pm, and
  was split into constituent rc scripts, each of which does its own
  thing, including cleaning up and preparing for making an image. Most
  of that central knowledge has been moved out into the scripts. Still more
  to do but this was a good start.
  
  Revision  Changes    Path
  1.19      +7 -8      testbed/tmcd/common/GNUmakefile.in
  1.12      +105 -41   testbed/tmcd/common/bootvnodes
  1.97      +304 -2246 testbed/tmcd/common/libsetup.pm
  1.9       +35 -1     testbed/tmcd/common/libtmcc.pm
  1.2       +3 -0      testbed/tmcd/common/rc.linktest
  1.3       +2 -1      testbed/tmcd/common/rc.slothd
  1.2       +2 -2      testbed/tmcd/common/rc.testbed
  1.5       +11 -4     testbed/tmcd/common/runstartup
  1.7       +44 -70    testbed/tmcd/common/update
  1.20      +32 -49    testbed/tmcd/common/vnodesetup
  1.12      +4 -3      testbed/tmcd/common/watchdog
  1.43      +7 -8      testbed/tmcd/freebsd/GNUmakefile.in
  1.13      +26 -31    testbed/tmcd/freebsd/delaysetup
  1.42      +40 -15    testbed/tmcd/freebsd/liblocsetup.pm
  1.3       +3 -3      testbed/tmcd/freebsd/mkextrafs.pl
  1.27      +4 -1      testbed/tmcd/freebsd/prepare
  1.4       +4 -2      testbed/tmcd/freebsd/rc.conf
  1.9       +7 -5      testbed/tmcd/freebsd/rc.delayagent
  1.2       +7 -0      testbed/tmcd/freebsd/rc.kname
  1.6       +152 -38   testbed/tmcd/freebsd/rc.mfs
  1.4       +1 -1      testbed/tmcd/freebsd/supfile.in
  1.4       +3 -5      testbed/tmcd/freebsd/testbed.sh
  1.30      +146 -72   testbed/tmcd/freebsd/jail/mkjail.pl
  1.4       +138 -45   testbed/tmcd/freebsd/jail/rc.injail
  1.5       +2 -2      testbed/tmcd/freebsd/jail/rc.local
  1.38      +4 -4      testbed/tmcd/linux/GNUmakefile.in
  1.4       +30 -18    testbed/tmcd/linux/delaysetup
  1.24      +31 -12    testbed/tmcd/linux/liblocsetup.pm
  1.24      +4 -1      testbed/tmcd/linux/prepare
  1.5       +1 -1      testbed/tmcd/linux/supfile.in
  1.6       +1 -0      testbed/tmcd/linux/testbed
  1.10      +4 -2      testbed/tmcd/plab/GNUmakefile.in
  1.5       +214 -37   testbed/tmcd/plab/rc.inplab

Leigh Stoller's avatar
Leigh Stoller committed
548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566
stoller     2004/02/26 11:40:00 MST

  Modified files:
    www                  dbcheck.php3 nodecontrol_list.php3 
                         osiddefs.php3 
  Added files:
    www                  editnodetype.php3 
  Log:
  Add an editnodetype page to make it easier to operate on the
  node_types table, especially when setting up new testbeds. Currently,
  linked off the node summary page, when in admin mode you get the edit
  link instead of the show link.
  
  Revision  Changes    Path
  1.5       +21 -8     testbed/www/dbcheck.php3
  1.43      +6 -2      testbed/www/nodecontrol_list.php3
  1.4       +30 -0     testbed/www/osiddefs.php3


567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622
stoller     2004/02/16 08:34:35 MST

  Modified files:
    tbsetup              assign_wrapper.in tbswap.in 
  Log:
  Add new -f flag to assign_wrapper, and have tbswap use that flag when
  tbswap is doing a swapretry (this happens during a normal swapin, when
  a node fails). In this case, we want to fix all the nodes (overriding
  user setting) when replacing failed nodes!
  
  Revision  Changes    Path
  1.161     +17 -5     testbed/tbsetup/assign_wrapper.in
  1.34      +8 -5      testbed/tbsetup/tbswap.in

ricci       2004/02/13 15:42:46 MST

  Modified files:
    doc                  setup-cisco.txt 
  Log:
  Recommend turning off MAC aging for the control network.
  
  Revision  Changes    Path
  1.4       +6 -0      testbed/doc/setup-cisco.txt

stoller     2004/02/12 14:26:13 MST

  Modified files:
    tbsetup              assign_wrapper.in 
  Log:
  Fix problem with trivial links not getting lindelays. In the case that
  a 100Mb link is mapped to a trivial link, a linkdelay has to be
  inserted since the actual loopback bandwidth is much higher. The
  problem is that unlike other delays where requires_delay() will return
  true, this decision has to wait until after assign does the mapping
  and we find out that a link was mapped to a trivial link. When this
  happens, I insert a linkdelay "on the fly" when processing the link
  statements from assign.
  
  Revision  Changes    Path
  1.160     +76 -35    testbed/tbsetup/assign_wrapper.in

ricci       2004/02/12 10:46:22 MST

  Modified files:
    tbsetup              assign_wrapper.in 
  Log:
  Unbreak vtypes by putting entries for them into the %node_type_linkbw
  hash.
  
  This means we have to call LoadVirtTypes() from a slightly different
  place, so that we have the virt types before calling LoadPhysInfo(),
  where %node_type_linkbw is built.
  
  Revision  Changes    Path
  1.159     +25 -1     testbed/tbsetup/assign_wrapper.in

stoller     2004/02/12 08:43:37 MST

  Modified files:
    tbsetup              GNUmakefile.in batchexp.in endexp.in 
                         swapexp.in 
  Removed files:
    tbsetup              startexp.in webstartexp.in 
  Log:
  * Removed startexp, and merged its contents into batchexp. There has been
    no reason for the separation for a long time, and it made maintence more
    difficult cause of duplication between batchexp and startexp (batch was
    the sole user of startexp). Cleaner solution.
  
  * Check argument processing for batchexp, swapexp, endexp to make sure the
    taint checks are correct. All three of these scripts will now be
    available from ops. I especially watch the filename processing, which was
    pretty loose before and could allow some to grab a file on boss by trying
    to use it as an NS file (scripts all runs as user of course). The web
    interface generates filenames that are hard to guess, so rather then
    wrapping these scripts when invoked from ops, just allow the usual paths
    (/proj, /groups, /users) but also /tmp/$uid-XXXXXX.nsfile pattern, which
    should be hard enough to guess that users will not be able to get
    anything they are not supposed to.
  
  * Add -w (waitmode) options to all three scripts. In waitmode, the backend
    detaches, but the parent remains waiting for the child to finish so it
    can exit with the appropriate status (for scripting). The user can
    interrupt (^C), but it has no effect on the backend; it just kills the
    parent side that is waiting (backend is in a new session ID). Log outout
    still goes to the file (available from web page) and is emailed.
  
  Revision  Changes    Path
  1.103     +4 -3      testbed/tbsetup/GNUmakefile.in
  1.45      +399 -62   testbed/tbsetup/batchexp.in
  1.30      +59 -13    testbed/tbsetup/endexp.in
  1.52      +92 -15    testbed/tbsetup/swapexp.in

stoller     2004/02/12 08:37:10 MST

  Modified files:
    www                  beginexp.php3 beginexp_form.php3 
                         beginexp_xml.php3 menu.php3 plab_ez.php3 
    www/buildui          bui.php3 
  Log:
  Make the new version of beginexp_xml live now that its been through
  the paper effort for everyone. I've redirected everything to
  beginexp_html.php3 (the front end to the XML version), including the
  plab and bui pages.
  
  I've stuck a redirect in the old beginexp.php3, to make it easy to
  bring back the old version in case something goes wrong. Just comment
  out the lines at the top and reinstall, along with changing the other
  links to it.
  
  Revision  Changes    Path
  1.45      +7 -1      testbed/www/beginexp.php3
  1.30      +2 -2      testbed/www/beginexp_form.php3
  1.4       +3 -2      testbed/www/beginexp_xml.php3
  1.132     +2 -8      testbed/www/menu.php3
  1.6       +2 -2      testbed/www/plab_ez.php3
  1.11      +2 -2      testbed/www/buildui/bui.php3

ricci       2004/02/11 16:42:23 MST

  Modified files:
    tmcd                 tmcd.c 
  Log:
  Change the alias behavior in dohosts() . We used to only give aliases
  for nodes that are not directly connected if we had a route to them.
  Now, we give them to everyone.
  
  This should make hosts file generation go much faster for large
  topologies.
  
  Revision  Changes    Path
  1.208     +16 -74    testbed/tmcd/tmcd.c

stoller     2004/02/11 15:04:15 MST

  Modified files:
    db                   nfree.in 
  Log:
  Kill off all of the old osid handling that nfree did. When a node is
  released, all of def_boot_osid,temp_boot_osid,next_boot_osid is cleared.
  bootinfo currently uses the nodes free/alloc status to determine if the
  node gets PXEWAIT, but will eventually switch to looking at the osids;
  A node with no osids set (as will be when free) will go into PXEWAIT. This
  will allow os_load of free nodes!
  
  Change temporary locked pid/eid to a real pid/eid (emulab-ops/nfree-locked)
  to avoid transient problems in tmcd, where isalive would cause tmcd to
  core dump cause the reserved table had a nonexistent pid/eid setting.
  
  Revision  Changes    Path
  1.74      +12 -30    testbed/db/nfree.in

kwebb       2004/02/10 14:13:05 MST

  Modified files:
    .                    configure configure.in 
    tbsetup              GNUmakefile.in 
    tbsetup/ipassign     GNUmakefile.in README compile.sh 
    tbsetup/ipassign/src Assigner.cc Assigner.h 
                         ConservativeAssigner.cc 
                         ConservativeAssigner.h Framework.cc 
                         Framework.h GNUmakefile.in HostRouter.cc 
                         LanRouter.cc NetRouter.cc difference.cc 
                         ipassign.cc routestat.cc 
  Added files:
    tbsetup/ipassign     ipassign_wrapper.in 
    tbsetup/ipassign/etc autocheck.conf 
    tbsetup/ipassign/src FixedPartition.h Partition.h 
                         SearchPartition.h SquareRootPartition.h 
  Log:
  Merge of ipassign stuff from commvirtsig-branch into main trunk.
  
  Revision  Changes    Path
  1.199     +1 -1      testbed/configure
  1.206     +1 -1      testbed/configure.in
  1.102     +10 -3     testbed/tbsetup/GNUmakefile.in
  1.3       +8 -4      testbed/tbsetup/ipassign/GNUmakefile.in
  1.4       +12 -9     testbed/tbsetup/ipassign/README
  1.5       +10 -10    testbed/tbsetup/ipassign/compile.sh
  1.2       +0 -4      testbed/tbsetup/ipassign/src/Assigner.cc
  1.2       +3 -3      testbed/tbsetup/ipassign/src/Assigner.h
  1.2       +9 -70     testbed/tbsetup/ipassign/src/ConservativeAssigner.cc
  1.2       +4 -2      testbed/tbsetup/ipassign/src/ConservativeAssigner.h
  1.2       +52 -71    testbed/tbsetup/ipassign/src/Framework.cc
  1.2       +16 -7     testbed/tbsetup/ipassign/src/Framework.h
  1.4       +33 -16    testbed/tbsetup/ipassign/src/GNUmakefile.in
  1.2       +1 -1      testbed/tbsetup/ipassign/src/HostRouter.cc
  1.2       +1 -1      testbed/tbsetup/ipassign/src/LanRouter.cc
  1.2       +1 -1      testbed/tbsetup/ipassign/src/NetRouter.cc
  1.2       +6 -0      testbed/tbsetup/ipassign/src/difference.cc
  1.4       +3 -1      testbed/tbsetup/ipassign/src/ipassign.cc
  1.3       +28 -10    testbed/tbsetup/ipassign/src/routestat.cc

stoller     2004/02/09 16:21:02 MST

  Modified files:
    www                  newimageid_ez.php3 newosid.php3 
                         newosid_form.php3 
  Added files:
    www                  osiddefs.php3 
  Log:
  Minor cleanup of how we do features, osnames, and op_modes. Moved the
  lists to a common "header" file, and change newosid and newimageid_ez
  to grab from there. Also add notion of admin-only features (veths,
  mlinks) and op_modes (NORMALv2) while I transition to new stuff.
  
  Revision  Changes    Path
  1.29      +43 -43    testbed/www/newimageid_ez.php3
  1.14      +45 -28    testbed/www/newosid.php3
  1.9       +38 -25    testbed/www/newosid_form.php3

stoller     2004/02/09 10:31:16 MST

  Modified files:
    os/syncd             emulab-sync.c 
  Log:
  Add SIGALRM handling to cut the connection timeout from usual 60
  seconds it takes the kernel to decide the other machine is not
  responding (as will happens as machines are rebooting), down to 5
  seconds, using a SIGARLM.
  
  Revision  Changes    Path
  1.4       +37 -3     testbed/os/syncd/emulab-sync.c

stoller     2004/02/09 09:38:16 MST

  Modified files:
    os/syncd             emulab-syncd.c 
  Log:
  Add proper daemonization, which is turned off when -d (debug) flag
  used. Add .pid file creation in /var/run to kill daemon from the new
  rc.syncserver script in tmcd client code.  Add -v flag to increase
  server verbosity. Add -l argument to specify where to write the log
  file.
  
  Revision  Changes    Path
  1.3       +34 -20    testbed/os/syncd/emulab-syncd.c

duerig      2004/02/06 11:52:48 MST

  Modified files:        (Branch: commvirtsig-branch)
    tbsetup/ipassign     compile.sh 
    tbsetup/ipassign/src Assigner.cc Assigner.h 
                         ConservativeAssigner.cc 
                         ConservativeAssigner.h Framework.cc 
                         Framework.h difference.cc ipassign.cc 
                         routestat.cc 
  Added files:           (Branch: commvirtsig-branch)
    tbsetup/ipassign/src FixedPartition.h Partition.h 
                         SearchPartition.h SquareRootPartition.h 
  Log:
  * Fixed netmask calculation bug.
  * Added the option to search for a good partitioning
  * Set up a pluggable partition framework for future changes
  
  Revision  Changes    Path
  1.4.2.2   +10 -10    testbed/tbsetup/ipassign/compile.sh
  1.1.2.2   +0 -4      testbed/tbsetup/ipassign/src/Assigner.cc
  1.1.2.2   +3 -3      testbed/tbsetup/ipassign/src/Assigner.h
  1.1.2.2   +9 -70     testbed/tbsetup/ipassign/src/ConservativeAssigner.cc
  1.1.2.2   +4 -2      testbed/tbsetup/ipassign/src/ConservativeAssigner.h
  1.1.2.2   +52 -71    testbed/tbsetup/ipassign/src/Framework.cc
  1.1.2.2   +16 -7     testbed/tbsetup/ipassign/src/Framework.h
  1.1.2.2   +6 -0      testbed/tbsetup/ipassign/src/difference.cc
  1.2.6.2   +3 -1      testbed/tbsetup/ipassign/src/ipassign.cc
  1.2.2.2   +28 -10    testbed/tbsetup/ipassign/src/routestat.cc

stoller     2004/02/05 18:46:15 MST

  Modified files:        (Branch: commvirtsig-branch)
    tbsetup              os_setup.in tbswap.in 
  Log:
  Hacky changes for node reconfiguration, committed to branch only.
  When reboot not selected for swapmod, set the nodes to RES_RECONFIG in
  tbswap. In os_setup, nodes in RES_RECONFIG get a reconfig instead of
  the reboot. Note that if reconfig fails (say, cause the image has no
  reconfig script in it!), it node_reboot falls back to plain reboot
  (note, node_reboot -r does the reconfig).
  
  Problem: Not sure that pcvm nodes will always be moved out of ISUP and
  so the wait for ISUP might terminate too soon.
  
  Also some minor changes to make os_setup see the cancel flag and
  hopefully end a lot sooner. These could go into the main branch if
  desired
  
  Revision  Changes    Path
  1.88.2.2  +34 -30    testbed/tbsetup/os_setup.in
  1.32.6.2  +11 -5     testbed/tbsetup/tbswap.in

ricci       2004/02/05 15:09:32 MST

  Modified files:        (Branch: commvirtsig-branch)
    tbsetup              tbprerun.in 
  Log:
  Add the ability to run ipassign instead of staticroutes for route
  calculation.
  
  Revision  Changes    Path
  1.44.6.1  +28 -4     testbed/tbsetup/tbprerun.in

ricci       2004/02/05 10:42:14 MST

  Modified files:        (Branch: commvirtsig-branch)
    tbsetup              assign_prepass.in 
  Log:
  Several changes:
  
  Take a '-m' option to take the multiplexing factor given by the user,
  instead of my lame hardcoded default.
  
  Handle node-hints - not totally slick, we just pick one hint for the
  conglomerate and go with it.
  
  Make binpack_sort() aware of CPU and memory - this should help out
  with Tim's experiments, in which that's what he's tweaking.
  
  Data structure changes for desires so that we can do the above.
  
  Some bufixes for the parser so that we can do node-hints.
  
  Revision  Changes    Path
  1.1.2.5   +103 -49   testbed/tbsetup/assign_prepass.in

stoller     2004/02/05 09:57:15 MST

  Modified files:        (Branch: commvirtsig-branch)
    tbsetup              assign_wrapper.in 
  Log:
  Change bogus check against FBSD-STD, to a check of the osfeature list.
  The point is determine if the osid a user has selected support
  mulitplexed links and veths. This needs more work; I am currently
  requiring both veth/mlink support whenever a nonvirt node is in a link
  or lan with a virt node. This is pretty much what the code did before;
  I just changed how the support is determined. Needs more work,
  obviously.
  
  Revision  Changes    Path
  1.154.2.17 +20 -9     testbed/tbsetup/assign_wrapper.in

stoller     2004/02/05 09:14:02 MST

  Modified files:
    sql                  database-create.sql database-migrate.txt 
  Log:
  Add 'veths' and 'mlinks' to the list of possible osfeatures in
  is_info table.
  
  Revision  Changes    Path
  1.225     +1 -1      testbed/sql/database-create.sql
  1.118     +6 -0      testbed/sql/database-migrate.txt

kwebb       2004/02/04 20:36:52 MST

  Modified files:        (Branch: commvirtsig-branch)
    tbsetup/ipassign     ipassign_wrapper.in 
  Log:
  ipassign_wrapper is now ready for prime time.
  
  Fixed the nasty underconstrained clause in the virt_nodes ips column update
  SQL clause that bit me yesterday/today.
  
  Added logic to find the src ip address for a route, and fixed up a few more
  things to prepare the script for integration.
  
  Revision  Changes    Path
  1.1.2.2   +49 -16    testbed/tbsetup/ipassign/Attic/ipassign_wrapper.in

ricci       2004/02/04 17:33:56 MST

  Modified files:        (Branch: commvirtsig-branch)
    tbsetup              assign_prepass.in 
  Log:
  Handle fixed nodes. The main rule regarding fixed nodes is that we can
  fix each conglomerate to at most one physical node. So, we can
  combine:
  1) Nodes that are not fixed
  2) Nodes that are fixed, as long as they are fixed to the same place
  3) Nodes that are fixed with nodes that are not fixed
  
  Revision  Changes    Path
  1.1.2.4   +20 -5     testbed/tbsetup/assign_prepass.in

stoller     2004/02/04 17:14:41 MST

  Modified files:
    tbsetup              node_reboot.in 
  Log:
  Minor whackery. Add "-r" option to node_reboot to "reconfig" a pnode
  instead of rebooting. If the reconfig fails, fail through to reboot.
  A reconfig will "halt" the current vnodes (or remove ones that are no
  longer assigned to the node) reconfig the pnode, and then restart the
  vnodes that are still assigned to the node (or create new ones for
  newly assigned vnodes). A halt stops the vnode, but leaves the
  vnode filesystem intact.
  
  Not bothering to reconfig individual vnodes yet since thats pretty
  much like a reboot of a vnode. Difference in time is tiny.
  
  Revision  Changes    Path
  1.49      +49 -6     testbed/tbsetup/node_reboot.in

shash       2004/02/04 15:42:49 MST

  Modified files:        (Branch: commvirtsig-branch)
    www                  modifyexp.php3 
  Log:
  Added -e option to web modify to restart event system. Checked on by
  default if the experiment is active.
  
  Revision  Changes    Path
  1.11.6.1  +7 -1      testbed/www/modifyexp.php3

shash       2004/02/04 02:39:58 MST

  Modified files:        (Branch: commvirtsig-branch)
    tbsetup              assign_wrapper.in 
  Log:
  Yet another fix which causes trouble when vnodes move around pnodes
  arbitrarily. The code even though was written a long time back wasn't
  tested coz of doing fix-node during modify. Without fix-node, vnodes
  move around like crazy even if the ns file never changes in any way
  during a modify. With this fix, as many vnodes that were previously
  reserved, as possible, will be reused as long as assign ends up
  using the same PCs as were reserved before.
  
  Revision  Changes    Path
  1.154.2.14 +75 -22    testbed/tbsetup/assign_wrapper.in

kwebb       2004/02/03 16:16:30 MST

  Modified files:        (Branch: commvirtsig-branch)
    tbsetup/ipassign     GNUmakefile.in 
    tbsetup/ipassign/src GNUmakefile.in HostRouter.cc LanRouter.cc 
                         NetRouter.cc 
  Log:
  Fixes to build/install of ipassign and related tools.
  
  Revision  Changes    Path
  1.1.6.2   +2 -4      testbed/tbsetup/ipassign/GNUmakefile.in
  1.2.6.2   +33 -16    testbed/tbsetup/ipassign/src/GNUmakefile.in
  1.1.2.2   +1 -1      testbed/tbsetup/ipassign/src/HostRouter.cc
  1.1.2.2   +1 -1      testbed/tbsetup/ipassign/src/LanRouter.cc
  1.1.2.2   +1 -1      testbed/tbsetup/ipassign/src/NetRouter.cc

ricci       2004/02/03 14:29:02 MST

  Modified files:
    tbsetup              assign_prepass.in 
  Log:
  Add conglomeration of links as well as LANs - this can help assign's
  runtime quite a bit, because it has less scoring work to do.
  
  Add METIS as a coarsening algorithm - we shoot for making
  conglomerates of size 10.
  
  Revision  Changes    Path
  1.2       +397 -36   testbed/tbsetup/assign_prepass.in

ricci       2004/02/03 11:37:35 MST

  Modified files:        (Branch: commvirtsig-branch)
    tbsetup              assign_wrapper.in 
  Log:
  Two changes when doing a swap-update:
  
  Give all virtnodes the desire 'already_reserved' so that assign will
  try to place them onto nodes the experimenter already has allocated.
  
  Give assign 'node-hint's for nodes that were mapped before, so that
  we can start from something that is presumably a pretty good
  solution. Hopefully this will make assign converge faster and/or
  improve the solution.
  
  Revision  Changes    Path
  1.154.2.4 +19 -0     testbed/tbsetup/assign_wrapper.in

ricci       2004/02/03 11:04:30 MST

  Modified files:        (Branch: commvirtsig-branch)
    tbsetup              ptopgen.in 
  Log:
  Add an 'already_reserved' feature to nodes we already have reserved
  if an $exempt_eid was given - this is so that assign can use them in
  preference to allocating new nodes.
  
  Revision  Changes    Path
  1.53.6.1  +15 -2     testbed/tbsetup/ptopgen.in

stoller     2004/02/03 10:46:14 MST

  Modified files:        (Branch: commvirtsig-branch)
    tbsetup              assign_wrapper.in 
  Log:
  Two changes for the commvirtsig branch only.
  
  * Set the node cmd_line to the appropriate kernel when selecting a
    jail or delay node host. Currently, jail (and sim) phosts get
    /kernel.jail, and delay nodes get /kernel.delay. This is passed to
    pxeboot via bootinfo, which boots the proper kernel, thus avoiding
    the double reboot we all know and loathe.
  
    WARNING: You have to use new (FBSD47-UPDATE) images for this to
    actually work right, since the current default inage does not rename
    the kernel after reboot. Mostly this will not be a problem, but it
    might be.
  
    Be sure to use tb-set-jail-os and tb-set-delay-os in your NS files
    too (to FBSD47-UPDATE at least) for the same reason.
  
  * My requires_delay() change from many weeks ago that needs more
    testing before committing to main branch. Have faith all ye little
    guinea pigs.
  
  Revision  Changes    Path
  1.154.2.3 +126 -36   testbed/tbsetup/assign_wrapper.in

stoller     2004/02/03 09:46:31 MST

  Modified files:
    tbsetup/ns2ir        nstb_compat.tcl parse.tcl.in sim.tcl.in 
                         tb_compat.tcl.in 
  Log:
  Add tb-set-jail-os and tb-set-delay-os to set the experiment wide
  jail and delay node OSIDs. When set, will override anything in the
  node_types table. Use with caution.
  
  Revision  Changes    Path
  1.16      +3 -0      testbed/tbsetup/ns2ir/nstb_compat.tcl
  1.47      +4 -0      testbed/tbsetup/ns2ir/parse.tcl.in
  1.63      +11 -0     testbed/tbsetup/ns2ir/sim.tcl.in
  1.62      +28 -0     testbed/tbsetup/ns2ir/tb_compat.tcl.in

shash       2004/02/02 17:51:08 MST

  Modified files:        (Branch: commvirtsig-branch)
    tbsetup              assign_wrapper.in 
    tbsetup/ns2ir        tb_compat.tcl.in sim.tcl.in parse.tcl.in 
    db                   libdb.pm.in nalloc.in nfree.in 
                         xmlconvert.in 
  Log:
  A new tb-* command tb-fix-current-resources 0/1 tells assign_wrapper
  whether to do a fix-node of current resources or not. This is useful
  when virtual node weights are changed during a swap modify. For
  example, when a virtual node had a CPU desire of 10 and it became
  800 during a swap modify, doing a fix-node on previous allocation
  won't let assign do the correct thing and will sometimes cause
  violations.
  
  In order to support this, we need to move current reserved
  pnodes/virtnodes to a holding experiment emulab-ops/oldreserved
  and then back to current experiment. This was the solution that
  worked best in the face of UNIQUE KEY issues in the reserved
  table. The reserved table needs the combination pid-eid-vname
  to be unique.
  
  Revision  Changes    Path
  1.154.2.1 +66 -5     testbed/tbsetup/assign_wrapper.in
  1.61.2.1  +11 -0     testbed/tbsetup/ns2ir/tb_compat.tcl.in
  1.62.2.1  +3 -2      testbed/tbsetup/ns2ir/sim.tcl.in
  1.46.2.1  +3 -0      testbed/tbsetup/ns2ir/parse.tcl.in
  1.151.6.1 +80 -2     testbed/db/libdb.pm.in
  1.25.10.1 +10 -3     testbed/db/nalloc.in
  1.72.6.1  +40 -11    testbed/db/nfree.in
  1.16.2.1  +1 -0      testbed/db/xmlconvert.in

duerig      2004/02/02 13:59:57 MST

  Modified files:
    tbsetup/ipassign     INSTALL compile.sh 
    tbsetup/ipassign/src routestat.cc 
  Log:
  Modified routecalc, adding a command line option to dump all route lengths to a file for statistical analysis.
  
  Revision  Changes    Path
  1.5       +4 -0      testbed/tbsetup/ipassign/INSTALL
  1.3       +1 -1      testbed/tbsetup/ipassign/compile.sh
  1.2       +57 -1     testbed/tbsetup/ipassign/src/routestat.cc

mike        2004/02/02 10:42:57 MST

  Modified files:
    doc                  vnode-impl.txt 
  Log:
  Integrate some text I had elsewhere about the virtual control net.
  
  Revision  Changes    Path
  1.7       +82 -1     testbed/doc/vnode-impl.txt

duerig      2004/02/02 08:34:12 MST

  Modified files:
    tbsetup/ipassign     GNUmakefile.in INSTALL README 
    tbsetup/ipassign/graph kgraph3.graph kgraph4.graph 
    tbsetup/ipassign/src Exception.h GNUmakefile.in ipassign.cc 
                         lib.h top2graph.cc 
  Added files:
    tbsetup/ipassign     compile.sh 
    tbsetup/ipassign/src Assigner.cc Assigner.h 
                         ConservativeAssigner.cc 
                         ConservativeAssigner.h Framework.cc 
                         Framework.h HostRouter.cc HostRouter.h 
                         LanRouter.cc LanRouter.h NetRouter.cc 
                         NetRouter.h Router.cc Router.h bitmath.cc 
                         bitmath.h brite2graph.cc coprocess.cc 
                         coprocess.h graph2lan.cc inet2graph.cc 
                         route2lan.cc routecalc.cc routestat.cc 
  Removed files:
    tbsetup/ipassign/etc autocheck.conf 
    tbsetup/ipassign/src Graph.cc Graph.h autocheck.cc boolcmp.cc 
  Log:
  Added a more flexible framework surrounding routing and ip assignment. Added routing.
  
  Revision  Changes    Path
  1.2       +2 -1      testbed/tbsetup/ipassign/GNUmakefile.in
  1.3       +4 -1      testbed/tbsetup/ipassign/INSTALL
  1.3       +125 -64   testbed/tbsetup/ipassign/README
  1.2       +3 -3      testbed/tbsetup/ipassign/graph/kgraph3.graph
  1.2       +6 -6      testbed/tbsetup/ipassign/graph/kgraph4.graph
  1.3       +71 -9     testbed/tbsetup/ipassign/src/Exception.h
  1.3       +12 -3     testbed/tbsetup/ipassign/src/GNUmakefile.in
  1.3       +24 -176   testbed/tbsetup/ipassign/src/ipassign.cc
  1.3       +16 -0     testbed/tbsetup/ipassign/src/lib.h
  1.3       +1 -1      testbed/tbsetup/ipassign/src/top2graph.cc

mike        2004/01/30 17:28:13 MST

  Modified files:
    tmcd/freebsd/jail    mkjail.pl 
  Log:
  Setup routes inside jail in the "correct" order to avoid ARP whining.
  From the code:
          # N.B. privnet is setup first even before the default route.
          # This is because the gateway for the default route is on the
          # privnet, but our control net interface is not (because it has
          # a 255.255.255.255 netmask by virtue of being an alias on the
          # real control interface).  Thus there is no way to use the
          # default route until the privnet route is up (ARP complains
          # about "host is not on local network").
  
  Revision  Changes    Path
  1.29      +21 -6     testbed/tmcd/freebsd/jail/mkjail.pl

mike        2004/01/30 13:05:41 MST

  Modified files:
    doc                  vnode-impl.txt 
  Log:
  Document:
  - the problem with broadcast when using fake MACs instead of encapsulation
  - why ARP is hard in our environment
  
  Revision  Changes    Path
  1.6       +58 -2     testbed/doc/vnode-impl.txt

stoller     2004/01/30 10:59:53 MST

  Modified files:
    tbsetup              assign_wrapper.in 
  Log:
  Fix for when multiple vnodes in the same lan wind up on on the same
  pnode. Used to no be allowed, but with multiple routing tables this is
  now possible. My code to construct link names on the fly when delay
  nodes are inserted, was generating non-unique names which was causing
  vlans to be dropped.
  
  Revision  Changes    Path
  1.153     +9 -1      testbed/tbsetup/assign_wrapper.in

shash       2004/01/29 18:41:50 MST

  Modified files:
    tbsetup              assign_wrapper.in 
  Log:
  Fixes the bug unearthed by Tim. When a link is created between a jail
  vnode and a PC node, under normal circumstances, a real physical link
  is used. However, a user can use tb-set-multiplexed on the link that
  allows assign to map multiple vlinks over the same physical link.
  This is fine when the PC is running FBSD-STD which can use veth
  interfaces. Not so if it is running Linux or a non-standard BSD.
  This fix forces EMULATED links and VETH devices when the PC is running
  FBSD-STD and turns those attributes off otherwise so that assign
  will not give a mapping that cannot be realized on the client side.
  For the gory details of this problem, look at testbed-ops email thread
  "pcvm route problem" dated 29th Jan 2004.
  
  A problem still exists in the non-BSD router + jail vnodes in a delayed
  LAN. VLANs table is not getting the correct entries. A fix will come
  soon. Follow the testbed-ops email thread "fix for the pcvm route problem"
  dated 29th Jan 2004 for the gory details.
  
  Revision  Changes    Path
  1.152     +49 -13    testbed/tbsetup/assign_wrapper.in

ricci       2004/01/29 15:57:05 MST

  Modified files:
    .                    configure configure.in 
  Added files:
    tbsetup              assign_prepass.in 
  Log:
  New script: assign_prepass
  
  Acts as a transparent filter for assign - parses the top file given to
  assign, coarsens the graph in it, then feeds that to assign.
  Translates assign's output back into context of the original graph,
  and spits that out for parsing.
  
  Right now, only includes a single coarsening algorithm - conglomerates
  the nodes in leaf lans. Hopefully, it will soon include other
  algorithms, such as running METIS to partition the graph.
  
  Still needs a fair amount of work to be general - only works on
  certain types of topologies right now.
  
  Not called yet, but that will be trivial - just need to change
  assign_wrapper to call assign_prepass instead of assign.
  
  Revision  Changes    Path
  1.198     +1 -0      testbed/configure
  1.205     +1 -0      testbed/configure.in

mike        2004/01/29 14:30:18 MST

  Modified files:
    tmcd/common          libsetup.pm 
    tmcd/freebsd         liblocsetup.pm 
    tmcd/linux           liblocsetup.pm 
  Log:
  Changes to support optional no-encapsulation mode on veth devices.
  tmcd passes back an encapsulation flag to inform this.
  NOTE: new version (15) for tmcd!
  
  Revision  Changes    Path
  1.95      +23 -8     testbed/tmcd/common/libsetup.pm
  1.41      +11 -3     testbed/tmcd/freebsd/liblocsetup.pm
  1.23      +2 -2      testbed/tmcd/linux/liblocsetup.pm

ricci       2004/01/29 13:25:36 MST

  Modified files:
    tbsetup/ns2ir        lanlink.tcl tb_compat.tcl.in 
  Log:
  Allow tb-set-multiplexed, tb-set-noshaping, and tb-set-useveth on LANs
  as well as links.
  
  Revision  Changes    Path
  1.32      +3 -3      testbed/tbsetup/ns2ir/lanlink.tcl
  1.61      +13 -13    testbed/tbsetup/ns2ir/tb_compat.tcl.in

stoller     2004/01/29 13:19:48 MST

  Modified files:
    event/linktest       GNUmakefile.in run_linktest.pl.in 
  Log:
  Redo run_linktest.pl so that it is okay to run on boss/ops. Note that
  I am not using paperbag to run it on ops, but just installing the two
  programs that are needed. Eventually should paperbag it.
  
  This same script runs on both boss/ops and on experimental nodes to
  fire off the linktest daemon on the nodes and wait. This is icky as
  some crufty stuff has to be done so that it will run in both
  environments. ltevent is of course not needed on boss, but do not want
  to bother it now since it *is* needed on the nodes.
  
  To run it on boss script needed severe cleanup and taint checking.
  Also added the use of event keyfile, which is currently optional, but
  needs to be mandatory once the images are updated.
  
  The current problem is that run_linktest can hang waiting for the
  clients to finish?. We can use quick mode in the experiment setup
  path, but maybe we need a cancel operation?
  
  Revision  Changes    Path
  1.8       +6 -1      testbed/event/linktest/GNUmakefile.in
  1.8       +193 -69   testbed/event/linktest/run_linktest.pl.in

stoller     2004/01/28 18:03:39 MST

  Modified files:
    db                   xmlconvert.in 
    tbsetup/ns2ir        parse.tcl.in sim.tcl.in tb_compat.tcl.in 
    tmcd                 decls.h tmcd.c 
  Log:
  Add veth_encapsulate for Mike. Per experiment flag, returned for
  each veth from tmcd cause that is easy. Defaults to 1 for now.
  Add tb-set-encapsulate to front end so Mike can play with it.
  
  Revision  Changes    Path
  1.16      +2 -1      testbed/db/xmlconvert.in
  1.46      +4 -1      testbed/tbsetup/ns2ir/parse.tcl.in
  1.62      +3 -2      testbed/tbsetup/ns2ir/sim.tcl.in
  1.60      +14 -0     testbed/tbsetup/ns2ir/tb_compat.tcl.in
  1.22      +2 -2      testbed/tmcd/decls.h
  1.206     +13 -4     testbed/tmcd/tmcd.c

ricci       2004/01/28 16:19:26 MST

  Modified files:
    assign               anneal.cc 
  Log:
  Add additional criteria to pnode_is_match to take into account
  local features/desires - turns out, we are using them in a manner
  similar to types, so can save ourselves from looking at a lot of
  bad solutions by being careful about going too far over on local
  features.
  
  Revision  Changes    Path
  1.27      +37 -0     testbed/assign/anneal.cc

ricci       2004/01/28 16:16:51 MST

  Modified files:
    assign               score.cc common.h 
  Log:
  Bugfix for 'loopback' links.
  
  Do some scoring, not just violations, for stateful features and
  desires - this does a better job of nudging assign towards good
  solutions.
  
  Revision  Changes    Path
  1.49      +17 -11    testbed/assign/score.cc
  1.21      +2 -0      testbed/assign/common.h

stoller     2004/01/28 11:10:06 MST

  Modified files:
    tmcd/common          rc.setup 
  Log:
  Add startup of new linktest daemon.
  
  Revision  Changes    Path
  1.15      +14 -0     testbed/tmcd/common/rc.setup

davidand    2004/01/26 15:07:03 MST

  Modified files:
    event/linktest       GNUmakefile.in linktest.pl.in 
                         run_linktest.pl.in 
  Added files:
    event/linktest       tb_compat.tcl.in 
  Removed files:
    event/linktest       tb_compat.tcl 
  Log:
  Updated makefile to install tb_compat to client_bindir
  Removed hardcoded "boss" from linktest.pl and run_linktest.pl
  Changed historical log location.
  
  Revision  Changes    Path
  1.7       +4 -1      testbed/event/linktest/GNUmakefile.in
  1.13      +26 -11    testbed/event/linktest/linktest.pl.in
  1.6       +8 -1      testbed/event/linktest/run_linktest.pl.in

davidand    2004/01/24 21:18:22 MST

  Modified files:
    event/linktest       linktest.pl.in ltevent.c 
                         run_linktest.pl.in 
  Added files:
    event/linktest       ROADMAP 
  Log:
  Added taint checking to arguments in linktest.pl and run_linktest.pl.
  Modified ltevent.c to use keyfiles.
  Added a ROADMAP.
  Linktest is now ready for first deploy.
  
  Revision  Changes    Path
  1.12      +155 -79   testbed/event/linktest/linktest.pl.in
  1.2       +7 -4      testbed/event/linktest/ltevent.c
  1.4       +52 -15    testbed/event/linktest/run_linktest.pl.in

kwebb       2004/01/23 17:59:55 MST

  Modified files:
    www                  faq.html 
  Log:
  Added detail on setting up the last DOS partition for use as extra space
  on experimental nodes.  The Linux section was updated and expanded, and a
  FreeBSD section was written.
  
  Revision  Changes    Path
  1.94      +62 -7     testbed/www/faq.html

ricci       2004/01/23 10:18:34 MST

  Modified files:
    tbsetup              ptopgen.in 
  Log:
  When including virt goo, include the nodes' CPU speeds and RAM, which
  we can use for fine-tuning packing in assign.
  
  Revision  Changes    Path
  1.53      +13 -2     testbed/tbsetup/ptopgen.in

ricci       2004/01/21 13:06:08 MST

  Modified files:
    ssl                  GNUmakefile.in 
  Log:
  Add a 'remote-site' target and a 'remote-site-boss-install' target
  that only generate the certificates needed at remote sites.
  
  Revision  Changes    Path
  1.15      +10 -0     testbed/ssl/GNUmakefile.in

ricci       2004/01/21 11:22:11 MST

  Modified files:
    doc                  UPDATING 
    rc.d                 3.plab.sh.in 3.testbed.sh.in 
  Log:
  Update our rc.d scripts to handle the 'start' and 'stop' arguments -
  we were attempting to start up duplicate copies of everything as boss
  went down.
  
  Revision  Changes    Path
  1.4       +5 -0      testbed/doc/UPDATING
  1.2       +25 -10    testbed/rc.d/3.plab.sh.in
  1.16      +94 -73    testbed/rc.d/3.testbed.sh.in

stoller     2004/01/21 10:12:41 MST

  Modified files:
    tbsetup              node_reboot.in 
  Log:
  Minor change to RebootNode; do not fork a child until *after*
  determining if a bootinfo wakeup will suffice. This avoids a flurry
  of children trying to connect to the DB. Also, move the TBdbfork()
  until after the DoesPing() test, so that the connection flurry is
  spaced out a bit more. DoesPing() does not talk to the DB, as its name
  might not imply.
  
  Bump batchcount to 12.
  
  Revision  Changes    Path
  1.47      +35 -17    testbed/tbsetup/node_reboot.in

stoller     2004/01/21 09:37:29 MST

  Modified files:
    pxe                  bootinfo_mysql.c 
  Log:
  If none of def_boot_osid,temp_boot_osid,next_boot_osid is set, return
  PXEWAIT to node (if version >= 1, older pxeboot gets an error code).
  Free nodes still get PXEWAIT; have not done those changes yet.
  
  Revision  Changes    Path
  1.19      +10 -0     testbed/pxe/bootinfo_mysql.c

ricci       2004/01/20 18:03:53 MST

  Modified files:
    doc                  UPDATING 
    install              boss-install.in 
  Log:
  Up the buffer sizes for UNIX domain sockets to help syslogd scale
  better.
  
  Revision  Changes    Path
  1.3       +8 -0      testbed/doc/UPDATING
  1.21      +10 -0     testbed/install/boss-install.in

ricci       2004/01/20 17:22:37 MST

  Modified files:
    doc                  setup-db.txt 
    utils                firstuser.in 
  Log:
  New operation for firstuser. Now creates the 'elabman' user and
  'emulab-ops' project, instead of an account for the user running
  it. The elabman user is then used to bootstrap other accounts.
  
  Also include a list of things to do to admin's accounts on boss, like
  giving them shells.
  
  Revision  Changes    Path
  1.18      +97 -40    testbed/doc/setup-db.txt
  1.7       +62 -64    testbed/utils/firstuser.in

ricci       2004/01/20 15:07:39 MST

  Modified files:
    www                  joinproject.php3 newproject.php3 
  Log:
  Check for an account on boss with the submitted username - this will
  prevent people from asking for 'root', 'toor', etc. as usernames, and
  will hopefully help with new installations, which may have created
  accounts by hand. Note that this checks boss only, not ops.
  
  Also fixed a bug in newproject.php3 that was incorrectly letting
  through duplicate usernames.
  
  Revision  Changes    Path
  1.40      +2 -1      testbed/www/joinproject.php3
  1.88      +2 -1      testbed/www/newproject.php3

mike        2004/01/20 13:03:20 MST

  Modified files:
    tmcd/freebsd         chipset.awk control_interface nodetype 
  Log:
  Hacks to recognize rutgers node (pc2400-orbit)
  
  Revision  Changes    Path
  1.5       +27 -3     testbed/tmcd/freebsd/chipset.awk
  1.13      +4 -1      testbed/tmcd/freebsd/control_interface
  1.10      +14 -4     testbed/tmcd/freebsd/nodetype

mike        2004/01/20 12:59:58 MST

  Modified files:
    tmcd/linux           chipset.awk control_interface 
                         modules.conf nodetype 
  Log:
  Hacks to recognize rutgers node (pc2400-orbit)
  
  Revision  Changes    Path
  1.5       +17 -3     testbed/tmcd/linux/chipset.awk
  1.13      +4 -3      testbed/tmcd/linux/control_interface
  1.7       +3 -0      testbed/tmcd/linux/modules.conf
  1.11      +13 -3     testbed/tmcd/linux/nodetype

mike        2004/01/20 12:23:23 MST

  Modified files:
    tmcd/common          rc.setup 
  Log:
  Start up evproxy with an explicit server argument.
  Currently the default bossnode seems to be compiled in as "boss.emulab.net"
  which doesn't work so well at other testbeds.
  
  Revision  Changes    Path
  1.14      +7 -1      testbed/tmcd/common/rc.setup
	
ricci       2004/01/20 11:49:18 MST

  Modified files:
    install              boss-install.in 
  Log:
  Set the kernel Hz to 1000 in /boot/loader.conf .
  
  Revision  Changes    Path
  1.20      +9 -0      testbed/install/boss-install.in

mike        2004/01/20 10:27:30 MST

  Modified files:
    tbsetup              frisbeelauncher.in 
  Log:
  Add an explicit bandwidth param to the frisbeed startup.  This way we don't
  rely on the HZ rate of the boss kernel.
  
  Revision  Changes    Path
  1.16      +3 -1      testbed/tbsetup/frisbeelauncher.in

Leigh Stoller's avatar
Leigh Stoller committed
1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646
stoller     2004/01/20 08:21:20 MST

  Modified files:
    pxe                  bootinfo.c bootwhat.h 
  Log:
  Add back the cache to avoid generating spurious events when bootinfo
  packets are lost; do not send the events if a node has requested
  bootinfo within the last 10 seconds; this implies that the bootinfo
  reply packet was lost and the node is retrying. This should quiet
  things a bit from stated, although eventually this should be dealt
  with in stated instead of with this hack.
  
  Mac originally added the cache to proxydhcp. I've added a cache to
  bootinfo to solve the same problem (proxydhcp is no longer used),
  although I have changed to implementation to use the DBM backend
  rather then a one-off hash table. dbopen() with a NULL file argument
  creates an in-memory database (no backing store), and I have used the
  DB_HASH db type. So, the hash table is done with a couple of calls to
  DBM routines.
  
  Revision  Changes    Path
  1.11      +127 -20   testbed/pxe/bootinfo.c
  1.7       +1 -1      testbed/pxe/bootwhat.h

1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823
davidand    2004/01/20 02:41:23 MST

  Modified files:
    event/linktest       linktest.pl.in 
  Log:
  Enhancements to the process control, control over send speeds,
  better support for experiment failures (99% on latency and loss),
  better error messages.
  
  Revision  Changes    Path
  1.11      +477 -267  testbed/event/linktest/linktest.pl.in

davidand    2004/01/17 21:09:25 MST

  Modified files:
    event/linktest       GNUmakefile.in linktest.c linktest.h.in 
                         linktest.pl.in 
  Added files:
    event/linktest       ltevent.c 
  Removed files:
    event/linktest       run_linktest.pl.in 
  Log:
  Checkpoint commit. I've added the static-linked program "ltevent" to send
  and wait for linktest events, and integrated it into the perl scripts.
  
  At this point I'm working on small potatoes such as the rc.setup script
  to invoke linktest daemon and nailing down where to put platform-specific
  stuff such as the ns-linktest build and the customized tb-compat.
  
  Also am testing linktest in cases where I've deliberately inserted an error
  to make sure it catches it.
  
  Revision  Changes    Path
  1.6       +14 -1     testbed/event/linktest/GNUmakefile.in
  1.7       +6 -34     testbed/event/linktest/linktest.c
  1.3       +4 -0      testbed/event/linktest/linktest.h.in
  1.10      +69 -89    testbed/event/linktest/linktest.pl.in

shash       2004/01/16 18:55:51 MST

  Modified files:
    event/nsetrafgen     nse.patch 
  Log:
  Before this commit, a simulator packet that crosses pnodes was being
  decapsulated if it was determinted that the packet was destined to some
  sim node on the same pnode. This was done at the entry point of the
  packet from the live network. However, in the case of disconnected
  partitions, the packet may have to exit the pnode one or more times
  before reaching the final destination. In this case, the decapsulation
  of it early is a waste. This commit remedies that by performing the
  decapsulation in the port classifier of a node just before the packet
  is given to a traffic agent that will consume the packet.
  
  Revision  Changes    Path
  1.19      +175 -127  testbed/event/nsetrafgen/nse.patch

newbold     2004/01/15 17:21:33 MST

  Modified files:
    db                   libdb.pm.in 
    event/stated         stated.in 
    sql                  database-fill.sql 
  Log:
  libdb changes:
  
  - add functions to recursively dump hashes and arrays into a string
    suitable for printing as debugging output (great for data structures)
  
  - add three new trigger strings
  
  - add 'use strict', do corresponding cleanup
  
  stated changes:
  
  - move special-cased stuff in handleEvent for PXEBOOTING and BOOTING into
    triggers (PXEBOOTING, BOOTING, and CHECKGENISUP)
  
  - clarify (via comments) the existing kinds of triggers and which ones run
    when, and add a new kind (global "any-mode" triggers). We already had
    per-node mode-specific, per-node any-mode, and global mode-specific
    triggers. Now you can have a trigger that is good for any mode in a
    given state, that can be overridden on a mode-specific basis. This is
    great for PXEBOOTING, BOOTING, and ISUP, since they each have a trigger
    list that should be run regardless of what mode you're in. Now they only
    require 3 entries instead of 3*N that have to be maintained per mode.
  
       # A note about triggers:
       #
       # "per-node" triggers only affect their specific node in a
       # particular mode/state, and are run first of all. "global"
       # triggers are triggers for a given mode/state that affect all
       # nodes, and are run after any per-node triggers. "Any-mode"
       # triggers are tied to a state, and occur in that state in any
       # mode. The any-mode triggers are over-ridden by global triggers,
       # and if an "Any-mode" trigger for state XYZ exists as well as a
       # global trigger for mode FOOBAR state XYZ, then when I arrive in
       # XYZ any per-node triggers will be run. Then, if I'm in mode
       # FOOBAR, only the global trigger will run. If I'm in any other
       # mode, only the any-mode trigger will run.
  
       # (our "*" is stored as $TBANYMODE)
       # Per-node triggers have a specific node_id
       # Global triggers have "*" as the node_id
       # Any-mode triggers have "*" as the mode, and can be global or per-node
  
    The updated table looks like this in the accompanying change to
    database-fill.sql:
  
  +---------+----------+------------+-----------------------+
  | node_id | op_mode  | state      | trigger               |
  +---------+----------+------------+-----------------------+
  | *       | *        | BOOTING    | BOOTING, CHECKGENISUP |
  | *       | *        | ISUP       | RESET                 |
  | *       | *        | PXEBOOTING | PXEBOOT               |
  | *       | RELOAD   | RELOADDONE | RESET, RELOADDONE     |
  | *       | ALWAYSUP | SHUTDOWN   | ISUP                  |
  +---------+----------+------------+-----------------------+
  
  - I also cleaned up the functions that add, get, and delete triggers.
    Before, the get function didn't include global triggers. Now it does,
    and has an option to just get the per-node triggers. Add and delete are
    still just per-node, of course.
  
  - Also found and fixed some little bugs while I was in there. (global
    triggers not taking a list,
  
  These changes are me getting ready to re-add all the changes I made months
  ago in order to do a before-and-after experiment for my thesis. Between
  now and the end of next week I'll be working on taking before numbers,
  patching stated with the changes, and getting after numbers.
  
  The problems I'm trying to replicate are the problems and slowdowns we
  used to get when os_{load,setup} would reboot a node, thinking it had
  timed out, when it really didn't know whether it was making progress or
  not. The fix includes making os_{load,setup} depend on stated to watch for
  progress and timeouts, and do any appropriate retries. Part of that is the
  StateWait stuff, that lets programs watch for events easily, and the
  node_reboot-with-events stuff that puts stated in control of nodes as they
  reboot.
  
  Revision  Changes    Path
  1.148     +250 -182  testbed/db/libdb.pm.in
  1.57      +216 -138  testbed/event/stated/stated.in
  1.53      +5 -8      testbed/sql/database-fill.sql

shash       2004/01/15 14:53:48 MST

  Modified files:
    event/nsetrafgen     nse.patch 
  Log:
  One more bugfix. sendpkt() was being called with a wrong length even though
  the RAW_IP packet being sent had a different ip_len. This happened in the
  case of a nse topology that is disconnected due to how assign maps it. The
  encapsulated simulator packet was decapsulated even though it has to leave
  the physical node again. Under this circumstance, the decapsulated simulator
  packet size was used for RAW_IP send() instead of the size of the encapsulated
  packet.
  
  Revision  Changes    Path
  1.18      +8 -7      testbed/event/nsetrafgen/nse.patch

stoller     2004/01/15 14:45:45 MST

  Modified files:
    www                  beginexp_html.php3 beginexp_xml.php3 
  Log:
  Change beginexp_html.php3 to invoke xml backend with a POST instead of
  GET to avoid GET size limitations. This should have been easy, but PHP
  has no native support for doing this, so takes a bit of mucking around
  with a direct socket connection to the server, and sending it the
  right headers, blah, blah, blah.
  
  Will make this live soon!
  
  Revision  Changes    Path
  1.3       +50 -14    testbed/www/beginexp_html.php3
  1.3       +2 -2      testbed/www/beginexp_xml.php3
Leigh Stoller's avatar
Leigh Stoller committed
1824 1825 1826

stoller     2004/01/15 09:18:41 MST
	
Leigh Stoller's avatar
Leigh Stoller committed
1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849
  Modified files:
    tbsetup              GNUmakefile.in frisbeelauncher.in 
    .                    configure configure.in 
    utils                create_image.in 
    www                  deleteimageid.php3 showstuff.php3 
  Added files:
    tbsetup              webfrisbeekiller.in 
  Log:
  Add "killmode" to frisbeelauncher to kill a running frisbee for an
  imageid.  Uses new slot in the images table (frisbee_pid) to track
  running frisbee daemon for an image so that it can be killed from
  create-image (kill before creating new image) and from the web page
  before deleting an imageid.
  
  Revision  Changes    Path
  1.100     +2 -2      testbed/tbsetup/GNUmakefile.in
  1.15      +164 -40   testbed/tbsetup/frisbeelauncher.in
  1.197     +1 -1      testbed/configure
  1.204     +1 -1      testbed/configure.in
  1.22      +11 -0     testbed/utils/create_image.in
  1.7       +7 -1      testbed/www/deleteimageid.php3
  1.125     +19 -0     testbed/www/showstuff.php3

1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066
newbold     2004/01/15 10:15:50 MST

  Modified files:
    db                   stategraph.in 
  Log:
  Minor update - nocluster option to print as one big machine.
  
  Revision  Changes    Path
  1.7       +12 -5     testbed/db/stategraph.in

davidand    2004/01/14 19:45:09 MST

  Modified files:
    event/linktest       GNUmakefile.in linktest.c linktest.pl.in 
  Added files:
    event/linktest       run_linktest.pl.in 
  Log:
  Updates to Linktest for a caller script, run_linktest.pl.
  This includes an updated client-install.
  
  However, this is not yet ready for builds due to certain libraries not
  present on the nodes and ops. For those I will be writing a static
  linked c program to handle the linktest "done" event in both linktest.pl
  and run_linktest.pl.
  
  Revision  Changes    Path
  1.5       +4 -1      testbed/event/linktest/GNUmakefile.in
  1.6       +11 -5     testbed/event/linktest/linktest.c
  1.9       +120 -78   testbed/event/linktest/linktest.pl.in

mike        2004/01/14 17:13:02 MST

  Modified files:
    os/frisbee.redux     network.c 
  Log:
  Exit if we fail to bind to the target multicast port!
  
  Revision  Changes    Path
  1.9       +4 -2      testbed/os/frisbee.redux/network.c

mike        2004/01/14 14:07:56 MST

  Modified files:
    www/tutorial         nscommands.html 
  Log:
  Document the various linkdelay related commands and tb-set-noshaping
  
  Revision  Changes    Path
  1.41      +132 -1    testbed/www/tutorial/nscommands.html

ricci       2004/01/14 12:58:40 MST

  Modified files:
    assign               anneal.cc score.cc 
  Log:
  Fix a bug that was causing problem when multiplexed nodes were being
  combined with non-multiplexed nodes.
  
  Also clear up the sense of the 'is_fixed' parameter to add_node() -
  it was being handled correctly, but was confusing because it was non-
  intuitive.
  
  Revision  Changes    Path
  1.25      +6 -6      testbed/assign/anneal.cc
  1.48      +6 -7      testbed/assign/score.cc

stoller     2004/01/14 12:12:35 MST

  Modified files:
    tmcd/common          rc.setup 
  Log:
  Add call to rc.kname to rename the kernel, if appropriate. Currently
  used on FreeBSD nodes when the boot loader boots something other then
  the default kernel.
  
  Revision  Changes    Path
  1.13      +6 -1      testbed/tmcd/common/rc.setup

stoller     2004/01/14 11:50:51 MST

  Modified files:
    www                  dbdefs.php3.in showexp.php3 
                         showstuff.php3 
  Log:
  Minor sorting changes for Mike.
  
  Revision  Changes    Path
  1.74      +1 -0      testbed/www/dbdefs.php3.in
  1.76      +8 -2      testbed/www/showexp.php3
  1.124     +57 -53    testbed/www/showstuff.php3

ricci       2004/01/12 15:41:07 MST

  Modified files:
    assign               anneal.cc anneal.h assign.cc physical.h 
                         score.cc solution.cc solution.h 
  Log:
  Several changes, mostly targeted at jail and simulation-type
  topologies.
  
  First, added a new 'summary' of the solution, when the '-u' option is
  given. It's a view of things from the physical side - prints out how
  many vnodes were mapped to each pnode, as well as how much bandwidth
  (trivial and non-trivial) was used on each node. For 'normal' nodes,
  we also print out all links used and how much bandwidth was used on
  each of them. For switches, we print only inter-switch links. This is
  amazingly helpful in getting an intuitive feel for how well assign is
  doing.
  
  Added a SIGINFO handler for the impatient (like me) to see things such
  as the current temperature, and current and best scores, while assign
  is running.
  
  Fixed a bug in which emulated links could get over-subscribed, as well
  as a few other misc. bugfixes.
  
  Changed the way assign goes through the list of a node's pclasses in
  random order - there were problems with the old way in which you could
  end up with a situation in which some pnodes were chosen with a much
  higher probability than others. Now, rather than treating the list as
  a ring and starting at a random place, we make a randomly-ordered list
  of the pclasseses, and go through it from start to finish.
  
  Did some work on dynamic pclasses so that we adjust the estimate of
  the neighborhood size to account for disabled pclasses (ie. pnodes
  that have nothing mapped to them yet.)
  
  Changed the way that find_link_to_switch() decides on the best link to
  use - the old method was doing very poorly at bin-packing emulated
  links into plinks. I now use a simple first-fit algorithm. This made a
  pretty big difference. I may try some other fast bin-packing
  approximation algorithm, but my main fear is that all of the good ones
  (such as the 'sort from largest to smallest, then do first-fit'
  algorithm) may require re-mapping other links. This might be slow,
  and/or it might make it difficult, if not impossible, to keep
  add_node() and remove_node() symmetric.
  
  Combinded direct_link() and find_link_to_switch() into
  find_best_link(), since they really do the same thing.
  
  Standardized on std::random() to get random numbers - previosuly, some
  calls were using std::rand().
  
  The big one: I added a find_pnode_connected() function that finds a
  random pnode that one of the vnode's neighbors in the virtual graph is
  assigned to. Then, with a random probability (given with the -c option
  on the command line), we try that function to find a pnode first (if
  it fails, we still call find_pnode() ). Of course, this is only really
  applicable when you have a reasonable degree of vnode-to-pnode
  multiplexing. In the test case I'm using, this managed to get 3x as
  much bandwidth into trivial links as just using find_pnode().
  
  Revision  Changes    Path
  1.24      +81 -11    testbed/assign/anneal.cc
  1.7       +1 -1      testbed/assign/anneal.h
  1.69      +40 -4     testbed/assign/assign.cc
  1.22      +4 -2      testbed/assign/physical.h
  1.47      +59 -71    testbed/assign/score.cc
  1.4       +68 -0     testbed/assign/solution.cc
  1.3       +4 -0      testbed/assign/solution.h

stoller     2004/01/12 13:44:39 MST

  Modified files:
    .                    configure configure.in 
    pxe                  GNUmakefile.in bootinfo.c bootwhat.h 
  Removed files:
    pxe                  proxydhcp.c proxydhcp.conf 
                         proxydhcp.restart.in proxydhcp_cdir.c 
                         proxydhcp_cfile.c proxydhcp_mysql.c 
  Log:
  Remove all trace of proxydhcp!
  
  Revision  Changes    Path
  1.196     +1 -1      testbed/configure
  1.203     +1 -1      testbed/configure.in
  1.14      +3 -24     testbed/pxe/GNUmakefile.in
  1.10      +3 -0      testbed/pxe/bootinfo.c
  1.6       +1 -1      testbed/pxe/bootwhat.h

mike        2004/01/12 10:20:38 MST

  Modified files:
    doc                  vnode-impl.txt 
  Log:
  Incorporate description of jail changes from Leigh's jail.html file.
  Fix a few nits.
  
  Revision  Changes    Path
  1.4       +137 -41   testbed/doc/vnode-impl.txt

mike        2004/01/12 10:23:00 MST

  Modified files:
    www/doc              jail.html 
  Log:
  I set out to make this the definitive document on vnodes, but aborted that.
  Basically, I just updated it and changed it from a chronology to a summary
  (i.e., collected all the jail features into one list).
  
  Revision  Changes    Path
  1.4       +119 -103  testbed/www/doc/jail.html

stoller     2004/01/12 09:58:11 MST

  Modified files:
    event/stated         stated.in 
  Log:
  Hmm, this file dropped from previous commit. Added support for
  handling PXEWAKUP timeouts, retrying 3 times and then forcing a power
  cycle.  Changed BOOTING event action to auto switch in and out of the
  special PXEKERNEL state machine that all local nodes use since all
  local nodes boot the same pxeboot kernel and talk to bootinfo (as
  directed to by dhcp).
  
  Revision  Changes    Path
  1.56      +158 -114  testbed/event/stated/stated.in
Leigh Stoller's avatar
Leigh Stoller committed
2067

2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180
stoller     2004/01/12 09:18:41 MST

  Modified files:
    pxe                  GNUmakefile.in bootinfo.c 
                         bootinfo_cfile.c bootinfo_mysql.c 
                         bootinfo_null.c bootwhat.h 
    sql                  database-fill-supplemental.sql 
    tbsetup              node_control.in node_reboot.in os_load.in 
                         os_select.in 
    utils                create_image.in newnode.in node_admin.in 
    www                  nodecontrol.php3 nodecontrol_form.php3 
                         showstuff.php3 
  Added files:
    pxe                  bootinfo.h bootinfosend.c event-support.c 
  Log:
  Death to proxydhcp; one less specialized daemon. DHCP will return the
  filename to boot, and all local nodes will boot the same pxeboot kernel,
  which has been extended to allow for jumping directly into a specific MFS
  (in addition to the usual testbed boot into a partition or multiboot
  kernel).
  
  Bootinfo and the bootwhat protocol extended to tell the client node what
  MFS to jump into directly, without a reboot. pxe_boot_path and
  next_pxe_boot_path are now deprecated, with bootinfo used to control which
  MFS to boot. Nodes now boot a single pxeboot kernel, and bootinfo tells
  them what to do next.
  
  Bootinfo greatly simplifed. temp_boot_osid has been added to allow for
  temporary booting of different kernels (such as with ndoe_admin or
  create_image). Unlike next_boot_osid which is a one-shot boot,
  temp_boot_osid causes the node to boot that OS until told not too.
  
  next_boot_path and def_boot_path in the nodes table are now ignored.
  Bootinfo gets path info strictly from the os_info table entry for the osid
  given in one of def_boot_osid, temp_boot_osid, or next_boot_osid.  This
  makes the selection of what to do in bootinfo a lot simpler (and for
  TBBootWhat in libdb). The os_info table also modified to include an MFS
  flag so that bootinfo knows to tell the client that the path refers to an
  MFS and not a multiboot kernel.
  
  Change to boot sequence; free nodes no longer boot into the default OSID.
  Instead, they are told to wait in pxeboot until told what to do, which
  will typically be when the node is allocated and a specific OSID
  picked. If the node needs to be reloaded, then the node is told to jump
  directly into the Frisbee MFS, which saves one complete reboot cycle
  whether the node has the requested OS installed, or not.  New program
  added called "bootinfosend" that is used by node_reboot to "wake up" up
  nodes sitting in pxewait mode, so that they query bootinfo again and boot.
  
  node_reboot changed to look at the event state of a node, and use
  bootinfosend to wake up nodes, rather then power cycle, since pxeboot does
  not repsond to pings. Retry (if the UDP packet is lost) is handled by
  stated.
  
  Event support added to bootinfo, to replace the event generation that was
  in proxydhcp. I have not included the caching that Mac had in proxydhcp
  since it does not appear that bootinfo packets are lost very
  often. Cleaned up all of the event and DB queury code to use lib/libtb for
  DB access, and moved all of the event code into a separate file.  The
  event sequence when a node boots now looks like this:
  
  	'SHUTDOWN'    --> 'PXEBOOTING'  (BootInfo)
  	'PXEBOOTING', --> 'PXEBOOTING'  (BootInfo Retry)
  	'PXEBOOTING', --> 'BOOTING'     (Node Not Free)
  	'PXEBOOTING', --> 'PXEWAIT'     (Node is Free)
  	'PXEWAIT',    --> 'PXEWAKEUP'   (Node Allocated)
  	'PXEWAKEUP',  --> 'PXEWAKEUP'   (Bootinfo Retry)
  	'PXEWAKEUP',  --> 'PXEBOOTING'  (Node Woke Up)
  
  Change stated to support resending PXEWAKEUP events when node times out.
  After 3 tries, node is power cycled. Other minor cleanup in stated.
  
  Clean up and simplify os_select, while adding support for temp_next_boot
  and removing all trace of def_boot_path and next_boot_path processing.
  Remove all pxe_boot_path and next_pxe_boot_path processing.  Changed
  command line interface to support "clearing" fields. For example,
  node_admin changed to call os_select like this to have the node
  temporarily boot the FreeBSD MFS:
  
  	os_select -t FREEBSD-MFS pcXXX
  
  which sets temp_boot_osid. To turn admin mode off:
  
  	os_select -c -t pcXXX
  
  which says to clear temp_boot_osid.
  
  sql/database-fill-supplemental.sql modifed to add os_info table
  entries for the FreeBSD, Frisbee, and newnode MFS's.
  
  Be sure to change dhcpd config, restart dhcp, kill proxydhcp, restart
  bootinfo,
  
  Revision  Changes    Path
  1.13      +29 -10    testbed/pxe/GNUmakefile.in
  1.9       +131 -37   testbed/pxe/bootinfo.c
  1.6       +9 -18     testbed/pxe/bootinfo_cfile.c
  1.18      +219 -151  testbed/pxe/bootinfo_mysql.c
  1.5       +7 -4      testbed/pxe/bootinfo_null.c
  1.4       +43 -10    testbed/pxe/bootwhat.h
  1.2       +3 -3      testbed/sql/database-fill-supplemental.sql
  1.10      +28 -27    testbed/tbsetup/node_control.in
  1.45      +55 -5     testbed/tbsetup/node_reboot.in
  1.57      +3 -3      testbed/tbsetup/os_load.in
  1.16      +186 -200  testbed/tbsetup/os_select.in
  1.20      +5 -4      testbed/utils/create_image.in
  1.10      +2 -2      testbed/utils/newnode.in
  1.6       +6 -13     testbed/utils/node_admin.in
  1.19      +31 -19    testbed/www/nodecontrol.php3
  1.25      +44 -21    testbed/www/nodecontrol_form.php3
  1.123     +13 -16    testbed/www/showstuff.php3
  1.56      +158 -114  testbed/event/stated/stated.in

2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394
shash       2004/01/12 02:17:12 MST

  Modified files:
    event/nsetrafgen     nse.patch 
  Log:
  Another bug fix. The newly added $ns ip-connect instproc had a bug. The
  code originally tried to do a normal $ns connect between traffic agents
  attached to simnodes on the same pnode. The problem that I forgot of course
  is that partitioned topology is quite disconnected which means that a
  packet is forced to exit the pnode and come back to it (in many cases).
  In other words, a direct intra pnode path does not exist. The fix is
  to just use the IP address based routes always. A similar problem
  is encountered in pdns as well. However, since IP address based routing
  is not used, there is no simple fix unless I work on it!
  
  The 416 node topology testbed/nse416 is working alright. It mapped to
  20 pnodes and as soon as a whole bunch of traffic started up, 7 pnodes
  couldn't track real-time and caused a modify. Expt modify happened 3
  times but eventually max_retries in my re-swapping code was reached. Need
  more measuring, tuning as well as eventrate based re-swapping.
  
  Revision  Changes    Path
  1.17      +13 -23    testbed/event/nsetrafgen/nse.patch

shash       2004/01/09 00:23:39 MST

  Modified files:
    event/nsetrafgen     nseinput.tcl.in tbevent.cc tbevent.h 
    event/sched          event-sched.c 
    tbsetup              assign_wrapper.in nseswap.in ptopgen.in 
                         tbswap.in 
    tbsetup/ns2ir        sim.tcl.in 
    tbsetup/nseparse     nse.parse.tcl.in 
  Log:
  Changes to do auto re-swap of expts with simnodes when an nse on a simhost
  (or more than one simhost) is unable to keep up with real-time. It includes
  changes to assign_wrapper to handle swap modify for simnodes, the simple
  algorithm in nseswap that bumps up the nodeweight of simnodes being hosted
  on a simhost that reports "can't keep up with real-time" (aka nse violation),
  ptopgen and sim.tcl to prefer nodes that already have the FBSD-NSE image.
  Also, changes to other files to send out NSESWAP event.
  
  One unrelated change: We now have per-swapin .top files and assign.log
  files along with .ptop files. This helps in debugging across multiple
  swapins since files remain in the form of
  <pid>-<eid>-<process_id>.{top,ptop} and assign-<pid>-<eid>-<process_id>.log
  Also useful for archiving.
  
  Revision  Changes    Path
  1.19      +4 -1      testbed/event/nsetrafgen/nseinput.tcl.in
  1.5       +39 -19    testbed/event/nsetrafgen/tbevent.cc
  1.4       +3 -0      testbed/event/nsetrafgen/tbevent.h
  1.28      +4 -1      testbed/event/sched/event-sched.c
  1.149     +112 -21   testbed/tbsetup/assign_wrapper.in
  1.2       +168 -4    testbed/tbsetup/nseswap.in
  1.52      +15 -3     testbed/tbsetup/ptopgen.in
  1.32      +8 -5      testbed/tbsetup/tbswap.in
  1.60      +4 -0      testbed/tbsetup/ns2ir/sim.tcl.in
  1.2       +3 -1      testbed/tbsetup/nseparse/nse.parse.tcl.in

shash       2004/01/08 16:30:24 MST

  Modified files:
    tbsetup              swapexp.in tbswap.in 
  Log:
  Added -e option to swapexp which says "restart event system". Similarly
  added -eventsys_restart option to tbswap. These options are allowed
  only with swapexp -s modify and correspondingly for tbswap with update.
  Tested with a 1 node experiment and things seem to work fine.
  
  Revision  Changes    Path
  1.50      +12 -2     testbed/tbsetup/swapexp.in
  1.31      +7 -3      testbed/tbsetup/tbswap.in

shash       2004/01/08 12:31:54 MST

  Added files:
    www                  ssh-mime.c 
  Log:
  Since I could never get ssh-mime-windows.pl to work for me and I got tired
  of typing to log in to nodes, I wrote the same code in C.
  Compile on cygwin with gcc -mwindows -mno-cygwin -o ssh-mime ssh-mime.c .
  Set the env PUTTY_CMD to the path of where you have put putty. The compiled
  exe is in http://www.emulab.net/ssh-mime.exe

stoller     2004/01/07 13:27:12 MST

  Modified files:
    event/stated         stated.in 
  Log:
  A set of debugging changes to allow running multiple stateds. This is
  probably imperfect, but better then nothing. New option, "-t tag"
  allows you to specify an arbitrary tag to match against the stated_tag
  of the nodes table. The stated invocation will only operate on nodes
  that match the tag, ignoring all events for other nodes. If
  unspecified, stated will operate on all nodes with a NULL tag. This is
  setup up at the beginning of time (or during a reload) saving the
  per-node tag in the $nodes hash. Each time an event arrives, check the
  tag in the table, ignoring the event if not a match.
  
  On signaled reload() must also be careful to throw away timeouts from
  the queue (and be careful not to set up new timeouts for ignored
  nodes).  So, this allows you to set the tag for a node in the DB, and
  then HUP stated so that it reloads it tables. That node will now be
  ignored by that stated.
  
  Also made some changes to debug mode. In debug mode, don't worry about
  the pidfile or the lockfile or checking for other running stated
  (which causes my debug version to exit! right away). Also, added a new
  -l option to turn of syslog output and just send it all to stdout with
  the debug output. -l can be only be used with -d of course.
  
  So what can I do with all this:
  
  	update nodes set stated_tag='lbs' where node_id='pc5';
  	sudo kill -HUP `cat /var/run/stated.pid`
  	sudo stated -d -l -t lbs
  
  Which tells the main stated to ignore pc5. Then I run a debugging
  stated that operates only on pc5. Later when done:
  
  	update nodes set stated_tag=NULL where node_id='pc5';
  	sudo kill -HUP `cat /var/run/stated.pid`
  
  Which tells the main stated to operate on pc5 again.
  
  Revision  Changes    Path
  1.55      +131 -44   testbed/event/stated/stated.in

shash       2004/01/07 02:17:03 MST

  Modified files:
    event/nsetrafgen     nse.patch 
  Log:
  Yet another bugfix + code to call a function that sends NSESWAP event
  when it cannot keep up with real-time.
  
  bug: This affected encapsulated simulator packets that had to cross
  multiple physical nodes before arriving at the destination simulator
  traffic agent. This bug didnt affect live packets from traffic sources
  on real PCs.
  
  The NSESWAP event is now sent via the tevc command. The nse scheduler
  waits for the slop factor (diff between clock and event dispatch time
  that exceeds a threshold) to be crossed multiple times in a second
  before sending the NSESWAP event. Currently 5 times in 1 second.
  However, this needs more careful thought and will get modified later.
  When is it really necessary to declare that an nse is overloaded?
  i.e. what is the right slop factor? How many times can we tolerate
  that the slop factor is exceeded to ensure end-to-end performance
  is within a certain percentage of the expected?
  
  Revision  Changes    Path
  1.16      +58 -23    testbed/event/nsetrafgen/nse.patch

ricci       2004/01/06 18:24:23 MST

  Modified files:
    tbsetup              assign_wrapper.in 
    assign               anneal.cc pclass.cc pclass.h score.cc 
  Log:
  Fix dynamic pclasses, and make them the default for virtual nodes
  again.
  
  One of the fixes changes the way in which we iterate through pclasses
  in find_pnode(). We used to treat the vector like a ring buffer, and
  start (randomly) someplace in the middle. This turns out to give some
  bad statistical properties when doing dynamic pclasses, since long
  chains of disabled pclasses will cause some pclasses to be selected
  more often. My old hack of just hopping around randomly in the
  disabled-pclass case was bad, because it's hard to tell when you've
  actually tried all the pclasses - so, we were getting false negatives
  where it was looking like there was no place available where we could
  map a vnode, which turned out to have worse effects than I had
  thought.
  
  So, now, we make a list of all the indices and randomize the order,
  then just iterate through that list.
  
  We also now count the number of pclasses that are enabled at every
  temperature step, and adjust the neighborhood size to remove them.
  This makes dynamic pclasses quite a bit faster - it cuts the time
  by 30% - 50% for my test case.
  
  Cleaned up find_pnode() by removing some #ifdef's that we don't use,
  and probably will never want to again - this makes the function almost
  readable!
  
  Revision  Changes    Path
  1.148     +1 -1      testbed/tbsetup/assign_wrapper.in
  1.23      +36 -89    testbed/assign/anneal.cc
  1.22      +13 -0     testbed/assign/pclass.cc
  1.15      +2 -0      testbed/assign/pclass.h
  1.46      +1 -1      testbed/assign/score.cc

shash       2004/01/06 00:46:08 MST

  Modified files:
    event/nsetrafgen     nseinput.tcl.in 
  Log:
  Fixed a simple but showstopper bug. This script would flush the routes
  in every routing table except the main before inserting new ones
  obtained from tmcc. The problem was that even the interface routes
  that were added when the interfaces were brought up are flushed.
  Unfortunately these routes weren't getting added again.
  
  The solution is to toggle the interfaces i.e. disabling and re-enabling
  them again. It has the desired effect of flushing all the routes as well.
  I'm not sure how things worked until now. In all my previous mappings
  of the testbed/nse10 straight-line topology, things mysteriously worked!
  
  Revision  Changes    Path
  1.18      +5 -6      testbed/event/nsetrafgen/nseinput.tcl.in

Leigh Stoller's avatar
Leigh Stoller committed
2395 2396
stoller     2003/12/18 9:30:36 MST
	    
Leigh Stoller's avatar
Leigh Stoller committed
2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495
  Modified files:
    db                   libdb.pm.in xmlconvert.in 
    www                  dbdefs.php3.in joinproject.php3 
                         moduserinfo.php3 newproject.php3 
  Added files:
    www                  dbcheck.php3 
  Log:
  First try at solving the problem of validating user input for the
  zillions of DB fields that we have to set. My solution was to add a
  meta table that describes what is a legal value for each table/slot
  for which we take from user input. The table looks like this right
  now, but is likely to adapt as we get more experience with this
  approach (or it might get tossed if it turns out to be a pain in the
  ass!).
  
  	CREATE TABLE table_regex (
  	  table_name varchar(64) NOT NULL default '',
  	  column_name varchar(64) NOT NULL default '',
  	  column_type enum('text','int','float') default NULL,
  	  check_type enum('regex','function','redirect') default NULL,
  	  check tinytext NOT NULL,
  	  min int(11) NOT NULL default '0',
  	  max int(11) NOT NULL default '0',
  	  comment tinytext,
  	  UNIQUE KEY table_name (table_name,column_name)
  	) TYPE=MyISAM;
  
  Entries in this table look like this:
  
  	('virt_nodes','vname','text','regex','^[-\\w]+$',1,32,NULL);
  
  Which says that the vname slot of the virt_nodes table (which we trust the
  user to give us in some form) is a text field to be checked with the given
  regex (perlre of course), and that the min/max length of the text field is
  1 and 32 chars respectively.
  
  Now, you wouldn't want to write the same regex over and over, and since we
  use the same fields in many tables (like pid, eid, vname, etc) there is an
  option to redirect to another entry (recursively). So, for "PID" I do this:
  
          ('eventlist','pid','text','redirect','projects:pid',0,0,NULL);
  
  which redirects to:
  
  	('projects','pid','text','regex','^[a-zA-Z][-\\w]+$',2,12,NULL);
  
  And, for many fields you just want to describe generically what could go
  into it. For that I have defined some default fields. For example, a user
  description:
  
          ('experiment,'usr_name','text','redirect','default:tinytext',0,0,NULL);
  
  which redirects to:
  
  	('default','tinytext','text','regex','^[\\040-\\176]*$',0,256,NULL);
  
  and this says that a tinytext (in our little corner of the database
  universe) field can have printable characters (but not a newline), and
  since its a tinytext field, its maxlen is 256 chars.
  
  You also have integer fields, but these are little more irksome in the
  details.
  
  	('default','tinyint,'int,'regex','^[\\d]+$',-128,127,NULL);
  
  and you would use this anyplace you do not care about the min/max values
  being something specific in the tinyint range. The range for a float is of
  course stated as an integer, and thats kinda bogus, but we do not have many
  floats, and they generally do not take on specific values anyway.
  
  A note about the min/max fields and redirecting. If the initial entry has
  non-zero min/max fields, those are the min mac fields used. Otherwise they
  come from the default. So for example, you can do this:
  
      ('experiments','mem_usage','int','redirect','default:tinyint',0,5,NULL);
  
  So, you can redirect to the standard "tinyint" regular expression, but you
  still get to define min/max for the specific field.
  
  Isn't this is really neat and really obtuse too? Sure, you can say it.
  
  Anyway, xmlconvert now sends all of its input through these checks (its
  all wrapped up in library calls), and if a slot does not have an entry, it
  throws an error so that we are forced to define entries for new slots as we
  add them.
  
  In the web page, I have changed all of the public pages (login, join
  project, new project, and a couple of others) to also use these checks.
  As with the perl code, its all wrapped up in a library. Lots more code
  needs to be changed of course, but this is a start.
  
  Revision  Changes    Path
  1.143     +151 -1    testbed/db/libdb.pm.in
  1.12      +19 -7     testbed/db/xmlconvert.in
  1.70      +8 -66     testbed/www/dbdefs.php3.in
  1.36      +33 -19    testbed/www/joinproject.php3
  1.37      +36 -5     testbed/www/moduserinfo.php3
  1.83      +48 -27    testbed/www/newproject.php3

Leigh Stoller's avatar
Leigh Stoller committed
2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511
stoller     2003/12/17 11:29:36 MST

  Modified files:
    tmcd                 tmcd.c 
  Log:
  Remove code that required tmcd to run as root, and add the necessary
  code to run as uid/gid nobody/nobody. I had to remove dolog(), which
  was to support the oskit on the dnards, so no one will miss that!
  I also removed the tar/rpm download support since we now do that via
  the web interface. To support sfshostid, I had to chown/chgrp
  /proj/.sfs to the nobody/nobody so that tmcd willbe able to create the
  symlinks in that directory.
  
  Revision  Changes    Path
  1.199     +41 -429   testbed/tmcd/tmcd.c

2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657
stoller     2003/12/15 17:41:14 MST

  Modified files:
    www                  defs.php3.in menu.php3 nscheck.php3 
                         nscheck_form.php3 
  Added files:
    www                  beginexp_form.php3 beginexp_html.php3 
                         beginexp_xml.php3 
  Log:
  Commit functioning XML interface. At present, only isadmin people will
  see this new page. That allows me to inflict pain on testbed
  developers while we work out any kinks. These new pages implement an
  XML interface to experiment creation.
  
  Some new files:
  
  beginexp_html.php3: A wrapper for the actual beginexp form. This page
  includes the form, and then invokes the XMLRPC backend page.
  
  beginexp_form.html: The original form code, split out from beginexp
  and turned into a module that can be included into another file.  It
  is slightly reorganized to make it easier to include as a module.  The
  idea is that the plab_ez form will be recast in this model, reducing
  some redundant complexity.
  
  beginexp_xml.php3: The XML backend. The idea is that the html page
  packages up the form arguments as an XMLRPC message, and invokes this
  page with the XML goo encoded in the URL. It also passes along the
  uid/cookie so that the authentication happens properly (https of
  course). The page decodes the URL into PHP datatypes, and does much of
  the same argument checking that beginexp used to do. Errors are stored
  up in the same manner, but instead of spitting back html, it now spits
  back a "structure", encoded in XML so that the _html page can put up a
  new form. Basically, all output is sent back via an XML encoded
  structure and displayed in a form that the invoking script deems
  appropriate.
  
  This gives us a pure XMLRPC interface, which we wrap with a form interface
  so that it looks just like it did before.
  
  The next step is to provide an alternate front end, but that will require
  some certificate stuff that I have not worked out yet.
  
  Oh, one more item. The syntax check stuff has been altered a bit.
  Instead of invoking the beginexp page, which meant a zillion special
  tests, I now invoke nscheck.php3 directly from the button. Took a few
  extra lines of Javascript to do this, so watch out for problems there
  too.
  
  Revision  Changes    Path
  1.51      +30 -11    testbed/www/defs.php3.in
  1.123     +9 -3      testbed/www/menu.php3
  1.10      +5 -1      testbed/www/nscheck.php3
  1.8       +2 -1      testbed/www/nscheck_form.php3

shash       2003/12/15 19:58:47 MST

  Modified files:
    .                    configure configure.in 
    db                   xmlconvert.in 
    event/nsetrafgen     GNUmakefile.in nse-install nse.patch 
                         nseinput.tcl.in tbevent.cc 
    event/sched          event-sched.c 
    tbsetup              GNUmakefile.in assign_wrapper.in 
                         ptopgen.in 
    tbsetup/ns2ir        sim.tcl.in traffic.tcl 
    tmcd                 decls.h libsetup.pm 
    tmcd/common          libtmcc.pm rc.setup 
  Added files:
    event/nsetrafgen     ns_files_modified.txt 
    tbsetup/nseparse     GNUmakefile.in nse.agent.tcl nse.node.tcl 
                         nse.null.tcl nse.parse.proxy.in 
                         nse.parse.tcl.in nse.sim.tcl parse-nse.in 
  Log:
  Distributed NSE changes. In other words, simulation resources are
  now mapped to more than one PC if required. The simnode_capacity
  column in the node_types table determines how many sim nodes can
  be packed on one PC. The packing factor can also be controlled via
  tb-set-colocate-factor to be smaller than simnode_capacity.
  
  - No frontend code changes. To summarize:
    $ns make-simulated {
      ...
    }
    is still the easy way to put a whole bunch of Tcl code to be
    in simulation.
    One unrelated fix in the frontend code is to fix the
    xmlencode() function which prior to this would knock off
    newlines from columns in the XML output. This affected
    nseconfigs since it is one of the few columns with embedded
    newlines. Also changed the event type and event object type
    in traffic.tcl from TRAFGEN/MODIFY to NSE/NSEEVENT.
  
  - More Tcl code in a new directory tbsetup/nseparse
    -> Runs on ops similar to the main parser. This is invoked
       from assign_wrapper in the end if there are simnodes
    -> Partitions the Tcl code into multiple Tcl specifications
       and updates the nseconfigs table via xmlconvert
    -> Comes with a lot of caveats. Arbitrary Tcl code such as user
       specified objects or procedures will not be re-generated. For
       example, if a user wanted a procedure to be included in Tcl
       code for all partitions, there is no way for code in nseparse
       to do that. Besides that, it needs to be tested more thoroughly.
  
  - xmlconvert has a new option -s. When invoked with this option,
    the experiments table is not allowed to be modified. Also,
    virtual tables are just updated (as opposed to deleting
    all rows in the first invocation before inserting new rows)
  
  - nse.patch has all the IP address related changes committed in
    iversion 1.11 + 2 other changes. 1) MTU discovery support in
    the ICMP agent 2) "$ns rlink" mechanism for sim node to real
    node links
  
  - nseinput.tcl includes several client side changes to add IP
    routes in NSE and the kernel routing table for packets crossing
    pnodes. Also made the parsing of tmcc command output more robust
    to new changes. Other client side changes in libsetup.pm and other
    scripts to run nse, are also in this commit
  
  - Besides the expected changes in assign_wrapper for simulated nodes,
    the interfaces and veth_interfaces tables are updated with
    routing table identifiers (rtabid). The tmcd changes are already
    committed. This field is used only by sim hosts on the client side.
    Of course, they can be used by jails as well if desired.
  
  Revision  Changes    Path
  1.191     +5 -2      testbed/configure
  1.198     +4 -1      testbed/configure.in
  1.11      +36 -21    testbed/db/xmlconvert.in
  1.6       +16 -14    testbed/event/nsetrafgen/GNUmakefile.in
  1.10      +2 -0      testbed/event/nsetrafgen/nse-install
  1.14      +3372 -2308testbed/event/nsetrafgen/nse.patch
  1.16      +206 -137  testbed/event/nsetrafgen/nseinput.tcl.in
  1.4       +7 -5      testbed/event/nsetrafgen/tbevent.cc
  1.27      +3 -1      testbed/event/sched/event-sched.c
  1.97      +9 -1      testbed/tbsetup/GNUmakefile.in
  1.144     +78 -210   testbed/tbsetup/assign_wrapper.in
  1.50      +25 -13    testbed/tbsetup/ptopgen.in
  1.58      +10 -10    testbed/tbsetup/ns2ir/sim.tcl.in
  1.27      +28 -10    testbed/tbsetup/ns2ir/traffic.tcl
  1.21      +1 -1      testbed/tmcd/decls.h
  1.92      +138 -73   testbed/tmcd/libsetup.pm
  1.6       +6 -1      testbed/tmcd/common/libtmcc.pm
  1.11      +5 -0      testbed/tmcd/common/rc.setup

Robert Ricci's avatar
Robert Ricci committed
2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674
ricci       2003/12/02 17:20:12 MST

  Added files:
    www                  plab_ez.php3 plab_ez_footnote1.html
                         plab_ez_footnote2.html
                         plab_ez_footnote3.html
                         plab_ez_footnote4.html
                         plab_ez_footnote5.html
                         plab_ez_footnote6.html
                         plab_ez_footnote7.html
                         plab_ez_footnote8.html
  Log:
  New form: plab_ez.php3 .

  Provides a simple interface to create an NS file, and then an
  experiment, for use on PlanetLab.

2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720
ricci       2003/12/01 13:48:18 MST

  Modified files:
    .                    configure configure.in
    tbsetup              GNUmakefile.in assign_wrapper.in
                         tbswap.in
    tbsetup/ns2ir        tb_compat.tcl.in
  Added files:
    tbsetup              fetchtar.proxy.in tarfiles_setup.in
                         webtarfiles_setup.in
  Log:
  New scripts: tarfiles_setup, fetchtar.proxy, and webtarfiles_setup .

  The idea is to give us hooks for grabbing experimenters' tarballs (and
  RPMs) from locations other than files on ops. Mainly, to remove
  another dependance on users having shells on ops.

  tarfiles_setup supports fetching files from http and ftp URLs right
  now, through wget. It places them into the experiment directory, so
  that they'll go away when the experiment is terminated, and the rest
  of the chain (ie. downloading to clients and os_setup's checks)
  remains unchaged.  It is now tarfiles_setup's job to copy tarballs and
  RPMs from the virt_nodes table to the nodes table for allocated nodes.
  This way, it can translate URLs into the local filenames it
  constructs. It get invoked from tbswap.

  Does the actual fetching over on ops, running as the user, with
  fetchtar.proxy.

  Should be idempotent, so we should be able to give the user a button
  to run webtarfiles_setup (none exists yet) yet to 'freshen' their
  tarballs. (We'd also have to somehow let the experiment's nodes know
  they need to re-fetch their tarballs.)

ricci       2003/11/20 18:37:34 MST

  Added files:
    utils/nsgen          lan.xml nsgen planetlab.xml
  Log:
  New script: nsgen - Generates an NS file from some supplied values
  and a template. The idea is that it's a general tool for generating
  NS files for standard topologies (ie. LANs), filling in some
  user-supplied values. Has some features that are useful for NS files,
  like default values and skipping or commenting out sections if values
  for variables are not given.

2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834
stoller     2003/11/17 17:30:37 MST

  Modified files:
    db                   libdb.pm.in 
    sql                  database-fill.sql 
    tbsetup              assign_wrapper.in batch_daemon.in 
                         batchexp.in endexp.in eventsys_control.in 
                         mkexpdir.in node_update.in os_setup.in 
                         startexp.in swapexp.in tbend.in 
                         tbprerun.in tbreport.in tbswap.in 
                         vnode_setup.in 
    utils                delay_config.in 
    www                  beginexp.php3 dbdefs.php3.in 
                         delaycontrol.php3 editexp.php3 
                         modifyexp.php3 showexp.php3 
                         showexp_list.php3 showstuff.php3 
                         swapexp.php3 
  Log:
  Merge the two state machines (batchstate and state) into a single
  state machine (state). All of the stuff that was previously handled by
  using batchstate is now embedded into the one state machine. Of
  course, these mostly overlapped, so its not that much of a change,
  except that we also redid the machine, adding more states (for
  example, modify phases are now explicit. To get a picture of the
  actual state machine, on boss:
  
  		stategraph -o newstates EXPTSTATE
  		gv newstates.ps
  
  Things to note:
  
  * The "batchstate" slot of the experiments table is now used solely to
    provide a lock for batch daemon. A secondary change will be to
    change the slot name to something more appropriate, but it can
    happen anytime after this new stuff is installed.
  
  * I have left expt_locked for now, but another later change will be to remove
    expt_locked, and change it to active_busy or some such new state name in
    the state machine. I have removed most uses of expt_locked, except those
    that were necessary until there is a new state to replace it.
  
  * These new changes are an implementation of the new state machine,
    but I have not done anything fancy. Most of the code is the same as
    it was before.
  
  * I suspect that there are races with the batch daemon now, but they
    are going to be rare, and the end result is probably that a
    cancelation is delayed a little bit.
  
  Revision  Changes    Path
  1.138     +30 -77    testbed/db/libdb.pm.in
  1.35      +26 -31    testbed/sql/database-fill.sql
  1.138     +5 -5      testbed/tbsetup/assign_wrapper.in
  1.41      +76 -95    testbed/tbsetup/batch_daemon.in
  1.41      +19 -41    testbed/tbsetup/batchexp.in
  1.29      +101 -57   testbed/tbsetup/endexp.in
  1.12      +1 -0      testbed/tbsetup/eventsys_control.in
  2.5       +8 -7      testbed/tbsetup/mkexpdir.in
  1.13      +4 -22     testbed/tbsetup/node_update.in
  1.86      +2 -0      testbed/tbsetup/os_setup.in
  1.59      +45 -39    testbed/tbsetup/startexp.in
  1.45      +220 -182  testbed/tbsetup/swapexp.in
  1.34      +6 -23     testbed/tbsetup/tbend.in
  1.42      +21 -40    testbed/tbsetup/tbprerun.in
  1.46      +5 -11     testbed/tbsetup/tbreport.in
  1.28      +93 -226   testbed/tbsetup/tbswap.in
  1.35      +2 -1      testbed/tbsetup/vnode_setup.in
  1.12      +6 -11     testbed/utils/delay_config.in
  1.41      +6 -1      testbed/www/beginexp.php3
  1.65      +1 -28     testbed/www/dbdefs.php3.in
  1.7       +7 -7      testbed/www/delaycontrol.php3
  1.5       +4 -4      testbed/www/editexp.php3
  1.11      +7 -1      testbed/www/modifyexp.php3
  1.75      +14 -15    testbed/www/showexp.php3
  1.80      +2 -2      testbed/www/showexp_list.php3
  1.121     +51 -63    testbed/www/showstuff.php3
  1.21      +3 -3      testbed/www/swapexp.php3

stoller     2003/11/17 15:35:33 MST

  Modified files:
    www                  tbauth.php3 toggle.php 
  Log:
  Add web login attack detection/prevention. Two changes:
  
  * Add slots to users table to track number of failures in the last N
    seconds. If a threshold is passed (currently 4 failures in the last
    minute), the web login is disabled. Note that I do not disable the
    ops shell login at this time. Aging is passive; the values are cleared
    when login is successful, or when more then one minute has passed
    since the last failure. In other words, a burst of failures will
    disable the login, but failures over time are okay.
  
  * Add login_failures table to do exactly the same as above, except it
    is on an IP basis (REMOTE_ADDR in the server). Currently the
    threshold is 8 failures in the last two minutes, at which time all
    logins from that IP are disabled.
  
  In both cases email is sent to tbops (and the user).
  
  The constants are defined at the top of www/tbauth.in, rather then as
  site variables, to avoid pounding the DB when an attack is being
  launched.
  
  To clear a user freeze, go to the user profile page and use the
  "toggle" near the bottom.
  
  To clear an IP freeze: delete from login_failures were IP='1.1.1.1'
  
  Revision  Changes    Path
  1.40      +144 -17   testbed/www/tbauth.php3
  1.13      +18 -3     testbed/www/toggle.php

	
2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989
stoller     2003/11/05 10:53:00 MST

  Modified files:
    db                   libdb.pm.in xmlconvert.in 
    tbsetup              batchexp.in eventsys_control.in 
    tbsetup/ns2ir        program.tcl sim.tcl.in 
  Log:
  Frontend and parser portion of two event system changes:
  
  * Generate a shared secret key for the event system. This key is
    stored into the DB, and passed to the node via tmcd. It is also
    stashed into a file in the experiment directory (can be accessed
    only by the project/group members). The key is used to attach a
    HMAC (hashed message authentication) to each event, which is checked
    by the receivers to ensure that the event is not bogus. More details
    on this later when I commit the event library/client changes.
  
  * Added "virt_programs" table to store info about each program object
    defined by the user. The intent is to no longer send the command
    string in the event, but to fix it in the DB, and transfer it via
    tmcd. This removes our "remote execution facility" which was always
    a bad idea (we have ssh for that, and that is a lot more secure then
    the event system!).
  
    Note that for the time being we need to continue send the command in
    the event because of old images, but the new images will now ignore
    that part of the event.
  
  Revision  Changes    Path
  1.137     +5 -1      testbed/db/libdb.pm.in
  1.8       +1 -0      testbed/db/xmlconvert.in
  1.40      +19 -6     testbed/tbsetup/batchexp.in
  1.11      +11 -13    testbed/tbsetup/eventsys_control.in
  1.7       +3 -0      testbed/tbsetup/ns2ir/program.tcl
  1.54      +2 -0      testbed/tbsetup/ns2ir/sim.tcl.in


stoller     2003/11/05 11:37:44 MST

  Modified files:
    event                GNUmakefile.in 
    event/delay-agent    GNUmakefile.in main.c 
    event/example        GNUmakefile.in tbrecv.c tbsend.c 
    event/lib            GNUmakefile.in event.c event.h 
    event/linktest       GNUmakefile.in 
    event/program-agent  GNUmakefile.in program-agent.c 
    event/proxy          GNUmakefile.in 
    event/sched          event-sched.c 
    event/tbgen          GNUmakefile.in tevc.c 
    event/trafgen        GNUmakefile.in event.c 
  Added files:
    event/lib            README 
  Log:
  Middle part of the event system changes. The main part of this change
  is to add HMACs to events to ensure they that events cannot be
  injected into an experiment by an unauthorized client.
  
  * The frontend now generates a secret key for each experiment and
    stores that into a file and in the DB.
  
  * Each of the event clients, as well as the event producers
    (scheduler, tevc) have a new -k option to specify the name of the
    file. Two new event library functions were added for clients to give
    the key:
  
      event_handle_t
      event_register_withkeyfile(char *name, int threaded, char *keyfile);
  
      event_handle_t
      event_register_withkeydata(char *name, int threaded,
  	   		       unsigned char *keydata, int keylen);
  
  * When the library is in possesion of a key, it will generate an HMAC
    and attach it to outgoing notifications. A client receiving a
    notification will compute an HMAC and compare it against the HMAC in
    the notification. If they do not compare, the notification is
    dropped with a warning message printed (the client callback never
    gets the notification). If the client has not provided a key, then
    the HMAC in the incoming notification is ignored.
  
  * The scheduler also takes a -k option, and will compute HMACs for all
    of the static events ahead of time. That keeps it off the critical
    path.
  
  * The tevc client also takes a -k option. However, tevc will always
    try to find the keyfile (default path) so that it can attach the
    HMAC to dynamic events before sending them to the scheduler (which
    will check to make sure it matches). The scheduler will not accept
    dynamic events without unless the HMAC is present and matches.
  
  * I have rebuilt the elvin librarys, removing all of the X goop and
    the SSL goop. Smaller binaries. So, I had to add -lcrypto to all of
    the client makefiles to that programs link.
  
  * The program-agent got a few more changes. The command string is no
    longer passed inside the event; it comes in when the program agent
    is started, via a config file generated from tmcd data. This gets
    rid of our mostly insecure remote execution facility.
  
  Revision  Changes    Path
  1.17      +5 -8      testbed/event/GNUmakefile.in
  1.7       +2 -2      testbed/event/delay-agent/GNUmakefile.in
  1.10      +8 -3      testbed/event/delay-agent/main.c
  1.5       +5 -1      testbed/event/example/GNUmakefile.in
  1.3       +7 -3      testbed/event/example/tbrecv.c
  1.2       +7 -3      testbed/event/example/tbsend.c
  1.12      +14 -8     testbed/event/lib/GNUmakefile.in
  1.24      +308 -48   testbed/event/lib/event.c
  1.17      +14 -1     testbed/event/lib/event.h
  1.2       +1 -1      testbed/event/linktest/GNUmakefile.in
  1.5       +1 -1      testbed/event/program-agent/GNUmakefile.in
  1.7       +141 -92   testbed/event/program-agent/program-agent.c
  1.2       +29 -8     testbed/event/proxy/GNUmakefile.in
  1.25      +22 -8     testbed/event/sched/event-sched.c
  1.15      +1 -1      testbed/event/tbgen/GNUmakefile.in
  1.6       +48 -13    testbed/event/tbgen/tevc.c
  1.8       +1 -1      testbed/event/trafgen/GNUmakefile.in
  1.18      +7 -3      testbed/event/trafgen/event.c

stoller     2003/11/05 12:00:51 MST

  Modified files:
    tmcd                 decls.h libsetup.pm tmcd.c 
    tmcd/common          libtmcc.pm rc.progagent 
    tmcd/freebsd         rc.delayagent 
    tmcd/linux           GNUmakefile.in testbed 
  Added files:
    tmcd/linux           elvin.sh 
  Log:
  Client side of the event system changes.
  
  * Download the eventkey with new tmcd call.
  
  * Pass -k option to various agents so that they can verify the HMACs
    in the incoming notifications.
  
  * Change program agent; The list of agents from tmcd now includes the
    command, which is written to a config file for the program-agent to
    read in. The command string in the event is now ignored.
  
  * Build the local proxy for linux, and add the goo to start the local
    elvind and use the proxy. It has been this way on FreeBSD for a
    while, but I never got it installed for Linux before now.
  
  Revision  Changes    Path
  1.20      +1 -1      testbed/tmcd/decls.h
  1.88      +14 -13    testbed/tmcd/libsetup.pm
  1.193     +7 -7      testbed/tmcd/tmcd.c
  1.5       +4 -0      testbed/tmcd/common/libtmcc.pm
  1.5       +7 -36     testbed/tmcd/common/rc.progagent
  1.8       +5 -10     testbed/tmcd/freebsd/rc.delayagent
  1.37      +4 -0      testbed/tmcd/linux/GNUmakefile.in
  1.4       +2 -1      testbed/tmcd/linux/testbed