Skip to content
Snippets Groups Projects
  1. Dec 08, 2011
  2. Dec 07, 2011
  3. Dec 06, 2011
    • Andrea Spadaccini's avatar
      Add DRBD barriers disk parameters · 8a69b3a8
      Andrea Spadaccini authored
      
      Add the disk-barriers and meta-barriers parameters described in the
      design doc.
      
      constants.py:
      * add the needed LD and DT-level parameters, use the defaults provided
        at ./configure time;
      * add constants representing which barriers should be disabled and the
        set of valid options.
      
      lib/bdev.py:
      * factor the barriers handling code to a class method, for testing
        purposes;
      * implement the more granular version checking logic;
      * use the LD level parameters;
      * add stricter check on DRBD version (8.0, 8.2 or 8.3), as we do not
        support 8.4 yet.
      
      lib/cmdlib.py:
      * translate DT level parameters to LD level ones.
      
      configure.ac, Makefile.am:
      * set both disk and meta barriers parameters depending on the value of
        --enable-drbd-barriers.
      
      test/ganeti.bdev_unittest.py:
      * unit tests for the code that sets DRBD barrier parameters depending on
        the version.
      
      doc/design-resource-model.rst:
      * reword the description of meta-barriers;
      * change all disk parameters names to use dashes instead of underscores.
      
      Signed-off-by: default avatarAndrea Spadaccini <spadaccio@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      8a69b3a8
    • Iustin Pop's avatar
      Style fixes on confd-client · 8bec868e
      Iustin Pop authored
      
      Oops, forgot to check this before initial commit, sorry!
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      8bec868e
    • Michael Hanselmann's avatar
      NEWS: Add missing space · a591e210
      Michael Hanselmann authored
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      a591e210
    • Iustin Pop's avatar
      htools: small change in error message in THH.hs · 6bd26f00
      Iustin Pop authored
      
      We should also display the value we can't parse, otherwise debugging
      is very hard.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarAgata Murawska <agatamurawska@google.com>
      6bd26f00
    • Iustin Pop's avatar
      htools: improvements to JSON deserialisation · 706f7f51
      Iustin Pop authored
      
      This fixes two problems:
      
      - first, when we deserialise a big object, showing its value is not
        useful, as it will hide the actual error message
      - second, we shouldn't deserialise a container at once, because then
        we will lose the detail of which 'key' failed to deserialise; we
        change to manual deserialisation of each key/value pair, so that we
        can keep this information
      
      The last point requires that we import JSON.hs into THH.hs, in order
      not to duplicate functionality.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarAgata Murawska <agatamurawska@google.com>
      706f7f51
    • Iustin Pop's avatar
      htools: add new template haskell system · 879273e3
      Iustin Pop authored
      
      This system based on explicit types instead of ad-hoc rules
      (e.g. instead of deducing from "Maybe Int" an optional field, we now
      can say explicitly OptionalField ''Int). In the first phase, this will
      be used for the equivalent of lib/objects.py, which has slightly
      different rules than luxi/opcodes.
      
      We should look at merging the two systems later.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarAgata Murawska <agatamurawska@google.com>
      879273e3
    • Iustin Pop's avatar
      Add a small confd client · 4ef0399b
      Iustin Pop authored
      This can be used to test live servers; currently there's not direct
      way to interact with a confd server, except for burnin's builtin tests
      (which were the source of this file).
      
      Signed-off-by: Iustin Pop <iustin@google.com>
      Reviewed-by: Guido Trotter <ultrotter@google.com>
      4ef0399b
    • Iustin Pop's avatar
      A few updates to the confd design (2.1) · 530b64e6
      Iustin Pop authored
      While the 2.1 design is old and should be “immutable”, I can't find
      documentation about the confd protocol anywhere else, so let's correct
      the design doc.
      
      The patch is mostly style changes, plus a clarification on the ‘query’
      field of the request, which varies *a lot* per request type.
      
      Signed-off-by: Iustin Pop <iustin@google.com>
      Reviewed-by: Guido Trotter <ultrotter@google.com>
      530b64e6
  4. Dec 02, 2011
  5. Dec 01, 2011
  6. Nov 30, 2011
  7. Nov 24, 2011
Loading