1. 31 Mar, 2014 8 commits
  2. 17 Mar, 2014 2 commits
    • 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
      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
  3. 14 Mar, 2014 1 commit
  4. 10 Mar, 2014 1 commit
  5. 07 Mar, 2014 1 commit
  6. 28 Feb, 2014 1 commit
  7. 27 Feb, 2014 1 commit
  8. 26 Feb, 2014 3 commits
    • Christos Stavrakakis's avatar
      cyclades: Major refactor to plankton backend · 4fbcfca8
      Christos Stavrakakis authored
      * Rename ImageBackend to PlanktonBackend
      * Rewrite PlanktonBackend methods in order that they refer to Pithos
        objects by their UUID
      * Convert PlanktonBackend to context manager that is responsible for
        returning the PithosBackend connection back to the pool, and remove
        stale 'image_backend' context manager
      * Make PlanktonBackend raise cloud (API) faults
      4fbcfca8
    • Christos Stavrakakis's avatar
      snf_django: Use option groups in SynnefoCommand · c928e21f
      Christos Stavrakakis authored
      Extend SynnefoCommand to use option groups to distinguish between common
      and command-specific options, by overriding the 'create_parser' method.
      The command specific options must be declared in the
      'command_option_list' attribute of the SynnefoCommand. Also, we use a
      custom formatter to pretty-print options.
      c928e21f
    • Christos Stavrakakis's avatar
      cyclades: Create common '-u/--user' option · 9985db89
      Christos Stavrakakis authored
      Create 'cli_option' module, to contain the common definitions for
      options of Synnefo management commands.
      
      Currently, it contains only the '--user' option definition which accepts
      user's UUID or email and annotates the command options with the
      'user_id' and 'user_email' options.
      
      Finally, the module contains a helper function for creating boolean
      options that will parse the option value(str) to a boolean value.
      9985db89
  9. 20 Feb, 2014 1 commit
    • Giorgos Korfiatis's avatar
      snf_django: Properly chain `exclude' queries · 83322ab3
      Giorgos Korfiatis authored
      Although chained filters, e.g. filter(p1).filter(p2), can be summed up as
      filter(p1, p2), this is not the case with exclude. If you want to exclude
      those selected by p1 as well as those selected by p2, you need
      exclude(p1).exclude(p2).
      83322ab3
  10. 13 Feb, 2014 3 commits
  11. 24 Jan, 2014 1 commit
  12. 23 Jan, 2014 2 commits
  13. 20 Jan, 2014 1 commit
  14. 10 Dec, 2013 1 commit
  15. 03 Dec, 2013 1 commit
  16. 02 Dec, 2013 2 commits
  17. 29 Nov, 2013 1 commit
  18. 28 Nov, 2013 2 commits
  19. 27 Nov, 2013 1 commit
  20. 25 Nov, 2013 4 commits
  21. 21 Nov, 2013 2 commits
    • Christos Stavrakakis's avatar
      cyclades: Export Cyclades detailed stats from API · 2566bfd7
      Christos Stavrakakis authored
      Add '/admin/stats/detail' API endpoint to export basic statistics about
      Cyclades. Access to this view is only allowed to the users that belong
      to specific Astakos groups, as specified in the new setting
      'ADMIN_STATS_PERMITTED_GROUPS.' Also, added the new 'user_in_groups' API
      view decorator to snf_django that can be used for such checks.
      2566bfd7
    • Christos Stavrakakis's avatar
      cyclades: Command to export Cyclades statistics · cfd24a4d
      Christos Stavrakakis authored
      Add new 'snf-manage stats-cyclades' management command to export basic
      statistics about Cyclades, like number of servers, network and resource
      utilization. The command can either export the statistics either in JSON
      format or pretty-print in the standard output.
      cfd24a4d