- 17 Oct, 2013 3 commits
-
-
Hrvoje Ribicic authored
For legacy reasons, some instance fields are aliased. The aliases have the same definition but appear under different names. Support for such fields has been added to Query/Common.hs As aliases can cause somewhat harder to find bugs, a new test was added as well. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Hrvoje Ribicic authored
The naming used in the previous commits did not reflect the use of the fields well, and clashed with the concept of fillable parameters. Thus some renaming was done, with slight documentation improvements. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Hrvoje Ribicic authored
This commit adds the instance network fields. Some of these fields are also present for every NIC, requiring the reuse of functions from the previous disk instance fields commit. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
- 16 Oct, 2013 12 commits
-
-
Hrvoje Ribicic authored
The instance disk fields have been added. As these are the first fields to be duplicated, some helper functions are present to support easier specification of fields which have to be duplicated for every entry in an array of configuration objects, and numbered accordingly. A newtype of Maybe was introduced to fix serialization issues, as well as a minor utility function. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Hrvoje Ribicic authored
This patch adds instance parameter fields to the Haskell instance queries. The fields retrieve maps of parameters related to e.g. hypervisors, or operating systems. Every instance can have parameters different from the defaults, and the fields allow for retrieving changes, defaults, and the complete parameters. To achieve this, some constants were converted from being Python- to Haskell-generated. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Hrvoje Ribicic authored
This commit adds some more fields that are simple to retrieve, as they are properties of instances recorded in the configuration. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Hrvoje Ribicic authored
This patch adds live fields which can be implemented with the existing RPC calls. Some fields require additional call types and will be added later. Most of them can be added at this point. The status field is especially interesting, as it depends not on the information returned, but whether it was returned, and where from. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Hrvoje Ribicic authored
In the instance queries, some fields require both config and runtime information. This patch adds a new field type for this purpose. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Hrvoje Ribicic authored
As patches that follow will need the functionality in Ganeti.Query.Node, this patch moves it to the common query file. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
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 6 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>
-