- Mar 28, 2013
-
-
Michele Tartara authored
Also, add it to the DRBD data collector, and export it from there. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michele Tartara authored
Also, update the DRBD data collector to use and export it. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michele Tartara authored
Also, update the JSON output (and the design document) so that it is not in camelcase anymore. This is part of a bigger effort to remove camelcase from the exposed JSON. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michele Tartara authored
Define the new data type and update the DRBD data collector to use it. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michele Tartara authored
Having 'null' instead of an empty string for an empty status message increases the complexity of the code with no real improvement. This patch modifies the monitoring agent design document solving this issue. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Michele Tartara authored
Additional clarification note added. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
A couple of them were missing and are added by this patch. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- Mar 27, 2013
-
-
Bernardo Dal Seno authored
The test is aimed mostly at instance policies, which changed recently. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
Instance policies in the configuration are upgraded and downgraded. Both operations are idempotent. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
Minimum and maximum instance specs are put together into a single element of the instance policy. This is in preparation for introducing multiple min/max specs. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
It's now possible to go back to the previous stable version. Unit tests provided. This is mostly useful during development, when going from master to stable/devel. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
All the upgrading code is now in one function. No functionality has been changed. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
If there are errors in the configuration when master daemon is started, they are now logged and reported. Previously they were logged sometimes at startup, and when performing any change to the configuration. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
The code relative to instance specs has been moved into a different function. This in preparation for further patches to have a more clear code structure. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
Instance policy fields were manually filled in CreateIPolicyFromOpts() and then filled again by the caller. Now they are filled once inside the function. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
Useful for subsequent patches. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
There will be only one standard specification in instance policies. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
The assertion was always true because "all" was missing. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- Mar 26, 2013
-
-
Michele Tartara authored
Add some additional information about how to use/test the RAPI, including how to specify authentication credentials. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
The code is more modular and the output is YAML-compliant. QA updated to take advantage of it. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
The code is more modular and the output is YAML-compliant. Added function in QA that uses PyYAML to parse the command output, and QA is updated to take advantage of it (instead of using lots of complicated REs). Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
The function produces a human-readable output, which is also a valid YAML file, from an intermediate data structure. This will be used by "gnt-xxx info" commands. The output of "gnt-xxx info" was almost YAML-compliant, and only minor adjustments are needed to make it fully compliant. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- Mar 22, 2013
-
-
Michele Tartara authored
The "queryargs" parameter of the __init__ function of rlib2 classes should be a dictionary, as defined in the ResourceBase parent class (in lib/rapi/baserlib.py). In the rlib2 and baserlib unit tests, when the queryargs parameter is not actually needed, it is sometimes erroneously initialized with an empty list or a "None" value instead of an empty dictionary. This commit solves the problem and introduces an assertion to prevent it from happening again in the future. The use of the assertion is safe, because in production code the __init__ function is only called by the RAPI server, with the queryargs parameter initialized by the Mapper.getController function (lib/rapi/connector.py) that always returns a dictionary. It can only affect test code and future code. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
cgi.parse_qs() is deprecated in python 2.6 and substituted by urlparse.parse_qs(). This patch modifies the code to use the new function. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Helga Velroyen authored
This fixes the currently broken Q&A. The consistency check for storage types is now only run when the 'enabled_storage_types' are actually changed by 'gnt-cluster modify'. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
When disk templates get disabled via 'gnt-cluster modify', so far we did not check if any instances still use a disk template of that type. This patch adds the necessariy check. It also includes adding a map of disk templates to storage types and reordering of storage types and disk templates in alphabetical order. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Mar 21, 2013
-
-
Helga Velroyen authored
- Use entities as examples for storage types that are actually storage types. - Fix mixing up 'external_storage' and 'exclusive_storage'. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
To minimize the confusion between whether or not a storage type is the same as a storage method, I updated the design doc to use 'storage type' instead of 'storage method' consistently. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
This implements an online update of the configuration for when a configuration is loaded that does not yet contain the 'enabled_storage_types' attribute. Note that this will require more changes as dis/enabling of (shared) file storage at configure time will be removed. This patch includes adding a mapping from disk templates to storage types. While I was on it, I also reordered the disk template and storage type parameters alphabetically, to make dealing with those easier. Also, this mentions the configuration change in the NEWS file. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
This extends the QA scripts to test the changes in 'gnt-cluster init', 'gnt-cluster info', and 'gnt-cluster modify' with respect to enabled storage types. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
This patch extends the 'gnt-cluster init' command to set the list of enabled storage types on cluster creation. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
This patch extends the 'gnt-cluster modify' command to manipulate the list of enabled storage types. Note that this currenlty does no validation with respect to whether or not there are instances currently using a storage type that is being removed from the list. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
This extends the 'gnt-cluster info' command to list the storage types that are enabled on the cluster. It also fixes the broken indentation in the 'handleCall' function. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
This patch adds the cluster's new field 'enabled_storage_types' to the configuration objects in python and haskell. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
This patch adds the currently known and used storage methods to the constants.py file. Note that storage types are different from disk templates. For example both disk templates, drbd and plain, use lvm storage types. The rapi documentation asserts that valid storage types are limited to lvm and file. With the extension of storage types, this is not true anymore, but the implementation of listing storage units is not implemented for the new types. We disable the assert for now, adding a fixme to extend it once the listing of storage units is extended for the new types as well. 'gnt-node list-storage' currently does not support any other storage type than 'lvm' and 'file'. We limit the QA to storage types that are currently implemented for this operation. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
Remove some erroneous formatting from the Mond man page. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
Add all the supported commands to the API. The actual response is still to be implemented. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
Add a stub implementation of the Mond HTTP server to Mond using the Haskell snap-server library. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-