- Apr 06, 2011
-
-
René Nussbaumer authored
Before hbal decided on the fly if an instance is migratable or not. As we implemented failover fallback in commit d5cafd31 we can start to use that. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
René Nussbaumer authored
As the code for failover for checking is almost identical it's an easy task to switch it over to the TLMigrateInstance. This allows us to fallback to failover if migrate fails prereq check for some reason. Please note that everything from LUInstanceFailover.Exec is taken over unchanged to TLMigrateInstance._ExecFailover, only with adaption to opcode fields and variable referencing, but not in logic. There still needs to go some effort into merging the logic with the migration (for example DRBD handling). But this should happen in a separate iteration. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
The intent of this function is to be able to provide a globbing operator or query filters. One should be able to say, for example, something to the effect of “gnt-instance shutdown '*.site'”. Also rename a variable in MatchNameComponent. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Until now “gnt-cluster verify” (LUClusterVerify) would compute its own list of files to check for consistency. This list was not complete and certain inconsistencies were missed. With this patch the code is changed to use the list of files used by LUClusterRedistConf. The new check needs to be on a whole-cluster level, and no longer per node. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
… and change the logic in _RedistributeAncillaryFiles. The virtually same list of files will be used to verify the files' consistency. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Apr 05, 2011
-
-
Michael Hanselmann authored
It'll be implemented using OP_REGEXP by the parser. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
So far this operator was not implemented. This patch adds an additional value preparation function to the function table for binary operators, used to compile the regular expression. Unittests are included. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Apr 04, 2011
-
-
Michael Hanselmann authored
Commit 75c7520f used the wrong constant. I double-checked all other changes made in the commit. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Adeodato Simo authored
Signed-off-by:
Adeodato Simo <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Apr 01, 2011
-
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Mar 31, 2011
-
-
Iustin Pop authored
The new wrapper makes moving legacy code to utils.Retry or adding retries in existing code simpler. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This exports whether htools was enabled at configure-time, and adds a constant for our reference iallocator. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
René Nussbaumer authored
There was a race condition on heavily loaded testsystem causing randomly to fail the timeout unittests as the signal handler is not yet setup but the timeout has already hit. Therefore we introduce a workaround to wait until a program reached a certain point (for example after signal handling setup) before we actually go for the real run. The wait of course has a timeout as well, but it's pretty high. If we hit the 20 seconds we have really big issues anyway. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Was not sure about the bit in admin.rst, hope it's fine. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Mar 30, 2011
-
-
Iustin Pop authored
Expands the devnotes.rst doc and adds warnings in the Makefile. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Ganeti 2.1.3, released in June 2010, added support for a new, extensible instance creation request format, called version 1. This patch removes support for the old and undocumented version 0 format. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Mar 29, 2011
-
-
Simeon Miteff authored
- Added @rtype and/or @return where missing - Fixed @param for Query() filter_ parameter (colon was missing) Signed-off-by:
Simeon Miteff <simeon.miteff@gmail.com> Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Mar 28, 2011
-
-
Adeodato Simo authored
Signed-off-by:
Adeodato Simo <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Adeodato Simo authored
This commits breaks down the "Input message" section of iallocator.rst into two separate subsections: one detailing keys that are required in all operation types; a second one detailing the "request" element, which is different for each type of request. Some other minor improvements are included as well: - update input example to version 2, and add the "nodegroups" and "enabled_hypervisors" top-level elements, and the "group" and "hypervisor" attributes for nodes and allocation request, respectively. - sort keys in the example dictionaries according to the order in earlier sections, for easy comparison of documentation with its examples. Signed-off-by:
Adeodato Simo <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
René Nussbaumer authored
This fixes a issue, where an stopped instances is reported as ERROR in cluster verify if it lives on a offline node. As the instances is down this shouldn't happen. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Mar 25, 2011
-
-
Michael Hanselmann authored
The design details can be seen in the design document (doc/design-lu-generated-jobs.rst). Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Mar 24, 2011
-
-
Adeodato Simo authored
Signed-off-by:
Adeodato Simo <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Adeodato Simo authored
The request argument for multi-evacuate mode is "evac_nodes", not "nodes" (the example later in the file has the correct name already). Signed-off-by:
Adeodato Simo <dato@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Add some debug logging to detail why we don't run some steps. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
René Nussbaumer authored
I provided unittest to test the important pieces of the infrastructure. The one remaining function (ResuriveEnsure) is not easy to unittest but also not critical if it fails to operate correctly. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Mar 23, 2011
-
-
Iustin Pop authored
This allows Apache to display the directory in a nicer way. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
OK, my previous small fix was not good. There is another issue: haddoc (the documentation generator) needs to pass the same compiler options (i.e. in our case, -DNO_CURL) to ghc. But in case of no curl, then it shouldn't scan at all the RAPI library, as that is not used in our builds. Clearly, this is not a nice thing. So this patch changes from including/excluding RAPI conditionally (in two places, the ExtLoader.hs module and in hscan.hs), to always include RAPI, and moves the curl/no curl login to RAPI itself, where it belongs. Together with passing --optghc to haddock, this makes the builds consistent both with and without RAPI. I also undo the removal of RAPI from QC.hs. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
hlint gives more suggestions, but some make the code (IMHO) harder to read. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
These are just changes from hlint suggestions. Still compiles and passes unittests. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Requested-by:
Iustin Pop <iustin@google.com> Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This patch adds a design document describing how jobs can be submitted from within LUs. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Since we don't test for now the RAPI backend directly, we can simply skip the import. Later we can make a conditional import if needed. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-