- 27 Sep, 2013 3 commits
-
-
Michele Tartara authored
Accessing private methods of parent classes is bad, but it is sometimes the best approach for classes mocking them for testing reasons. Selectively disable the related lint error just for the few functions that need to do it. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Michele Tartara authored
Newer versions of pylint are more strict regarding indentation rules. This commit fixes a couple of indentations that they consider wrong. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Thomas Thrainer authored
All data traffic usually goes over the secondary network, but gnt-instance move didn't. This patch corrects this problem by using the target nodes secondary IP as move target. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- 26 Sep, 2013 5 commits
-
-
Jose A. Lopes authored
Modify Hs2Py constants to include a comment in the generated comments describing the source of those constants. Fixes issue 588. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Thomas Thrainer authored
Adding a disk to an instance used to leave the disk behind activated, no matter how the disks_active flag of the instance was. This changes make sure that new disks are only active if the other disks of the instance are active too. Tests are included. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Thomas Thrainer authored
As the default behavior of adding disks has changed (now waiting for disk synchronization is done per default), mention this change in the NEWS file. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Thomas Thrainer authored
The already present option '--no-wait-for-sync' in `gnt-instance modify` is now also mentioned in the part which describes adding a disk. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Thomas Thrainer authored
When creating an instance, gnt-instance waits for instance disks to sync. Inconsistently, this was not the case for adding a disk to an instance. This patch changes the default behavior to wait for sync when adding a disk, but honor the --no-wait-for-sync option which `gnt-instance modify` already supports. Also adapt unit tests to mock the additional RPC call. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
- 25 Sep, 2013 22 commits
-
-
Klaus Aehlig authored
* stable-2.9 Including missing RST files in packaging Update supported lint tools version numbers Fix some wrong indentations in the code Disable parenthesis indentation check Fix an improperly escaped string Make QaConfig a proper container Make QmpMessage a proper container Prevent static field checking for dynamic classes Fix metaclasses support in recent pylint versions * stable-2.8 Add additional tests for utils.Retry Make retry tests independent of actual time Fix corner-case in handling of remaining retry time Perform proper cleanup on termination of Haskell daemons Conflicts: Makefile.am doc/devnotes.rst In doc/devnotes.rst, take version updates from stable-2.9 while keeping the addition of mock from master. In Makefile.am take both additions. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
Haskell test modules contain functions which have names containing underscore. Add hlint annotation to disable this check. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Klaus Aehlig authored
* stable-2.8 Add additional tests for utils.Retry Make retry tests independent of actual time Fix corner-case in handling of remaining retry time Perform proper cleanup on termination of Haskell daemons Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Michele Tartara <mtartara@google.com>
-
Klaus Aehlig authored
Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Jose Lopes <jabolopes@google.com>
-
Jose A. Lopes authored
Fix comment for a configure parameter in 'configure.ac' to be consistent with the remaining parameters. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
This patch fixes 'Makefile.am' to include the source file of 'mon-collector' in the distribution tarball even if the monitoring daemon has been disabled at configure time. Fixes issue 587. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
Functions 'BuildVersion' and 'SplitVersion' are no longer needed by the constants and, given that they are not constants, they should be moved elsewhere. Since they are only used by 'cfgupgrade' and tests, these functions are moved to 'lib/utils/version.py' and references to them updated. Note that in 'lib/server/masterd.py', local variable 'version' is renamed 'ver' to avoid redefining the import 'ganeti.utils.version'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
Add 'HUnit' test for 'buildVersion'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
The previous patch has made '_autoconf' obsolete. This patch completely removes '_autoconf' and the 'Makefile' targets for it. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
Update references to constants that were previously in the generated 'lib/_autoconf.py' and since the previous patch have been included in the Hs2Py constant generation. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
Add remaining constants which in Python are imported from the generated 'lib/_autoconf.py'. This will allow to completely remove this module. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
Update Python references to all constants that used to point to the generated 'lib/_autoconf.py', which has been superseeded by the Haskell counterpart 'src/AutoConf.hs'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
Add all constants in 'AutoConf' to the Hs2Py constant generation and 'socatEscapeCode' because it is part of the group containing 'socatPath', 'socatUseCompress', and 'socatUseEscape'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Jose A. Lopes authored
Add 'buildVersion' which calculates Ganeti versions and it is the Haskell counterpart of 'BuildVersion' in 'lib/constants.py'. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Klaus Aehlig authored
The default for using the full version string in the directory is not to use it. If the option --enable-versionfull is given, its argument should default to yes. That means that everything that is not a "no" should be interpreted as yes. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Robin H. Johnson authored
Signed-off-by:
Robin H. Johnson <robbat2@gentoo.org> The patch was released by the author into the public domain. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
Linting is now verified against the lint tools version numbers as listed in this patch. These version are corresponding to the ones that can be found in the repositories of Ubuntu 13.04. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
Michele Tartara authored
Fix all instances of pep8's error: "E128 continuation line under-indented for visual indent". Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
More recent versions of pep8 check for the indentation level of closing parenthesis in a way that is incompatible with the way we use in our code. Our style is still pep8 compliant, and was re-allowed in even more recent versions of the tool, but still we have to disable the check, for the time being. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Michele Tartara authored
Mark a string representing a "sed" command including a regular expression as a raw string, so that the entire escaping is performed by "sed" itself. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
Newer pylint versions complain that QaConfig is not a proper container because it does not implement the __len__(), __delitem__() and __setitem__() methods. This commit implements them. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Michele Tartara authored
Newer pylint versions complain that QmpMessage is not a proper container because it does not implement the __len__() and __delitem__() methods. This commit implements them. Also, tests are added. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Helga Velroyen <helgav@google.com>
-
- 24 Sep, 2013 10 commits
-
-
Michele Tartara authored
In order to check for the correctness of the accesses to fields of objects, pylint uses astng, but this is known to fail on some dynamically generated classes. Still, newer pylint versions are stricter at performing this check, and therefore fail while testing our codebase. Disable the checking of a few selected classes that incur in this problem. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Thomas Thrainer <thomasth@google.com>
-
Michele Tartara authored
Recent versions of pylint require the first parameter of a metaclass to be "cls". Older versions want "mcs". There's no way to support both by changing the code, so the configuration file of pylint is changed instead, to have the current codebase work with both versions. Signed-off-by:
Michele Tartara <mtartara@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Update references of Python constants in the previous patch to fetch their values from the generated Haskell to Python constants. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Add 'confd' related constants to the Hs2Py constant generation. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Update references of the Python constants that were introduced in the previous patch. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Add 'opcodeReason', 'diskstatsFile', 'statFile', and 'mondTimeInterval', to the Hs2Py constant generation. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Jose A. Lopes authored
Reorder Haskell constants to match the order in the Python constants module 'lib/constants.py' to make it easier to debug/trace the Hs2Py constant migration process. Signed-off-by:
Jose A. Lopes <jabolopes@google.com> Reviewed-by:
Klaus Aehlig <aehlig@google.com>
-
Klaus Aehlig authored
Instead of using a separate binary, add the upgrade functionality to gnt-cluster. Signed-off-by:
Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Thomas Thrainer authored
The parameter format for call_blockdev_getdimensions has changed in a previous patch. Here, the correct parameter format is used for the RPC call. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-
Thomas Thrainer authored
The physical_id field can't be recreated during downgrades, so don't expect it to be during the test. Signed-off-by:
Thomas Thrainer <thomasth@google.com> Reviewed-by:
Jose A. Lopes <jabolopes@google.com>
-