1. 26 Nov, 2013 8 commits
  2. 25 Nov, 2013 2 commits
  3. 22 Nov, 2013 3 commits
    • Klaus Aehlig's avatar
      build_chroot: hard-code the version of blaze-builder · 1e078ef3
      Klaus Aehlig authored
      
      
      The newest version does not build on debian squeeze, so avoid
      it beeing pulled in as a dependency.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarJose Lopes <jabolopes@google.com>
      1e078ef3
    • Petr Pudlak's avatar
      Fix broken TAGS generation · d7c461b6
      Petr Pudlak authored
      This file is used for development to point to code definitions. Apparently this
      has been broken since Februrary [cc40185c]. The improved version fixes the
      problem and uses Exuberant Ctags <http://ctags.sourceforge.net/
      
      >. It uses
      "etags" instead of "ctags", so Emacs compatibility should be maintained.
      
      The extra suffixes "-osuf" and "hisuf" are used to avoid problems with already
      compiled object files.
      Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
      Reviewed-by: default avatarJose A. Lopes <jabolopes@google.com>
      d7c461b6
    • Petr Pudlak's avatar
      Add patching QA configuration files on buildbots · e5398c3a
      Petr Pudlak authored
      In order to work, it is necessary:
      * Write a JSON Patch to file "qa/qa-patch.json" in a source repository.
        (And be careful not to commit it!) The file must conform to RFC6902
        and describes what changes should be done to the QA JSON
        configuration. This is simple as
         [
           { "op": "add",
             "path": "default",
             "value": false },
           { "op": "add",
             "path": "/tests/instance-add-file",
             "value": true }
         ]
      
      * Install "jsonpatch" and "jsonpointer" modules on the machines QA is
        running on. Either using "easy_install" or as Debian packages using
        "pypi-install".
      
      QA only loads the modules if the patch file is present and non-empty.
      Therefore no changes to buildbots are needed, if the feature is not
      used.
      
      It's advisable to add a git pre-commit hook for the main repository to
      prevent changes to "qa/patch.json", keeping it to "[]". Suggestion for
      such a hook:
      
        # Exit code 1 if the patch file isn't just "[]":
        python -c 'import json, sys; \
          exit(0 if json.load(open("qa/qa-patch.json", "r")) == [] else 1)'
      
      Locally it's possible to tell git not to track changes to the file at
      all (see https://help.github.com/articles/ignoring-files
      
      ):
      
        git update-index --assume-unchanged qa/qa-patch.json
      Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
      e5398c3a
  4. 21 Nov, 2013 2 commits
  5. 20 Nov, 2013 1 commit
  6. 19 Nov, 2013 4 commits
  7. 18 Nov, 2013 3 commits
  8. 15 Nov, 2013 8 commits
    • Klaus Aehlig's avatar
      Add tests for hsqueeze commands · 36820089
      Klaus Aehlig authored
      
      
      In the examples, pick a node that certainly has to be powered on or off,
      respectively, and verify that the power command is there, as well
      an appropriate migration command in the right position.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
      36820089
    • Klaus Aehlig's avatar
      hsqueeze: add option to show or save commands · 268fb0bd
      Klaus Aehlig authored
      
      
      Add an option to hsqueeze to show, or save in a file, the commands
      that have to be carried out.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
      268fb0bd
    • Klaus Aehlig's avatar
      hsqueeze: when balancing also keep the move sequence · bbc6620d
      Klaus Aehlig authored
      
      
      In hsqueeze, when computing the balancing sequence, also
      remember the sequence of moves that lead there.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
      bbc6620d
    • Klaus Aehlig's avatar
      Add function to get the moves between two configurations · 94a420ed
      Klaus Aehlig authored
      
      
      Add a function that, given two adjacent cluster configurations of
      a balancing sequence, computes the moves that led from the first
      to the second configuration.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
      94a420ed
    • Klaus Aehlig's avatar
      In the list of involved nodes, drop "no secondary" · b12a6a00
      Klaus Aehlig authored
      
      
      When grouping moves into jobs, a new job set is started, if the new
      move involves a node also touched by a previous move. When computing
      the list of involved nodes, the new primary and secondary nodes of the
      instance are included; if an instance, however, has only one node, the
      "no secondary" index -1 should be left out to avoid spurious conflicts
      between unrelated moves of single-homed instances.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
      b12a6a00
    • Klaus Aehlig's avatar
      Move saving of a command list to CLI · 7c3a6391
      Klaus Aehlig authored
      
      
      Move the function that saves a list of a command in a file
      to CLI.hs. In this way, it is reusable by other htools.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
      7c3a6391
    • Thomas Thrainer's avatar
      Merge branch 'stable-2.10' into master · a4417db4
      Thomas Thrainer authored
      
      
      Merge branch 'stable-2.10' into master
      
      * stable-2.10
        Don't allow optional node parameters
        Move OVS node parameters to the right place
        Make NIC VLAN queryable
        Pass VLAN parameter correctly in moves
        Use constant instead of raw string
        Merge 'hs2py-constants' into 'hs2py'
        Add flag '--opcodes' to 'hs2py'
        Sort design docs alphabetically
        Missing design docs from distribution
        When loading configuration fails, include the reason
        Fixing rapi documentation wrt to storage types
        Move Haskell constants to proper module
        Tear down Py2Hs constant infrastructure
        Hs2Py constants: additional module jstore
        Hs2Py constants: additional module errors
        Hs2Py constants: additional module qlang
        Hs2Py constants: additional module luxi
        Remove module 'ganeti.constants' from 'convert-constants'
        Fix reference to vcs version in query server
        Eliminate unused constants
        Use configure constants instead of generated
        Hs2Py constants: add 'UUID_REGEX'
        Add 'AF_INET*' constants to Haskell's 'AutoConf'
        Python autotool to print socket constants
      
      * stable-2.9
        Bump revision for 2.9.1
        Update NEWS and schedule release for 2.9.1
        Fix retrieval of xen command in class method
        Fix docstring for ganeti.storage.filestorage_unittest.py
        Undo revision bump
        Postpone release of 2.9.1
        Revision bump for 2.9.1
        Update NEWS for 2.9.1 release
        Readd nodes as online
        When verifying BRBD version, ignore missing values
      
      * stable-2.8
        Version bump for 2.8.2
        Update NEWS file for 2.8.2 release
        DRBD: ensure peers are UpToDate for dual-primary
      
      Conflicts:
      	Makefile.am: Add design docs from both sides (sorted); Remove
                       rules for hs2py-constants
      	lib/hypervisor/hv_xen.py: Merge parameter list of
                                    GetInstanceConsole
      	lib/luxi.py: Use generated constant for REQ_PICKUP_JOB
      	src/Ganeti/ConfigReader.hs: trivial
      	src/Ganeti/HsConstants.hs: Manually add UserDown and ndSshPort
                                     related constants to Constants.hs
      	src/Ganeti/Query/Server.hs: trivial
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
      a4417db4
    • Thomas Thrainer's avatar
      Merge branch 'stable-2.9' into stable-2.10 · adef95a2
      Thomas Thrainer authored
      
      
      Merge branch 'stable-2.9' into stable-2.10
      
      * stable-2.9
        Bump revision for 2.9.1
        Update NEWS and schedule release for 2.9.1
        Fix retrieval of xen command in class method
        Fix docstring for ganeti.storage.filestorage_unittest.py
        Undo revision bump
        Postpone release of 2.9.1
        Revision bump for 2.9.1
        Update NEWS for 2.9.1 release
        Readd nodes as online
        When verifying BRBD version, ignore missing values
      
      * stable-2.8
        Version bump for 2.8.2
        Update NEWS file for 2.8.2 release
        DRBD: ensure peers are UpToDate for dual-primary
      
      Conflicts:
          NEWS: trivial
      	configure.ac: ignore version bump
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
      adef95a2
  9. 14 Nov, 2013 9 commits