1. 20 May, 2010 3 commits
    • Iustin Pop's avatar
      Stop modifying names for internal computations · 3e4480e0
      Iustin Pop authored
      Currently the name used internally is modified and holds the shortened
      name of the nodes/instances. This has caused issues before, since we
      always have to strip the suffix from input data and reapply it if we
      need to send data back to Ganeti.
      
      This patch changes the code such that the names are never modified, only
      the alias, and all the internal computations can forget about the common
      suffix addition/removal.
      3e4480e0
    • Iustin Pop's avatar
      Add a new node/instance field · 8bcdde0c
      Iustin Pop authored
      This new field ('alias') will hold the shortened/beautified display
      name. When resetting the name, the alias is reset too, and there's a new
      function to update only the alias.
      8bcdde0c
    • Iustin Pop's avatar
      Change some test constants · 49f9627a
      Iustin Pop authored
      First, we reduce the max size of the disks, since Int on 32bits will
      overflow for big simulated clusters. This is a real issue, that will
      need fixing in real life, but for now we just "silence" this test.
      
      Second, we increase the amount of time a test is allowed to run,
      otherwise on slower computers some tests might time-out.
      49f9627a
  2. 19 May, 2010 3 commits
  3. 18 May, 2010 1 commit
    • Iustin Pop's avatar
      Remove the noLimit values and always use limits · f4c0b8c5
      Iustin Pop authored
      This patch moves from allowing no-limits for disk/cpu ratios, and always
      use a real limit. For disk, it's simple since we use 0, which means no
      reservations for disks. For CPU, we set an (arbitrary) limit of 64 v/p,
      which should be reasonable as a default limit (it can be changed via the
      command line).
      f4c0b8c5
  4. 17 May, 2010 1 commit
    • Iustin Pop's avatar
      hspace: change handling of N+1 bad clusters · 317b1040
      Iustin Pop authored
      Currently we just print a fake result and exit early. This is bad, since
      it doesn't use the same codepaths for all the result printing, and has
      already led to a bug where hspace looks like completely ignoring the
      tiered specs request.
      
      This patch changes the code to override the computation, instead of the
      printout, thus allowing tiered specs results for such cases.
      317b1040
  5. 04 May, 2010 1 commit
    • Iustin Pop's avatar
      Fix hspace's KM metrics · e2436511
      Iustin Pop authored
      We returned the KM_POOL_* metrics as the final state, not as the delta
      between the final and the initial state.
      e2436511
  6. 26 Apr, 2010 1 commit
  7. 15 Apr, 2010 5 commits
  8. 14 Apr, 2010 1 commit
  9. 31 Mar, 2010 2 commits
    • Iustin Pop's avatar
      Fix iallocator crash when no solutions exist · 57587760
      Iustin Pop authored
      Commit 54365762 added an un-guarded `head' call, which crashes with
      “Prelude.head: empty list” when no results exists for the per-instance
      allocation/relocation calls.
      
      This patch fixes this, and also adds another check for an unguarded
      `head' call during parsing of input data.
      (cherry picked from commit e41f4ba0)
      57587760
    • Iustin Pop's avatar
      Fix IAllocator multi-evacuate message · 934c62dc
      Iustin Pop authored
      Since Ganeti passes full host names (not common-suffix-stripped), we
      need to remove the suffix from the evac_nodes keys too. In case one node
      is not part of the cluster, it will lead to a wrong error message, but
      for now it fixes the problem.
      934c62dc
  10. 09 Mar, 2010 1 commit
    • Iustin Pop's avatar
      Fix iallocator crash when no solutions exist · e41f4ba0
      Iustin Pop authored
      Commit 54365762 added an un-guarded `head' call, which crashes with
      “Prelude.head: empty list” when no results exists for the per-instance
      allocation/relocation calls.
      
      This patch fixes this, and also adds another check for an unguarded
      `head' call during parsing of input data.
      e41f4ba0
  11. 26 Feb, 2010 1 commit
  12. 25 Feb, 2010 5 commits
  13. 24 Feb, 2010 1 commit
  14. 23 Feb, 2010 7 commits
  15. 22 Feb, 2010 7 commits