- 27 Jun, 2013 11 commits
-
-
Helga Velroyen authored
This is a small refactoring to make the processing of the storage space information not accept a node info result, but the more specific space info structure instead. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
So far, the iallocator makes a node info call, converts the result into a legacy node info structure and then retrieves various values from it. This patch removes the call to MakeLegacyNodeInfo completely, by letting the consumers of the hypervisor info part of the result retrieve that part from the result of the node info call directly. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
The iallocator adjusts the free memory by a calculation of how much memory is actually currently used by instances on the node. This calculation is rather complicated and deserves its own function to increase testability. No functional changes in this patch otherwise. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
So far, the iallocator made a node info RPC call, converted the result into a legacy node info format and then extracted the storage information from that. This patch removes the middle step of this procedure, skipping the legacy node info usage. In later patches, we will completely eliminate the need for the legacy node info in iallocator. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
So far, the Haskell implementation of NodeInfo just requests storage information about volume groups. With this patch, storage info for abitrary storage types can be requested. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
In order to extend the Haskell version of the NodeInfo query, we need some utility functions to deal with disk templates and storage types. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
This patch extracts the processing of the storage-related data from the RPC call 'node_info' in a separate function to increase testability. In addition, this patch contains unit tests for this function. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch changes the semantics of dealing with the result of the RPC call "node_info" when converting them into a LegacyNodeInfo. A legacy node info, can only hold storage information about one storage type, which so far was always LVM storage. With the recent changes in the RCP call 'node_info', a node info call returns storage info of several storage types and not necessarily with lvm being the first in the list. In order to be backward-compatible with tools that assume that LVM storage is the only storage type, we make sure, that MakeLegacyNode info can be called requesting LVM info specifically. This is just an interim solution to not break everything at once. The long-term goal is to get rid of MakeLegacyNodeInfo completely. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch extracts an inline 'get_attr' method to extract data from the result of the RPC call 'node_info'. It was so far an inline function in the middle of a bigger method, which made the code hard to read. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch does a small refactoring in the allocator. It extracts the preparation and actual call of the 'node_info' call into a separate function. This is done for better testability. No functional changes otherwise. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 26 Jun, 2013 6 commits
-
-
Thomas Thrainer authored
Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Thomas Thrainer authored
If there are no LVM based disk templates enabled in QA, reset the LV name after the corresponding gnt-cluster modify tests. Otherwise gnt-cluster verify would complain about the missing volume group. Also make sure that no disk templates requiring LVM are ever enabled without actually providing a LV name. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Thomas Thrainer authored
Changing the drbd usermode helper in gnt-cluster modify fails if DRBD is not installed on the nodes. Thus skip this test if DRBD is not in the set of enabled disk templates. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Thomas Thrainer authored
This route is required on the Fedora test machine, as otherwise fping would not work and hang forever. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Thomas Thrainer authored
The tempfile command only exists in Debian. In order to run the VCluster QA also on Fedora, replace its use by mktemp. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Thomas Thrainer authored
* stable-2.8: gnt-cluster info (py): add enabled disk templates Version bump to 2.8.0~beta1 Change version numbers in documentation Fix issue with python coverage tests Merge branch 'stable-2.7' into stable-2.8 Disable python test if required libraries are missing Better specify what packages to install Improve install guide Fix typo in the documentation index Fix typos in the documentation index Update security document wrt confd access to SSL cert Add tools for building deb packages to build_chroot Improve the final message of build_chroot Make build_chroot self-contained Conflicts: configure.ac (trivial) lib/cmdlib/instance_storage.py (trivial) The version numbers changed in 'Change version numbers in documentation' and 'Version bump to 2.8.0~beta1' were adapted to 2.9. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
- 25 Jun, 2013 2 commits
-
-
Guido Trotter authored
* stable-2.7: Provide the right fix for the kvm_extra parameter NEWS and version updates for 2.7.0~rc3 kvm: don't pass whole extra as a single argument For node queries allow short forms of host names Provide a special filter for host names Conflicts: NEWS: trivial configure.ac: trivial Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Guido Trotter authored
With the previous adjustment the arguments were boxed into one extra array. This actually makes the parameter work (with the same caveats). The manpage is also updated with the limitations. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- 24 Jun, 2013 10 commits
-
-
Guido Trotter authored
Time for a new release. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Guido Trotter authored
If extra is longer than a single word passing it the way it was passed won't work. Of course this solution is also only partial, as won't take into account any form of quoting. :/ Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Klaus Aehlig authored
For node queries use the host-name filter instead of the simple equality-based one. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Klaus Aehlig authored
For host names, usually short forms are used, e.g., node1 or node1.sub instead of the full qualified node1.sub.example.com. Therefore comparing node names only by equality is too restrictive. This patch provides an alternative makeHostnameFilter to makeSimpleFilter suitable for comparing host names. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Helga Velroyen authored
This fixes issue 485. In the python implementation of the cluster config info, the enabled_disk_templates were missing. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Thomas Thrainer authored
If the node count in a cluster exceeds the master candidate pool size (which is 10 by default), it's no longer possible to remove the master candidate role from a node without passing --auto-promote (even with --force). This behavior is perfectly fine, but the TestModifyNode QA test didn't account for this. TestModifyNode is changed such that it first removes the master candidate role from the tested node with --auto-promote. This will, in big clusters, promote an additional node to a master candidate which ensures that the following tests succeed. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Michele Tartara authored
Some of the documents have the version number of Ganeti. This commit updates it in preparation for the 2.8 version bump. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Weiwei Jia authored
This patch adds a design document for introducing GlusterFS Support in Ganeti. Signed-off-by:
Weiwei Jia <harryxiyou@gmail.com> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Michele Tartara authored
The recently introduced check for python libraries required only for testing (commit 27df5b73 ) was not correct. This patch fixes the issue. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 21 Jun, 2013 11 commits
-
-
Thomas Thrainer authored
* stable-2.7: Add a warning about the restriction of gnt-node evacuate Fix permissions of the queue archive dir Fix daemon QA tests grow disk: call SetDiskID before blockdev_getsize Catch DeviceCreationError unhandled exceptions Conflicts: lib/cmdlib.py (due to the cmdlib split) qa/qa_daemon.py (trivial) Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Guido Trotter authored
_CreateBlockDevInner is called twice in TLReplaceDisks. While this should be fixed, right now this leaves the DeviceCreationError exception unhandled, which causes a problem due to the fact that this exception was never supposed to be sent over the wire. For 2.7 we just catch the exception and convert it to an OpExecError, but we should later do a more proper cleanup. This addresses Issue 472. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Guido Trotter authored
Missing this call caused blockdev_getsize to be called on the wrong physical device, and fail. This fixes Issue 497. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Thomas Thrainer authored
TestInstanceConsecutiveFailures now leaves the test instance in the same state it got it. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Michele Tartara authored
Some python libraries are only needed for the tests, but not for running Ganeti. If those libraries are missing, just disable the Python tests. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
Add command for updating the list of cabal packages, before starting installing them. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Weiwei Jia authored
This patch fixes some typos in the documentation index. Signed-off-by:
Weiwei Jia <harryxiyou@gmail.com> Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Michele Tartara authored
The fact that confd has been given access to the server.pem certificate needs to be described in the security document. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Guido Trotter authored
The permissions were set to 0740, but of course being a directory the correct permissions are 0750. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-