- 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 12, 2013
-
-
Klaus Aehlig authored
Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
The test data for hail allocating a multi-disk instance was originally added in the 2.7 branch. On master the format of the ipolicy had changed; "min" and "max" are no longer top-level of the ipolicy, but instead below the "minmax" key. Hence change the test data accordingly after the merge to master. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- Apr 11, 2013
-
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Guido Trotter authored
* devel-2.7: (26 commits) Fix burnin install path Fix format of the NEWS file NEWS: Add news entry for the hail disk policy fix Add shelltests verifying hail applies disk ipolicy per disk Make the disks parameter available to the constructor Verify individual disks in Instance Compatibility fix for GHC 7 Properly update iv_name of disks while changing templates Limit the size of networks to /16 Check minimum size of networks on creation Fix job queue directory permission problems The disk size of a diskless instance is 0, not None Postpone non-urgent TODO from 2.7 to 2.9 Add tool for creating users and groups Backwards compatibility fix for Lucid Properly export errors while reading job list Fix typo and improve comment Fix a bug in the Runtime tests Restrict instance move to templates based on local files Introduce a constant for the copyable disk templates ... Conflicts: NEWS: trivial lib/network.py: trivial Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Helga Velroyen authored
This documents the new 'gnt-cluster init/modify' option '--enabled-disk-templates' in the man page. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtarara@google.com>
-
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 extends the NEWS file describing the essential user-facing changes in this patch series. 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 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>
-
Guido Trotter authored
Due to a bug in 8e55e20f burnin's installation path got changed. Moving tools/burnin to the right makefile target reverts this (while preserving the value of the original commit). Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Klaus Aehlig authored
Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@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>
-
Klaus Aehlig authored
hail now correctly applies the instance disk policies, which leads to differnt allocations. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
We test on two minimal examples, a positive and a negative one, where the possibility to allocate a node depends on whether the disk policy is checked on a per-disk level or on the total amount of disk space requested. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
In that way, tools building on Instance will benefit from the corrected verification semantics of the instance policy on disk space. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
Instance policy on disks is specified on a per-disk basis. So extend the instance description by the sizes of the individual disks and modify the instance policy verification to correctly check individual disks. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
Importing an instance, like JSON, automatically allows the names of all its functions to be used. If one of this functions (namely showJSON) is imported separately, GHC 6 is fine with that, but GHC 7 emits a warning (therefore, the compilation of Ganeti fails because it requires no warnings). This patch fixes the build for GHC 7 and has no impact on GHC 6. Note that the same does not apply to the import of readJSON, because that function is actually used in the same file, so it must be imported separately. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
Trasforming the disk of an instance from DRBD to plain did not properly update the iv_name of disks, leaving it to None. This commit modifies _ConvertDrbdToPlain to properly set the iv_name variables. An analogous fix is not required in the opposite function, _ConvertPlainToDrbd, because it uses _GenerateDiskTemplate, that already takes care of doing that. Fixes Issue 403. 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>
-
Helga Velroyen authored
This patch introduces an upper limit to the size of the networks that can be created. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
When creating a network, so far no size constraints were checked. We now limit the size of a network to a /30 or bigger, although tecnically, the ipaddr library supports even /32 networks. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
If split users are used, the queue directory could only be accessed by masterd, but also confd needs to be able to read it, e.g. when it is queried as part of "gnt-job list" This commit fixes the permissions in such a way to allow proper access rights. Fixes Issue 406. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@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>
-
Klaus Aehlig authored
For diskless instances it is still reasonable to sum up the disk usage of all the (zero) disks, resulting in the empty sum. This uniformity also has the advantage that iallocators (like hail) do not have to do any special considerations for diskless instances. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@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
-
-
Michele Tartara authored
When executed in split user mode, Ganeti requires a specific set of users and groups to be created in the appropriate way. This commit introduces a tool that takes care of that automatically. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Guido Trotter authored
Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-