- 24 Oct, 2007 5 commits
-
-
Iustin Pop authored
This duplicates some code from the DRBDev class, but not very much, and it will be expanded with the new functionality available for the 8.x version. Currently the code is not accessible outside the module. This patch introduces a dependency on the pyparsing module. Reviewed-by: imsnah
-
Iustin Pop authored
The DRBDev._IsValidMeta only checks for the metadata device size. Since this is a useful check (but not complete) for DRBD8, move it to the base class and name it _CheckMetaSize. Reviewed-by: imsnah
-
Iustin Pop authored
This moves the _SetFromMinor and _MassageProcData to the base class. Reviewed-by: imsnah
-
Iustin Pop authored
Currently, the out-of-minors handling is not very good: though both MD and DRBD functions for finding an unused minor can return None, only the DRBD code checks for this case. This patch improves this by making the functions _FindUnusedMinor raise an error instead of None, and gets rid of the one manual check for the return value. Reviewed-by: imsnah
-
Iustin Pop authored
Since some of the methods and constants are valid for both 0.7 and 8.x versions, we move them to the base class. Reviewed-by: imsnah
-
- 19 Oct, 2007 2 commits
-
-
Iustin Pop authored
This is a small split of some functionality from the DRBDev class into a base drbd class that holds just a few things, in order to make migration to drbd 8.x easier. Reviewed-by: imsnah
-
Iustin Pop authored
Currently, the disk types are defined using constants in the code. Convert those into constants so that we can easily find them and check their usage. Note that we don't rename the values of the constants as they are used in the configuration file, and as such it's best to leave them as they are. Reviewed-by: imsnah
-
- 10 Oct, 2007 1 commit
-
-
Iustin Pop authored
Since modules are not directly executables, remove the shebang from them. This helps with lintian warnings. Also make the autogenerated _autoconf.py contain two comment lines at the beginning, like the other modules. Reviewed-by: ultrotter
-
- 30 Aug, 2007 1 commit
-
-
Iustin Pop authored
Also add some debugging output.
-
- 28 Aug, 2007 1 commit
-
-
Iustin Pop authored
This fixes a compatibility problem with recent mdadm (2.x?) by reimplementing the zero-ing of the superblocks in ganeti itself. Reviewed-by: imsnah
-
- 14 Aug, 2007 1 commit
-
-
Iustin Pop authored
This changes the raising of exceptions from: raise Exception, value to raise Exception(value) as the first form will be removed in python-3000 and the second form is preferred now. The changes also involve a few cases of changing from raising standard exceptions and use our own ones. The new version also fixes many pylint-generated warnings, especially in ganeti-noded where I changed many methods to @staticmethod. There is no functionality changed (barring any bugs).
-
- 03 Aug, 2007 1 commit
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- 26 Jul, 2007 1 commit
-
-
Michael Hanselmann authored
Reviewed-by: iustinp
-
- 23 Jul, 2007 1 commit
-
-
Guido Trotter authored
logival volumes. This lets you use more than one when none of them can support your full drive size. Reviewed-By: iustinp
-
- 16 Jul, 2007 1 commit
-
-
Iustin Pop authored
-