1. 30 Jul, 2012 4 commits
    • Mike Hibler's avatar
      Fix a few more sort-related issues while I was in the neighborhood. · bbc26e5b
      Mike Hibler authored
      Hardwire the sort type for a few columns that cause guessType grief.
      
      Remove the insertion of blank-rows-as-spacers in a table. They don't
      sort well. Leigh got rid of most of these a while back.
      bbc26e5b
    • Mike Hibler's avatar
      Make sorttable_alpha case-insensitive and use stable sort. · 4b4da239
      Mike Hibler authored
      The former ensures that we get the same behavior as when the same
      sorted output is produced using "order by" in mysql. I added a
      sortable_alpha_cs that we can use for a column should we discover
      a case where we really want a case-sensitive sort.
      
      The latter ensures that a user can at least manually do a multi-column
      sort (e.g., the equiv of "order by state,eid" when displaying experiments
      by clicking on the eid column and then on the state column).
      4b4da239
    • Mike Hibler's avatar
      Call init() method in makeSortable() to fix broken table sorting. · e8592249
      Mike Hibler authored
      This is needed due to the odd way in which we use sorttable.
      In normal use, sorttable.init would be called via the DOMContentLoaded
      event hook and this would invoke makeSortable() to do the DOM magic
      necessary to ensure all tables marked sortable are make sortable.
      
      But due to our use of AJAX-y dynamic content loading, this won't work
      (or so I am told!) So we generate our own call to makeSortable(mytable)
      when we produce any sortable table "mytable". But if init() has not been
      called before that first call to makeSortable, the DATE_RE regex will
      not be initialized and strange things happen in guessType and consequently,
      in the sort functions themselves.
      e8592249
    • Mike Hibler's avatar
      Fix typo. · 7d3069b4
      Mike Hibler authored
      7d3069b4
  2. 27 Jul, 2012 2 commits
  3. 25 Jul, 2012 7 commits
  4. 24 Jul, 2012 1 commit
    • Mike Hibler's avatar
      Add a 'disabled' field to the subbosses table. · e08bfeec
      Mike Hibler authored
      This allows us to more easily disable a subboss in the event of a temporary
      subboss outage (e.g., hardware failure). Previously we would have to remove
      the related rows from the DB and restore them later.
      e08bfeec
  5. 23 Jul, 2012 7 commits
  6. 20 Jul, 2012 1 commit
  7. 19 Jul, 2012 2 commits
  8. 18 Jul, 2012 1 commit
  9. 17 Jul, 2012 8 commits
    • David Johnson's avatar
      Add a CLI for FreeNAS to build Emulab clientside support. · 42c6e214
      David Johnson authored
      FreeNAS is basically a web frontend to BSD-backed ZFS volumes,
      filesystems, and various ways to share them (i.e., iSCSI, NFS, etc).
      It stores all its config info in a sqlite DB from which it configs
      the BSD system.  It uses Django (a slightly weird MVC that exports a web
      interface; logic/models/views are all in python, and there is an
      HTML-based template interface.
      
      What I did was basically to wrap the model/form parts of FreeNAS's
      code -- so for the commands we want to support, we actually mock up
      an HTTP request, and submit it directly to the correct handler function
      that the FreeNAS Django config files specify.  This allows us to leverage
      all the FreeNAS error checking code and automation (i.e., deleting an
      interface would delete aliases on that interface too).
      
      usage() prints this, at present:
      
      Supply a command set class, an operation, and the necessary arguments.
      
        interface       Configure network interfaces
          add  <interface> <name> [<dhcp=X> <ipv6auto=X> <options=X> ] ...
          del  <interface>
          edit <interface> [<dhcp=X> <ipv6auto=X> <name=X> <options=X> ] ...
        ist             Configure ISCSI targets (a target binds SCSI attributes
               (i.e. serial number, r/w flags, queue depth, block size) to iSCSI
               attributes (i.e., a target portal, authorized initiator network ACLs,
               iSCSI authentication info)
          add  <name> <serial> <portalgroup> <initiatorgroup> [<authtype>
               <authgroup> ] [<alias=X> <flags=X> <logical_blocksize=X>
               <queue_depth=X> <type=X> ]
          del  <name>
          edit <name> [<serial> <portalgroup> <initiatorgroup> <authtype>
               <authgroup> ]
        ist_assoc       Associate extents with targets (final "link" between storage
               and network)
          add <target> <extent>
          del <target> <extent>
        ist_authcred    Configure ISCSI target authentication credentials (i.e.,
               users)
          add  <tag> <user> <secret1> [<peeruser> <peersecret1> ]
          del  <user>
          edit <tag> <user> <secret1> [<peeruser> <peersecret1> ]
        ist_authinit    Configure ISCSI initiator authorizations by hostname or
               network
          add  <tag> <initiators> [<auth_network> <comment> ]
          del  <tag>
          edit <tag> <initiators> [<auth_network> <comment> ]
        ist_config      Configure general ISCSI parameters
          edit [<basename=X> <defaultt2r=X> <defaultt2w=X> <discoveryauthgroup=X>
               <discoveryauthmethod=X> <firstburst=X> <iotimeout=X> <maxburst=X>
               <maxconnect=X> <maxoutstandingr2t=X> <maxrecdata=X> <maxsesh=X>
               <nopinint=X> <r2t=X> ]
        ist_extent      Configure ISCSI target extents (block devs or files exported
               via ISCSI)
          add      <name> <dev> [<comment> ]
          addfile  <name> <path> <filesize> [<comment> ]
          del      <name>
          edit     <name> <dev> [<comment> ]
          editfile <name> <path> [<comment> ] [<filesize=X> ]
        ist_portal      Configure ISCSI target portals (i.e., ip:port binding to
               associate with a target)
          add  <tag> [<comment=X> ] ...
          del  <tag>
          edit <tag> [<comment=X> ] ...
        network         Configure generic network settings
          config [<domain=X> <hostname=X> <ipv4gateway=X> <ipv6gateway=X>
               <nameserver1=X> <nameserver2=X> <nameserver3=X> ]
        pool            Configure ZFS storage pools
          add <volume_name> <volume_fstype> <group_type>  ...
          del <vol_name>
          mod <volume_add> <volume_fstype> <group_type>  ...
        route           Configure static routes
          add <destination> <gateway> [<description> ]
          del <destination> [<gateway> ]
        snapshot        Create, clone, rollback ZFS snapshots of volumes or clones
          add      <snap_name>
          clone    <cs_snapshot> <cs_name>
          del      <snap_name>
          rollback <snap_name>
        vlan            Configure vlan interfaces
          add <pint> <vint> <tag> [<description> ]
          del <vint>
        volume          Configure ZFS volumes (zvols) atop pools
          add <pool_name> <zvol_name> <zvol_size> <zvol_compression>
          del <pool_name> <vol_name>
      42c6e214
    • Leigh B Stoller's avatar
      Fix minor bug in regex table. · 000cb177
      Leigh B Stoller authored
      000cb177
    • Leigh B Stoller's avatar
      Fix minor bug in regex table. · f09b8694
      Leigh B Stoller authored
      f09b8694
    • Leigh B Stoller's avatar
      Add link to new vlan tag history page. · eac05354
      Leigh B Stoller authored
      eac05354
    • Leigh B Stoller's avatar
      Fix a couple php warnings. · 4e338182
      Leigh B Stoller authored
      4e338182
    • Leigh B Stoller's avatar
      Another ProtoGeni checkbox; record vlan tags in a history table · 8db4850e
      Leigh B Stoller authored
      and provide a web interface to look at them.
      8db4850e
    • Leigh B Stoller's avatar
    • Leigh B Stoller's avatar
      Add tracking of control net mac addresses in the node_history. · bb66f52e
      Leigh B Stoller authored
      For InstaGeni, need to record and be able to search for history by
      control net mac address. We now record this in the node_history table,
      with corresponding change to the ShowNodeHistory web page.
      
      The backend changes required are that we 1) actually generate a mac
      address for VMs and stick it into the interfaces record, 2) return
      that mac from tmcd in the jailconfig, and 3) have the openvz library
      create the control net interface using that mac.
      
      On the openvz image, needed to switch to using a control network
      bridge for all interfaces (not just routable ones) so that traffic
      leaves the node with the correct mac.
      bb66f52e
  10. 16 Jul, 2012 1 commit
  11. 14 Jul, 2012 2 commits
  12. 13 Jul, 2012 3 commits
    • Leigh B Stoller's avatar
      738d207c
    • Leigh B Stoller's avatar
      ProtoGeni stitching and vlan tag reservation changes. · 9b7f535e
      Leigh B Stoller authored
      * Get rid of all use of component_hops; this was our original syntax
        before the stitching path stuff was nailed down.
      
      * Allow a vlan tag to be requested in the link statement:
      
          <link client_id="link0" vlantag="765">
            <interface_ref client_id="geni1:if0" />
        
      * Support vlan tag requests in the stiching path part:
      
          <vlanRangeAvailability>765</vlanRangeAvailability>
          <suggestedVLANRange>765</suggestedVLANRange>
      
        This is the only support at the moment; none of the range stuff is
        done. Further, if you really want things to work, make sure all the
        hops have the same vlan tag cause we don't do vlan translation
        internally or at our edge points.
      
      * Utah only change in the mapper; when trying to use a shared vlan
        whose tag is great then 1000, demand the "highvlan" feature on the
        nodes in the lan. Only some of our switches to high numbered vlans.
      9b7f535e
    • Leigh B Stoller's avatar
      Add a method to clear unused reserved vlan tags; these are tags · 97a610b1
      Leigh B Stoller authored
      that are in the reserved_vlantags table, but are not referenced
      by an actual lan object in the lans table.
      97a610b1
  13. 12 Jul, 2012 1 commit