- Apr 11, 2013
-
-
Helga Velroyen authored
This patch makes sure that instance creation is only possible for instances that use enabled disk templates. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
This extends the QA for 'gnt-cluster modify'. It ensures that disabling of a disk template is only possible if the cluster does not have any instances using the template. 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
This patch is a preparation for later patches in QA in this series it refactors the instance QA to make it more flexible regarding creation of instances with different disk templates. Right now we only support creation of instances with disk templates 'drbd', 'plain', and 'diskless'. With our current plans to improve storage handling, we should make QA more flexible to also create instances of other templates. This patch restructures the code in a way that instances can be created more easily to be used in other QA scripts. 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
Fixes the QA of 'gnt-cluster init' and 'gnt-cluster modify' with respect to enabling disk templates. 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>
-
Michele Tartara authored
Less is not part of the base debian system, so it has to be added explicitly. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 10, 2013
-
-
Guido Trotter authored
The test tries to scp the instance disks from the primary node to the new destination, but connects to the master node instead. Thus it works only when the primary node is the master node. Fixing by correcting to the right node. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
Allows the chroot builder to set the default editor to be used in the chroot. Vim is used as the default choice. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
This allows to have newer software than what is available in Debian Squeeze (the default version of the distribution used by the script), particularly vim and git. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 09, 2013
-
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- Apr 08, 2013
-
-
Guido Trotter authored
More lvm commands "sprinkled" in qa :/ We really have to factor them out in the storage layer, once we have a good one. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- Apr 07, 2013
-
-
Guido Trotter authored
This actually hides a real issue that was discovered by enabling file-based qa, so bug was filed for it. On the other hand it's better than keeping the qa broken, since this functionality was broken anyway. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Guido Trotter authored
- The cleanup should only happen for non externally mirrored disk templates - It should behave differently for file and lvm based instances - It should definitely *not* be explicit in the qa file :/ (but it's more important to fix qa, as of now) Also fix a typo in the same function's docstring. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Guido Trotter authored
Note that this fixes the "current issue" but doesn't fix the underlying problem. :/ Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Guido Trotter authored
scp by itself won't work on a cluster: a few extra options are needed to tell it where to find the "right" ssh global known hosts file managed by Ganeti. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Guido Trotter authored
This test uses a non-existing config value "file-storage-dir" and fails. Fixing it by using the default value, which is currently what qa does. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Guido Trotter authored
The rename instance test performs an lvm-specific check for tags on the instance volume. This should be in the future abstracted *inside* the template class, and not explicitly called from qa. This would allow other disks to perform the checks that make sense for them. In the meantime though, we just make the same check only when the backend storage for the instance is lvm-based. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
- Apr 05, 2013
-
-
Bernardo Dal Seno authored
Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Michele Tartara authored
Setting up a proper environment for building a Ganeti can be quite difficult. This patch adds a script for building a compressed chroot with all the required libraries and tools. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
This patch rewrites and extends the design doc about storage reporting with respect to disk templates and storage types. In constrast to the previous version, we now consider disk templates as the user-facing entity, that the user can dis/enable for the cluster. Storage types on the other hand describe the underlying technology used by the various disk templates. Storage reporting will use a mapping from disk templates to storage types to pick the correct method to report the storage for the respective disk templates. Note that the design doc in this state still contains some questions and FIXMEs. Feel free to comment on those. I will complete them directly or in future patches. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@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>
-
Bernardo Dal Seno authored
This is based on the --donwgrade option of cfgupgrade, first introduced in 1709435e. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
The watcher should be disabled while upgrading. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 03, 2013
-
-
Michele Tartara authored
The version numbers of two programs had been swapped. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- Apr 02, 2013
-
-
Bernardo Dal Seno authored
This is required because of 0e79564a; otherwise, the pylint-qa target will fail. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
Add a simple walk through the intended use case of gnt-instance modify --new-primary for the disk template file. The tested scenario is shutting down an instance, manually moving the disk to the new node, setting the new primary, and starting up the instance on the new node. It is also verified that the operation is rejected while the instance is still running on the old node. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
Also perform QA tests for the file disk template. The main reason is that testing gnt-instance modify --new-primary requires a manual move of disks, which is most easily simulated for files. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
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>
-