1. 31 Aug, 2015 2 commits
  2. 25 Aug, 2015 1 commit
    • Leigh B Stoller's avatar
      Add a new table image_boot_status to record boot success/failure each time · 4fa9d2ea
      Leigh B Stoller authored
      an image is loaded on a node. We want to know both success and failure over
      time so that we can determine when a image works or does not work on a
      particular node/type. This is primarily for the image tracker to determine
      what images work on what node types, but might be useful for in other
      situations. I realize this duplicates some info we already have in the
      image_history table, but that does not record failure, only success, and it
      mostly concerned with who is using what images.
      4fa9d2ea
  3. 24 Aug, 2015 2 commits
  4. 21 Aug, 2015 3 commits
  5. 20 Aug, 2015 1 commit
  6. 10 Aug, 2015 1 commit
  7. 04 Aug, 2015 2 commits
  8. 30 Jul, 2015 1 commit
  9. 29 Jul, 2015 1 commit
  10. 21 Jul, 2015 1 commit
  11. 15 Jul, 2015 2 commits
  12. 14 Jul, 2015 2 commits
    • David Johnson's avatar
      Support newer HP 5400zl firmware versions in libosload_switch. · db93beed
      David Johnson authored
      First, firmwares are bigger and take longer to write, so bump the TFTP
      load timeout to 5 minutes instead of 2.
      
      Second, newer HP firmwares won't let you load unsigned firmware images
      into flash, unless you specify a special param in your flash command.
      Unfortunately, older firmwares don't support that param.  So we just use
      trial and error to figure out if a switch has it or not, and we always
      are willing to flash unsigned firmwares... just have to trust, because
      we have no way of knowing which version should be signed, or how to tell
      which version a particular blob is.  At least not that I know of, not
      that I looked hard.
      
      Finally, our expect-based interface has to be a bit more flexible
      with some of the regexps it looks for.
      db93beed
    • David Johnson's avatar
      Mirror libosload properly for image/os load in libosload_new. · 5882f0a2
      David Johnson authored
      libosload_new wasn't accepting the "new" types of ways to specify
      one or more images to load on nodes, so manual os_load wasn't
      working.  I also mirrored the usedefault and usecurrent stuff from
      libosload into libosload_new; will make it easier in the future.
      5882f0a2
  13. 11 Jul, 2015 1 commit
  14. 07 Jul, 2015 1 commit
  15. 26 Jun, 2015 1 commit
  16. 24 Jun, 2015 1 commit
    • Mike Hibler's avatar
      Updates for new FreeBSD 10.1 based servers. · 480fdc70
      Mike Hibler authored
      Big changes a comin' to try to get us back on the supported path.
      
       * perl 5.14 -> 5.20
       * mysql 5.1 -> 5.5
       * php 5.4   -> 5.6
       * tcl 8.4   -> 8.6
       * number of vim patches up to 683.
      
      Not everything tested yet, but getting there.
      
      Specific changes:
      
       * New install/ports directory. New packages for FreeBSD 10.1 are version
         6.1. Cleaned up the ports' Makefiles getting rid of conditionals for
         all older versions. Also got rid of ports we don't use. Old ports tree
         is now install/oports.
      
       * Install script changes. Make sure /usr/bin/perl and /usr/local/bin/python
         links exist. Ports no longer make these but we use them in '#!'. Changes
         to mysql install and startup script--mysql has changed a LOT since we did
         the support in 4.x. Create syslog entry for named.log. Make sure php.conf
         loads the legacy "mysql" module rather than using "mysqli".
      
       * Elabinelab support. reflect new packages, remove all old packages
         (except perl) before installing new versions, install "extras" package,
         make sure sendmail cert get regenerated, make sure /usr/bin/perl link
         exists, make sure /usr/local/bin/python link exists.
      
       * Custom ports. otcl and xerces-c2 have both been removed from the ports
         tree as of Q2 2015. ipmitool-devel is a port for the latest version of
         ipmitool. The FreeBSD port is still a rev behind here. We need the
         newer version as it appears to make our SOL consoles more stable.
      
       * Random. Fixed prerender as neato output has changed again. Tweak to
         sslxmlrpc_server to reflect change in an underlying library. Tweak to
         db/libdb.py.in to turn on autocommit which matters now as mysql 5.5 will
         hang on a metadata lock otherwise. Remade eventsys perl/python stubs
         with SWIG 2.0. SWIG 1.3 did not produce working stubs for perl 5.20.
      
      Specific un-changes:
      
       * Apache is still at 2.2. I lack the guts and skilz to upgrade to 2.4.
      
       * Xerces library is still at (now unsupported) 2.8. Assign will need
         changes before we can move to 3.x.
      
       * Python is still 2.7.
      
      Thanks to Keith Sklower for all the work he did converting ports!
      480fdc70
  17. 23 Jun, 2015 1 commit
  18. 19 Jun, 2015 8 commits
    • Leigh B Stoller's avatar
      New support for importing image backed datasets from other clusters. This · 613d90dd
      Leigh B Stoller authored
      is just like importing images (by using a url instead of a urn), which
      makes sense since image backed datasets are just images with a flag set.
      
      Key differences:
      
      1. You cannot snapshot a new version of the dataset on a cluster it has
         been imported to. The snapshot has to be done where the dataset was
         created initially. This is slightly inconvenient and will perhaps
         confuse users, but it is far less confusing that then datasets getting
         out of sync.
      
      2. No image versioning of datasets. We can add that later if we want to.
      613d90dd
    • Leigh B Stoller's avatar
      Support for stitch to Lan: · 6c1560d0
      Leigh B Stoller authored
      1. A trivial change in GeniCM; only look at the first two interfaces in the
         link if it references an external node. We already depend on the fact
         that the first two interfaces are in the same order as the two stitch
         points in the stitching section, so as long as we ignore external nodes
         after the second interface, setting up the virtual state for a lan works
         just peachy.
      
      2. libvtop_test: a bit less trivial, mostly cause of vlan tag pre
         reservation when stitching. When we encapsulate a lan we build another
         lans table entry that is linked. There is no need to do this when the
         encapsulation is vlan, and in fact I had changed links a long time ago
         to not do this, for the exact same reason. Lans are little bit more
         complicated but I think I got it.
      6c1560d0
    • Kirk Webb's avatar
    • Kirk Webb's avatar
    • Kirk Webb's avatar
      Fixes to make Comware OF support function correctly (squash commit). · b277d49a
      Kirk Webb authored
      Note: Since snmpit runs as the user, we don't rely on root's ssh keys
      for Netconf authentication.  The username and password to use can be
      encoded in the "community" field in the database (switch_stack_types, or
      overridden in switch_stacks):
      
        <community>[:<user>[:<pass>]]
      
      User/password default to:
      
        username: snmpit
        password: <community>
      b277d49a
    • Kirk Webb's avatar
      Install snmpit_libNetconf · 39bf502e
      Kirk Webb authored
      39bf502e
    • Kirk Webb's avatar
      Add OpenFlow support to HP Comware snmpit module (snmpit_h3c). · f6ff476d
      Kirk Webb authored
      This commit fills in all of the snmpit OF API calls for the Comware
      module.  Note that Comware doesn't support OF "listener" ports, such as
      are available on the Procurve/Provision switches.  Therefore, the
      functions related to listener ports return an error.
      
      It is assumed that when "disableOpenflow()" is called, that the caller
      also intends to destroy the related OpenFlow instance on the switch.
      There is no other call in the snmpit API for explicitly removing OF
      instances.
      f6ff476d
    • Kirk Webb's avatar
      Netconf-over-ssh library for snmpit. · 8bf81708
      Kirk Webb authored
      I don't know what I like most about this module, working with Expect or
      handling XML namespaces... Includes the basics of the Netconf protocol.
      Only tested with HP Netconf-over-ssh (Comware)!
      
      Main interface calls:
      
      $ncobj = snmpit_libNetconf->new($switch, $userpass, $port, $debuglvl)
      
      Create a new Netconf library object, pointed at switch host $switch.
      Username with optional password are passed as second argument (delimit
      with ':'). $port is port to connect to, and $debuglvl is the debugging
      level. Last two arguments are optional.
      
      $ncobj->doGet($filter)
      
      Execute Netconf "Get", with optional Netconf XML filter argument.
      
      $ncobj->doGetConfig($filter, $source)
      
      Get entire switch config, or partial config if $filter is supplied.
      $source is which config (running or saved).  Arguments are optional.
      
      $ncobj->doEditConfig($xmlconf, $target, $defop);
      
      Edit the switch's config.  $xmlconf is an XML::LibXML::Node object
      containing the XML-encoded configuration update. $target identifies what
      to apply it to (running or startup. Defaults to running). $defop is the
      default operation (merge, replace, none. Defaults to "merge").  Last two
      arguments are optional.
      
      $ncobj->doRPC($cmd, $xmlarg)
      
      Generic RPC dispatcher (Used by the other "do" commands above).  $cmd is
      the rpc command to execute. Optional $xmlarg parameter is an
      XML:LibXML::Node object that encodes the arguments to $cmd.
      8bf81708
  19. 10 Jun, 2015 1 commit
  20. 09 Jun, 2015 1 commit
  21. 22 May, 2015 1 commit
  22. 18 May, 2015 1 commit
  23. 15 May, 2015 2 commits
    • Kirk Webb's avatar
      Add custom module offset hack for snmpit_h3c (Comware) module · 0e672400
      Kirk Webb authored
      The hard-coded per-model offsets aren't always correct.  Need to deal
      with this in a different way, but this is a quick hack to move things along
      with the Utah stitcher aggregate.
      0e672400
    • Leigh B Stoller's avatar
      Directory based image paths. · 3a21f39e
      Leigh B Stoller authored
      Soon, we will have images with both full images and deltas, for the same
      image version. To make this possible, the image path will now be a
      directory instead of a file, and all of the versions (ndz,sig,sha1,delta)
      files will reside in the directory.
      
      A new config variable IMAGEDIRECTORIES turns this on, there is also a check
      for the ImageDiretories feature. This is applied only when a brand new
      image is created; a clone version of the image inherits the path it started
      with. Yes, you can have a mix of directory based and file based image
      descriptors.
      
      When it is time to convert all images over, there is a script called
      imagetodir that will go through all image descriptors, create the
      directory, move/rename all the files, and update the descriptors.
      Ultimately, we will not support file based image paths.
      
      I also added versioning to the image metadata descriptors so that going
      forward, old clients can handle a descriptor from a new server.
      3a21f39e
  24. 13 May, 2015 1 commit
  25. 06 May, 2015 1 commit