- 10 Apr, 2014 1 commit
-
-
Hrvoje Ribicic authored
Due to a missing base class, the test that was supposed to check if RAPI instance parameter renames during modifications are working did not execute. As the instances are not covered by the QA tests, the tests failed to show that custom nicparams cannot actually be set through RAPI at the time. Given that the instance interface is asymmetric beyond simple repairs, this is fine in 2.10. This patch sets the test to execute, removes the setting of custom_nicparams in the test, and removes the renaming of the param in the RAPI request. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 08 Apr, 2014 3 commits
-
-
Hrvoje Ribicic authored
This patch extends the opportunistic locking to take both the NODE_RES and NODE locks into account when selecting nodes to be used by the iallocator. Signed-off-by:
Gerard Oskamp <gjo@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Thomas Thrainer authored
If a user manually pauses the DRBD sync, Ganeti started to poll the node daemon without any waiting between request. This caused heavy load on the node. This patch fixes this by waiting at least 5 secondes between two polls if no sensible estimate for the remaining sync time could be made. Fixes issue 792 Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Hrvoje Ribicic authored
* stable-2.9 Allow QA asserts to produce more messages Add messages about skipped QA disk template tests Fix list-drbd QA test Update installation guide wrt to DRBD version Update NEWS for 2.9.6 Revision bump for 2.9.6 Conflicts: NEWS - Combined both news files configure.ac - Took the 2.10 version numbers Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 07 Apr, 2014 2 commits
-
-
Klaus Aehlig authored
Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Klaus Aehlig authored
Describe all the changes to Ganeti made since the 2.9.5 release. Also set the release date. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- 04 Apr, 2014 4 commits
-
-
Helga Velroyen authored
This patch updates the supported DRBD version number to 8.4. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Hrvoje Ribicic authored
The list-drbd QA test assumed falsely that no instance has more than one disk. This can happen, and this patch accounts for it. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Hrvoje Ribicic authored
When disk templates were ignored in the QA, no messages were emitted, in contrast to pretty much all tests. To make it easier to see why a test was not executed, this patch performs a minor refactoring and adds some output for the templates. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Hrvoje Ribicic authored
This patch adds a tiny helper function that allows error messages output by the QA asserts to be prefixed with whatever the user supplies. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
- 01 Apr, 2014 5 commits
-
-
Apollon Oikonomopoulos authored
Commit 0fe22ad2 moved the call to _GenerateKVMBlockDevicesOptions() from _GenerateKVMRuntime() to _ExecuteKvmRuntime. However, while in _GenerateKVMRuntime() there is only one set of HVPs, those of the instance's configuration, in _ExecuteKVMRuntime there are two sets of HVPs: - The instance's configured HVPs - The HVPs the instance used when it was started Currently, _GenerateKVMBlockDevicesOptions() uses the first set of HVPs only, meaning that it will always read the configured HVPs. Since _ExecuteKVMRuntime() is also called at migration time, it should use the instance's running HVPs, otherwise migration while fail. The following scenario will lead to a crash on migration: 1. Start the instance (assuming 'paravirtual' disk_type) 2. gnt-instance modify -H disk_type=scsi <instance_name> 3. gnt-instance migrate <instance_name> Step 3 will start the instance on the remote node with all disks configured as 'scsi' and qemu will crash post-migration. We fix this by making sure _GenerateKVMBlockDevicesOptions gets the running HVPs as well. Signed-off-by:
Apollon Oikonomopoulos <apoikos@gmail.com> Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Apollon Oikonomopoulos authored
Currently instances with disk_type=scsi are broken, because the SCSI controller uses a PCI slot not accounted for in the PCI assignment logic. We reserve a throw-away slot just for that. This is a temporary workaround and will be reverted during the upcoming refactoring. Signed-off-by:
Apollon Oikonomopoulos <apoikos@gmail.com> Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Helga Velroyen authored
This patch fixes a little glitch in 'gnt-cluster verify'. If LVM-based storage was disabled, it would still check LVM-related verification results and print a confusing error message. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Helga Velroyen authored
This patch fixes the wording of a couple of messages, including two typos of the word 'existing'. Signed-off-by:
Helga Velroyen <helgav@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Thomas Thrainer authored
After migrating a DRBD based instance, the output of gnt-instance info was wrong wrt. DRBD minors. This patch fixes the output in such cases. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- 31 Mar, 2014 1 commit
-
-
Klaus Aehlig authored
As the attempt to convert the dict used as json representation of the configuration into a configuration object already makes assumptions about the internal representation, verify the version before such an attempt. Fixes issue 783. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- 27 Mar, 2014 4 commits
-
-
Hrvoje Ribicic authored
* stable-2.9 Fix failing gnt-node list-drbd command * stable-2.8 Add reason parameter to RAPI client functions Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com> Conflicts: lib/rapi/client.py: Add both parameters
-
Hrvoje Ribicic authored
* stable-2.8 Add reason parameter to RAPI client functions Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Hrvoje Ribicic authored
The UUID/name switch avoided this particular bit of code, and as a result the list-drbd command failed as it tried to compare UUIDs and names. This patch fixes the retrieval, converts the newly returned UUIDs to names, and modifies the QA to the results and not only the invocation are checked. Signed-off-by:
Gerard Oskamp <gjo@google.com> Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-
Klaus Aehlig authored
Commit 580b1fdd incorrectly assumes that disk parameters are just the standard ones, whereas the man page explicitly states that additional parameters can be passed as well, if they make sense for the chosen storage type. Fix this. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com> Cherry-picked from b26a275a . Fixes issue 779. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
- 26 Mar, 2014 18 commits
-
-
Hrvoje Ribicic authored
The get/put QA test could be used for instances as well, but unlike other objects, instances have a very large number of discrepancies and missing fields. To avoid enumerating every discrepancy and testing almost nothing, only a unit test is used to verify the last patch. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
Much like the groups before, this patch allows custom_* params to be submitted under the same name they can be retrieved as in the info call. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
This patch invokes the RAPI symmetry tests for groups. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
This patch allows users to specify specific parameter aliases enabled by RAPI, and test whether their value can be retrieved and set. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
This patch introduces a simple test checking if a custom_* parameter is renamed and passed to the opcode correctly. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
This patch adds the ability to set the group-specific parameters in the same way they are described when returned by the info command - with the "custom_" prefix. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
This patch adds the RAPI symmetry test for nodes. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
This patch adds a single alias for the secondary_ip property of the node. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
The original design of the RAPI symmetry test assumed that all RAPI calls that modify parameters use the PUT method. This is not true in the case of the node parameter modification method, and while that itself should be addressed or at least examined, the test method has to change to accomodate both PUT and POST requests. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
This patch adds the test for RAPI symmetry at the cluster level. There are some fields that have not been exposed yet, and their absence was noted. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
This patch makes a mock use a dictionary instead of an object, allowing alias finding to work on it. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
This patch adds aliases for two cluster parameters. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
This patch extends the metaclass used to generate RAPI handlers to allow creating aliases of certain values returned by GET methods. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
The RAPI should allow all the parameters of objects to be gotten and set under the same names. This patch adds a test that checks if this is the case by using the underlying opcode arguments. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Hrvoje Ribicic authored
This patch does some housecleaning and sorts imports. Signed-off-by:
Hrvoje Ribicic <riba@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Michele Tartara authored
Only the functions for starting, stopping and rebooting a VM had a reason parameter. Now, all the RAPI client functions generating opcodes do. Also, one test is expanded to verify that a RAPI request with both body and query supports the reason parameter properly. Fixes Issue 776. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Klaus Aehlig authored
If the query fields don't require live data, we use the shortcut and don't request live data. However, we cannot take this shortcut if the fields the filter depends on requires live data. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com> Cherry-picked from a8551d9c . Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Hrvoje Ribicic <riba@google.com>
-
Apollon Oikonomopoulos authored
KVM NIC hotplugging requires python-fdsend to be installed, but this is only reported in the hotplug design document. We add mentions in INSTALL and NEWS. Signed-off-by:
Apollon Oikonomopoulos <apoikos@gmail.com> Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
- 24 Mar, 2014 2 commits
-
-
Klaus Aehlig authored
* stable-2.9 Make watcher submit queries low priority Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Klaus Aehlig authored
Make the watcher collect its data using low-priority jobs, to avoid blocking user/admin jobs. Note that repair jobs are still submitted normal priority. Fixes issue 772. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Petr Pudlak <pudlak@google.com>
-