1. 21 Nov, 2008 7 commits
  2. 20 Nov, 2008 5 commits
    • Michael Hanselmann's avatar
      ganeti.ssconf: Add function to write ssconf files · 0c223ea9
      Michael Hanselmann authored
      This function will be used to write ssconf files from the node daemon.
      By creating a lock file, we synchronize different child processes of
      ganeti-noded to not overwrite each other's changes. Also, external
      processes could use this lock to make sure they don't read ssconf
      files while changes are going on.
      
      The socket module is not used (anymore) in ganeti.ssconf, removing it.
      
      Reviewed-by: iustinp
      0c223ea9
    • Iustin Pop's avatar
      Convert replace-disks (same nodes) to multi-disk · 54155f52
      Iustin Pop authored
      This patch changes the drbd8 replace disk only (no secondary change) to
      work in with multi-disk. This mode of replaces works correctly with
      replacing only a subset of disks.
      
      Reviewed-by: imsnah
      54155f52
    • Iustin Pop's avatar
      Initial multi-disk/multi-nic support · 08db7c5c
      Iustin Pop authored
      This patch adds support for mult-disk/multi-nic in:
        - instance add
        - burnin
      
      The start/stop/failover/cluster verify work as expected. Replace disk
      and grow disk are TODO.
      
      There's also a change gnt-job to allow dictionaries to be listed in
      gnt-job info.
      
      Reviewed-by: imsnah
      08db7c5c
    • Iustin Pop's avatar
      Add more disk/nic listing options in gnt-instance · 41a776da
      Iustin Pop authored
      This adds some more listing cases (useful for scripting/rapi):
        - disk.sizes for a list of all sizes
        - nic.(ips|macs|bridges)
      
      Reviewed-by: imsnah
      41a776da
    • Iustin Pop's avatar
      Change Xen hypervisor to not use iv_name · 2864f2d9
      Iustin Pop authored
      Currently the iv_name is very linux-specific, and will break with the
      multi-disk changes.
      
      The patch changes this to generate sdX names based on the disk index in
      the disks structure, instead of relying on the iv_name.
      
      Reviewed-by: imsnah
      2864f2d9
  3. 19 Nov, 2008 4 commits
  4. 18 Nov, 2008 5 commits
    • Iustin Pop's avatar
      Skip another testWaitingXblocksY · a143be68
      Iustin Pop authored
      The waiting sharer blocks exclusive is another not-possible to test
      right now.
      
      Sorry for missing it the first time; there are no other testWaiting...
      tests.
      
      Reviewed-by: ultrotter
      a143be68
    • Iustin Pop's avatar
      Allow querying of variable number of parameters · 71c1af58
      Iustin Pop authored
      This patch adds support for querying in gnt-instance list of:
        - disk.count
        - nic.count
        - disk.size/$N
        - nic.(ip|mac|bridge)/$N
      
      The patch also disables the exception raised when the header description
      is missing, that should be fixed in the future (together with better
      handling of variable numeric fields).
      
      Reviewed-by: imsnah
      71c1af58
    • Iustin Pop's avatar
      Convert cmdlib.py to _FieldSet · 31bf511f
      Iustin Pop authored
      This patch converts the current usage of _CheckOutputFields to the
      FieldSet class, but it doesn't start to use its variable matching
      features.
      
      Reviewed-by: ultrotter
      31bf511f
    • Iustin Pop's avatar
      Add a FieldSet class for variable parameter sets · 6de7c41d
      Iustin Pop authored
      This patch adds a _FieldSet class that can be used for the new variable
      parameter sets: e.g. the sda_size will change to disk/0.size (or
      similar) and we need to both check validity and extract the index of the
      parameter easily.
      
      The patch also sorts the unittest list in Makefile.am.
      
      Reviewed-by: ultrotter
      6de7c41d
    • Iustin Pop's avatar
      Skip the waitingExclusiveBlockSharer test · e6416152
      Iustin Pop authored
      Until we have a way to properly test this, we'll skip the test.
      
      Reviewed-by: imsnah
      e6416152
  5. 17 Nov, 2008 2 commits
    • Iustin Pop's avatar
      More updates to the documentation · 6c2d0b44
      Iustin Pop authored
      This patch removes the client-api.txt document (since it's obsoleted by
      the documentation inside the design-2.0.rst document) and adds many
      updates to the latter.
      
      Reviewed-by: imsnah
      6c2d0b44
    • Iustin Pop's avatar
      Fix distcheck with the new dot/png rules · b8195800
      Iustin Pop authored
      Adding a new filetype/make rule requires more work than the previous
      patch. Sorry! Now pases distcheck.
      
      Reviewed-by: imsnah
      b8195800
  6. 16 Nov, 2008 2 commits
    • Iustin Pop's avatar
      Add a cluster architecture diagram · f86e82ef
      Iustin Pop authored
      This adds a simple diagram for the cluster architecture and also adds a
      dependency on graphviz (both doc and in configure).
      
      Reviewed-by: imsnah
      f86e82ef
    • Iustin Pop's avatar
      Combine the 2.0 design documents into one · 5c0c1eeb
      Iustin Pop authored
      This patch combines all the design documents for 2.0 except the
      security one into a single document, in order to ease reading and reduce
      duplication of information.
      
      Future patches will start removing wrong pointers to old document names
      and some better integration between the sections.
      
      Reviewed-by: imsnah
      5c0c1eeb
  7. 14 Nov, 2008 2 commits
  8. 12 Nov, 2008 9 commits
  9. 11 Nov, 2008 4 commits
    • Michael Hanselmann's avatar
      ganeti.http: Implement SSL for HTTP client · 438a366a
      Michael Hanselmann authored
      Implementing SSL for the HTTP client required more work than I expected.
      For correct error handling, quite a lot of code is needed. To avoid
      code duplication, I moved a lot of the socket handling code into a
      single function named _SocketOperation. It takes care of the polling
      and error handling for OpenSSL. At the same time, the functions calling
      it become a lot smaller.
      
      This patch brings a few more changes:
      - Error handling for socket.connect_ex (e.g. name resolution failures)
      - Rename "ResponseError" exception class to "_HttpClientError" --
        it's an internal class anyway
      
      Reviewed-by: iustinp
      438a366a
    • Michael Hanselmann's avatar
      ganeti.daemon: Add timers to Mainloop · b11c9e5c
      Michael Hanselmann authored
      This is a fallout from my work on the HTTP client class. Repeating
      timers are prepared, but not yet implemented.
      
      Reviewed-by: iustinp
      b11c9e5c
    • Iustin Pop's avatar
      Convert trunk to posix-compatibility · d868edb4
      Iustin Pop authored
      We change two functions to use RunCmd without shell, and the other
      (which needs a ssh command line) is changed to the '>... 2>&1' syntax.
      
      Reviewed-by: imsnah
      d868edb4
    • Iustin Pop's avatar
      Abstract runtime creation of dirs into a function · 8adbffaa
      Iustin Pop authored
      Currently the dir creation in ganeti-noded is in the main function. This
      is not nice: we move it into a separate function and also add creation
      of the OS_LOG_DIR (with different permissions, but in the same way).
      This will permit cleanup of the creation of the OS_LOG_DIR from the
      backend module (it's done multiple places currently).
      
      Reviewed-by: imsnah
      8adbffaa