- 16 Oct, 2013 6 commits
-
-
Hrvoje Ribicic authored
The AllInstancesInfo call appears to have been implemented but never used. The commit makes it usable by modifying the parameter type and serialization. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Hrvoje Ribicic authored
With the (current) instance query, there are three queries which do not require live data: instance, network, and group queries. The collectors and runtime types for these have been unified. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Hrvoje Ribicic authored
Add basic instance querying capabilities to the Haskell codebase. Several fields are present, more to come. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Hrvoje Ribicic authored
The way the generic query works was not documented anywhere. For greater readability, add a short explanation to the genericQuery function. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Hrvoje Ribicic authored
The KVM hypervisor Python class returned a "0" value for the times field, which gets serialized as a string. As Haskell is more picky about types, this caused the entire response to be declared as invalid and broke status reporting. Fixed by changing the value to a proper int. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Thomas Thrainer authored
Bump versions in various places to 2.11 and remove the downgrade code from cfgupgrade. Also adapt cfgupgrade tests. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 15 Oct, 2013 15 commits
-
-
Thomas Thrainer authored
This is required in order to calm a doclint warning. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Thomas Thrainer authored
- Bump version numbers to 2.10 in various files - Move implemented designs to design-2.10 Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Thomas Thrainer authored
* stable-2.9: Version bump for 2.9.0 rc3 Add NEWS entry for 2.9.0 rc3 Remove incorrect comment cfg auto update: match ipolicy with enabled disk templates Remove obsolete configure option for shared file storage * stable-2.8: Improve harep documentation Conflicts: Makefile.am NEWS configure.ac (all trivial merges) Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Thomas Thrainer authored
This patch adds unit tests for LUBackupExport. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Thomas Thrainer authored
This patch adds unit tests for LUBackupPrepare. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Thomas Thrainer authored
This patch adds unit tests for LUBackupQuery. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Thomas Thrainer authored
The result of LUBackupQuery has to be indexed by node name rather than by node UUID, otherwise the automatically constructed filter won't return any results. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Helga Velroyen authored
This patch updates the design doc with the current state of the code base. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
Currently, when no explicit storage type is given, the 'gnt-node list-storage' command defaults to file storage whether or not file storage is enabled on the cluster or not. This patch fixes it by defaulting to the default storage type (which is the storage type of the default disk template). If this storage type does not support space reporting, an error message is emitted. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This fixes a bug where the order of enabled disk templates was not respected when manipulating it with 'gnt-cluster modify'. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch extends the man page of 'gnt-node info' to document the space reporting behavior with respect to the enabled disk templates. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This rather lenghy patch comprises a couple of refactorings to achieve the following goals: - 'gnt-node info' should only report space information about spindles, when exclusive storage is enabled on the node (so far it always did when lvm-based storage was enabled). - 'gnt-node info' should report the disks' space information for the default disk template's storage. So far it did it always for LVM, which is irrelevant for a cluster running for example file-based instances. - Performance tweaking of storage reporting and gnt-node info. - Consider the future work on storage pools for any changes. This is is achieved by the following refactorings: - Move the decision whether or not to ask for spindle from cmdlib-level to rpc level. - Move the decision for which disk template's storage information to ask for to cmdlib level (instead of requesting information for all storage units and later discarding most of them). - Adjustments to storage utility functions. - Affected unit tests are adjusted as well. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This is a small preparation step for the next patch. It just renames the key/value constants for the unit test of MakeLegacyNodeInfo, because they were rather undescriptive and thus made changes to the test cumbersome. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Add test suite for some names in 'AutoConf' to test whether the values generated from 'configure' and the 'Makefile' are valid filepaths, user names, group names, among others. Fixes issue 601. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Fix several search path configure options to properly handle separators. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 14 Oct, 2013 4 commits
-
-
Klaus Aehlig authored
This design document describes a new htool, hsqueeze, to be used to move the externally-mirrored instances in such a way that as few nodes as possible host instances at all. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Martin Zobel-Helas <zobel@debian.org> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
The main news is, that we fixed another issue with the configuration upgrading process. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
* stable-2.8 Improve harep documentation Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
- 11 Oct, 2013 13 commits
-
-
Helga Velroyen authored
Removing a comment which falsely states that Ganeti will stop supporting certain upgrades at some point. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch fixes issue 599. The problem was that with 2.9, a sanity check was introduced that made sure that the ipolicies' set of disk templates is a subset of the cluster-wide enabled disk templates. In order to make upgrading from 2.8 smoother we add functionaliy to adapt the ipolicies to the enabled disk templates. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch removes an obsolete configure option related to shared file storage. It was remove a while ago, but accidentally reintroduced through a merge. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Jose Lopes <jabolopes@google.com>
-
Helga Velroyen authored
This patches fixes a typo and some indentation errors that were accidentally introduced by premature pushing of the patch series "Improvements on disk templates, in particular file storage". Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Jose Lopes <jabolopes@google.com>
-
Michele Tartara authored
Add a more complete description of how the tool works. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch removes a QA test that was supposed to test that unused disk templates can be disabled safely. The test is now subsumed by unit tests and thus we remove it here. Besides that, it was actually testing the wrong thing, as it tested that a _used_ disk template could be disabled. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Helga Velroyen authored
Mention the newly introduced feature, that disk templates can no longer be disabled when there are instances still using those. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Helga Velroyen authored
There were some unit tests for the '--file-storage-dir' option of 'gnt-cluster modify' still left in the unit test file ganeti.cmdlib.cluster_unittest.py. With the introducion of the unit test framework for cmdlib, they now get converted into cmdlib/cluster_unittest.py. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Helga Velroyen authored
This patch does: - Rename the haskell opcode parameter 'pGlobalFileStorageDir' and 'pGlobalSharedfileStorageDir' to 'pClusterFileStorageDir' and 'pClusterSharedfileStorageDir', respectively, because the old name was misleading. - The two parameters are made optional strings instead of non-empty strings. This actually used to be like this before, but was accidentally overriden by the switch to opcode generation from haskell to python. - The ClusterFileStorageDir parameter had to be renamed in Haskell to not clash with the FileStorageDir parameter of the OpInstanceCreate code. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Helga Velroyen authored
This patch moves some unit tests related to dis/enabling disk templates from ganeti.cmdlib.cluster_unittest.py to cmdlib/cluster_unittest.py to utilized the new cmdlib unit test framework. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Helga Velroyen authored
This patch extends the 'GetDiskTemplateSets' function to also output the list of disk templates that were enabled before this operation, but will be disabled afterwards. This patch also includes code to check for instances using disk templates that are about to be disabled. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Helga Velroyen authored
This patch solely renames the functions _GetEnabledDiskTemplates* to _GetDiskTemplateSets, because in later patches, we will refactor it to not only output disk templates that are or get enabled, but also the ones that get disabled. The list of disabled disk templates will be used for further sanity checks of operations. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Helga Velroyen authored
This patch introduces a function to be used in 'gnt-cluster modify' when disabling a couple of disk templates. It checks whether there are still instances running that use these templates. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 09 Oct, 2013 2 commits
-
-
Klaus Aehlig authored
* stable-2.9 Version bump for 2.9.0 rc2 Update NEWS for 2.9.0 rc2 Downgrade 'vif_script' Downgrade 'xen_cmd' Add test cluster config for version 2.9 Remove superfluous import of 'errors' Start NEWS entry for 2.9.0 rc2 Fix lint errors Fix upgrade and downgrade regarding disk.dev_type Rename LDS_DRBD to DTS_DRBD * stable-2.8 Fix typo in walkthrough documentation Don't attemp ipv6 ssh in case of ipv4 cluster Fix outdated documentation for users-setup Conflicts: NEWS: trivial configure.ac: ignore suffix bump on stable-2.9 lib/constants.py: manually replay 66a37e on master lib/objects.py: manually apply the LDS -> DTS change on master test/data/cluster_config_2.9.json: take version of stable-2.9 tools/cfgupgrade: union of all Upgrade tasks, remove all downgrade paths from stable-2.9 Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Klaus Aehlig authored
In the example crontab, add an entry to run 'gnt-cluster upgrade --resume' upon reboot of the node, as suggested in the design document. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-