- Apr 11, 2013
-
-
Helga Velroyen authored
Since storage type are supposed to represent the underlying technology of disk templates, the storage type 'sharedfile' is superfluous, because technically both disk templates 'file' and 'sharedfile' use the file system. This will be of use when implementing the storage space reporting for all disk templates. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtarara@google.com>
-
Helga Velroyen authored
This patch adds consistency checks for the configuration regarding disk templates. In particular, it checks that the list of enabled disk templates is not empty, does not contain any bogus templates, and that all instances use actually enabled disk templates. Additionally, it fixes a small formatting issue regarding the list of enabled hypervisors. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtarara@google.com>
-
Helga Velroyen authored
This patch makes sure that no instances can be created which use disk templates which are not enabled on the cluster. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtarara@google.com>
-
Helga Velroyen authored
Since managing of different storage units is now done using disk templates and not storage types, we remove the obsolete enabled storage types. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtarara@google.com>
-
Helga Velroyen authored
This patch enhances 'gnt-cluster init' to accept a list of disk templates to be enabled. It removes the list of enabled storage types. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtarara@google.com>
-
Helga Velroyen authored
Adds a verification step to 'gnt-cluster modify' to make sure that no disk template is disabled that is currently in use by at least one instance. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtarara@google.com>
-
Helga Velroyen authored
Adds setting of the list of enabled disk templates to 'gnt-cluster modify'. Note that this does not yet include any verification regarding disk templates currently used by instances. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtarara@google.com>
-
Helga Velroyen authored
Add reporting of the currently enabled disk templates to 'gnt-cluster info'. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtarara@google.com>
-
Helga Velroyen authored
This patch adds constants for enabling disk templates to the constants, and the cluster configuration in haskell and python. It removes the obsolete preference list for enabled storage types. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtarara@google.com>
-
- Apr 04, 2013
-
-
Bernardo Dal Seno authored
After changing the way gnt-xxx info print their output, cli.FormatParameterDict() is not used anymore. 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. QA has been updated to reflect the new format. 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, the output is more similar to "gnt-cluster info" and is YAML-compliant. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
The new function can be used for group-level instance policies. Support for roman numeral formatting has been dropped to make the code simpler. For other info items it's already unsupported, and it's not exactly documented anyway. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- Apr 02, 2013
-
-
Klaus Aehlig authored
Extend gnt-instance modify by a new parameter --new-primary that sets the pnode paramter of the opcode. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
If pnode is set LUInstanceSetParams now sets the primary node accordingly. Unless force is set, it is verified that the instance is no longer running on the old node. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
This parameter will be used to set the new primary node of an instance, assuming that the disks have been moved by other means (outside ganeti's control). Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Mar 27, 2013
-
-
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
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>
-
- Mar 26, 2013
-
-
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
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 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
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
-
-
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>
-
- 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>
-