1. 31 Mar, 2014 27 commits
  2. 24 Mar, 2014 2 commits
  3. 19 Mar, 2014 3 commits
  4. 17 Mar, 2014 8 commits
    • Ilias Tsitsimpis's avatar
      burnin: Fix 'project_id' param in 'create_floatingip' · ff869536
      Ilias Tsitsimpis authored
      Until now, burnin was using a 'feature' version of kamaki
      where the 'create_floatingip' method had a 'project' parameter.
      This parameter was renamed to 'project_id' for uniformity with the
      other kamaki methods.
      
      These changes have been merged to 'develop' branch of kamaki and the API
      is not expected to be changed again. This patch changes the way burnin
      invokes 'create_floatingip' to use the 'project_id' parameter instead of
      the 'project' one.
      ff869536
    • Christos Stavrakakis's avatar
      cyclades: Change snf-dispatcher's default PID file · 12057ab7
      Christos Stavrakakis authored
      Rename snf-dispatcher's default PID file from 'snf_dispatcher.pid' to
      'snf-dispatcher.pid'.
      12057ab7
    • Chris Stavrakakis's avatar
      Merge pull request #25 from iliastsi/feature-command-logger · abda6cc6
      Chris Stavrakakis authored
      All Synnefo's management commands are written as custom django-admin commands.
      This means that every management command is in fact a class that extends
      Django's BaseCommand class.
      
      Django's BaseCommand provides the attributes self.stdout and
      self.stderr and Django's documentation encourages the users to use these
      attributes if they wish to write to the console. Django doesn't provide an
      option to write the output to files and the user has to implement this
      explicitly when implementing the handle method.
      
      We would like to extend the above mechanism to allow every snf-manage
      command to log all stdout and stderr output on a unique filename under a given
      directory. The implementation should change nothing in the way that users write
      management commands (only acceptable change is that the new commands may have
      to inherit a new class and not the BaseCommand one). This means that
      existing management commands should play out of the box and also that the
      logging mechanism will globally apply to all of them.
      
      Commands that do not alter the state of the server (i.e. *-list and *-show
      commands) will be excluded from the logging mechanism.
      abda6cc6
    • Ilias Tsitsimpis's avatar
      Update Changelog about commands logging mechanism · 509eadb8
      Ilias Tsitsimpis authored
      Add an entry to the Changelog about the 'Logging mechanism for Synnefo
      management commands'.
      
      Closes #3: Log all stdout/stderr for snf-manage invocations
      509eadb8
    • Ilias Tsitsimpis's avatar
      Log Synnefo management commands to files · acb76d93
      Ilias Tsitsimpis authored
      Create 'SynnefoOutputWrapper' which replaces Django's 'OutputWrapper'
      and logs the command and its output in a file.
      
      Ref #3: Log all stdout/stderr for snf-manage invocations
      acb76d93
    • Ilias Tsitsimpis's avatar
      snf-common: Add 'LOG_DIR' setting · 4601e3fb
      Ilias Tsitsimpis authored
      'LOG_DIR' is the directory where log files are saved and is going to be
      used to determine where to store the management commands' output.
      
      Ref #3: Log all stdout/stderr for snf-manage invocations
      4601e3fb
    • Ilias Tsitsimpis's avatar
      Implement NewlineStreamHandler · 9ba131ce
      Ilias Tsitsimpis authored
      When StreamHandler writes a formatted log message to its stream, it adds
      a newline terminator. This behavior is inherited by FileHandler and the
      other classes which derive from it (such as the rotating file handlers).
      
      Starting with Python 3.2, the message terminator will be configurable.
      This has been done by adding a terminator attribute to StreamHandler,
      which when emitting an event now writes the formatted message to its
      stream first, and then writes the terminator. If you don't want newline
      termination for a handler, just set the handler instance's terminator
      attribute to the empty string.
      
      This class implements python's 3.2 StreamHandler.
      
      Ref #3: Log all stdout/stderr for snf-manage invocations
      9ba131ce
    • Ilias Tsitsimpis's avatar
      Use SynnefoCommand for django-admin commands · 276f8a76
      Ilias Tsitsimpis authored
      Instead of django's BaseCommand class, use out SynnefoCommand which
      takes care of logging the command and its output.
      
      Ref #3: Log all stdout/stderr for snf-manage invocations
      276f8a76