1. 26 Apr, 2013 1 commit
    • David Johnson's avatar
      Fix suddenly-appearing bug in libosload_new dynamic module loading code. · f8434aad
      David Johnson authored
      Not sure why this change was needed, but it wasn't working anymore.
      Maybe this is a perl 5.10 -> 5.12 thing; how I was doing an eval of a
      require to load an libosload_X module was no longer working.  The new
      way is better anyway, but even after looking through the perlXdelta
      pages, I didn't see a reason for this.
      Oh well.
  2. 09 May, 2011 1 commit
    • David Johnson's avatar
      Tweaks to default layer2 HP switch config. · aac97d1b
      David Johnson authored
      Set snmp community appropriately.  Turn on spanning tree.
      Also make sure that VLAN 1 hasn't gotten a control net addr via DHCP.
      When we remove the current switch config and the switch reverts to
      its default, it turns on DHCP for VLAN 1.  Then, if it manages to get
      a control net address (i.e., from the new node pool), we have to make
      sure to unset any IP address in VLAN 1 before assigning one in VLAN 999
      (the control net VLAN we use in this static configuration).  Otherwise we
      might end up trying to configure an IP addr in the same subnet on two
      different VLANs, which the switch won't allow.
  3. 25 Apr, 2011 1 commit
  4. 23 Apr, 2011 1 commit
  5. 20 Dec, 2010 1 commit
    • David Johnson's avatar
      Xmodem work; bugfixes; reorg. · e3bd42ea
      David Johnson authored
      Allow xmodem reloads if explicitly specified requested via os_load.
      Make power cycles asynch; we want to track their outcome via the console.
      Make sure to reload switches that have no entries in the partitions
      table too.
      Misc bugfixes and reorganization.
  6. 12 Nov, 2010 1 commit
    • David Johnson's avatar
      Bugfix, and protect switch flashes via feature. · 1ca84a0d
      David Johnson authored
      We now protect switch reloads via the SwitchFlash feature.  We
      don't really give people a lot of advance warning about this,
      and we wait long enough that it will irritatingly fail your
      experiment swapin.  Ideally we should check before anything
      starts happening, but we don't know if we *have* to reload
      until we see what's on the nswitch node that gets allocated
      to us... and by the time nodes are allocated, I think they
      end up having to go through reloading if *any* of them fails.
      Not sure though.
      Also fixup handling of multiple libossetup_switch ops; if one
      fails, abort the list instead of continuing on.
  7. 11 Nov, 2010 1 commit
  8. 09 Nov, 2010 1 commit
  9. 08 Nov, 2010 1 commit
    • David Johnson's avatar
      If we don't flash the switch, restore its osid/partition info. · 7f5fa6bf
      David Johnson authored
      If a switch reload fails, and we're sure we didn't flash the
      switch, then revert the changes to osid info in the nodes table
      and the partitions table entries.  This way, we don't lie about
      what's actually on the switch.  Otherwise, there could be a
      problem on a subsequent reload -- a user could request something
      that failed to load last time, but Emulab thinks that's what's
      really on the switch, so it doesn't reload... but that wasn't
      really what was installed on the switch.  So, this will help
      us stay in synch.
      Also remove all the os_select script invocations in favor of
      using the Node->OSSelect method instead.  Save a fork, save a
  10. 04 Nov, 2010 1 commit
    • David Johnson's avatar
      libosload rewrite and HP Procurve switch support. · 7cfa7aa6
      David Johnson authored
      libosload_new contains the new libosload.  It provides the same
      API as the original libosload, but the functionality has been
      split out into well-defined methods that can be overridden by
      per-node type subclasses in small chunks.  This is all protected
      by the NewOsload feature.
      libosload_switch.pm.in and libossetup_switch.pm.in contain the HP
      switch support, which requires the new libosload and new
      libossetup.  libossetup_switch doesn't do anything too radical, but
      it does support running a node it is "lighting up" through multiple
      operations -- i.e., first a RELOAD, then a RECONFIG.  This was
      necessary because switches require a config to be pushed to them
      (well, they do in the way I elected to support them), and they
      cannot fetch configuration in the normal Emulab way via tmcd.
      Eventually, that multi-op support will be factored out into
      libossetup more generically so that other node types which require
      push-based configuration can leverage it.
      libosload_switch contains the HP switch loading code.  It's built
      around expect-like interaction on the serial console.  It supports
      xmodem and tftp uploads, but tries to only flash the switch lazily.
      Thus, if the switch is already loaded with an image and a user
      (or the reload daemon, or anybody) reloads it with the same image,
      it won't actually get reloaded.  You can now force this reload
      with os_load.
      libosload_switch also contains reconfig code (i.e., to wipe
      switch configs and recreate based on which experiment it is in).
      libossetup_switch directly invokes this instead of going through
      libosload, since configuring is not really part of loading.  It
      is just convenient since configuration also happens over the
      serial console, and all the osload code for the switch can be
      Also, of course, there are miscellaneous changes to support the
      new libosload in os_load itself.