1. 22 Jan, 2014 1 commit
    • Hrvoje Ribicic's avatar
      Run drbdsetup syncer only on network attach · 1a705513
      Hrvoje Ribicic authored
      As late as DRBD 8.3.11, the drbdsetup syncer command has a bug causing
      nodes to hang from time to time, requiring manual intervention to fix.
      The use of the command cannot be avoided, but the incidence of use can
      be reduced.
      
      By invoking the command only when the network part of a DRBD device is
      configured, activate-disks and similar commands can avoid invoking the
      troublesome command. This patch does this by moving the invocation from
      Assemble to _AssembleNet.
      
      Works towards fixing issue 650.
      Signed-off-by: default avatarHrvoje Ribicic <riba@google.com>
      Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
      1a705513
  2. 17 Jan, 2014 3 commits
    • Dimitris Aragiorgis's avatar
      Include target node in hooks nodes for migration · 7b5f0674
      Dimitris Aragiorgis authored
      In case of DRBD, hooks run on both primary (source) and secondary
      (target) nodes. To get the same behavior for DTS_EXT_MIRROR, where we
      do not have secondary node, we should explicitly add target node to
      hooks nodes during instance migration/failover.
      
      CheckPrereq() of TLMigrateInstance runs before BuildHooksManager(),
      thus target_node calculated by Iallocator is available under
      self._migrater.target_node. Use this value instead of
      self.op.target_node which can be None.
      
      Update NEWS and related doc entries.
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      7b5f0674
    • Jose A. Lopes's avatar
      Fix configure dirs · ae6a0a7c
      Jose A. Lopes authored
      Fix overridable configure directories, namely, --bindir, --sbindir,
      and --mandir.
      
      Variables 'bindir', 'sbindir', and 'mandir' are exported from
      'configure.ac' to 'Makefile.am'. At first, it would seem to be
      possible to do the following:
      
        MANDIR := $(mandir)
        ...
        mandir = $(versionedsharedir)$(datarootdir)/$(MANDIR)
      
      However, this does not work in the output of 'configure' (i.e., the
      'Makefile'), these variables will be reordered:
      
        mandir = $(versionedsharedir)$(datarootdir)/$(MANDIR)
        ...
        MANDIR := $(mandir)
      
      As a result, 'MANDIR' will capture not the exported value from
      'configure.ac' but the 'mandir' defined in the 'Makefile'.
      
      The solution is explicitly export these variables from 'configure.ac'
      with different names, namely, 'BINDIR', 'SBINDIR', and 'MANDIR':
      
        AC_SUBST([BINDIR], $bindir)
        AC_SUBST([SBINDIR], $sbindir)
        AC_SUBST([MANDIR], $mandir)
      
      The rest is just fixing the paths and the symlinks in the 'Makefile'.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
      ae6a0a7c
    • Petr Pudlak's avatar
      Docs: Update the version of ganeti-instance-debootstrap · 4f6b32ca
      Petr Pudlak authored
      The installation manual used version 0.12, which had some bugs.
      This patch updates it to the latest 0.14.
      Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
      4f6b32ca
  3. 16 Jan, 2014 2 commits
  4. 10 Jan, 2014 5 commits
  5. 16 Dec, 2013 5 commits
    • Thomas Thrainer's avatar
      a5c50971
    • Thomas Thrainer's avatar
      Update NEWS for 2.10.0 rc1 release · 890fdff7
      Thomas Thrainer authored
      Mention inherited changes as well as the (very few) changes made to
      stable-2.10 since beta1.
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      890fdff7
    • Thomas Thrainer's avatar
      Fix pylint 0.26.0/Python 2.7 warning · 4a65d4fd
      Thomas Thrainer authored
      pylint 0.26.0 on Python 2.7 generates a warning on the string '\ ',
      recommending to use the r prefix. This patch adds the missing prefix.
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      4a65d4fd
    • Thomas Thrainer's avatar
      Update INSTALL and devnotes for 2.10 release · bd341bff
      Thomas Thrainer authored
      The following changes are made:
       * Add M4 as required dependency
       * Change reference to qemu-img package to qemu-utils
       * Never use `sudo` for easy_install (not used for apt-get neither)
       * Add libpcre3-dev as required package for Wheezy (otherwise linking
         fails)
       * Install sphinx from packages (easy_install would install an
         incompatible version on Wheezy)
       * Fix spelling error
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      bd341bff
    • Thomas Thrainer's avatar
      Merge branch 'stable-2.9' into stable-2.10 · c486fb6c
      Thomas Thrainer authored
      * stable-2.9
        Bump revision for 2.9.2
        Update NEWS for 2.9.2 release
        Pass hvparams to GetInstanceInfo
        Adapt parameters that moved to instance variables
        Avoid lines longer than 80 chars
        SingleNotifyPipeCondition: don't share pollers
        KVM: use custom KVM path if set for version checking
      * stable-2.8
        Version bump for 2.8.3
        Update NEWS for 2.8.3 release
        Support reseting arbitrary params of ext disks
        Allow modification of arbitrary params for ext
        Do not clear disk.params in UpgradeConfig()
        SetDiskID() before accepting an instance
        Lock group(s) when creating instances
        Fix job error message after unclean master shutdown
        Add default file_driver if missing
        Update tests
        Xen handle domain shutdown
        Fix evacuation out of drained node
        Refactor reading live data in htools
        master-up-setup: Ping multiple times with a shorter interval
        Add a packet number limit to "fping" in master-ip-setup
        Fix a bug in InstanceSetParams concerning names
        build_chroot: hard-code the version of blaze-builder
        Fix error printing
        Allow link local IPv6 gateways
        Fix NODE/NODE_RES locking in LUInstanceCreate
        eta-reduce isIpV6
        Ganeti.Rpc: use brackets for ipv6 addresses
        Update NEWS file with socket permission fix info
        Fix socket permissions after master-failover
      
      Conflicts:
      	NEWS
      	configure.ac
      	devel/build_chroot
      	lib/constants.py
      	src/Ganeti/Rpc.hs
      
      Resolution:
          NEWS: take both additions
          configure.ac: ignore version bump
          constants.py: move constants to Constants.hs
          instance_migration.py: Remove call to SetDiskID(...), it has been removed in 2.10
          instance_unittest.py: Adapt test to new logic in LU
          Rest: trivial
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      c486fb6c
  6. 13 Dec, 2013 2 commits
  7. 12 Dec, 2013 4 commits
  8. 11 Dec, 2013 6 commits
    • Klaus Aehlig's avatar
      Merge branch 'stable-2.8' into stable-2.9 · affe1792
      Klaus Aehlig authored
      * stable-2.8
        Version bump for 2.8.3
        Update NEWS for 2.8.3 release
        Support reseting arbitrary params of ext disks
        Allow modification of arbitrary params for ext
        Do not clear disk.params in UpgradeConfig()
        SetDiskID() before accepting an instance
        Lock group(s) when creating instances
        Fix job error message after unclean master shutdown
        Add default file_driver if missing
        Update tests
        Xen handle domain shutdown
        Fix evacuation out of drained node
        Refactor reading live data in htools
        master-up-setup: Ping multiple times with a shorter interval
        Add a packet number limit to "fping" in master-ip-setup
        Fix a bug in InstanceSetParams concerning names
        build_chroot: hard-code the version of blaze-builder
        Fix error printing
        Allow link local IPv6 gateways
        Fix NODE/NODE_RES locking in LUInstanceCreate
        eta-reduce isIpV6
        Ganeti.Rpc: use brackets for ipv6 addresses
        Update NEWS file with socket permission fix info
        Fix socket permissions after master-failover
      
      Conflicts:
      	NEWS
      	configure.ac
      	lib/cmdlib/instance.py
      	lib/cmdlib/instance_migration.py
      	lib/hypervisor/hv_xen.py
      	lib/masterd/iallocator.py
      	lib/objects.py
      	src/Ganeti/HTools/Backend/IAlloc.hs
      	src/Ganeti/HTools/Backend/Luxi.hs
      	src/Ganeti/HTools/Backend/Rapi.hs
      Resolution:
      	NEWS: take both additions
      	configure.ac: ignore revision bump on stable-2.8
      	Rest: manually apply the stable-2.8 changes on stable-2.9 code;
                    for lib/hypervisor/hv_xen.py this also includes passing
                    the additonal hvparams around, and adapting tests.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
      affe1792
    • Michele Tartara's avatar
      Version bump for 2.8.3 · 6ce56f8f
      Michele Tartara authored
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      6ce56f8f
    • Michele Tartara's avatar
      Update NEWS for 2.8.3 release · 390fa990
      Michele Tartara authored
      List all the changes that happened between 2.8.2 and 2.8.3.
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      390fa990
    • Dimitris Aragiorgis's avatar
      Support reseting arbitrary params of ext disks · e228ab9c
      Dimitris Aragiorgis authored
      If param=default and the param already exists then we remove
      it from params dict. This is stolen by GetUpdatedParams() which
      is used for hvparams modification/inheritance.
      
      This means that 'default' value is not accepted for an arbitrary
      param of an ext disk.
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      e228ab9c
    • Dimitris Aragiorgis's avatar
      Allow modification of arbitrary params for ext · c5c72215
      Dimitris Aragiorgis authored
      Disks of ext template are allowed to have arbitrary parameters
      stored in the Disk object's params slot. Those parameters can be
      passed during creation of a new disk, either in LUInstanceCreate()
      or in LUInsanceSetParams(). Still those parameters can not be
      changed afterwards. With this patch we override this limitation.
      
      Currently, for the other disk templates we allow modifying only
      'name' and 'mode'. Therefore, we introduce new constants
      MODIFIABLE_IDISK_PARAM* to include those params. If any other
      parameter is passed, _VerifyDiskModification() will raise an
      exception.
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      c5c72215
    • Dimitris Aragiorgis's avatar
      Do not clear disk.params in UpgradeConfig() · 54666867
      Dimitris Aragiorgis authored
      Commits 5dbee5ea and cce46164 fix disk upgrades concerning params
      slot. Since 2.7 params slot should be empty and gets filled
      any time needed.
      
      Still ext template allows passing arbitrary params per disk.
      These params should be saved in config file for future use.
      For instance if we have the shared-filer provider and we
      specify shared_dir param during instance create, this param
      is needed when we want to attach the disk e.g., during
      retrieving instance info. If it gets overridden during a daemon
      restart or a config reload we fail to get the instance's info.
      
      To avoid such a failure, we set params slot to an empty dict
      only if params not found in the first place.
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      54666867
  9. 09 Dec, 2013 2 commits
  10. 05 Dec, 2013 4 commits
  11. 04 Dec, 2013 2 commits
  12. 03 Dec, 2013 1 commit
  13. 02 Dec, 2013 3 commits