- May 20, 2010
-
-
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.
-
- Feb 25, 2010
-
-
Iustin Pop authored
-
Iustin Pop authored
GHC 6.12 has some new warnings, which are valid in most cases except (IMHO) printf usage.
-
Iustin Pop authored
GHC 6.12 has become more picky about unused imports, so we need to remove/tighten some of them.
-
- Feb 23, 2010
-
-
Iustin Pop authored
This allows hscan to work also with NO_CURL (but only for the local machine, of course).
-
Iustin Pop authored
This updates the movable flag on instances if they have only one node (we don't rely on OpMoveInstance) or if they are set so via the command line options. This doesn't yet enable the use of the new flag.
-
- Jan 07, 2010
-
-
Iustin Pop authored
This also updates its manpage, some information were really old.
-
- Nov 27, 2009
-
-
Iustin Pop authored
While these are not actually populated from the backends, and all the programs ignore them, this patch contains the changes in the function types required.
-
- Nov 17, 2009
-
-
Iustin Pop authored
Since we don't want all instance tags to be used for exclusion, we add a command line option to filter on these. Since the iallocator protocol cannot accept command line options, currently it's not possible to specify these for hail, and thus it will never use any exclusion tags.
-
- Nov 11, 2009
-
-
Iustin Pop authored
… and read it in all the loaders. hscan is modified to save it to the files it generates. The attribute is not yet used in any place.
-
- Nov 10, 2009
-
-
Iustin Pop authored
The print nodes option can now accept an optional field list to customise the output. This is ugly, since the field names do not match the header names, but it is at least barely customisable (at runtime).
-
- Oct 16, 2009
-
-
Iustin Pop authored
This patch adds loading and processing the utilisation data during instance moves. While the data is not yet used, it is correctly modified by instance changes between nodes. hbal has the new ‘-U’ command line argument for this. The format of the file is simply instance name and the four stats, space-separated.
-
- Oct 14, 2009
-
-
Iustin Pop authored
This changes from a_b to aB in all node and instance attributes, to match the standard Haskell style. Also attributes that should have been camel-cased but weren't were changed (e.g. plist → pList, pnode → pNode).
-
- Jul 15, 2009
-
-
Iustin Pop authored
This patch moves all the command line options and their internal representation into CLI.hs. This means that duplicated options between any two binaries are no longer declared twice, and that we no longer need the two *Option classes.
-
- Jul 06, 2009
-
-
Iustin Pop authored
This big patch cleans up the code per hlint indications. Many removals of extra parentheses, replacements of concat . map with concabtMap, extra dollar signs, eta reductions, etc. were performed. The code still compiles and passes a couple of manual tests on sample files. The individual changes are also small enough as to be visually easy to confirm.
-
- Jun 12, 2009
-
-
Iustin Pop authored
Currently hscan has a number of bugs: - doesn't add the common suffix (csf) to the instance's nodes - doesn't export the cpus for neither nodes nor instances - doesn't support single-node instances This patch fixes these issues.
-
- Jun 11, 2009
-
-
Iustin Pop authored
In a few places (e.g. tryRead or any printf call) it's a little bit hard to add the correct type signatures, but in the it is possible to fix these warnings (which can bite one in subtle cases).
-
- Jun 01, 2009
-
-
Iustin Pop authored
This doc-patch adds copyright and license information to (hopefully) all needed files.
-
- May 26, 2009
-
-
Iustin Pop authored
This patch makes the Types module a base module, and Node/Instance ones import it, from the previous (opposite) situation. This will allow in the future to use newtypes for the index and name types.
-
- May 23, 2009
-
-
Iustin Pop authored
This removes the return of ktn/kti from Loader.mergeData and associated functions.
-
Iustin Pop authored
This patch removes all uses of ktn/kti from the past-loader stages.
-
Iustin Pop authored
Since we have Node/Instance.name, we can now simplify a few constructs.
-
Iustin Pop authored
This moves the remaining loading function to Loader (together with its associated support functions).
-
Iustin Pop authored
This patch generalizes a little the CLI handling by not passing in a special function for help and such, but instead requiring that the options object supports some common functionality.
-
- May 22, 2009
-
-
Iustin Pop authored
This new big patch does a couple of more cleanups in the loading of data chapter: - introduce a Types module that holds most types (except the base Node/Instance/etc.) so that multiple other modules can use these (instead of only Cluster and its users) - bring IAlloc.hs in line with the recent changes of providing data types and not strings - removal of obsolete Utils.hs json-related functions
-
Iustin Pop authored
This big patch changes the loader model from “string data as common format” to actual object structures as common format. The text loading function move from Cluster.hs to a new Text.hs module, some common functions are moved to a new Loader.hs module, and the return values from both Rapi.hs and Text.hs are uniformized.
-
- May 20, 2009
-
-
Iustin Pop authored
This patch changes Cluster.loadData to return a Result, instead of directly the values; this will allow us to return meaningful error values (e.g. when an instances lives on unknown node) rather than simply abort. Currently the result is always an Ok, the actual signalling of errors will come later. Its callers are changed to accommodate for the new return type and to display errors as needed.
-
Iustin Pop authored
In case we pass a fully-specified URL to hscan, currently it will use as is and that means the directory in which we want to save the status files changes from what we mean. This patch changes hscan to replace all slashes in the cluster name with underscores when generating the output filenames.
-
Iustin Pop authored
This big patch converts from our home-grown monad-like constructs (the Either stuff) to a real, Either-like-but-another-name monad. We introduce a “Result a” monad, and this allows dropping many of the extra constructs. Hopefully the code is also more clear. Many of the functions could now be written in a generic-monad style, instead of Result specifically, but that will come in future patches. IAlloc.hs also has some unrelated patches.
-
- May 19, 2009
-
-
Iustin Pop authored
This patch drops compatiblity with Ganeti 1.2 and adds support for offline nodes in the cluster. When reading from RAPI, the drained nodes are considered offline so that we don't allocate on them too.
-
- Mar 22, 2009
-
-
Iustin Pop authored
If an instance is down, it's memory is not reflected in the node used memory, and thus the node free memory is higher than the actual value. This patch deducts the memory for such instances from the node free memory, allowing a correct calculation for such cases.
-
Iustin Pop authored
This patch modifies Rapi, the Cluster.loadData and hscan serialization to load and save the instance run status. At instance level, we add both a boolean field denoting the true/false run status, and a string field which holds the original value (since we don't have a 1-to-1 mapping) for use in hscan serialization. The run status is not yet used.
-
Iustin Pop authored
This patch adds checking of cluster data in the binaries and display of node's x_mem/i_mem in the node list.
-
Iustin Pop authored
This patch moves the common CLI functionality (as much as currently possible) into a separate module. This means we only have one parseOpts and that Utils.hs doesn't keep this kind of functions anymore.
-
- Mar 21, 2009
-
-
Iustin Pop authored
This patch adds a new n_mem field to the node objects, and implements read/save/show support for it. The field is not currently used (except in the node list) but will be used for checking data consistency and instance up/down status.
-
Iustin Pop authored
This fixes a mistake between Int/Integer. Should be more careful :)
-
Iustin Pop authored
This patch adds an hscan tool that loads data from clusters via RAPI and writes it to files that can be later used offline.
-