1. 29 Nov, 2010 1 commit
  2. 22 Nov, 2010 1 commit
  3. 27 Oct, 2010 1 commit
  4. 26 Oct, 2010 1 commit
    • Iustin Pop's avatar
      Rename node.nodegroup to node.group · f936c153
      Iustin Pop authored
      
      
      In the context of a node, its group has (at least today) only one
      meaning, that is the node's node group. As such, we rename
      node.nodegroup to just node.group.
      
      Note: if we want to keep node in there, it should be at least
      node_group, for consistency with the other node attributes.
      
      Similarly, we rename the OpAddNode nodegroup attribute to group.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      f936c153
  5. 12 Oct, 2010 1 commit
  6. 05 Oct, 2010 1 commit
  7. 30 Sep, 2010 2 commits
    • Iustin Pop's avatar
      Add two new cluster settings · 546b1111
      Iustin Pop authored
      
      
      The new variables are:
      
      - a list of hidden OSes, that should not be displayed to the users in
        interactive selection (e.g. reinstall); however, if they are selected, they
        can be used
      - a list of OSes that should be hidden and blocked from install-time selection
      
      The filtering will apply at pure OS name level, not OS+variant level.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      546b1111
    • 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
  8. 15 Sep, 2010 1 commit
  9. 14 Sep, 2010 4 commits
  10. 06 Sep, 2010 1 commit
  11. 19 Aug, 2010 1 commit
  12. 26 Jul, 2010 1 commit
  13. 08 Jul, 2010 1 commit
  14. 06 Jul, 2010 3 commits
  15. 28 Jun, 2010 1 commit
  16. 23 Jun, 2010 2 commits
  17. 17 Jun, 2010 1 commit
  18. 14 Jun, 2010 3 commits
    • Iustin Pop's avatar
      Remove a TODO · 592e04bd
      Iustin Pop authored
      
      
      Since OS objects are not stored in the configuration, we cannot put
      os_hvp there, therefore the TODO is obsolete…
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      592e04bd
    • Iustin Pop's avatar
      Add cluster.SimpleFill*() functions · 73e0328b
      Iustin Pop authored
      
      
      Currently, the existing cluster.Fill* functions take as argument an
      instance. This means that in any case where we don't have an actual
      instance object, we have to resort to calling the low-level
      objects.FillDict function.
      
      This is bad for two reasons:
      - we have to know of, and we hardcode, the cluster object internals
        (e.g. that the nicparams are stored in a dict indexed by group)
      - which can result in subtle bugs, if the underlying storage mechanisms
        change
      
      This patch adds a lower-level implementation SimpleFillHV for FillHV and
      SimpleFillBE for FillBE, and adds a completely new SimpleFillNIC (all
      use cases until now hardcoded cluster.nicparams[constant.PP_DEFAULT]
      directly); it then uses these new functions in cmdlib.py.
      
      A side effect is that _CheckNicsBridgesExist loses the 'profile'
      parameter, which was unused. If it's needed, we should add it later via
      a proper profile parameter to SimpleFillNIC.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      73e0328b
    • Michael Hanselmann's avatar
  19. 08 Jun, 2010 1 commit
  20. 21 May, 2010 2 commits
  21. 16 Apr, 2010 2 commits
    • Michael Hanselmann's avatar
      Add daemon for instance import and export · 2d76b580
      Michael Hanselmann authored
      
      
      This backend daemon for instance import and export will be used to
      transfer instance data to other machines. It is implemented in a generic
      way to support different ways of data input and output. The third-party
      program “socat”, which is already used by the KVM hypervisor abstraction,
      is used to connect to remote machines using SSL/TLS. After starting the
      child processes in a separate process group, the import/export daemon
      monitors their output and updates a status file regularily. This status
      file can then be read by ganeti-noded (not in this patch).
      
      Three I/O methods are supported: Raw disk, file and script. Each of these
      can be used for import and export.
      
      Similar to daemon-util, an incomplete set of tests written in Bash is
      included.
      
      Two future enhancements are planned:
      - Run parts of the command chain as a dedicated user (privilege
        separation).
      - Currently users of this daemon have to poll the status file while data
        is transferred. This is inefficient and creates unnecessary delays. By
        adding “dd” into the chain and sending it SIGUSR1 regularily, we can get
        some statistics, optimize the polling frequenc and even provide the user
        with an ETA (which isn't available with all current methods to
        import/export instance data).
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      2d76b580
    • Balazs Lecz's avatar
      Add uid_pool cluster parameter · 4437d889
      Balazs Lecz authored
      
      Signed-off-by: default avatarBalazs Lecz <leczb@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      4437d889
  22. 12 Apr, 2010 1 commit
  23. 08 Apr, 2010 1 commit
  24. 25 Mar, 2010 1 commit
  25. 23 Mar, 2010 1 commit
  26. 09 Mar, 2010 1 commit
  27. 08 Mar, 2010 1 commit
  28. 12 Feb, 2010 1 commit
  29. 10 Feb, 2010 1 commit
    • Iustin Pop's avatar
      Fix dumpers/loaders after __slots__ cleanup · adf385c7
      Iustin Pop authored
      Commit 154b9580
      
       changed (correctly) the __slots__ usage, but this broke
      dumpers/loaders since we relied directly on the own class __slots__
      field.
      
      To compensate, we introduce a simple function for computing the slots
      across all parent classes (if any), and use this instead of __slots__
      directly.
      
      Note: the _all_slots() function is duplicated between objects.py and
      opcodes.py, but the only other options is to introduce a lang.py for
      such very basic language items.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      adf385c7