1. 27 Mar, 2003 3 commits
  2. 26 Mar, 2003 1 commit
    • Leigh Stoller's avatar
      Add "gid" slot to the images table for changing permission scheme from · 4c56daf6
      Leigh Stoller authored
      only pid, to pid/gid like most other things in the testbed. Also add a
      "global" slot to denote images that are globally available to all
      projects (system images). The older "shared" attribute is now used to
      denote images that are shared within a project (available to all
      subgroups in the project). The migration path for existing DBs is
      given in the migrate file. Be sure to run those commands on an
      existing testbed or things will break!
      
      www/newimageid, www/newimageid_ez: A bunch of changes for
      shared/global attributes. Added a group menu to the form so users can
      create images in subgroups. Beefed up the Java code that constructs
      the path name to use the gid, shared, and global attributes of the
      form to give the user the best possible path that we can. Improved the
      pathname checking code so that we do not allow just any old path in
      case the user elects to disregard the path we carefully constructed
      for them. Also check the proj/group membership, and setup defaults for
      users that have permission in just one pid/gid to create images.
      
      libdb.in: Changed permission check in TBImageIDAccessCheck() to
      reflect shared/global attribute changes.
      
      os_load: Get rid of test that checked path of the image. The path
      checking is done in the web interface anyway, so why duplicate in 4
      places. Other minor changes reflecting shared->global name change.
      Also note that images can come from the group directory now.
      
      create_image: Get rid of test that checked path of the image. The path
      checking is done in the web interface anyway, so why duplicate in 4
      places. Also note that images can come from the group directory now.
      
      www/dbdefs: Changed permission check in TBImageIDAccessCheck() to
      reflect shared/global attribute changes.
      
      www/showimageid_list, www/showstuff: Minor global/shared attribute
      changes.
      
      www/menu: Change osids/imageids pointer to point to the image list,
      not the osid list. This is more reasonable for mere users who have
      access to the EZ form, and thus never really need to concern
      themselves with osids.
      
      www/editimageid: Add proper pathname checking. There were no checks at
      all before!
      4c56daf6
  3. 22 Mar, 2003 2 commits
    • Mac Newbold's avatar
      Fix small bug with clearing swap request counter when an expt appears to · 4cc199f1
      Mac Newbold authored
      have gone active again. If you gave it a higher time than the default, and
      an idle expt hadn't been idle that long, it would clear the counter when
      it shouldn't, making idle expts look like they may have gone active again.
      (It didn't ever change any slothd data or cause any activity, you'd just
      "forget" that you'd already been sending swap requests. And it only had an
      effect when you picked times _higher_ than the default idle time.)
      4cc199f1
    • Mac Newbold's avatar
      Take the default idleness threshold from 6 hours down to 2 hours. Main · 2a977df3
      Mac Newbold authored
      reason is to keep things moving during the high SOSP demand, but it may
      stay there or somewhere similar when we deploy the new slothd next week.
      2a977df3
  4. 20 Mar, 2003 2 commits
    • Leigh Stoller's avatar
      A possible hack/fix to the concurrency problem. I have not learned · 75936b39
      Leigh Stoller authored
      anything conclusive, other than fork confuses mysqld, and our attempt
      to unconfuse it by closing/opening the DB connection in the child,
      confuses it even more! The parent connection is shutdown and then
      restarted as well. In node_reboot, this could happen 10 times in rapid
      succession as we fork as child for each node, and that appears to
      strain the server even more (with 20 rapid connects).
      
      So, I added a select(0.3) in TBdbfork() (in the child) to see if that
      slows things down enough. In my tests, the length of time between the
      parent and child operations makes a real difference. With a delay in
      the child, the parent connection is not closed/restarted.
      
      The astute reader will realize that I have no actual clue; just
      grasping at, uh, threads.
      75936b39
    • Leigh Stoller's avatar
  5. 19 Mar, 2003 2 commits
  6. 18 Mar, 2003 1 commit
    • Chad Barb's avatar
      · e928fbe9
      Chad Barb authored
      Here it is; reswap.
      
      nfree
         - modified to put node in FREE_DIRTY when it is freed
      
      assign_wrapper
         - '-u' update switch added.
      
      os_setup
         - doesn't reboot node which is already in RES_READY
      
      tbswap
         - calls all this stuff appropriately
      e928fbe9
  7. 14 Mar, 2003 1 commit
  8. 13 Mar, 2003 1 commit
    • Chad Barb's avatar
      · 2a2c1542
      Chad Barb authored
      Added BESTOWGROUPROOT permission.
      2a2c1542
  9. 12 Mar, 2003 1 commit
    • Chad Barb's avatar
      · fa716ae9
      Chad Barb authored
      Added TB_PROJECT_GROUPGRABUSERS to Perl side, for consistency.
      fa716ae9
  10. 11 Mar, 2003 2 commits
    • Chad Barb's avatar
      · d333686c
      Chad Barb authored
      Fixed ALLOCSTATE consts.
      d333686c
    • Chad Barb's avatar
      · db5cd7f7
      Chad Barb authored
      Added '-x' switch;
      when specified, nfreeing a physical node results in
      any virtual node sitting on that physical node to be freed as well.
      
      (This should probably be the default behavior.)
      db5cd7f7
  11. 05 Mar, 2003 1 commit
  12. 28 Feb, 2003 1 commit
  13. 25 Feb, 2003 1 commit
  14. 08 Feb, 2003 1 commit
  15. 07 Feb, 2003 1 commit
    • Chad Barb's avatar
      · 60563956
      Chad Barb authored
      Added Alloc State machine library calls.
      (NodeSetAllocState, NodeGetAllocState)
      60563956
  16. 03 Feb, 2003 4 commits
  17. 02 Feb, 2003 1 commit
  18. 31 Jan, 2003 1 commit
  19. 29 Jan, 2003 4 commits
  20. 15 Jan, 2003 3 commits
  21. 13 Jan, 2003 1 commit
  22. 07 Jan, 2003 2 commits
    • Robert Ricci's avatar
    • Robert Ricci's avatar
      New script: readycount · 616601b5
      Robert Ricci authored
      Simple command-line interface to the ready bits. Its primary
      purposes are:
      
      * Manually report ready for nodes that can't do it themselves
      * Get a list of which nodes are ready, so that you can figure out
        which one(s) aren't reporting in
      * Clear ready bits so you can use them again without restarting the
        experiment
      * Make it possible to poll ready bits on boss/ops
      616601b5
  23. 06 Jan, 2003 1 commit
  24. 03 Jan, 2003 1 commit
  25. 18 Dec, 2002 1 commit
    • Leigh Stoller's avatar
      Two new routines. TBNodeBootReset() resets the startup state for a · b485a466
      Leigh Stoller authored
      node. Used in new tbrestart code for replaying experiments. It remains
      to be seen if this is a workable approach.
      
      TBNodeStateWait() is really WaitTillAlive, which I need in several new
      spots now. Its not as general purpose as it seems though, since there
      are only a couple of terminal states (isup) that you can actually wait
      for by querying the DB. But, I'm loathe to add any more event code to
      the system.
      b485a466