- Jul 05, 2012
-
-
Iustin Pop authored
We don't have a specific test for activate disks, so let's add it in the cases where we run (incidentally) activate-disks. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
Note that this needs (like for the opcode) a new option, with the default reverted (False instead of True). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
This can be used to ensure that after activate-disks has returned, the instance's storage is consistent; currently there's no programmatic way to do this. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
This derives from an internal bug, but the story is consistent across both internal and external usage of hbal. Basically right now, hbal returns exit code 1 if requested to exit early, even if all jobs are successful. This is counter-intuitive due to two reasons: - hbal did what it was requested (exit early), so it shouldn't return error - there were no job failures, so there's nothing to "cleanup" or investigate on the Ganeti cluster, so again it shouldn't return error Therefore the new behaviour is as follows: - for cases where all jobs were successful, even if terminated early via SIGINT or via --limit, we exit with code 0 - for cases where jobs have failed or there were other errors in running hbal, the exit code is 1 - for cases were hbal is requested an immediate termination (SIGTERM), exit code is 2, denoting "unknown whether the Ganeti cluster is consistent or not" Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
There are two bugs in the current resize code, affecting mostly DRBD. First, due to bugs in old DRBD versions (pre 8.0.14), the code currently calls `drbdsetup resize' on both the primary or secondary. However, this is actually wrong per current DRBD (from drbdsetup(8)): resize This causes DRBD to reexamine the size of the device's backing storage device. To actually do online growing you need to extend the backing storages on both devices and call the resize command on one of your nodes. So calling it just on the primary node should be enough. However, we can't simply remove the calls to the secondary nodes, since that would break the growth of the underlying storage (LVM) on the secondary. Which leads to the second existing bug: we call resize on each node, even before finish the growth of the underlying storage. This can leads to all kind of issues if DRDB is not well behaved. So to fix both these bugs, we have to extend the current RPC call with another parameter, which denotes whether to extend the actual backing storage or just the "logical" one (DRBD being the only one; MD would be another, if implemented). This allows us to do the growth in two steps, first the backing store on all nodes, then the logical storage on just the primary node. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Jun 29, 2012
-
-
Bernardo Dal Seno authored
Problem introduced by commit 87f0aa48. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Jack authored
Remove a useless space at the end of the line in a config file. Signed-off-by:
Jack Sitnikov <sitnikove@gmail.com> Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
- Jun 28, 2012
-
-
Jack authored
This hv parameter allows passing PCI devices to virtual machines. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Jun 27, 2012
-
-
Bernardo Dal Seno authored
Two blank lines are needed between functions. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Jun 26, 2012
-
-
Bernardo Dal Seno authored
The test is disabled by default, as it takes a long time. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Bernardo Dal Seno authored
This is useful to simulate HW problems during QA. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jun 25, 2012
-
-
Iustin Pop authored
Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Jun 19, 2012
-
-
Guido Trotter authored
To change the cluster from single homed to multi homed or vice versa one must target the master node first, and pass the --force option. All other nodes then will work as long as they are reachable by the master. Note that this will also prevent a node to be set to single-homed if the master is multi-homed, which wasn't disallowed before, and warn if a single-homed <-> multi-homed transition happens. Also note that it's still theoretically possible to flip a cluster inadvertently by changing the master node this way, and then doing a master failover before fixing the other nodes. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Jun 15, 2012
-
-
Michael Hanselmann authored
Add unittests for FormatJobID, GetArchiveDirectory, ParseJobId. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
This patch adds the necessary conversions for comparing split timestamps (such as used by jobs) and job IDs (by defining custom converters). Unittests are included. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
These don't really need to be in jqueue, and a new function will be added to convert job IDs to an integer for queries. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Michael Hanselmann authored
* stable-2.6: Fix cfgupgrade unittests Upgrade wrong iv_names at cfgupgrade time query2: Add <, >, <=, >= comparison operators Fix creation of plain instances with --no-wait-for-sync Fixed typos, formatting, etc and added a comment Fix daemon-util with non-root user models Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Sorry, I broke the cfgupgrade unittests via 904910c4, since that commit added the requirement for the "instances" dict in the configuration. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Since Ganeti 2.6 does warn about disks with wrong iv_names, it would be better to fix them when upgrading to 2.6. Not sure if this is too brittle and whether we want to add more safeguards on the contents of the config/instance/disks before touching them. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jun 14, 2012
-
-
Guido Trotter authored
These were recently added to the python version. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
These can be used, for example, to get jobs submitted after a certain timestamp. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
As reported on the devel mailing list by Christos Stavrakakis, creation of plain instances is broken when the --no-wait-for-sync flag is passed, because in that case WaitForSync is not called, hence SetDiskID is not called at all, resulting in a None physical_id being passed to backend. We fix that by explicitly calling SetDiskID, which will cover the pause/resume and os_add RPC calls. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jun 12, 2012
-
-
Guido Trotter authored
This contains the types to express query2 queries, filters and results. Signed-off-by:
Guido Trotter <ultrotter@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Bernardo Dal Seno authored
This patch only touches comments and man pages. Signed-off-by:
Bernardo Dal Seno <bdalseno@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Commit 4b42c3d6 broke non-root user mode since, while trying to do a cleanup a move all local variable definitions to the start of the function; however, the plain_name var is only defined later, so this actually doesn't work. Note that enabling set -u doesn't _directly_ work, since we rely on some variables which are usually undefined (EXTRA_*_ARGS, etc.). It can be fixed, but in a later patch. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
* stable-2.6: (26 commits) Bump version for beta 2 release Fix epydoc raises L{...} usage Fix race condition in test for *FileID functions Move KVM keymap from GenerateRuntime to ExecuteRuntime Add the keymap directory to the list of runtime KVM dirs Fix make -n use Enable hlint in lint and reorganise this target Improve error message for auto-promote/node modify Fix QA import of existing instances Remove one obsolete hlint override Fix prefix bug in Haskell ssconf implementation Move the ssconf file prefix constant to constants.py QA: Add configuration options for static MAC address QA: Ignore tags using regular expression Fix parallel build failures QA: Add default setting for tests QA: add toggle for fewer common instance tests QA: stop logging SSH arguments for each invocation Switch QA to tty-less mode Fix a type issue and bad logic in cluster verification ... Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
I've added the changes under beta1, not beta2, since it's easier to keep it separate. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
For epydoc raise statement, it already expects an exception which will be hyperlinked; if passing an L{…} construct, it will instead break the formatting (the @raise will not be recognised, but merged into the previous paragraph). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jun 11, 2012
-
-
Iustin Pop authored
* stable-2.5: Fix race condition in test for *FileID functions Move KVM keymap from GenerateRuntime to ExecuteRuntime Add the keymap directory to the list of runtime KVM dirs Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Michael Hanselmann authored
In this test the “file ID” of a temporary file is compared against the file ID gathered via an open file descriptor to the same file. For reasons unknown to me utime(2) is called in-between to update the inode's a- and mtime. Depending on the file system's timestamp resolution this can lead to a different file ID. Found by chance during QA and reproduced by adding a delay before the call to utime(2). Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> (cherry picked from commit fbd55434) Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Per issue 243, "side-effects" are GenerateRuntime are bad as they execute only on the initial node of the instance. By moving the write-out of the keymap file to ExecuteRuntime, it will be done both at start and at migrate time. Furthermore, we update the docstring of GenerateKVMRuntime to explain this, and add a fixme related to the spice per-interface binding. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Commit 4f580fef added the keymap support, but missed that this directory needs to be ensured/created at hypervisor init time. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Due to the way $(MAKE) behaves (it forces execution of the commands that contain it), use of $(MAKE) in a command line together with side-effects commands will break stuff. It's better to keep it either on a separate line, or if not possible, move said commands to a separate make target. After this patch, make -n distcheck, make -n regen-vcs-version and possibly other commands now work correctly. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
Currently, the lint target does a sequential: pep8, pylint, pylint on the QA sources. hlint is run only when explicitly requested. This patch reorganises the lint target by: - splitting the current lint target into separate pylint (slow), pylint-qa (fast), pep8 (fast) targets - making lint itself depend on the above plus hlint - both pep8 and hlint are optional, based on whether the said binaries were detected at configure time make -j is slightly faster after this patch (1m18s → 1m7s). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Jun 08, 2012
-
-
Iustin Pop authored
This has been reported internally 3-4 times already, and the current version (from 8b437a6e) is still not good enough, it seems. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Commit f346a7d9 broke the TestInstanceImport test in QA, since it dropped the "always generate" parameter for backup import. We add an override mac parameter so that, no matter what is defined in the config file, imported instances (can) have a different MAC. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
During the preparations for 2.6, we cleaned up the codebase to use newer exceptions (e.g. commits 30d25dd8, 79ac58fa), so we can now drop this override. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This patch fixes a (brown-bag) bug in the ssconf implementation where the looked-for filenames were not prefixed with the ssconf file prefix. Additionally, a test for this is added (which fails without the fix). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
Iustin Pop authored
This way, it can be reused in the Haskell code too. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
-
- Jun 07, 2012
-
-
Michael Hanselmann authored
In some QA environments static MAC addresses must be used. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-