- Jun 28, 2012
-
-
René Nussbaumer authored
We call _OpenRealBD during the process and this needs disk parameters to work. This was reported by Constantinos. The fix is very ugly though. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
This fixes a couple of issue I've seen while fixing the List import: - removes over-use of printf with putStr/show - wraps some lines - removes superfluous parentheses in constructs like 'IO (a)' - makes sure that in type signatures, the '->' are placed at the beginning, not end of the line We probably need to update the style guide for some of these… Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Commit 1213f9d6 (re)added an old-style import, which fails with recent compilers. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Jun 27, 2012
-
-
Agata Murawska authored
Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
PrintGroupStats and printClusterStats had very similar code structure. This patch abstracts those two into printStats, making it a little more generic. Also, printStats has its arguments documented as requested in previous patch series. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
This replaces the 'if .. then .. else ..' with a large block of code in 'else' branch by separating this code into a separate function. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
Reordered functions and shortened one function name. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
As suggested by Rene, we should keep the check separate from printing. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
As discussed in cover letter of patch series introducing hcheck, in machine readable version we should always print values of all variables. When hbal simulation was not run, FINAL values are equal to INIT values. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
As per Iustin Pop's suggestion, we are printing group mappings from group idx (known only to htools) to group uuid, which identifies the group uniquely. This is required because group uuid and name may contain characters such as '-' which are not valid parts of bash variable name. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
Instead of printing group id in human readable version of hcheck, we now print group name. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
As suggested during offline discussion, this patch adds a new bash variable and description field in hcheck, which informs if the rebalance was possible. This is to determine if there are split instances on the cluster, in which case rebalance is impossible. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
As suggested by Rene, I added comments to types for printKeys and printFinal. Also, realigned some lines in Hspace. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Agata Murawska <agatamurawska@google.com>
-
René Nussbaumer authored
This annotates the disks for the blockdev_remove where it is appropriate. It leaves out 2 cases were we can't reliably annotate disk parameters due to lack of knowledge what we should annotate. Those cases affects only lvs used for drbd, so it doesn't affect the bug reported by Constantinos. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Agata Murawska <agatamurawska@google.com>
-
René Nussbaumer authored
This is also related to the bug reported by Constantinos, as we've only one getmirrorstatus_multi call in whole cmdlib, we just annotate them while we are building the disk list. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Agata Murawska <agatamurawska@google.com>
-
René Nussbaumer authored
Not annotating them works for DRBD but not for RBD as reported by Constantinos. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Agata Murawska <agatamurawska@google.com>
-
- Jun 25, 2012
-
-
Agata Murawska authored
Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
Hinotify was not marked as a dependency for hconfd. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Agata Murawska <agatamurawska@google.com>
-
Agata Murawska authored
Simple tests for hcheck using shelltestrunner. Among other, we check that we can run hcheck on multi-group cluster. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
Machine readable output for hcheck. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
Full hcheck functionality is implemented in this patch. Hcheck runs per-group checks, provides summary for the entire cluster and simulates rebalance if required, the printing the modified metrics. In this patch, only the human-readable output is available. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
Part of hcheck's simulation required us to silently run hbal. For that purpose we expose iterateDepth and allow it to run silently. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
As hspace and hcheck both use machine readable options, they require similar functions - which are now generalized and moved to CLI and Utils. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Agata Murawska authored
Introduce infrastructure required to add Hcheck and build it successfuly. Signed-off-by:
Agata Murawska <agatamurawska@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Jun 22, 2012
-
-
Michael Hanselmann authored
Clarify some things, use ```` where appropriate. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Agata Murawska <agatamurawska@google.com>
-
René Nussbaumer authored
This updates the NEWS file for the upcoming rc1 release. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jun 20, 2012
-
-
Iustin Pop authored
This would have caught our previous issue, since QA otherwise doesn't do add, remove or changes of NICs. Signed-off-by:
Iustin Pop <iustin@google.com> Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
_PrepareNicModification returns the invalid type, which triggers an assert resulting in a mysterious error: Failure: command execution error: Without any explanation. We fix this by removing the return value from _PrepareNicModification, and instead returning the expected type (since it differs per create/modification) from the (existing) wrappers for this function. We don't need to return actual changes from this function as _ApplyNicMods is the function that computes/returns the formatted changes. Signed-off-by:
Iustin Pop <iustin@google.com> Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
René Nussbaumer authored
Also provide some extended unittests to catch those cases. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Agata Murawska <agatamurawska@google.com>
-
- Jun 19, 2012
-
-
Michael Hanselmann authored
This is basically another case of commit d488adb6. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
The function is supposed to return a list, not a string. Without this patch the error message ends up as “C, a, n, ', t, , c, h, a, n, g, e, …”. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
Thanks to Agata Murawska, a random seed that generates bad test cases was found ("seed was 1768143307 2118231514, test size 74"). This is due to the fact that some nodes were generated with tMem=0, fMem=0, which means that pMem was NaN and thus the node was not comparing equal to itself. Worked around by limiting the test case generation to nodes with positive values; a better fix would be to compare nodes differently (subset of properties or ignore NaN values). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
Commit 8a69b3a8 changed the DRBD barriers disabled by default if “--disable-drbd-barriers” is used to “bfd”, where “d” stands for disk-drain. DRBD's upstream updated their documentation[1] to say disk drains should always be used. [1] http://git.drbd.org/?p=drbd-8.3.git;a=commit;h=f952dcfed57acf Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Jun 18, 2012
-
-
Iustin Pop authored
While reviewing the RAPI docs (for commit 003306f9), I realised that the punctuation used in RAPI is inconsistent, especially with regards to definition lists. This patch changes all such lists to not have punctuation, except for one case (the ecode descriptions, which have multiple paragraphs). Furthermore, it fixes the few opcodes which had docs ending with punctuation to not do so anymore. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jun 15, 2012
-
-
Iustin Pop authored
Sadly we don't have a way to test that, for example, all (G|N|I)Q_CONFIG fields are exported in RAPI, so for now we don't test this; but we should, in the future. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
The hypervisors are a list and need to be comma-separated. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-