- Nov 25, 2010
-
-
Dmitry Chernyak authored
Added "vg" argument to the "gnt-instance ... --disk" syntax specification. Now is ok to write: gnt-instance add ... --disk N:size=NNg,vg=VG_NAME ... But not all internal structures are ready to handle this yet. Signed-off-by:
Dmitry Chernyak <dmi.chernyak@gmail.com> [iustin@google.com: removed changes to design-2.0.rst] Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Nov 24, 2010
-
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Currently, the coverage reports include the unittests themselves, and this skewes unfairly the reports, as the coverage for the tests is very high (since they all run). To fix this, we export the ganeti temp dir from run-in-temp-dir, and we use that to exclude the tests directory. The patch also fixes a but related to multiple directories to be omitted (--omit a --omit b is wrong, it needs to be --omit a,b). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 23, 2010
-
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
While starting to implement this, I found a number of deficiencies: - Drop regular expressions. As it turned out, only very few fields for instances used them, all of which can easily be turned into static field names. - Use two separate calls with a request and response description each. - Add forgotten list of fields to query request. - Add value status for case where a field is not available for an item, e.g. NIC 3 for an instance with only one network interface. - Add "timestamp" field type. - Updated examples. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Dmitry Chernyak authored
Extend allocation functions to be aware of different vg names. Suppose, vg_name is helded in disk.physical_id[0] (already was) LUCreateInstance is modified to be aware of new "vg" argument of the disk specification. cfg.GetVGName() will only be used when no VG is specified. The "add" and "remove" for plain and drbd instances should be correct. The "move" for plain instance should be correct. Signed-off-by:
Dmitry Chernyak <dmi.chernyak@gmail.com> [iustin@google.com: fixed missing parameters in two cases and tabs] Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Lance Albertson authored
Signed-off-by:
Lance Albertson <ramereth@gmail.com> Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
There are two issues: first, it's simpler to assign directly to pt instead of via another local variable. Second, this code doesn't make sense: if lt < 0: break pt = max(0, lt) If lt is indeed < 0, then the code will break. Otherwise, lt ≥ 0, and max(0, lt) will always be equal to lt. So we remove the extra assignment. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
This patch makes a simple timeout test (e.g. testTimeoutKill) go from 13K poll syscalls to just 6. The code didn't take into account that RunningTimeout talks in seconds while the poller object expects milliseconds. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
Currently the test executes "/bin/sh -c 'trap "" TERM …" via the shell, which means we have two shells involved (the parent one and the child one, which does the trap). For some weird reason, this works for older OSes: the first shell exec's the second one, whereas on squeeze it forks and only then exec. This might be due to changes in Python or bash or whatever. In any case, the point is that this is a hacky way to call a shell, so we change this to simply execute the desired shell directly, without any intermediate shells (I don't understand why it was written as such originally). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Nov 22, 2010
-
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 19, 2010
-
-
Iustin Pop authored
* devel-2.3: Updates NEWS and configure.ac for 2.3.0~rc1 Update NEWS & configure.ac for the 2.2.2 release Fix documentation regarding conversion to drbd Fix documentation regarding conversion to drbd Reinstall instance: disallow offline secondaries QA: check that doubly modifying an OS state is OK Fix breakage in OS state modify QA: add tests for gnt-cluster modify -B LUSetClusterParms: fix validation of beparams Add unittests for TemporaryReservationManager TempReservationManager: Reserved() doesn't work Conflicts: man/gnt-instance.sgml (ported to the RST version) Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
make check < /dev/null breaks these tests. Until we have change RunCmd to override stdin, we need to remove them. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
René Nussbaumer authored
Further investigations have to be done for merging some of these bits together with import-export daemon which uses similiar logic. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
* devel-2.2: Update NEWS & configure.ac for the 2.2.2 release Fix documentation regarding conversion to drbd Conflicts: NEWS (integrated 2.2 changes) configure.ac (kept our version) Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This imports the 2.1.8 NEWS entry and adds the 2.2.2 one, then updates the configure.ac version. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Nov 18, 2010
-
-
Iustin Pop authored
Currently, reinstallation of a DRBD instance with the secondary node offline does: node1# gnt-instance reinstall -f instance1 Waiting for job 139053 for instance1... Thu Nov 18 01:36:09 2010 - WARNING: Could not prepare block device disk/0 on node node3 (is_primary=False, pass=1): Node is marked offline Thu Nov 18 01:36:09 2010 - WARNING: Could not shutdown block device disk/0 on node node3: Node is marked offline Job 139053 for instance1 has failed: Failure: command execution error: Disk consistency error Since this fails anyway, let's check the secondary nodes, thus preventing any modifications to the instance (e.g. OS type change): node1# gnt-instance reinstall -f instance1 Waiting for job 139058 for instance1... Job 139058 for instance1 has failed: Failure: prerequisites not met for this operation: error type: wrong_state, error details: Instance secondary node offline, cannot reinstall: node3 The patch needs modifications to the _CheckNodeOnline function, in order to display meaningful messages ("Can't use offline node" would be very confusing for an instance reinstall, since we didn't select a node manually). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
This would have prevented the bug fixed in the previous patch :( Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
I was using the feedback_fn function incorrectly (it doesn't automatically expand the arguments). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Nov 17, 2010
-
-
Iustin Pop authored
* devel-2.2: QA: add tests for gnt-cluster modify -B LUSetClusterParms: fix validation of beparams Conflicts: lib/cmdlib.py (reverted & applied manually the change) Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Since the contents of the dict is validated via the ForceDictType, we can simply require that it is a dict here. The previous check was wrong, as it was copied from the HV checks (which also doesn't verify the leaf dict type). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 16, 2010
-
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
René Nussbaumer authored
As we need this functionality in other places than just locking it makes sense to move it to utils rather than keeping it in locking Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Nov 15, 2010
-
-
Iustin Pop authored
This fixes one non-defined @CUSTOM_@ entry, and replaces two hardcoded paths with further configure-time variables. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
This patch removes the last traces of docbook. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
… finally! Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
This patch changes the Makefile rules to build the man pages from the RST sources instead of the SGML ones. Note: pandoc quotes by default the ‘@’ character in manpage output, so we explicitely undo this before writing the .in file. Note 2: The docs unittest has switched from checking cmdsynopsis elements to search for either '**command**' or '| **command**' at the beggining of lines. This is not as safe as the sgml checker, but it should be fine. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-