- 15 Oct, 2013 9 commits
-
-
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 1 commit
-
-
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>
-
- 11 Oct, 2013 9 commits
-
-
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>
-
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 12 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>
-
Klaus Aehlig authored
We added a new command, so mention it as news. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
This option is now implemented, and this change should be mentioned in the man page. Also, document that it is safe call on all nodes, and if no update was going on. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Helga Velroyen authored
This patch mentions the improvements of the iallocator with respect to instance allocation of non-LVM disk templates. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch replaces all usages of the utility function 'GetLvmDiskTemplate' by the new 'DTS_LVM' constant to make it consistant with the usage of other DTS_* constants. Additionally, it provides a unit tests to ensure consistancy between DTS_LVM and the mapping of disk templates and storage types. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
So far, the iallocator requested storage information about all enabled disk templates but discarded all but the LVM information, even if it was allocating space for a non-LVM instance. With this patch, it now only asks for the one that is relevant for the allocation request. This has the following advantages: - less load in the RPC call - meaningful storage information is used for non-LVM instance and thus better allocation Note that this so far works only for instance allocation. The code introduces some FIXMEs which will be resolved when utilizing the improvements in other iallocator requests as well. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch improves the handling of storage information before and after a call to the RPC 'node_info'. It adds a function to not only call for all storage information on the cluster (as it is used right now), but to ask only for storage information for a particular disk template. This way, in many cases, for example by the iallocator, less information is requested and thus performance is increased. Unit tests are provided. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
To reach consistency by how we manage different categorizations of disk templates, this patch introduces the set of disk templates which are lvm-based: 'DTS_LVM'. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Klaus Aehlig authored
Naive 'ln -s -f a b' will put the link inside 'b', if 'b' is (a symlink to) a directory; so, during upgrades, the links in $(sysconfdir) cannot be updated this way. Removing and readding works, however leaves the risk of the upgrade process dying in that very moment, thus leaving 'gnt-cluster' a dangling link, so that the --resume option is of no help. On GNU systems, avoid this problem by using the -T option of GNU ln. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Klaus Aehlig authored
Propagate the information on whether we have the GNU version of ln to all programs by making it available as a constant. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Klaus Aehlig authored
If the GNU version is present, we can use certain GNU-extensions, like the -T option, rendering some parts more robust. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 08 Oct, 2013 9 commits
-
-
Klaus Aehlig authored
Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Klaus Aehlig authored
Document that we have also taken care of the bug in 'cfgupgrade --downgrade' and schedule release date. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Jose A. Lopes authored
Fix 'AutoConf' import to be qualified. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
Fix import order to be alphabetically sorted. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
Fix auto repair related constants to use the Haskell type 'AutoRepairResult' instead of simple 'String' values. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
Add opcode related constants to the Haskell to Python constant generation. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
Add node daemon setup related constants to the Haskell to Python constant generation. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
Add hail, opcode, and SSH related constants to the Haskell to Python constant generation. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
Add assorted constants to the Haskell to Python constant generation. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-