- Mar 13, 2013
-
-
Michele Tartara authored
This commit adds the user and group variables for the monitoring agent in all the configuration files where they are required. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Mar 12, 2013
-
-
Iustin Pop authored
This is not run automatically (although it could/should), but is very useful during development. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Iustin Pop authored
Now that all fields are implemented, and (I think) behave equivalent to the Python implementation, we can switch on the split queries for networks. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Iustin Pop authored
Based on the implemented Ip4Network/Address types, we can now compute the (external) reservations. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Iustin Pop authored
This patch adds some very simple IPv4 address/network types, and uses them in the 'Network' config object. We need these in order to properly compute the reserved IP addresses, without depending on an external library (which I haven't found, by the way). Currently the only operation supported is 'get next IP address', which is enough for us. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Iustin Pop authored
This is in preparation for using OverloadedString extensions in this file, which conflicts with hlint 1.8.28's handling of annotations. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Iustin Pop authored
HLint 1.8.28 requires us to always add "ignore CamelCase", which can be problematic sometimes (e.g. when using OverloadedStrings). Let's expand TestHelper to also support less-standard 'caseFooBar' names, so that we can remove the annotations. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Iustin Pop authored
Side-effects of working on some other network-related stuff… Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Iustin Pop authored
Currently, the Python code returns either FS_UNAVAIL (if these attributes are None) or the proper dicts. As we don't allow editing of these attributes, in most cases they will therefore be FS_UNAVAIL on the client. The Haskell code however returns missingRuntime, which is FS_NODATA, so a mismatch (that also incurs a RPC call). Fixing it is easy, and makes the output consistent. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Iustin Pop authored
The Python code currently sorts this, but the Haskell code not. This should maybe have a test, but I'm not sure how far we want to encode such properties in tests… (and the real reason I'm not adding one is that we don't have a way to generate a random cluster _with_ instances). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Iustin Pop authored
Currently, both the Python and Haskell code return the internal instance list unsorted, which means the output can vary depending on the phase of the moon (well, the Haskell code actually uses internally a tree, sorted by the instance name, but it's implementation detail). By adding an explicit sort step, we guarantee both stability of the output and consistency between the two query paths. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Iustin Pop authored
Currently, the 'node' field is declared as a simple config field, so when only selecting this fields, the runtime gathering is no longer run and it's presumed that all nodes have a backup. So the output is not truthful (instead of just listing the nodes with at least one export, all are listed). By simply making it a runtime field, filtering works properly and we get the same output as the masterd code. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Iustin Pop authored
And also use it for simple network fields. Currently the Python library returns jsnull, which is formatted as 'None' by the Python client, which (IMHO) is not nice, since these fields are strings (some of them) or "other". An undeclared gateway is easier to diagnose when properly reported by the server as missing, rather than "existing but null". Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Iustin Pop authored
The headers/type/descriptions had some differences from the Python code, when checked for exact equivalence. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Helga Velroyen authored
This patch updates the design doc "Design correct reporting of storage free space". The modifications were chosen to not conflict with any future changes of Ganeti regarding storage pools. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
Diskless instances cannot really be reinstalled, not even through RAPI. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
* devel-2.7 Add QA for instance creation with policy violation Add QA for policy-instance interactions Add QA for cluster policies Unit tests for objects.InstancePolicy + a fix Unit tests for objects.FillIPolicy() + small fix Fix upgrade of policy in objects.Cluster Fix instance policy checks for default back-end parameters Fix restoring default instance specs in group policies Unit tests for cmdlib._GetUpdatedIPolicy() Fix policy check for disk templates Fix merge 8e09e801 that resulted in duplicated code GanetiRapiClient: fix the no_remember option Conflicts: qa/qa_cluster.py qa/qa_instance.py Conflicts are due to QA config in master using objects instead of dictionaries. Also updated some new QA code in devel for the same reason. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
The first line of a function should be blank, unless it is able to contain the whole function. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Mar 11, 2013
-
-
Bernardo Dal Seno authored
When instance policy is violated, creation fails. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
Violations on policy changes are checked. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
qa_cluster.TestClusterSetISpecs() is exported as it will be used in future tests. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
Tests for: objects.InstancePolicy.CheckParameterSyntax() objects.InstancePolicy.CheckDiskTemplates() objects.InstancePolicy.CheckISpecSyntax() Instance policies with an empty disk-template list now are reported. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
IPOLICY_DEFAULTS is now a legal policy (the disk-templates entry was a set instead of a list, before). Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
Unknown elements were silently removed on startup. This means that a software upgrade could result in lost configuration information if cfgupgrade wasn't run promptly. Added unit test for Cluster.UpgradeConfig() to cover this case. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
Policy violations of back-end parameters that used the cluster default value were not reported in cluster-verify. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
"default" was not accepted as a valid input value for instance specs in group policies, due to a bug introduced in 2cc673a3 (and released with 2.6.0). Added QA for this and another similar case. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
Not 100% coverage, though. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
Instance disk template is checked against the policy, and diskless instances aren't checked for the number of disks. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
A fragment in LUInstanceCreate.CheckPrereq() removed in commit ba147ff8 was reintroduced in merge 8e09e801 due to a change in df28c49b. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Daniel Krambrock authored
There was a typo which prevented the correct option from being passed to RAPI Signed-off-by:
Daniel Krambrock <danielk_lists@z9d.de> Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Mar 08, 2013
-
-
Iustin Pop authored
* devel-2.7: Change hbal behaviour in case of early exit Fix build/sphinx_ext.py with tuple defaults for op params Fix bug in man build rule Fix hscolour style sheet building Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Iustin Pop authored
Currently, hbal exits with status 1 if early exit is requested, even when all jobs are successful. This is counter-intuitive behaviour, so let's fix it (Issue 386). Note that the man page had conflicting information already, so it's a good thing to clean this up. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Mar 06, 2013
-
-
Michele Tartara authored
The "reason" opcode parameter can now apply to multiple opcodes, not just the one for rebooting instances. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
When an OpCode's parameter has a tuple as default value, this code will break: buf.write("defaults to ``%s``" % default) The patch fixes this and other potential cases by always passing a tuple to '%'. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Iustin Pop authored
Currently the man page build rule is run without ‘-e’, so the actual checks in there are just warnings (check-man-warnings, check-man-dashes). The patch fixes this and also fixes the man pages which made me see the problem. Additionally, check-man-dashes is now verbose, otherwise it's hard to find out actually where in the page the error is. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Iustin Pop authored
Currently we only symlink this into two hard-coded directories, which breaks the source code viewing for all the others. The patch replaces this with automatic building; as playing with relative symlinks is non-trivial, I just generate it many times (the file is small enough (<250) that it shouldn't matter, size-wise, and it takes 2ms to do it). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Michele Tartara authored
The "reason" attribute will be common to many opcodes. This patch factors it out so that it will be possible for the next commits to use it without code duplication. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Mar 05, 2013
-
-
Iustin Pop authored
* devel-2.7: Update required pylint version Constants.hs.in: improve Haddock markup in the template convert-constants: generate better Haddock markup Expand Haddock to run over test files as well Conflicts: Makefile.am (curl changes and new hs directories) Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Iustin Pop authored
This should help a lot of users, since pylint 0.21.1 was quite an old version… The tree is "clean" w.r.t. the new pylint version. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-