1. 26 Feb, 2015 9 commits
  2. 12 Dec, 2014 4 commits
  3. 19 Nov, 2014 3 commits
  4. 17 Nov, 2014 1 commit
  5. 10 Nov, 2014 1 commit
  6. 07 Nov, 2014 6 commits
    • Stavros Sachtouris's avatar
      675e9b6d
    • Stavros Sachtouris's avatar
      Support old history files · 96b09136
      Stavros Sachtouris authored
      Fixes grnet/kamaki#80
      
      Kamaki history files must have an offset counter on the first line,
      since version 0.11.
      
      With this fix, kamaki supports older history files and adds the
      default offset counter at the first line.
      96b09136
    • Stavros Sachtouris's avatar
      Return volume metadata in "create_volume" · a26565ac
      Stavros Sachtouris authored
      The method used to return results in this format:
        {"volume": {"id": ..., "display_name" ..., ...}}
      It now returns the results in this form:
        {"id" ..., "display_name" ..., ...}
      as it is the case with every other creation command in kamaki library.
      a26565ac
    • Stavros Sachtouris's avatar
      Write a set of short scripts using the kamaki lib · e3132145
      Stavros Sachtouris authored
      Fixes grnet/kamaki#49
      e3132145
    • Stavros Sachtouris's avatar
      Update general information and setup instructions · 28dd8a05
      Stavros Sachtouris authored
      Refs grnet/kamaki#49
      28dd8a05
    • Stavros Sachtouris's avatar
      Check server status before changing it · 19522a57
      Stavros Sachtouris authored
      Fixes grnet/kamaki#57
      
      This fix affects the CLI commands "server_start", "server_reboot"
      and "server_shutdown" which are specified in "kamaki.cli.cmds.cyclades".
      These are the operations that modify the status of a server.
      
      The problem was caused when the target status was the same as the current.
      In this case, the request for status modification would fail with a 400
      error code response. At this point, kamaki couldn't have adequate information
      to correctly evaluate the error.
      
      This problem is solved by checking the current status before attempting to
      modify it.  Also, the server ID is validated in advance, instead of waiting
      for a 400 server error.
      19522a57
  7. 06 Nov, 2014 4 commits
    • Stavros Sachtouris's avatar
      Escape logged HTTP data before token replacement · 26115ba5
      Stavros Sachtouris authored
      Problem: when LOG_DATA is on and LOG_TOKEN is off, kamaki logs HTTP
      data, replaces the token (if it is included in the data) and then
      escapes them to prepare for safe logging. If the data is non-ascii,
      replacing raises a unicode error.
      
      Solution: escape data before replacing the token.
      26115ba5
    • Stavros Sachtouris's avatar
      Handle SSL unicode bug with grace · 2a2faa29
      Stavros Sachtouris authored
      Fixes grnet/kamaki#67
      
      SSL module breaks when dealing with non-ascii filenames (known bug).
      Catch the Unicode error when it occurs and add an instructive error
      message for the kamaki library users.
      Check the file name for validity when it is set and inform the kamaki
      CLI users.
      2a2faa29
    • Stavros Sachtouris's avatar
      Handle non-ascii characters in config files · 3fc52244
      Stavros Sachtouris authored
      Fixes grnet/kamaki#76
      
      * Support non-ascii characters for all values
      * Disallow non-ascii characters for all types of options
      * Escape control characters in option names and values
      3fc52244
    • Stavros Sachtouris's avatar
      Warn/raise error when config file is inaccessible · 342eb1b2
      Stavros Sachtouris authored
      Fixes grnet/kamaki#71
      
      Raise an error if the file is not readable or not existing, warn if
      it is not writable, add a description to the error message when
      kamaki attempts to write to a non-writable config file.
      342eb1b2
  8. 17 Oct, 2014 7 commits
  9. 16 Oct, 2014 1 commit
  10. 15 Oct, 2014 2 commits
  11. 13 Oct, 2014 1 commit
  12. 02 Oct, 2014 1 commit
    • Stavros Sachtouris's avatar
      Escape characters in CLI output methods · 5852db11
      Stavros Sachtouris authored
      Closes grnet/kamaki#32
      
      Kamaki CLI commands use some generic output methods to handle outputs.
      
      Generic output methods that escape control characters:
      - in kamaki.cli.utils: print_items, print_dict, print_list
      - in kamaki.cli.cmds: error
      
      Generic output methods that don't escape control characters:
      - in kamaki.cli.cmds: writeln, write
      
      The methods that don't escape control characters are used when the
      standard methods are not sufficient. For example, in "kamaki.cli.pithos"
      the "PithosAccount.print_objects" method adds decorative escape characters
      (i.e., bold, alignment), but has to escape the parts object and container
      names. To achieve this, escaping is handled in the method, and the output
      is printed with the "write" and "writeln" methods mentioned earlier.
      
      An encoding issue with kamaki.cli.errors.CLIError and the Exceptions extending it,
      is fixed. It is now ensured that the error message will always be in unicode.
      
      Also, fix flake8 errors on files affected by the above changes
      5852db11