1. 09 Aug, 2013 1 commit
    • Leigh Stoller's avatar
      I added two new actions to PerformOperationalAction, which appear to · cfd1974a
      Leigh Stoller authored
      work fine when the nodes are behaving themselves.
      
      1) geni_update_users: Takes a slice credential and a keys argument. Can
        only be invoked when the sliver is in the started/geni_ready state.
        Moves the slice to the geni_updating_users state until all of the
        nodes have completed the update, at which time the sliver moves back
        to started/geni_ready.
      
      2) geni_updating_users_cancel: We can assume that some nodes will be whacky
        and will not perform the update when told to. This cancels the
        update and moves the sliver back to started/geni_ready.
      
      A couple of notes:
      
      * The current emulab node update time is about three minutes; the
        sliver is in this new state for that time and cannot be restarted or
        stopped. It can of course be deleted.
      
      * Should we allow restart while in the updating phase? We could, but
        then I need more bookkeeping.
      
      * Some nodes might not be running the watch dog, or might not even be
        an emulab image, so the operation will never end, not until
        canceled. I could add a timeout, but that will require a monitor or
        adding DB state to store the start time.
      cfd1974a
  2. 25 Mar, 2013 1 commit
  3. 26 Sep, 2012 1 commit
    • Jonathon Duerig's avatar
      Various fixes for AM API v3. · c49a1df9
      Jonathon Duerig authored
      All incoming rspecs are now validated with rspeclint.
      Multiple Create calls are now permitted.
      Slivers now have URNs at allocation time.
      Delete now returns a list of ex-slivers.
      Advertisement now specifies an operational state machine.
      Other minor fixes.
      c49a1df9
  4. 24 Sep, 2012 1 commit
    • Eric Eide's avatar
      Replace license symbols with {{{ }}}-enclosed license blocks. · 6df609a9
      Eric Eide authored
      This commit is intended to makes the license status of Emulab and
      ProtoGENI source files more clear.  It replaces license symbols like
      "EMULAB-COPYRIGHT" and "GENIPUBLIC-COPYRIGHT" with {{{ }}}-delimited
      blocks that contain actual license statements.
      
      This change was driven by the fact that today, most people acquire and
      track Emulab and ProtoGENI sources via git.
      
      Before the Emulab source code was kept in git, the Flux Research Group
      at the University of Utah would roll distributions by making tar
      files.  As part of that process, the Flux Group would replace the
      license symbols in the source files with actual license statements.
      
      When the Flux Group moved to git, people outside of the group started
      to see the source files with the "unexpanded" symbols.  This meant
      that people acquired source files without actual license statements in
      them.  All the relevant files had Utah *copyright* statements in them,
      but without the expanded *license* statements, the licensing status of
      the source files was unclear.
      
      This commit is intended to clear up that confusion.
      
      Most Utah-copyrighted files in the Emulab source tree are distributed
      under the terms of the Affero GNU General Public License, version 3
      (AGPLv3).
      
      Most Utah-copyrighted files related to ProtoGENI are distributed under
      the terms of the GENI Public License, which is a BSD-like open-source
      license.
      
      Some Utah-copyrighted files in the Emulab source tree are distributed
      under the terms of the GNU Lesser General Public License, version 2.1
      (LGPL).
      6df609a9
  5. 05 Jul, 2012 1 commit
  6. 03 Jul, 2012 1 commit
  7. 08 Feb, 2012 1 commit
  8. 07 Feb, 2012 1 commit
  9. 11 Nov, 2011 1 commit
  10. 06 Sep, 2011 1 commit
  11. 26 Aug, 2011 1 commit
  12. 25 Aug, 2011 1 commit
  13. 09 Aug, 2011 1 commit
  14. 18 Jul, 2011 1 commit
  15. 12 Jul, 2011 1 commit
    • Leigh Stoller's avatar
      Add errorlog text field to aggregates and slivers so that non-node · 320c7d8a
      Leigh 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
  16. 05 Jul, 2011 1 commit
  17. 17 Jun, 2011 1 commit
  18. 16 Jun, 2011 1 commit
  19. 17 Apr, 2011 1 commit
  20. 07 Apr, 2011 1 commit
  21. 30 Mar, 2011 1 commit
    • Leigh Stoller's avatar
      Assorted changes to make sure that the uid we grab from the user URN · 56fef67b
      Leigh 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
  22. 13 Jan, 2011 1 commit
  23. 13 Dec, 2010 1 commit
  24. 07 Dec, 2010 1 commit
  25. 09 Nov, 2010 1 commit
    • Leigh Stoller's avatar
      Minor module shuffling. · 2fafb77e
      Leigh Stoller authored
      Clean up GeniSliver::Node::Create(); remove duplicate code and unify
      the virtnode vs pnode cases. Also change the arguments; instead of a
      uuid for the node, just pass in the actual node object from the CM.
      2fafb77e
  26. 05 Nov, 2010 1 commit
  27. 15 Oct, 2010 1 commit
  28. 12 Oct, 2010 1 commit
  29. 11 Oct, 2010 1 commit
    • Leigh Stoller's avatar
      Work on an optimization to the perl code. Maybe you have noticed, but · 92f83e48
      Leigh 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
  30. 05 Oct, 2010 1 commit
  31. 04 Oct, 2010 1 commit
    • Leigh Stoller's avatar
      More purging of UUIDs. Reminder, we still use them all over the place · b3c8e72e
      Leigh Stoller authored
      internally, as the primary key in the tables, but the CM/SA APIs no
      longer use them. The CH still accepts them for now. We can probably
      stop putting them into manifests and advertisements at this point as
      well. 
      
      For slivers, stop using the uuid of the node as the uuid of the sliver
      itself; generate a new one. As above, this is cause the uuid is the
      primary key in the table, but the URN is what we use for lookups,
      etc.
      b3c8e72e
  32. 09 Jun, 2010 1 commit
  33. 07 Jun, 2010 1 commit
  34. 29 Mar, 2010 1 commit
  35. 18 Mar, 2010 1 commit
  36. 11 Mar, 2010 1 commit
  37. 09 Mar, 2010 1 commit
  38. 24 Feb, 2010 1 commit
  39. 12 Feb, 2010 1 commit
  40. 11 Feb, 2010 1 commit