Skip to content
Snippets Groups Projects
  1. Feb 25, 2011
  2. Jan 20, 2011
  3. Jan 13, 2011
    • Iustin Pop's avatar
      Fix growing of DRBD disks · 6d33a6eb
      Iustin Pop authored
      
      Patch 03941a26 made disk growth VG-aware, but the code has a bug: it
      only works for LD_LV disks, and not LD_DRBD. To fix it, we add a
      generic function to compute the per-VG growth requirements, and switch
      to using that instead of manual build.
      
      Furthermore, since the function _CheckNodesFreeDiskPerVG always takes
      its input from this new function or _ComputeDiskSizePerVG, we change
      the latter to always return a dict (possibly empty), instead of either
      a dict or None. This makes the types more consistent.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      6d33a6eb
  4. Jan 11, 2011
  5. Jan 07, 2011
  6. Dec 14, 2010
  7. Dec 13, 2010
  8. Dec 08, 2010
  9. Dec 06, 2010
  10. Dec 02, 2010
    • Dmitry Chernyak's avatar
      Make rpc.call_lv_list() VG-aware · 84d7e26b
      Dmitry Chernyak authored
      
      Changes to backend.GetVolumeList():
      - now accepts a list of VGs instead of one VG
      - returns LV names in the form "vg_name/lv_name"
      
      Corresponding changes are done in: VerifyDisks, VerifyNode,
      LUCreateInstance (for both disk creation and adoption cases)
      
      Now the syntax
      "gnt-instance add ... --disk N:adopt=LV_NAME,vg=VG_NAME"
      as was described earlier in the man page works.
      
      Signed-off-by: default avatarDmitry Chernyak <dmi.chernyak@gmail.com>
      [iustin@google.com: QA changes for reserved LVs, style fixes and a few
       extra error checks, reviewed by hansmi/rn]
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      84d7e26b
  11. Nov 29, 2010
  12. Nov 22, 2010
  13. Oct 27, 2010
  14. Oct 26, 2010
  15. Oct 12, 2010
  16. Oct 05, 2010
  17. Sep 30, 2010
    • 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
  18. Sep 15, 2010
  19. Sep 14, 2010
  20. Sep 06, 2010
  21. Aug 19, 2010
  22. Jul 26, 2010
  23. Jul 08, 2010
  24. Jul 06, 2010
  25. Jun 28, 2010
  26. Jun 23, 2010
  27. Jun 17, 2010
  28. Jun 14, 2010
    • 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
Loading