- 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>
-
Michele Tartara authored
This commit updates the installation instructions and the user guide. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Bernardo Dal Seno authored
* devel-2.7 cfgupgrade: Fix error messages Update "FIXME" string in RAPI rapi client: add target_node to migrate instance Make diskless instances externally mirrored Fix migrate/failover -n for ext mirror storage Trivial merge: no conflicts Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
This commit adds the core infrastructure of the monitoring daemon, and integrates it in the build and test systems. The actual functionality of the monitoring daemon is still completely missing. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Mar 20, 2013
-
-
Bernardo Dal Seno authored
Messages were inconsistent. You could get both an error and a message saying that everything was fine. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
We are not ready for this change yet. Let's push it to 2.8. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Helga Velroyen authored
Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Mar 15, 2013
-
-
Michele Tartara authored
This commit adds the design document for introducing "reason trails", tracing the reason why opcodes are executed, step by step. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Mar 13, 2013
-
-
Michele Tartara authored
Also, add its logfiles and extra log files. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michele Tartara authored
Some daemons will need more than the single logfile that is currently allowed. This patch introduces the infrastructure to allow this. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
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
-
-
Daniel Krambrock authored
This allows migrating to any node, as it is already possible for failover, when instances are externally mirrored. Signed-off-by:
Daniel Krambrock <danielk_lists@z9d.de> Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
This addresses Issue 237. Mirroring no disk is a no-op. As such we can treat them like mirrored instances, since the data they need (none) will be present on all nodes. This is definitely enough to failover or migrate instances with a manual target node. Further work might be needed for support in hail. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Guido Trotter authored
This fixes issue 396. - Fix a wrong comment that mentions drbd8 when actually the code acts only on externally mirrored instances. - Fix a wrong assert that requires failover/migrate to acquire the NAL on externally mirrored instances: this is the case only when a iallocator is used, not if a node is manually specified. Extra qa should be added, but this can only be done if an externally mirrored instance or a diskless instance is tested. It is easier to add it on the master branch, where we have diskless instances support. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
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>
-