Store discovery and admin with 4s-boss and 4s-admin tools, plus a few minor fixes/features #45

Merged
merged 126 commits into from Nov 8, 2011
Commits on Aug 4, 2011
  1. Initial import of admin tools. This includes 4s-boss (lookup and admi…

    davechallis committed Aug 4, 2011
    …n daemon), and 4s-admin (command line interface to 4s-boss daemon).
  2. Added default port number here (was previously in params.h, but this …

    davechallis committed Aug 4, 2011
    …keeps admin* stuff a bit more self contained).
  3. Modified 4s-mdns to allow 4s-boss to be used as a lookup mechanism. M…

    davechallis committed Aug 4, 2011
    …odified 4s-server to write and lock a pidfile when it starts.
Commits on Aug 8, 2011
Commits on Aug 9, 2011
  1. Large number of changes to logging.

    davechallis committed Aug 9, 2011
    Log level can now be set globally, and can use either fs_error, or print to
    stderr depending on variables set.
  2. Fixed memory leak in fs_metadata opening/closing.

    davechallis committed Aug 9, 2011
    A raptor_world was being initialised in fs_metadata_open, but wasn't being
    freed at cleanup in fs_metadata_close.
Commits on Aug 11, 2011
  1. Settings for 4s-boss now in [4s-boss] section of config.

    davechallis committed Aug 11, 2011
    Moved from [default], and 4s-boss_ prefix removed from config options.
    Updated README to match new values.
Commits on Aug 16, 2011
  1. Fixed typo.

    davechallis committed Aug 16, 2011
Commits on Aug 17, 2011
Commits on Aug 18, 2011
Commits on Aug 19, 2011
Commits on Aug 22, 2011
Commits on Aug 23, 2011
  1. Updated docs.

    Dave Challis committed Aug 23, 2011
  2. Updated docs.

    Dave Challis committed Aug 23, 2011
  3. Fixed tpo and formatting.

    Dave Challis committed Aug 23, 2011
  4. Formatting update.

    Dave Challis committed Aug 23, 2011
Commits on Aug 24, 2011
  1. Fixed memory leak.

    davechallis committed Aug 24, 2011
Commits on Aug 25, 2011
  1. Modified warnings about avahi/dns-sd to mention that cluster support …

    davechallis committed Aug 25, 2011
    …is still available through 4s-boss.
Commits on Aug 29, 2011
Commits on Aug 30, 2011
  1. Runtime config file location and name is now configurable.

    davechallis committed Aug 30, 2011
    Was previously hardcoded to /etc/4store.conf, can now be set with e.g.:
    ./configure --with-config-file=/tmp/foo.conf
  2. Added handler for SIGINT.

    davechallis committed Aug 30, 2011
Commits on Aug 31, 2011
  1. Server now listens on v4 and v6, v6 addr now supported in config.

    davechallis committed Aug 31, 2011
    4s-boss now trys to bind/listen on a v4 and v6 address, rather than stopping
    as soon as it found one.
    
    IPv6 addresses are also supported in the config file now, so the following
    should now work:
        nodes = [::1]:1234;[1111:2222::1233];localhost
Commits on Sep 5, 2011
Commits on Sep 6, 2011
Commits on Sep 12, 2011
  1. Added headers to 4s-admin list-stores output.

    davechallis committed Sep 12, 2011
    Also changed the way segment numbers are listed.  Now shows:
        8 of 32
    Running with --verbose will give the old output format of:
        3,7,11,15,19,23,27,31 of 32
Commits on Sep 13, 2011
  1. Fixed some formatting.

    davechallis committed Sep 13, 2011
  2. Formatting tweak.

    davechallis committed Sep 13, 2011
Commits on Sep 14, 2011
Commits on Sep 19, 2011
Commits on Sep 20, 2011
  1. Merge remote-tracking branch 'upstream/master'

    davechallis committed Sep 20, 2011
    Conflicts:
    	autogen.sh
Commits on Sep 23, 2011
Commits on Sep 24, 2011
  1. Changed messages at end of configure.ac.

    davechallis committed Sep 24, 2011
    Warnings changed to echo, and message states that cluster support available
    through 4s-boss if mdns not present.
  2. 4s-admin start/stop stores now correctly reports invalid stores.

    davechallis committed Sep 24, 2011
    4s-boss returns correct value when stores not found on server.
  3. Added 'tags' to list of ignored terms.

    davechallis committed Sep 24, 2011
    Tells git to ignore the tags file generated by ctags.
Commits on Sep 26, 2011
Commits on Sep 27, 2011
  1. Now deletes runtime.info in store dirs. Exits with 1 on error.

    davechallis committed Sep 27, 2011
    Deletion of stores previously failed if runtime.info was present (dir not
    empty error).
    
    Command exits with value of 1 if error occurs during deletion. Previously
    returned 0 regardless.  Used by 4s-admin/4s-boss to determine if deletion
    worked or not.
  2. 4s-admin delete-stores command now supported. Output/refactoring chan…

    davechallis committed Sep 27, 2011
    …ges.
    
    ./4s-admin delete-stores <kb1>...
    
    Refactored a couple of functions, improved output of a couple of commands.
    
    Improved error handling, and passing of error messages in some admin_backend
    commands.
    
    Added polling to backend stop_stores function, waits until 4s-backend process
    actually dies (or timeout is reached) before returning success/failure result.
Commits on Sep 28, 2011
  1. Fixed memory leak.

    davechallis committed Sep 28, 2011
  2. Fixed typo.

    davechallis committed Sep 28, 2011
Commits on Oct 5, 2011
Commits on Oct 11, 2011
  1. Initial import.

    davechallis committed Oct 11, 2011
Commits on Oct 12, 2011
  1. Added support for config file path to be set at runtime.

    davechallis committed Oct 12, 2011
    Added fs_get_config_file() and fs_set_config_file to 4s-common.c and
    4store.h.
    
    Uses value from FS_CONFIG_FILE in params.h if this isn't set.
    
    Cleaned up some lines with mixed spaces/tabs in httpd.c.
Commits on Oct 13, 2011
  1. Added admin global to allow bin dir to be set at runtime.

    davechallis committed Oct 13, 2011
    Returns FS_BIN_DIR by default.
    
    Addition to Makefile.am to set FS_BIN_DIR at compile time.
    
    Added -c, --config-file and -b, --bin-dir options to 4s-boss.
Commits on Oct 14, 2011
Commits on Oct 17, 2011
  1. Fixed minor typo.

    davechallis committed Oct 17, 2011
Commits on Oct 18, 2011
Commits on Oct 19, 2011
  1. Modifications to tests.

    davechallis committed Oct 19, 2011
Commits on Oct 23, 2011
  1. Initial import.

    davechallis committed Oct 23, 2011
  2. Initial import.

    davechallis committed Oct 23, 2011
  3. Initial import

    davechallis committed Oct 23, 2011