Introduce a new type for allocation results
Currently the allocation/move operations workflow return ‘Maybe a’, which is very convenient but loses all details about the failure mode. This patch introduces a new data type which encodes the specific failure mode. It is not yet used correctly (e.g. all node operations result in FailN1), but the workflow is updated. Most of the changes are in the hail/hspace tools, the library code required only trivial adjustments.
Showing
- Ganeti/HTools/Cluster.hs 14 additions, 15 deletionsGaneti/HTools/Cluster.hs
- Ganeti/HTools/Node.hs 11 additions, 11 deletionsGaneti/HTools/Node.hs
- Ganeti/HTools/Types.hs 17 additions, 0 deletionsGaneti/HTools/Types.hs
- hail.hs 14 additions, 11 deletionshail.hs
- hspace.hs 27 additions, 21 deletionshspace.hs
Loading
Please register or sign in to comment