- May 14, 2013
-
-
Bernardo Dal Seno authored
So far QA only recreated the whole set of disks at once. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
Just a very basic test that adds and then removes a disk. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Michele Tartara authored
The QA tests the Xen instance status collector, but that is expected to fail when run on machines that do not use Xen. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- May 13, 2013
-
-
Michele Tartara authored
This commit introduces the QA for the instance status collector. Begin the first QA for a monitoring-related component, the files and some functions are named after monitoring because they are meant to contain future monitoring QAs as well. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
Some functions for managing instances will have to be used by new upcoming unit tests, so they are taken out of the instances QA file and put in a new utilities file accessible by other QA files as well. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- May 05, 2013
-
-
Bernardo Dal Seno authored
When instance tests with exclusive_storage are enabled, the number of PVs on nodes are checked to see if it's suitable for those tests. This fixes issue 437. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- May 03, 2013
-
-
Bernardo Dal Seno authored
The way disk templates were displayed in instance policies became confusing since the introduction of the enabled_disk_templates cluster parameter. Fix issue 440. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 29, 2013
-
-
Thomas Thrainer authored
QA cleans up DRBD 8.4 devices via drbdsetup, which currently only worked for DRBD 8.3. This (rather ugly) command makes sure that DRBD 8.4 devices are cleaned up as well. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Bernardo Dal Seno authored
The test of the interaction between policy and instances is extended. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
Existing tests are updated to cope with the new instance specs format. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
The format used to store instance specs in QA is changed to better handle multiple instance specs, a feature contained in the following patches. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- Apr 26, 2013
-
-
Helga Velroyen authored
This patch makes the constant DEFAULT_ENABLED_DISK_TEMPLATES a list instead of a set, because the order of the elements actually matters as the first one is planned to be the default disk template for instance creation. Also, this constant is always used like a list and thus providing it as a set complicates the code that uses it. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
This patch does three things: 1. It deprecates the option '--no-lvm-storage' of 'gnt-cluster modify' and 'gnt-cluster init'. Technically, it is not fully removed, but kept in order to warn the user that it is no longer supported and that she should use --enabled-disk-templates instead. 2. The consistency check between '--no-lvm-storage' and '--vg-name' is replaced by checks between '--enabled-disk-templates' and '--vg-name'. There are these cases: - vg name, lvm disk template enabled = ok - no vg name, lvm disk template enabled = error - vg name, no lvm enabled = warning - no vg name, no lvm enabled = ok I added quite a lot of tests for all these and the transitions from each case to another to the QA. 3. The check whether or not the volume group is available on all nodes is now done only in these cases: - the volume group name gets set and lvm is already enabled - lvm is getting enabled and the volume group was set before Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 24, 2013
-
-
Bernardo Dal Seno authored
Instance policies are changed and checked for changes. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
The main parts, moved to qa_util, will be used for node groups too. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
The old command-line options weren't working any more. Utility functions are updated, and broken tests are removed (new tests are coming in the following patches). Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Bernardo Dal Seno authored
The tests check the interactions between the two commands. Also refactored group QA code to separate tests about ipolicy, as those tests are going to grow in complexity. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- Apr 22, 2013
-
-
Bernardo Dal Seno authored
This is similar to 405692ef, reverted in aeefb4cd. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Apr 18, 2013
-
-
Helga Velroyen authored
This fixes an error in case there are no disk names in the QA config (which was the case till recently). Right now, QA tries to use 'None' as disk name and that makes instance creation fail. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This reverts commit 405692ef, because it breaks QA. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- Apr 17, 2013
-
-
Helga Velroyen authored
This does not solve the underlying problem of the rapi test not being runnable locally, but it makes it at least configurable to avoid having to patch in/out all the time. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Christos Stavrakakis authored
Modify existing tests to use the name option for instance disks. The configuration options 'disk' and 'disk-growth' are merged into a single 'disks' option, which is a list of dictionaries with 'size', 'growth' and 'name' items. Also, add 'instance-device-names' QA test, which tests addition, renaming and removal of named devices. Signed-off-by:
Christos Stavrakakis <cstavr@grnet.gr> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- Apr 14, 2013
-
-
Bernardo Dal Seno authored
The test failed because it was executed also in a configuration that wasn't expected, i.e., with exclusive storage enabled. Also the docstring is shortened, as it was being truncated in the QA output. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Bernardo Dal Seno authored
qa_config.IsTemplateSupported() is already used to decide which disk templates are supported by QA. Enabled templates now are part of that decision. Unit tests are updated. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 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 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
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>
-
- 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>
-
- 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 04, 2013
-
-
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>
-
- Apr 02, 2013
-
-
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>
-