1. 09 Oct, 2003 5 commits
    • Leigh B. Stoller's avatar
    • Leigh B. Stoller's avatar
      Add commit message · 4e603cd1
      Leigh B. Stoller authored
    • Leigh B. Stoller's avatar
      Reorg of two aspects of node update. · 2641af4d
      Leigh B. Stoller authored
      * install-rpm, install-tarfile, spewrpmtar.php3, spewrpmtar.in: Pumped
        up even more! The db file we store in /var/db now records both the
        timestamp (of the file, or if remote the install time) and the MD5
        of the file that was installed. Locally, we can get this info when
        accessing the file via NFS (copymode on or off). Remote, we use wget
        to get the file, and so pass the timestamp along in the URL request,
        and let spewrpmtar.in determine if the file has changed. If the
        timestamp it gets is >= to the timestamp of the file, an error code
        of 304 (Not Modifed) is returned. Otherwise the file is returned.
        If the timestamps are different (remote, server sends back an actual
        file), the MD5 of the file is compared against the value stored. If
        they are equal, update the timestamp in the db file to avoid
        repeated MD5s (or server downloads) in the future. If the MD5 is
        different, then reinstall the tarball or rpm, and update the db file
        with the new t...
    • Mac Newbold's avatar
    • Mac Newbold's avatar
      tbsetup/node_reboot.in · 4bc03e0b
      Mac Newbold authored
  2. 08 Oct, 2003 1 commit
  3. 07 Oct, 2003 9 commits
  4. 06 Oct, 2003 10 commits
    • Robert Ricci's avatar
      Make the regexps for switch version less annoyingly restrictive, and · 475b98a4
      Robert Ricci authored
      take into the account the fact that it works now for 55xx series
    • Leigh B. Stoller's avatar
      Quickie change to experiment with client side caching; Added a new · 9fb9ef8f
      Leigh B. Stoller authored
      "fullconfig" command to cycle through the list of existing commands
      and spit out a section for each. Not all of them of course; just a
      subset that makes sense. I did not that mounts are a bit of a problem
      cause of the USESFS argument. Not sure what to do yet.
    • Robert Ricci's avatar
      Don't make bad lines from switchmac fatal - there are circumstances · 1b9ad406
      Robert Ricci authored
      where they are okay.
    • Leigh B. Stoller's avatar
      * New libtmcc.pm module that encapsulates the tmcc interface. Most of the · 434a472a
      Leigh B. Stoller authored
        code that was in libsetup has moved into this library, and underwent a
        giant cleaning and pumping up. The interface from your typical perl
        script now looks like this:
        use libtmcc;
        if (tmcc(TMCCCMD_STATUS, "optional arguments", \@tmccresults) < 0) {
            warn("*** WARNING: Could not get status from server!\n");
            return -1;
        foreach my $me (@tmccresults) {
      	print "bite $me";
        The arguments and results are optional values. There is a fourth optional
        value that is a hash of config options (basically converted to command
        line switches passed to tmcc). For example, to set the timeout on an
        individual call, pass a fourth argument like:
      	("timeout" => 5)
        There is also a way to set global options so that all subsequent tmcc
        calls are affected:
      	configtmcc("timeout", 5);
        I'll probably clean this up a bit to avoid the direct strings.
        The result list is a list of strings. Since we are trending away from
        using tmcc to transfer large amounts of data, I think this is okay.
      * A new tmcc.pl which does little more than load libtmcc and use it.
        This will become the new tmcc, with the existing C version becoming a
        backend binary for it.
      * All of the perl scripts in tmcd have been changed to use the new
        library. I left the few uses of tmcc in shell scripts alone since they
        were of the simple variety (mostly "state" command).
      * And again, if you have read this far, you will learn why I bothered with
        all this. Well, the existing code was really bad and it was getting out
        of control. Sort of like a squid that was getting harder to control as
        its rotting tenticles slithered into more and more scripts. Anyway ...
        More important, my goal is to use the libtmcc library to add caching.  I
        have not worked out the details yet, but I am envisioning a configuration
        file, perhaps generated initially by tmcd, of all of the config
        values. If the library finds that file, it sucks the info out of the file
        instead of going to tmcd. Eventually, this config file would be generated
        as part of experiment swapping and stored in the DB, but thats a longer
        term project, and perhaps orthogonal (how we fill the cache is not as
        important as adding the ability to use a cache, right?).
        Note that certain operations (like "state" and "ready") are flagged by
        the library to always bypass the "cache".
    • Robert Ricci's avatar
      Lower the time between packets to 30 seconds - looks like some · fd279db8
      Robert Ricci authored
      switches have some really low MAC timeouts!
    • Robert Ricci's avatar
      Fix a bug in the mapping precheck that was allowing nodes with too · 1153a1fb
      Robert Ricci authored
      many links to slip by unnoticed.
    • Leigh B. Stoller's avatar
    • Mac Newbold's avatar
    • Leigh B. Stoller's avatar
      Add db/dbfillcheck ... · 5b8a5f9f
      Leigh B. Stoller authored
    • Leigh B. Stoller's avatar
      Add little script to check consistency of sql/database-fill.sql against · 2e109e68
      Leigh B. Stoller authored
      the DB, when doing main install.
      Also updated sql/database-fill.sql while I was at it.
  5. 03 Oct, 2003 5 commits
  6. 02 Oct, 2003 10 commits