1. 28 Jan, 2014 1 commit
  2. 27 Jan, 2014 8 commits
    • Klaus Aehlig's avatar
      Merge branch 'stable-2.9' into stable-2.10 · 410945f1
      Klaus Aehlig authored
      * stable-2.9
        Revision bump for 2.9.3
        Schedule 2.9.3 release
        Document fix of issue 691 in NEWS
        NEWS: fix typo in 2.8.4 release
        Fix 'hvparams' of '_InstanceStartupMemory' on hypervisors
        Add missing option to gnt-instance documentation
        Update NEWS file
        Fix disk_type error in hypervisor parameter documentation
        Update NEWS file: issue 687 and configure fix
        luxid: fix detection of master node in node query
        query: fix detection of master in _GetNodeRole()
        Break line longer than 80 chars in configure.ac
        Technical writing: improve documentation and glossary
        configure: allow detection of Sphinx 1.2+
        Remove deprecated _ERROR_DATA_KEY in QMP
        Technical writing: improve main documentation page
        Update the NEWS file with the Issue 640 fix
        Ensure that all the hypervisors exist in the config file
        Fix testEncodeInstance test input
      
      * stable-2.8
        Version bump for 2.8.4 and NEWS update
        Update NEWS file with news about job cancellation bugfix
        Fix QA flakiness
        Linting fix: remove unused import
        Add missing parameter entry to man file
        Add QA test for job cancellation
        Add correct locking of master node to gnt-debug delay
        Add job id type assert to jqueue.py
        Add job id transformation/check to Luxi Python client
        Start-master/stop-master always fail if confd is disabled
        Improve backwards compatibility of Issue 649 fix
        Add missing NEWS entries from stable-2.8
        Change usb_devices separator to whitespace
        Add support for blktap2 file-driver
        Update opcodes test to include network tags
        Make network tags searchable
        Add network tag tests to QA
        Fix RAPI network tag handling
        Fix gnt-network list-tags
      
      Conflicts:
      	NEWS
      	configure.ac
      	doc/index.rst
      	lib/constants.py
      	lib/hypervisor/hv_kvm.py
      	src/Ganeti/OpParams.hs
      	src/Ganeti/Query/Server.hs
      	test/hs/Test/Ganeti/OpCodes.hs
      	test/py/ganeti.hypervisor.hv_xen_unittest.py
      	test/py/ganeti.rpc_unittest.py
      Resolution:
      	NEWS: take both additions
      	configure.ac: ignore revision bump
      	doc/index.rst: take stable-2.9 changes
      	lib/constants.py: ignore stable-2.9 changes, but redo
      	    7bc2c097
      
       in the new constants framework
      	(rest trivial)
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
      410945f1
    • Klaus Aehlig's avatar
      Haskell style: explicit errors, visible in the type · 16b85a3c
      Klaus Aehlig authored
      
      
      While it is already standard in the Ganeti code base, explicitly
      document that we do not like Exceptions and use sum types instead.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
      16b85a3c
    • Klaus Aehlig's avatar
      Clarify spacing in record syntax · b10df4de
      Klaus Aehlig authored
      
      
      So far, our code base does not have a consistent way of spacing
      records. To work towards more consistency, add a recommendation
      into out style guide. We standardize on what seems most common
      in the Haskell world and also is the dominant form in our code
      base.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
      b10df4de
    • Petr Pudlak's avatar
      Improve the point-free section of the style guide · 7bd8ce44
      Petr Pudlak authored
      
      
      Distinguish declaring functions in the point-free style and using
      a very similar technique to avoid parentheses (which isn't technically
      point-free).
      Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
      7bd8ce44
    • Santi Raffa's avatar
      Add code style document to documentation · a41a1eec
      Santi Raffa authored
      The Ganeti code style has been stored on the project wiki at:
      
        https://code.google.com/p/ganeti/wiki/StyleGuide
        https://code.google.com/p/ganeti/wiki/HaskellStyleGuide
      
      
      
      This commit combines the two pages into an .rst file with minimal
      formatting and language changes. Note that the style guide introduced
      in this commit does not fit the code base in a number of ways,
      including:
      
      * Some Haskell files have lines longer than 78 characters
      * Some Haskell files have trailing whitespace
      * Some Python docstring initial sentences lack punctuation at the end
      
      The decision to either change the offending lines to fit the guidelines,
      to change the guidelines to fit the codebase or to simply ignore the
      discrepancies is left for other commits to solve.
      Signed-off-by: default avatarSanti Raffa <rsanti@google.com>
      Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
      Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
      a41a1eec
    • Jose A. Lopes's avatar
      Export docs from wiki to repo · bced76fd
      Jose A. Lopes authored
      
      
      Export documents about 'cluster keys replacement' and 'design file
      based storage' from the wiki to the repository.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
      bced76fd
    • Klaus Aehlig's avatar
      Revision bump for 2.9.3 · 8dba1797
      Klaus Aehlig authored
      
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarJose Lopes <jabolopes@google.com>
      8dba1797
    • Klaus Aehlig's avatar
      Schedule 2.9.3 release · 57293135
      Klaus Aehlig authored
      
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarJose Lopes <jabolopes@google.com>
      57293135
  3. 24 Jan, 2014 4 commits
  4. 23 Jan, 2014 4 commits
  5. 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
  6. 21 Jan, 2014 3 commits
  7. 20 Jan, 2014 9 commits
  8. 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
  9. 16 Jan, 2014 2 commits
  10. 13 Jan, 2014 4 commits
  11. 10 Jan, 2014 1 commit