1. 15 Jul, 2009 6 commits
  2. 14 Jul, 2009 4 commits
  3. 13 Jul, 2009 8 commits
  4. 10 Jul, 2009 8 commits
  5. 09 Jul, 2009 14 commits
    • Leigh B. Stoller's avatar
      Two big changes · e6c90969
      Leigh B. Stoller authored
      1. Allow use of the shared nodes via the "exclusive" tag in the rspec.
      
      2. Switch to using the mapper in GetTicket() and in RedeemTicket() as
         per this email I sent:
      
      * GetTicket(): New rspec comes in and I build a virtual topology as I
       parse the rspec. Basically, virt_nodes and virt_lans table entries,
       which are stored into the DB. The rspec can include wildcards or
       specific nodes; I use the "fixed" slot of the virt_nodes table. Note
       that I am not yet handling fixed ifaces. Nice thing about this is
       that all of the show exp tools work.
      
       I run the (new) mapper on it in "solution" mode. This does two
       things; wildcards are mapped, and 2) it verifies that the rspec is
       mappable on the local hardware. Solution mode does not actually
       change the DB, but rather it spits out an XML file that I parse
       (note, we eventually will pass the rspec through, but I am not ready
       for that yet). I then allocate the nodes to the holding area, update
       the rspec, create a ticket, and return it.
      
      * RedeemTicket(): I run the new mapper again, only this time in real
       mode with -update. This is basically a redo of the run above since
       all the nodes are reserved already, but the DB is actually filled
       out this time. I then create the slivers and such.
      
       The other difference is that instead of creating the vlans by hand,
       I can now run snmpit -t to do the work for me. Ditto for tear down
       with snmpit -r.
      
       Another bonus is that I can add (missing) IP addressess during the
       initial rspec parse, and the nodes now boot and have their
       interfaces configured. Virtual interfaces too, including the ones
       inside of virtual nodes.
      
      * All of the above works with shared nodes too:
      
      "<rspec xmlns=\"http://protogeni.net/resources/rspec/0.1\"> " +\
      " <node virtual_id=\"geni1\" "+\
      "       virtualization_type=\"emulab-vnode\" " +\
      "       virtualization_subtype=\"emulab-openvz\" " +\
      "       exclusive=\"0\"> " +\
      "   <interface virtual_id=\"virt0\"/> " +\
      " </node>" +\
      " <node virtual_id=\"geni2\" "+\
      "       virtualization_type=\"emulab-vnode\" " +\
      "       virtualization_subtype=\"emulab-openvz\" " +\
      "       exclusive=\"0\"> " +\
      "   <interface virtual_id=\"virt0\"/> " +\
      " </node>" +\
      " <link virtual_id=\"link0\"> " +\
      "  <interface_ref " +\
      "            virtual_interface_id=\"virt0\" " +\
      "            virtual_node_id=\"geni1\" " +\
      "            /> " +\
      "  <interface_ref " +\
      "            virtual_interface_id=\"virt0\" " +\
      "            virtual_node_id=\"geni2\" " +\
      "            /> " +\
      " </link> " +\
      "</rspec>"
      
      The shared nodes boot, and you can ping on the experimental networks.
      
      Caveats:
      
      * UpdateTicket and UpdateSliver need work as per the mail I sent the
       other day about the state of the sliver between the ticket and the
       sliver operations.
      
      * Collocation specifications are ignored since we do not have any way
       to specify this to assign when wildcards are used. Rob, I am
       wondering if assign has any tricks we can take advantage of.
      
      * Still need to commit all the snmpit changes and get that hooked into
       the CM.
      e6c90969
    • Gary Wong's avatar
    • Leigh B. Stoller's avatar
      Add ListHistory entrypoint. · f543666a
      Leigh B. Stoller authored
      f543666a
    • Leigh B. Stoller's avatar
      Add listhistory script that collects and prints history from all the · e0f206d5
      Leigh B. Stoller authored
      CMs in the CH database. Only the CH can run this. Also, all it does is
      collect the tickets.
      e0f206d5
    • Leigh B. Stoller's avatar
      Add ListAllTickets method to get the entire history list of tickets. · f3374b66
      Leigh B. Stoller authored
      This is returned to the CH via the ListTickets() CM method. Only the
      CH can invoke this. This will hold us until I decide how I want to
      keep the ClearingHouse history tables updated.
      f3374b66
    • Leigh B. Stoller's avatar
      Add some shared_mode support; set a packing weight based on the node · e1d68540
      Leigh B. Stoller authored
      packing to favor nodes that already have vnodes on them. This can also
      come from the node_attributes table.
      
      Then I disabled these changes cause it was causing me problems; the
      shared nodes were not getting picked. Needs more thought.
      e1d68540
    • Leigh B. Stoller's avatar
      Add quiet option to stop all output. · fd102f5c
      Leigh B. Stoller authored
      Add a solution option that is similar to impotent mode,
      but spits out an xml file with the solution. Used by the CM.
      A couple of little fixes.
      fd102f5c
    • Leigh B. Stoller's avatar
      Switch to using virt_lans to get the IP info; we deprecated the ips · 0647ad17
      Leigh B. Stoller authored
      slot of the virt_nodes years ago!
      0647ad17
    • Leigh B. Stoller's avatar
      Add a setrtabid() method; not strictly necessary but its nice to · 556f1c21
      Leigh B. Stoller authored
      record that info in the DB.
      556f1c21
    • Leigh B. Stoller's avatar
      912c6bc6
    • Leigh B. Stoller's avatar
      Minor cleanup to the Cleanup() code. · 282b027b
      Leigh B. Stoller authored
      282b027b
    • Leigh B. Stoller's avatar
      Return to using tmcd mounts instead of accounts; let tmcd tell us what · cb5ecc4e
      Leigh B. Stoller authored
      to do for a container.
      cb5ecc4e
    • Gary Wong's avatar
      Pay more attention when checking if any types are specified. Specifically, · 2b1723e4
      Gary Wong authored
      if there are no node_type elements, that means we should apply the default.
      2b1723e4
    • Gary Wong's avatar
      662b7943