Skip to content
Snippets Groups Projects
  1. Jan 11, 2011
  2. Nov 22, 2010
  3. Sep 30, 2010
    • Iustin Pop's avatar
      Abstract OS name/variant functions · 870dc44c
      Iustin Pop authored
      
      Currently, the computation of the 'pure' name or the variant is
      hardcoded and spread around the functions that need it. This is not
      nice, and in the future we'd spread it even more with more usage of
      variants/pure os names.
      
      This patch abstracts these functions into the OS class, and then
      replaces the hardcoded uses with the new functions.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      870dc44c
  4. Apr 12, 2010
  5. Mar 10, 2010
  6. Nov 03, 2009
  7. Aug 05, 2009
    • Guido Trotter's avatar
      ConfigObject.ToDict() only export non-None values · 4c14965f
      Guido Trotter authored
      
      The method is changed to a normal loop, to avoid calling getattr()
      twice. Also __getstate__ is changed to just use ToDict() by default.
      
      This should also make __getstate__ work for objects which have to
      override the ToDict function because they contain other objects.
      
      __setstate__ is probably still broken in this case, but so it was
      before, and it's not used inside our code, so I'll pretend not to have
      noticed, as there is no "nice" way to fix it, without overriding it all
      over the place :(
      
      Some unittests are added as a bonus, to make sure we behave well.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      4c14965f
  8. Jan 20, 2009
    • Iustin Pop's avatar
      Unify some unittest functions · 51596eb2
      Iustin Pop authored
      This patch adds unified temporary file handling to the
      testutils.GanetiTestCase class, which adds easy creation and automated
      cleanup of temporary files.
      
      The patch allows a simpler handling in a couple of test cases but
      requires all child classes to call the parent setUp and tearDown
      methods.
      
      Reviewed-by: ultrotter
      51596eb2
  9. Oct 01, 2008
  10. Mar 18, 2008
    • Michael Hanselmann's avatar
      Add function to write cluster SSH key to known_hosts file · 75a5f456
      Michael Hanselmann authored
      The whole Ganeti cluster has a single SSH key. Its fingerprint is
      written to Ganeti's known_hosts file, together with an alias. This
      allows us to always use that alias instead of the real hostname,
      making management of the known_hosts file much easier.
      
      This patch does not handle an upgrade from an earlier version.
      
      Reviewed-by: ultrotter
      75a5f456
  11. Feb 26, 2008
  12. Feb 14, 2008
  13. Oct 12, 2007
  14. Sep 13, 2007
  15. Jul 16, 2007
Loading