Statistics
| Branch: | Tag: | Revision:

root / Ganeti @ 33e44f0c

Name Size
  HTools
Jobs.hs 3.3 kB
Luxi.hs 8.6 kB
OpCodes.hs 4.9 kB

Latest revisions

# Date Author Comment
33e44f0c 12/30/2010 11:49 am Iustin Pop

Add maybePrintInsts for the instance listing

This again abstracts a bit the instance listing. Due to the fact that
I don't want to import Cluster.hs in CLI.hs, we pass the already
generated output. It also moves the instance display to stderr.

Signed-off-by: Iustin Pop <>...

417f6b50 12/30/2010 11:49 am Iustin Pop

Add maybePrintNodes for abstracting the node list

Since this bit of code (including the “when (isJust …)” is used in
multiple places, let's abstract it in a function that is used
consistently. One (bad?) side-effect is that all node lists are done
to stderr, including the ones from hbal where it was previously done...

4188449c 12/30/2010 11:48 am Iustin Pop

Add maybeSaveData for cluster state saving

This functionality was replicated in multiple places (hbal & hspace),
so we abstract it for better clarity.

Additionally, in hbal we now save the state both before and after
balancing.

Signed-off-by: Iustin Pop <>...

c0e31451 12/30/2010 11:45 am Iustin Pop

Convert Text.serializeCluster to ClusterData

Signed-off-by: Iustin Pop <>
Reviewed-by: Balazs Lecz <>

f4f6eb0b 12/30/2010 11:44 am Iustin Pop

Convert the rest of the pipeline to ClusterData

This patch converts the backends and mergeData to the new ClusterData
type.

Signed-off-by: Iustin Pop <>
Reviewed-by: Balazs Lecz <>

017a0c3d 12/30/2010 11:44 am Iustin Pop

Move part of the loader pipeline to ClusterData

Signed-off-by: Iustin Pop <>
Reviewed-by: Balazs Lecz <>

34c00528 12/30/2010 11:40 am Iustin Pop

Convert Loader.RqType to ClusterData

Signed-off-by: Iustin Pop <>
Reviewed-by: Balazs Lecz <>

7b6e99b3 12/30/2010 11:38 am Iustin Pop

Add a new type ClusterData

This will be used to hold all the disparate uses of the cluster data:
we have either tuples with these four elements, or functions taking
these four arguments, etc.

Signed-off-by: Iustin Pop <>
Reviewed-by: Balazs Lecz <>

6c7448bb 12/30/2010 11:38 am Iustin Pop

Simulation backend: read the allocation policy too

This patch moves the allocation policy from hardcoded to be read from
the given specification, and extends the error message for invalid
specifications.

Signed-off-by: Iustin Pop <>
Reviewed-by: Balazs Lecz <>

9983063b 12/30/2010 11:36 am Iustin Pop

Simulation backend: allow multiple node groups

This patch changes the behaviour of the --simulation option to be an
incremental option, where each new use defines a new node group. This
allows simulation of more complex clusters.

Signed-off-by: Iustin Pop <>...

View revisions

Also available in: Atom