1. 09 Aug, 2013 1 commit
    • Leigh B Stoller's avatar
      A lot of changes for use on privately purchased InstaGeni Racks. · 9019197f
      Leigh B Stoller authored
      The GPO purchased racks all look the same so we can add the new
      nodes statically from the XML file that HP sends us.
      
      Well, for the UEN rack and other privately purchased racks, we do not
      have any of that info, and so we have to figure things out ourselves.
      We could use the standard newnode route without modification, but that
      is a realy pain, say on a 33 node rack where the nodes land in any
      order and you have no idea what the corresponding ilo is.
      
      So I whacked this script to run from a data file we generate, which
      contains the two bits of info from the top of the node (ilo passwd and
      the ilo hostname), and the IPs we want to assign to the node and the
      corresponding ilo.
      
      So after turning all the nodes on and they checkin as usual, we run
      this script with the -r option, which looks at the dhcpd.lease file to
      find out what IP is which ILO, and the it asks each ilo via XMLRPC for
      its hosts daya, which includes the ethernet MACs. I use that to find
      the corresponding node in the leases file. Now I reorder the new_nodes
      table so that pc1 is at the bottom and pcNN is at the top.
      
      Now go back to the web interface and add all of the nodes.
      
      Then run this script again (no -r), which will create all of the
      management interfaces in the DB, reset the ilo, and then do the
      normal initilo stuff for each node (boot order, password change, ssh
      keys, etc).
      
      Presto, done.
      9019197f
  2. 22 Jul, 2013 1 commit
  3. 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
  4. 16 May, 2012 2 commits
  5. 03 May, 2012 1 commit
    • Leigh B Stoller's avatar
      Add support for fully initializing the ilo on geni rack nodes. · 164da3ba
      Leigh B Stoller authored
      The basic operational model is as follows.
      
      * We turn the nodes on.
      
      * Since there is nothing on the disks, they will fall through to
        booting from the PXE and will boot the newnode MFS. They all check
        in.
      
      * We run Jon's script that adds the nodes. They are now in hwdown,
        still nothing on the disks.
      
      * We run my script, which is driven from a datafile we are supposed to
        get from HP. This script has the ilomac, ilopswd, control mac. I
        will add another column initially; the permanent IP to assign to the
        ilo. This script does:
      
       + Reads the datafile to get all the stuff.
       + Reads the dhcpd.leases file to find the temporary IPs of the ilos.
       + Finds the corresponding nodes in the DB.
       + Sends over an XML file that does the following:
           - Add the elabman user.
           - Add local root's dsa pub key to the new elabman user.
           - Add Utah's root dsa key to the Administrator user
           - Sets the power on mode to auto (so that the node turns on!).
           - Sets the idle timeout to 2 hours.
       + Sets the bootorder so that PXE is first. This has to be done
         with ssh and some expect stuff I culled from power_ilo. Sigh.
       + Calls out to another script that adds the ilo interface to the
         DB (this is the management_iface script I did last month).
       + Sends another XML file that tells the ilo to reset itself, so that
         it picks up its permanent IP address.
      
      * Now we can free the nodes from hwdown.
      164da3ba