1. 10 Jul, 2014 1 commit
  2. 26 Mar, 2014 1 commit
  3. 18 Dec, 2013 1 commit
  4. 26 Nov, 2013 1 commit
  5. 18 Nov, 2013 1 commit
    • Dimitris Aragiorgis's avatar
      RAPI: Pass depends body arg (if any) to opcode · 508b9539
      Dimitris Aragiorgis authored
      
      
      Most rlib2 classes override the default _GetDefaultData() method with
      custom methods that parse a request's body and query args and return a
      (body, specific_static) tuple eventually passed to FillOpCode().
      Job dependencies are defined in the `depends` body argument that might
      get lost because most of those methods return {} as the body. In order
      not to modify every custom method we update the returned body with
      the `depends` argument of the original request body for all RAPI calls
      inside OpcodeResource._GenericHandler(). It's up to the client to
      include the `depends` argument with the job dependencies if desired.
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
      508b9539
  6. 22 Apr, 2013 2 commits
  7. 22 Mar, 2013 1 commit
    • Michele Tartara's avatar
      Fix bug in rlib2 unit tests · 61f8fda4
      Michele Tartara authored
      
      
      The "queryargs" parameter of the __init__ function of rlib2 classes should
      be a dictionary, as defined in the ResourceBase parent class (in
      lib/rapi/baserlib.py).
      
      In the rlib2 and baserlib unit tests, when the queryargs parameter is not
      actually needed, it is sometimes erroneously initialized with an empty list or a
      "None" value instead of an empty dictionary.
      
      This commit solves the problem and introduces an assertion to prevent it from
      happening again in the future.
      The use of the assertion is safe, because in production code the __init__
      function is only called by the RAPI server, with the queryargs parameter
      initialized by the Mapper.getController function (lib/rapi/connector.py) that
      always returns a dictionary. It can only affect test code and future code.
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      61f8fda4
  8. 19 Feb, 2013 2 commits
  9. 13 Feb, 2013 1 commit
  10. 08 Feb, 2013 1 commit
  11. 19 Dec, 2012 2 commits
    • Michael Hanselmann's avatar
      Replace frozenset with compat.UniqueFrozenset · b8028dcf
      Michael Hanselmann authored
      
      
      This is not a trivial s/frozenset/compat.UniqueFrozenset/, but rather
      only replaces “frozenset” where appropriate. Most of the places are
      “static” information that doesn't change after the module has been
      loaded.
      
      Some docstrings and code formatting (e.g. empty lines) issues are
      addressed as well. Some lines got too long and were wrapped.
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      b8028dcf
    • Iustin Pop's avatar
      Remove some unused Python code · 45317e3a
      Iustin Pop authored
      This patch removes code which is no longer used due to refactoring:
      
      - http.InitSsl, last usage removed in commit 33231500 (“Convert RPC
        client to PycURL”)
      - rapi.baserlib.MakeParamsDict, last usage remove in commit 4e5a68f8
        (“RAPI: rlib1 removal”)
      - rapi.baserlib.ExtractField, last usage removed in commit 028c6b76
        (“RAPI:Fix root list and unittest for it.”)
      - qa.qa_utils.AssertNotEqual, last real usage removed in commit
        2f4b4f78 (“Simplify QA commands”) (but it was still imported for a
        while, until we extended pylint to run over the QA code as well)
      - qlang._IsHostname, added in commit f8638e28 (“Detect globbing
        patterns as query arguments”) but never used
      - cmdlib._BuildNetworkHookEnvByObject, last usage removed in commit
        f22433c0
      
       (“Locking related fixes for networks”)
      - NLD constants, which are obsolete—the nbma project is no longer
        maintained and it's not working with current ganeti
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      45317e3a
  12. 18 Sep, 2012 1 commit
  13. 28 Aug, 2012 1 commit
  14. 26 Apr, 2012 1 commit
  15. 21 Feb, 2012 1 commit
  16. 22 Sep, 2011 1 commit
  17. 14 Sep, 2011 2 commits
  18. 09 Sep, 2011 6 commits
  19. 30 Aug, 2011 1 commit
  20. 25 Aug, 2011 1 commit
  21. 21 Apr, 2011 1 commit
  22. 15 Feb, 2011 1 commit
  23. 18 Jan, 2011 2 commits
  24. 05 Jan, 2011 1 commit
  25. 28 Jul, 2010 1 commit
  26. 12 Jul, 2010 1 commit
  27. 01 Jul, 2010 1 commit
  28. 17 May, 2010 1 commit
  29. 13 May, 2010 1 commit
  30. 22 Jan, 2010 1 commit