1. 16 May, 2006 1 commit
  2. 15 May, 2006 3 commits
    • Leigh B. Stoller's avatar
      Lets not reuse the index of a failed experiment. This happens cause I · fefc08bb
      Leigh B. Stoller authored
      was using MAX(exptidx) from the experiments table. Instead, lets use
      a new one each time.
      This avoids a problem in the new template code I need to fix at some
    • Mike Hibler's avatar
      Add a couple of missing prototypes · 98792b77
      Mike Hibler authored
    • Mike Hibler's avatar
      Initial "Inner Plab" support. In your NS file, you declare one node: · 9512772e
      Mike Hibler authored
      tb-set-node-plab-role $plc plc
      to make it the PLC node.  Then any number of other nodes are declared as:
      tb-set-node-plab-role $plab1 node
      to make them inner plab nodes.  Unlike elabinelab, there is no magic
      "tb-plab-in-elab" command which implies the topology, you put all the
      plab nodes in a LAN or whatever yourself.  This may or may not be a good idea.
      Anyway, these NS commands set DB state in virt_nodes and reserved much like
      elabinelab.  During swapin, the dhcpd.conf file is rewritten so that
      inner plab nodes have their "filename" set to "pxelinux.0" and their
      "next-server" set to the designated PLC node.  The PLC node will then be
      loaded/booted before anything is done to the inner-plab nodes.  After
      it comes up, the inner plab nodes are rebooted and declared as up.
      There is a new tmcd command "eplabconfig" (suggestions for a new name
      welcom!), which returns info like:
          NAME=plc ROLE=plc IP= MAC=00d0b713f57d
          NAME=plab1 ROLE=node IP= MAC=0002b3877a4f
          NAME=plab2 ROLE=node IP= MAC=00d0b7141057
      to just the PLC node (returns nothing to any other node).
      The implications of this setup are:
       * The PLC node must act as a TFTP server as we have discussed in the past.
         The TMCC info above is hopefully enough to configure pxelinux, if not
         we can change it.
       * The PLC node is responsible for loading the disks of inner plab nodes.
         This is implied by the setup, where we change the dhcpd.conf file before
         doing anything to the inner nodes.  Thus, once the inner nodes are
         rebooted, they will be talking pxelinux with PLC, and not to boss.
         This step is dubious, as we could no doubt load the disks faster than
         whatever plab uses can.  But it simplified the setup (and is more
         realistic!).  The alternative, which is something that might be useful
         anyway, is to introduce a "state" after which nodes have been reloaded
         but before they are rebooted.  With that, we can reload the plab nodes
         and then change the dhcpd.conf file so when they reboot they start
         talking to the PLC.
  3. 12 May, 2006 1 commit
    • Leigh B. Stoller's avatar
      Redo the entire template library. I've been meaning to use perl · 78503406
      Leigh B. Stoller authored
      "object" and this was a good opportunity to see if they are useful and
      easy enough to use. Yep they are; the code is much cleaner with many
      fewer utility functions to get at stuff. I recommend this approach
      from now on.
      The problem is the php side, which ends up duplicating some stuff, but
      in the old style. This is not so bad for the template code since I
      have made it a point not to do anything but display functions in php;
      all modifications are handled in the backend.
  4. 11 May, 2006 1 commit
    • Mike Hibler's avatar
      Initial support for plab-in-elab: · 088c8e74
      Mike Hibler authored
      * setup some fields that parallel the
        elab-in-elab ones, for modifying the dhcpd.conf file.
      * tb-set-node-plab-role to set a node as either 'plc' or 'node'
        used to set the DB role field above
  5. 09 May, 2006 1 commit
  6. 08 May, 2006 2 commits
  7. 05 May, 2006 1 commit
  8. 04 May, 2006 4 commits
    • Kirk Webb's avatar
      · 662e924f
      Kirk Webb authored
      Fixed up vlan listing function under (apparently) new variable scoping rules
      in perl 5.8.
    • Kirk Webb's avatar
      · 511e860b
      Kirk Webb authored
      Function prototypes for perl 5.8
    • Kirk Webb's avatar
      · 6855e42e
      Kirk Webb authored
      Fix "illegal character in prototype" message.
    • Mike Hibler's avatar
      attempt 2 at swap retry fix · 219680e7
      Mike Hibler authored
  9. 02 May, 2006 2 commits
  10. 26 Apr, 2006 2 commits
    • Mike Hibler's avatar
      Include osfeatures in the "physical" topo map. · cccd82d9
      Mike Hibler authored
      This way, the linktest instances can know who will be running linktest
      and who will not and thus we can run on a subset of nodes.
    • Leigh B. Stoller's avatar
      Change to make mysql 5.X happy. The gist of this change is this that · 76a6bed4
      Leigh B. Stoller authored
      there is a query (by Mike I think) that has this form:
                SELECT * FROM t1, t2 JOIN t3 ON  ...
      Prior to 5.X, the comma operator had the same precedence as join, and
      so it was evaluated left to right. Well, now comma is lower then join
      and this query breaks cause the right side is evaluated before the
      left side. The solution is simply:
                SELECT * FROM (t1, t2) JOIN t3 ON  ...
      but as the manual points out, why not just use:
                SELECT * FROM t1 JOIN t2 JOIN t3 ON ...
      and avoid precedence issues.
  11. 25 Apr, 2006 2 commits
  12. 17 Apr, 2006 1 commit
  13. 14 Apr, 2006 1 commit
  14. 11 Apr, 2006 1 commit
  15. 06 Apr, 2006 1 commit
  16. 05 Apr, 2006 1 commit
    • Robert Ricci's avatar
      A couple changes to VLAN locking: · 4bad01f4
      Robert Ricci authored
      First, don't retry so many times. The old value of 40 tries was set
      before snmpitSetWarn() was around. snmpitSetWarn() itself retries 10
      times, so we were trying 400 times before giving up!
      Second, if grabbing the edit buffer lock fails, try to find out if
      someone else is holding it, and print the owner.
  17. 01 Apr, 2006 1 commit
  18. 31 Mar, 2006 4 commits
  19. 30 Mar, 2006 6 commits
  20. 29 Mar, 2006 1 commit
  21. 28 Mar, 2006 2 commits
  22. 27 Mar, 2006 1 commit
    • Kirk Webb's avatar
      · 6adad0d6
      Kirk Webb authored
      Minor bugfix.