htools: add more IAlloc data types and functions
authorIustin Pop <iustin@google.com>
Sun, 3 Jul 2011 14:17:46 +0000 (16:17 +0200)
committerIustin Pop <iustin@google.com>
Thu, 14 Jul 2011 09:05:58 +0000 (11:05 +0200)
commit47eed3f41b0c00785dacaa438003d67b7227e764
treebf501db4596534a7c541052e1b88b05dfb0f730f
parenta30b473c1531faf8a7fba1a792c98ef5e25c2194
htools: add more IAlloc data types and functions

These move the 'not supported' message deeper into the workflow;
assuming that the workflow as added by this patch is correct, all that
remains is:

- for disk template DRBD8, plug in the currently existing mechanisms
  to implement relocation
- for other disk templates, first modify the Node function to handle
  node changes correctly for each disk template, and then add support
  for them in nodeEvacInstance

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
htools/Ganeti/HTools/Cluster.hs
htools/Ganeti/HTools/IAlloc.hs