1. 24 Nov, 2008 10 commits
    • Iustin Pop's avatar
      Documentation updates for mcpu.py · 8dca23a3
      Iustin Pop authored
      This is the only change needed to make mcpu epydoc-compliant.
      
      Reviewed-by: ultrotter
      8dca23a3
    • Guido Trotter's avatar
      LUCreateInstance: Fix import mac AUTO mode · b4364a6b
      Guido Trotter authored
      Previously on import LUCreateInstance used to recycle the mac if the instance
      name was the same than the one used at export time. Now we do the same, but
      apply the setting separately for each nic.
      
      Reviewed-by: iustinp
      b4364a6b
    • Guido Trotter's avatar
      Burner: fix ImportExport · 0ca35d45
      Guido Trotter authored
      Update the call to CreateInstance used in ImportExport to the new API for
      multidisk/nic.
      
      Reviewed-by: iustinp
      0ca35d45
    • Guido Trotter's avatar
      LUCreateInstance unlock all nodes mid-way · e36e96b4
      Guido Trotter authored
      When creating a new instance, after saving the instance data to the config file
      and creating the disks, but before waiting for sync and installing the OS, we
      release the node locks, to allow for more instance creations to proceed in
      parallel.
      
      Reviewed-by: iustinp
      e36e96b4
    • Guido Trotter's avatar
      IAllocator: subtract down instances from free mem · 18640d69
      Guido Trotter authored
      Currently free_memory just reports the amount of free ram, as seen by the
      hypervisor. We adjust this amount by subtracting the memory for any instance
      which is down, and the difference for any instance which is configured to have
      more memory than the amount it's currently running at.
      
      Reviewed-by: iustinp
      18640d69
    • Guido Trotter's avatar
      Correct GetAllInstancesInfo rtype · 955db481
      Guido Trotter authored
      GetAllInstancesInfo, in the backend, returns just a dict, not a dict of dicts.
      
      Reviewed-by: iustinp
      955db481
    • Guido Trotter's avatar
      IAllocator: use the right hypervisor · 8cc7e742
      Guido Trotter authored
      Since the hypervisor is instance dependent we'll get one on instance creation,
      and use the one in the instance config on relocation.
      
      Reviewed-by: iustinp
      8cc7e742
    • Guido Trotter's avatar
      IAllocator: fill i_list in a more proper way · b57e9819
      Guido Trotter authored
      - reuse the previously called cluster_info, rather than calling it again
      - get all the instances from the config atomically, to prevent race conditions
      - use a list comprehension, for simplicity
      
      Reviewed-by: iustinp
      b57e9819
    • Guido Trotter's avatar
      Parallelize instance operations on the same node · 90a7547a
      Guido Trotter authored
      With static minors we don't have a race condition anymore when
      starting/stopping/rebooting/reinstalling more than one instance on the same
      node, so we'll drop node locking altogether.
      
      Reviewed-by: iustinp
      90a7547a
    • Guido Trotter's avatar
      Convert iallocator to the new _ComputeDiskSize · dafc7302
      Guido Trotter authored
      _ComputeDiskSize's API was changed for multidisk support in r2010, but
      iallocator's call to it were not fixed. Converting them now.
      
      Reviewed-by: iustinp
      dafc7302
  2. 23 Nov, 2008 5 commits
    • Iustin Pop's avatar
      Documentation updates for cmdlib.py · e4376078
      Iustin Pop authored
      This makes cmdlib.py not throw epydoc errors anymore.
      
      Reviewed-by: ultrotter
      e4376078
    • Iustin Pop's avatar
      Slight change to the apidoc build · 975e07c6
      Iustin Pop authored
      Currently the temporary directory used for modules is under the current
      directory; this patch changes it so a temp directory is used; so we
      could build the apidocs with a R/O filesystem.
      
      Reviewed-by: ultrotter
      975e07c6
    • Iustin Pop's avatar
      Only update ssconf on cluster serial change · 0779e3aa
      Iustin Pop authored
      There is no need to update ssconf if the cluster serial number has not
      changed.
      
      Reviewed-by: ultrotter
      0779e3aa
    • Iustin Pop's avatar
      Enable auto-unit formatting in script output · 9fbfbb7b
      Iustin Pop authored
      This patch enables by default the old 'human-readable' option, but in a
      slightly different model.
      
      The option is now called "units" and takes either:
       - 'h' for automatic formatting
       - 'm', 'g' or 't' for mebi/gibi/tebibytes
      
      If 'h' is used, we add a unit suffix, otherwise nothing is added so that
      parsing is easy.
      
      The default value of this unit is:
        - 'h' if a separator is not passed
        - 'm' if a separator is passed
      
      Reviewed-by: ultrotter
      9fbfbb7b
    • Iustin Pop's avatar
      Improvements to CLI output · 23b8c8d6
      Iustin Pop authored
      This patch adds nicer formatting for some gnt-instance list operations.
      
      Reviewed-by: ultrotter
      23b8c8d6
  3. 21 Nov, 2008 15 commits
  4. 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
  5. 19 Nov, 2008 4 commits
  6. 18 Nov, 2008 1 commit
    • 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