1. 15 Nov, 2004 6 commits
    • Leigh B. Stoller's avatar
      Some new files added to the system ... · 0e3df8a3
      Leigh B. Stoller authored
      0e3df8a3
    • Leigh B. Stoller's avatar
      A bunch of ElabInELab changes. · 10b116e0
      Leigh B. Stoller authored
      * snmpit: When ElabInELabis true, use the routines in the new
        snmpit_remote.pm library for setting up and tearing down vlans for an
        experiment. At present, only these two operations are proxied out to
        the outer emulab.
      
      * snmpit_remote.pm: A new little library that uses the XMLPRC server on
        the outer emulab to setup and destroy vlans for an inner experiment.
        This code is used from snmpit (see above).
      
      * snmpit_lib.pm: A couple of minor changes for the server side of the
        proxy operation.
      
      * snmpit.proxy.in: A new perl module that is invoked from the RPC
        server.  This proxy sets up and tears down vlans for an inner elab.
        The basic model is that the container experiment will have lots of
        vlans for various individual experiments running on the inner emulab.
      
      * swapexp: A couple of minor elabinelab hacks.
      
      * tbswap: For elabinelab experiments, reconfig/restart dhcpd when
        tearing down the experiment, and call out to new elabinelab script
        when setting up an elabinelab experiment. There is no provision for
        swapmod at this time.
      
      * elabinelab: A new script to create the inner emulab. Does all kinds of
        gross DB stuff then more gross stuff on the inner ops and boss.
      10b116e0
    • Leigh B. Stoller's avatar
      ElabInElab: When operating inside an inner emulab, use the libxmlrpc · 9aab7322
      Leigh B. Stoller authored
      library to call out to the outer emulab to do the actual power cycle.
      9aab7322
    • Leigh B. Stoller's avatar
      Another typo! · 9687a1bb
      Leigh B. Stoller authored
      9687a1bb
    • Leigh B. Stoller's avatar
    • Leigh B. Stoller's avatar
      Fix minor typo in last revision. · 0c267b15
      Leigh B. Stoller authored
      0c267b15
  2. 14 Nov, 2004 1 commit
  3. 12 Nov, 2004 6 commits
  4. 11 Nov, 2004 6 commits
  5. 10 Nov, 2004 7 commits
  6. 09 Nov, 2004 10 commits
    • Leigh B. Stoller's avatar
      Here is a fun little change. Lacking native perl SSL XMLRPC tools, I · a7482569
      Leigh B. Stoller authored
      put together a little library that provides the illusion of nativeness.
      
      sslxmlrpc_client.py.in: New "rawmode" (-r) option. Instead of the
      usual command line operation, input raw XMLRPC goo and send that over
      to the server. The raw XMLRPC reply goo is spit out on stdout. In
      other words, it is up to the caller to generate the XML stuff, and
      convert back from XML to a reply structure.
      
      libxmlrpc.pm.in: A new perl library that exports one real method
      called, interestingly enough, CallMethod($$$). The first and second
      arguments are the module and method to invoke in the RPC server. The
      third argument is an arbitrary perl data structure to convert into XML
      and pass to the server. For example:
      
      	libxmlrpc::CallMethod("experiment", "state",
      	                      {"proj" => "testbed", "exp" => "myemulab"});
      
      The return value of CallMethod is whatever data structure the server
      returned, or undef if there is an internal error or if the RPC fails
      with a transport error (one of the errors in emulabclient.py).
      
      In case it is not obvious, CallMethod converts the argument to XML
      using the RPC:XML perl module, forks off a child to run
      sslxmlrpc_client.py.in in rawmode, sends it the XML on its stdin,
      reads back the XML for the reply from its stdout, and converts that to
      a perl data structure to return to the caller.
      
      The more interesting use of this new goo is to invoke the new
      "elabinelab" module in the RPC server, which exports some new methods
      to support elabinelab. The idea is that the inner boss will invoke
      routines (like setup/destroy vlans, or power cycle) using the RPC
      server, and the SSL key of the creator of the inner emulab. This will
      be described in more detail when I check in those changes.
      
      There is also a Config() method that is used to set the SSL cert path,
      debugging, verbosity, etc. You can take a look if you are interested.
      
      This can be arbitrarily fancy, but I don't need this for many things.
      a7482569
    • Leigh B. Stoller's avatar
      ElabInElab change. When ELABINELAB=1, spit out a "gateway" directive so · 1188089f
      Leigh B. Stoller authored
      that ssh redirects through inner boss. This is pretty much how virtual
      node ssh is done already.
      1188089f
    • Leigh B. Stoller's avatar
    • Leigh B. Stoller's avatar
      Fix stupid typos in last revision. · 3bdb37b4
      Leigh B. Stoller authored
      3bdb37b4
    • Leigh B. Stoller's avatar
      Mention /usr/ports/databases/py-MySQLdb · 465e94d2
      Leigh B. Stoller authored
      465e94d2
    • Mike Hibler's avatar
      Subtle: when creating symlinks, do NOT include $(DESTDIR) as part of · 5cd01fc6
      Mike Hibler authored
      the source of the link.  Otherwise when installing an MFS with something
      like DESTDIR=/mnt, you wind up with links like:
      
      lrwxr-xr-x   1 root  wheel   25 Nov  9 11:45 lib@ -> /mnt/usr/local/etc/emulab
      
      which do not resolve when the MFS is booted.
      
      This assumes that DESTDIR is only used for temporary mounting of filesystems
      that are normally mounted elsewhere (and I believe that has always been the
      intent of DESTDIR, at least in BSD).  If DESTDIR reflected the true path,
      then the links will now be wrong.
      5cd01fc6
    • Leigh B. Stoller's avatar
      Add -r (restart) option, valid *only* with -i (install new config · 822723d1
      Leigh B. Stoller authored
      file) option. Sends a SIGTERM to DHCPD after installing the new config
      file.
      822723d1
    • Leigh B. Stoller's avatar
      Look for exit code 1; do not restart since that indicates a syntax · 3cc183dc
      Leigh B. Stoller authored
      error in the config file, and it would just result in an email storm
      as it tries over and over to restart. Just send email and die.
      3cc183dc
    • Leigh B. Stoller's avatar
      Do not consider "archived" news items when deciding to stick a "new" · f5274aef
      Leigh B. Stoller authored
      icon next to the news link.
      f5274aef
    • Leigh B. Stoller's avatar
      Add "archive" flag to webnews table. Change web interface to allow · b9890f9c
      Leigh B. Stoller authored
      archive (and restore) of news items. Add button at top to toggle
      the display of archived items. All of this is admin mode only; mere users
      see just the news.
      b9890f9c
  7. 08 Nov, 2004 4 commits