Skip to content
Snippets Groups Projects
  1. Jan 28, 2010
    • Iustin Pop's avatar
      Add capability to use syslog for logging · 551b6283
      Iustin Pop authored
      
      This patch adds a configure-time parameter that will set the defaults
      used by all programs, and command-line parameters in the daemons that
      allow overriding it.
      
      Syslog 'yes' enables syslog in addition to file-based logging, 'only'
      enables syslog and disables file-based syslog.
      
      The log entries will be of the form:
      Jan 27 08:45:04 node2 ganeti-noded[14504]: INFO 172.24.227.5:50850 PUT
      /jobqueue_update HTTP/1.0 200
      Jan 27 08:45:05 node2 ganeti-noded[14505]: INFO 172.24.227.5:50853 PUT
      /lv_list HTTP/1.0 200
      
      and (for a multi-threaded program):
      Jan 27 08:51:48 node1 ganeti-masterd[15491]: (MainThread) INFO
      ganeti-masterd daemon startup
      Jan 27 08:51:49 node1 ganeti-masterd[15491]: (MainThread) INFO
      Inspecting job queue
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      551b6283
  2. Jan 27, 2010
  3. Jan 26, 2010
  4. Jan 25, 2010
  5. Jan 22, 2010
  6. Jan 21, 2010
  7. Jan 20, 2010
  8. Jan 19, 2010
    • Michael Hanselmann's avatar
      daemon-util: Fix quoting issue · 03956d39
      Michael Hanselmann authored
      
      This patch fixes a quoting issue in daemon-util:
      
      $ EXTRA_MASTERD_ARGS=--no-voting /etc/init.d/ganeti restart
      […]
      * ganeti-masterd...
      /…/ganeti/daemon-util: line 65: local: `--no-voting': not a valid identifier
      
      The reason was that the generated variables were not quoted properly and
      the troublesome line expanded to
      “local args=$MASTERD_ARGS $EXTRA_MASTERD_ARGS” instead of the correct
      “local args="$MASTERD_ARGS $EXTRA_MASTERD_ARGS"”.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      03956d39
  9. Jan 15, 2010
    • Michael Hanselmann's avatar
      v2.1.0rc3
      0175fd8c
    • Iustin Pop's avatar
      Merge branch 'stable-2.1' into devel-2.1 · f9d0783b
      Iustin Pop authored
      * stable-2.1: (22 commits)
        Fix long-standing race condition bug in locking unittest
        confd client: copy the peers in UpdatePeerList
        testutils: Print name of test program before running it
        Don't use hardcoded name for pylint
        Partially revert "Makefile.am: Run pylint on all Python code"
        build-bash-completion: Take care of pylint warnings
        Makefile.am: Run pylint on all Python code
        Small improvements for release script
        check-python-code: Use “set -e” to abort on errors
        build-bash-completion: Fix a few pylint warnings
        Generate hmac file with a newline at the end
        jqueue: Don't return negative number for unchecked jobs when archiving
        cli.GenerateTable: Don't write EOL spaces
        Improve logging for workerpool tasks by providing __repr__
        workerpool: Simplify log messages
        workerpool: Use worker name as thread name
        workerpool: Make worker ID alphanumeric
        locking: Fix race condition in LockSet
        mcpu: Log lock status with sorted names
        locking: Append to list outside error handling block
        ...
      f9d0783b
    • Iustin Pop's avatar
      Switch the SplitKeyVal function to accept escapes · 1b3a7656
      Iustin Pop authored
      
      This tiny patch switches the SplitKeyVal function (and thus the command
      line options like -H, -B, etc.) to UnescapeAndSplit, thus allowing one
      to use escaped commas in the values of parameters.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      1b3a7656
    • Michael Hanselmann's avatar
      Fix long-standing race condition bug in locking unittest · 51e3bb92
      Michael Hanselmann authored
      
      Every once in a while we saw failures in the locking unittest, but
      weren't able to determine the cause. This patch fixes it by using
      threading.Event instead of plain threading.Condition to notify another
      thread. In most cases, threading.Condition must be used with another
      variable to keep the actual state.  threading.Event does this for us.
      Otherwise it can happen that the waiter only gets the lock after
      condition was notified.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      51e3bb92
  10. Jan 14, 2010
  11. Jan 13, 2010
Loading