1. 09 Dec, 2004 2 commits
  2. 08 Dec, 2004 7 commits
    • Daniel Flickinger's avatar
      small updates · 563c6aca
      Daniel Flickinger authored
      563c6aca
    • Timothy Stack's avatar
      · feea9720
      Timothy Stack authored
      Elvinize emc and some bug fixes...
      
      	* configure, configure.in: Add "robots/emc/test_emcd.sh" script to
      	the list of template files.
      
      	* robots/GNUmakefile.in: Add a target for install-subdir.
      
      	* robots/emc/GNUmakefile.in: Compile emcd and install it on ops.
      	Add test_emcd.sh test case.
      
      	* robots/emc/emcd.h, robots/emc/emcd.c: Elvinize, add support for
      	events, and some minor cleanup.
      
      	* robots/emc/robot_list.c: Compilation fixes.
      
      	* robots/emc/test_emcd.config: Robot config for the test case.
      
      	* robots/emc/test_emcd.sh.in: Test case for emcd, just starts it
      	up and uses mtp_send to send a few messages to it.
      
      	* robots/mtp/GNUmakefile.in: Install mtp_send and mtp_recv on ops.
      
      	* robots/mtp/mtp.h, robots/mtp/mtp.c: Marshall floats correctly,
      	doh!  Move the packet printing code from mtp_recv to the lib.
      
      	* robots/mtp/mtp_recv.c: Move the packet printing code to the
      	lib.
      
      	* robots/mtp/mtp_send.c: Add a "-w" option to wait for a response
      	from the peer and then dump the packet to stdout.  Allow multiple
      	packets to be sent from a single invocation, the arguments for
      	each packet must be separated by a double dash (--), see
      	test_emcd.sh.in for an example.
      
      	* robots/mtp/mtp_test.c: Gah, test with actual floating point
      	values dummy.
      feea9720
    • Leigh B. Stoller's avatar
      Allow specification of inner elab experiment eid in the NS file. I'm · 2ea12718
      Leigh B. Stoller authored
      so unhappy with my current approach that I decided to drop that idea
      for now and just specify the eid of the experiment to run.  Obviously,
      it has to be an existing experiment in the same project, whose nsfile
      is grabbed from the DB and shipped over to the inner boss.
      2ea12718
    • Leigh B. Stoller's avatar
      Stripped down version of the floormap code that shows the robotmap · ca9ea012
      Leigh B. Stoller authored
      with no other stuff on page. Notes:
      
      * I added a new building called MEB-ROBOTS cause otherwise it would
        show up on the wireless maps since floormap gets all the floors for
        a building. Need to add type tags someplace, but not sure where yet
      
      * I committed Russ' initial jpeg image to use in the floorimages
        table. Russ can replace that when he generates a better looking
        version.
      
      * I linked the robots map in from the node status page ...
      ca9ea012
    • Mike Hibler's avatar
      Fix check to ignore LOCK/UNLOCK/DELETE lines generated in the distribution · 7bd329e6
      Mike Hibler authored
      version of database-fill.sql
      7bd329e6
    • Leigh B. Stoller's avatar
    • Leigh B. Stoller's avatar
      8fb23715
  3. 07 Dec, 2004 12 commits
    • Russ Fish's avatar
    • Russ Fish's avatar
      Mis-placed comma. · 4759da4d
      Russ Fish authored
      4759da4d
    • Russ Fish's avatar
      337dd532
    • Russ Fish's avatar
      Move HOSTSFILE into liblocsetup for Windows. · 1ec51476
      Russ Fish authored
      1ec51476
    • Daniel Flickinger's avatar
      Added socket communications, etc. · 53d65f4a
      Daniel Flickinger authored
      53d65f4a
    • Daniel Flickinger's avatar
      · ce46a57a
      Daniel Flickinger authored
      More sockets and integration
      ce46a57a
    • Leigh B. Stoller's avatar
      A number of changes: · 261b35fe
      Leigh B. Stoller authored
      * Always run assign_wrapper using -t mode. This just runs the top file
        stuff, and writes the min/max nodes into the DB.
      
      * Then look at the security level for the experiment, and if orange or
        red, create a parallel elabinelab experiment to run it in. This is a
        completely new experiement in addition to the original. The two
        experiments are linked with some DB state so we know what experiment
        to fire off inside the inner elab. I am using a template NS file and
        passing in the number of nodes computed in the previous step above.
        The template includes the firewall rules.
      
        This is quote hokey. It should be more invisible to the user.
      
        I have not dealt with yellow (just a firewall).
      
      * I added some stats code so that we update the experiement_stats
        record with the elabinelab status and security level.
      
      * Cleanup how errors were handled and get rid of silly duplicated
        code.
      261b35fe
    • Leigh B. Stoller's avatar
      Add TBExptMinMaxNodes(), TBExptSecurityLevel(), and TBExptIDX() · 8bca6c6f
      Leigh B. Stoller authored
      utility functions, which do the obvious stuff.
      8bca6c6f
    • Timothy Stack's avatar
      · 0ed6b518
      Timothy Stack authored
      Command line tools for the robot protocol:
      
      	* configure, configure.in: Add the robots GNUmakefiles.
      
      	* robots/mtp/GNUmakefile.in: Add command line tools: mtp_send and
      	mtp_recv.
      
      	* robots/mtp/mtp.c: Make readall return an error if all of the
      	data wasn't read instead of making the caller check.  Free the
      	buffer allocated in mtp_send_packet.  Add an mtp_free_packet.
      
      	* robots/mtp/mtp_recv.c: Faux receiver of mtp packets, it doesn't
      	actually follow the protocol, it just prints out whatever it
      	receives.
      
      	* robots/mtp/mtp_send.c: Command line tool for sending mtp
      	packets.
      0ed6b518
    • Leigh B. Stoller's avatar
      Checkpoint latest stable version. The big change is that boss and ops · ce5b0c61
      Leigh B. Stoller authored
      are setup with static routing/ifconfig by adding proper goo to rc.conf.
      Previously, I was asking outer boss on each bootup, but this approach is
      unworkable in a firewalled setting.
      ce5b0c61
    • Leigh B. Stoller's avatar
      * After rebooting the inner nodes, ssh into the inner boss and run · dd3b8989
      Leigh B. Stoller authored
        utility script to wait for them to reboot and reach PXEWAIT. This
        indicates inner emulab is raelly ready
      
      * When an inner experiment is defined (elabinelab_eid in experiments
        table) fire that experiment off by doing an ssh into inner boss. I
        am currently doing this with -w (wait mode) but eventually will need
        to do it async for experiments in which the control net is turned
        off. Also, not actually swapping experiment in yet since multicast
        and frisbee are still broken inside.
      
      * Add -k mode for cleaning up. The intent of this is to avoid power
        cycling all the nodes cause outer elab cannot reboot or ipod them.
        Goes like this:
      
        * Clear the inner_elab_role for experiment's nodes from the reserved
          table.
      
        * Clear def_boot_osid,next_boot_osid,temp_boot_osid for nodes. This
          is bogus cause os_select whines about doing this, but the point is
          to make sure that all nodes will go into PXEWAIT when they reboot.
          We could have them go into MFS, but thats bound to cause problems
          if inner elab has a lot of nodes (remember, cannot trust what is
          on disk). This needs more thought.
      
        * Regen and restart outer dhcpd. Nodes will become part of outer
          emulab on next boot cycle.
      
        * SSH into inner boss and kill inner DHCPD so that there will not be
          any DHCPD responses on inner control network.
      
        * SSH into inner boss and have it reboot all inner nodes.
      
        * Wait for node to reach PXEWAIT.
      
        The above needs more thought wrt firewalled experiments and isolated
        control network.
      
      * Kill off some old MFS copy code since we now get those direct from
        website.
      dd3b8989
    • Mike Hibler's avatar
      If osload part of swapin fails and there is a firewall involved, it is likely · f336fe42
      Mike Hibler authored
      that the firewall rules are preventing essential communication and causing the
      failure, so don't retry.
      
      We should probably only do this if the user has specified additional
      firewall rules.  But right now, I may screw up the default rules too!
      f336fe42
  4. 06 Dec, 2004 19 commits