1. 06 Sep, 2011 1 commit
  2. 30 Aug, 2011 1 commit
    • Leigh B Stoller's avatar
      ProtoGENI slivers are now created in separate projects instead of a · fedd45bd
      Leigh B Stoller authored
      single GeniSlices project. There two forms to this;
      
      1. If the user is actually a local user, create the sliver in the
         User's "default" project. Later this will change to use use sub
         authorities, when we can generate and read those credentials.
      
      2. If the user is form another SA, create a new non-local project
         named by the SA's domain, and optionally a subgroup named by the
         project sub authority (see above comment).
      
      At the same time, add proper resource usage accounting. In other
      words, Show History on the web page works for protogeni experiments
      and projects.
      fedd45bd
  3. 29 Aug, 2011 1 commit
    • Leigh B Stoller's avatar
      Export a very Emulab specific function; InjectEvent. This is a gateway · 890c180b
      Leigh B Stoller authored
      into the per-experiment event scheduler for the experiment underneath
      the sliver. An example of how to use this is the new test script
      called injectevent.py, which you run like:
      
      users> injectevent.py now geni1-program start COMMAND='/bin/ls >& /tmp/foo'
      
      which injects an event for the program agent on your geni1 node.
      
      Note that you have to contact the specfic CM for the node; if you have
      multiple nodes spread across several CMs, you have to call this method
      at the CM where the node lives.
      890c180b
  4. 22 Jul, 2011 1 commit
  5. 12 Jul, 2011 1 commit
    • Leigh B Stoller's avatar
      Add errorlog text field to aggregates and slivers so that non-node · 320c7d8a
      Leigh B Stoller authored
      slivers can store/return error info to the user in sliverstatus.
      This include the top level aggregate for a slice.
      
      Added an 'error' attribute to the top level sliverstatus return hash,
      to return this error.
      
      Put start/restart sliver into the background so that it runs async,
      just like it does when invoked from the CreateSliver() path. This is
      because start/restart can take an arbitrary length of time, and having
      the RPC sit in hold for that long is not an ideal interface. Users can
      get all the info they need from the sliverstatus call.
      
      Change Start/Restart so that all of the error message we were printing
      to STDERR for the mail log, also go back to the user in the toplevel
      error for the aggregate.
      320c7d8a
  6. 08 Jul, 2011 1 commit
  7. 16 Jun, 2011 1 commit
  8. 13 May, 2011 1 commit
  9. 11 May, 2011 1 commit
  10. 20 Apr, 2011 1 commit
    • Leigh B Stoller's avatar
      Changes our ssh key/account handling in RedeemTicket() and · 03c2107c
      Leigh B Stoller authored
      CreateSliver(), to handle multiple accounts.  This somewhat reflects
      the Geni AM API for keys, which allows the client to specify multiple
      users, each with a set of ssh keys.
      
      The keys argument to the CM now looks like the following (note that
      the old format is still accepted and will be for a while).
      
      [{'urn'   => 'urn:blabla'
        'login' => 'dopey',
        'keys'  => [ list of keys like before ]},
       {'login' => "leebee",
        'keys'  => [ list of keys ... ]}];
      
      Key Points:
      
      1. You can supply a urn or a login or both. Typically, it is going to
         be the result of getkeys() at the PG SA, and so it will include
         both.
      
      2. If a login is provided, use that. Otherwise use the id from the urn.
      
      3. No matter what, verify that the token is valid for Emulab an uid
         (standard 8 char unix login that is good on just about any unix
         variant), and transform it if not.
      
      4. For now, getkeys() at the SA will continue to return the old format
         (unless you supply version=2 argument) since we do not want to
         default to a keylist that most CMs will barf on.
      
      5. I have modified the AM code to transform the Geni AM version of the
         "users" argument into the above structure. Bottom line here, is
         that users of the AM interface will not actually need to do
         anything, although now multiple users are actually supported
         instead of ignored.
      
      Still to be done are the changes to the login services structure in
      the manifest. We have yet to settle on what these changes will look
      like, but since people generally supply valid login ids, you probably
      will not need this, since no transformation will take place.
      03c2107c
  11. 12 Apr, 2011 1 commit
  12. 30 Mar, 2011 1 commit
    • Leigh B Stoller's avatar
      Assorted changes to make sure that the uid we grab from the user URN · 56fef67b
      Leigh B Stoller authored
      is a valid Emulab user id (as for creating accounts on nodes) and for
      inserting into the Emulab DB.
      
      If the uid is not valid for us, make up a new one from a hash of the
      certificate. This will give us a (typically) unique but always
      consistent uid to use.
      
      Also add the uid to the services/login section of the manifest so that
      the client always knows what uid to use when logging in.
      56fef67b
  13. 21 Mar, 2011 1 commit
    • Leigh B Stoller's avatar
      First attempt at fixing deadlock when stitching. This happens if both · 3cdbe5f7
      Leigh B Stoller authored
      sides try to stitch at the same time. One side has to back off and let
      the other proceed. The problem is with the slice locking, which had to
      be changed to allow one side to drop the lock so the other side could
      proceed. I ended up doing this with an additional stitching lock, used
      only when stitching.
      3cdbe5f7
  14. 01 Mar, 2011 1 commit
  15. 23 Feb, 2011 1 commit
  16. 17 Feb, 2011 1 commit
  17. 16 Feb, 2011 2 commits
  18. 15 Feb, 2011 1 commit
  19. 14 Feb, 2011 1 commit
  20. 04 Feb, 2011 1 commit
  21. 03 Feb, 2011 1 commit
  22. 02 Feb, 2011 1 commit
  23. 19 Jan, 2011 1 commit
  24. 13 Jan, 2011 1 commit
  25. 11 Jan, 2011 1 commit
  26. 06 Jan, 2011 1 commit
  27. 29 Dec, 2010 1 commit
  28. 07 Dec, 2010 1 commit
  29. 09 Nov, 2010 1 commit
  30. 15 Oct, 2010 1 commit
  31. 12 Oct, 2010 1 commit
  32. 11 Oct, 2010 3 commits
    • Leigh B Stoller's avatar
      Work on an optimization to the perl code. Maybe you have noticed, but · 92f83e48
      Leigh B Stoller authored
      starting any one of our scripts can take a second or two. That time is
      spent including and compiling 10000s of thousands of lines of perl
      code, both from our libraries and from the perl libraries.
      
      Mostly this is just a maintenance thing; we just never thought about
      it much and we have a lot more code these days.
      
      So I have done two things.
      
      1) I have used SelfLoader() on some of our biggest perl modules.
         SelfLoader delays compilation until code is used. This is not as
         good as AutoLoader() though, and so I did it with just a few 
         modules (the biggest ones).
      
      2) Mostly I reorganized things:
      
        a) Split libdb into an EmulabConstants module and all the rest of
           the code, which is slowly getting phased out.
      
        b) Move little things around to avoid including libdb or Experiment
           (the biggest files).
      
        c) Change "use foo" in many places to a "require foo" in the
           function that actually uses that module. This was really a big
           win cause we have dozens of cases where we would include a
           module, but use it in only one place and typically not all.
      
      Most things are now starting up in 1/3 the time. I am hoping this will
      help to reduce the load spiking we see on boss, and also help with the
      upcoming Geni tutorial (which kill boss last time).
      92f83e48
    • Gary Wong's avatar
      Fix type error in commit 1aa4572f. · 220e2748
      Gary Wong authored
      (I like static typing.)
      220e2748
    • Gary Wong's avatar
      Update stale slice expiration times when we notice them. · 1aa4572f
      Gary Wong authored
      We never get live data from the SA about when slices expire, so simply
      assume that the slice expires at the maximum of all credential expiry
      times we've ever seen from that slice.
      1aa4572f
  33. 29 Sep, 2010 2 commits
  34. 06 Jul, 2010 1 commit
  35. 02 Jul, 2010 2 commits