- Jun 07, 2012
-
-
Michael Hanselmann authored
In some QA environments external scripts may add tags. With this patch a regular expression can be used to ignore them during QA runs. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Jun 06, 2012
-
-
Iustin Pop authored
* stable-2.5: Fix parallel build failures QA: Add default setting for tests Conflicts: Makefile.am (expected, from the parallel build fixes) qa/qa_config.py (due to cherry-pick, ignored, simply checkout out with --ours) Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This is the 2.5 version of the "fix build failures": - man/%.gen could be left over even in case of failure, due to automake bug - make man/%.gen runs RUN_IN_TEMPDIR, so let's depend on it, since that target has the proper dependencies (create needed dirs) - man/%.gen depends on a number of built sources, but the dependency was not declared Furthermore, wraps a long comment. Tested with -j4/-j16, after `make maintainer-clean'. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jun 05, 2012
-
-
Michael Hanselmann authored
Commit 1010ec70 enabled all tests by default. In some scenarios where the configuration is static one may not want newly added tests to be run. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com> (cherry picked from commit 59a8fe48)
-
Iustin Pop authored
Currently, the "common" instance tests (shutdown, rapi stopped console, stopped modify, startup, rapi shutdown, rapi startup, list, info, modify, rapi modify , console, rapi console, reinstall, rename, rapi rename, rename and back, rapi rename and back, grow disk, reboot, tags, cluster verify, rapi test instance, node list, job list) are run 4 times: - one time for plain instance created via RAPI, using client - one time for plain instance created via RAPI, without client - one time for plain instance created via gnt-instance - one time for DRBD instance created via gnt-instance This makes the QA long, and is over-doing it (for non-full QAs): an instance created via RAPI (either client) and via gnt-instance should have the same parameters, but our duplicate tests do not ensure that, just that instances behave OK. This patch adds a toggle so that we can skip the common tests for RAPI-created instances; the creation/deletion is still performed, but all the other operations are not. This reduces the time of a "quick" QA by ~20% (1h:15m → 1h). The common tests will still be run (unconditionally) for gnt-instance-created instances. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
Currently, this is how the QA log looks like: Command: ssh -oEscapeChar=none -oBatchMode=yes -l root -t -oStrictHostKeyChecking=yes -oClearAllForwardings=yes -oForwardAgent=yes -oControlPath=/tmp/ganeti-qa-multiplexer.DMzkuH -oControlMaster=no node14 exit Command: ssh -oEscapeChar=none -oBatchMode=yes -l root -t -oStrictHostKeyChecking=yes -oClearAllForwardings=yes -oForwardAgent=yes node8 exit Command: ssh -oEscapeChar=none -oBatchMode=yes -l root -t -oStrictHostKeyChecking=yes -oClearAllForwardings=yes -oForwardAgent=yes node18 exit And these arguments are repeated over and over. This patch proposes to log once the arguments, at the beginning of the QA (so that the SSH commands can be reproduced, if needed) and then drop them from the log. The new output looks like: SSH command for primary node: ssh -oEscapeChar=none -oBatchMode=yes -lroot -oStrictHostKeyChecking=yes -oClearAllForwardings=yes -oForwardAgent=yes -oControlPath=/tmp/ganeti-qa-multiplexer.24lgrK -oControlMaster=no node14 SSH command for other nodes: ssh -oEscapeChar=none -oBatchMode=yes -lroot -oStrictHostKeyChecking=yes -oClearAllForwardings=yes -oForwardAgent=yes NODE (the above are the informational messages about parameters, then) Command: ssh node14 exit Command: ssh node8 exit Command: ssh node18 exit This makes the QA log much more readable, by dropping unneeded clutter (look how long the original lines were), and hopefully also a bit smaller (current QA log is > 100MB of text output). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Bernardo Dal Seno <bdalseno@google.com>
-
Iustin Pop authored
This makes ssh generate much less noise when QA is run itself without a tty, as otherwise we get thousands of lines of: Pseudo-terminal will not be allocated because stdin is not a terminal. in the QA logs (which are already big enough). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Jun 01, 2012
-
-
Iustin Pop authored
Commit 2e04d454 introduced the new offline state for the instance state, but being a big monolithic patch it sneaked in something that doesn't make sense. The checks for extra instances (either wrongly up or just unknown) are done purely on a name-basis, not on objects, so the types there are wrong. Furthermore, they have no relation to the admin state of the instance, so we just drop the entire if block. We keep the increment of the offline instance count, but move it to a different loop over instances. 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>
-
- May 31, 2012
-
-
Michael Hanselmann authored
I was not able to find where the “.d” suffix is documented, so this clarification should make it more obvious. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
René Nussbaumer authored
xm and xl are mostly compatible, there is just a change in migrate, which for now we simple bridge by comparing the command string. Also XEN_CMD is now set during configure time. This will then be fixed in Ganeti 2.7 when we make it an hvparams. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
René Nussbaumer authored
This is needed so we can specify the xen command upon configure time Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- May 30, 2012
-
-
René Nussbaumer authored
Redhat links its pycurl against NSS/ so this check fails and therefore makes ganeti-watcher unusable. Even though this seems to fix the problem and works, further testing on this might be needed. Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Iustin Pop authored
Reported by user ewoud, thanks! Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- May 29, 2012
-
-
Iustin Pop authored
This didn't get completed in time for 2.6, so we document that it's not working as is. Well, it's not broken, just not used by anything. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
The move to per-group state files forgot to update the man page of ganeti-watcher; let's fix this and add some more details on what removal means and when it's needed. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
These were using exactly 80 chars, and I like them smaller. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
This patch adds support for handling SIGHUP and reopening the stdout/stderr logfile in daemon mode (but not in foreground mode). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
This fixes a missing functionality: closing of stdout/stderr when forking daemons. Without this, starting the daemons from the command line seems to work, but doing it from utils.RunCmd breaks, since without closing the standard descriptors, RunCmd never finishes. The code is not very nice; basically what we need is an actual type for the LogMode desired (LogConsole, LogStderr, LogFile FilePath), but the syslog (yes/no and *only*) complicates this even more. I'll think more on this and probably fix it in master. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- May 24, 2012
-
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@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>
-
Michael Hanselmann authored
* stable-2.5: kvm-ifup: Use /bin/bash Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
As reported by Ben Beuchler, kvm-ifup uses bash-specific constructs and doesn't work with Ubuntu's default shell. We use bash all over the place anyway, so changing the shebang line is the easiest solution. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- May 23, 2012
-
-
Iustin Pop authored
It seems Michael submitted the daemon-util patch on devel-2.6, and I didn't realise it. It's way too early in the release cycle of 2.6 to have diverging branches, so I'm merging devel-2.6 into stable-2.6 and then will ff the devel branch to the merge point. * origin/devel-2.6: Add support to daemon-util for distributions without start-stop-daemon 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:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Also does some abstracting of the versions. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Jun Futagawa authored
This adds support to daemon-util for Red Hat based distributions that do not have a start-stop-daemon. If /sbin/start-stop-daemon is not available, daemon-util will source /etc/rc.d/init.d/functions. check(), start(), and stop() are updated to use the relevant functions from /etc/rc.d/init.d/functions. Thanks to Stephen Fromm and Michael Hanselmann for improving the error handling, style, and comments. Signed-off-by:
Jun Futagawa <jfut@integ.jp> Reviewed-by:
Michael Hanselmann <hansmi@google.com> (cherry picked from commit 4b42c3d6)
-
- May 22, 2012
-
-
Iustin Pop authored
Allow all errors to be displayed, instead of aborting at the first one, and don't show stacktraces anymore. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
Iustin Pop authored
Too many empty lines… Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@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>
-
Iustin Pop authored
This is adapted from the design doc. Also fixes a typo in cmdlib.py. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
This is trivial, but should prevent such things in the future. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
Also reworks a bit the sentence and fixes a typo. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
Iustin Pop authored
More will come, this is just what I took from the existing NEWS entries. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@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>
-
René Nussbaumer authored
Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- May 21, 2012
-
-
René Nussbaumer authored
This patch reworks the beparams listing to the new style. However, due to this process the naming of the fields with mixed casing changed to lowercase and is therefore not 100% compatible with the previous versions. As "memory" is marked deprecated and sort of default we merge that just into the actual dict, which leads to the following output: - maxmem: 128 - memory: default (128) - minmem: 128 Instead of: - maxmem: 128 - minmem: 128 - memory: 128 Signed-off-by:
René Nussbaumer <rn@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- May 16, 2012
-
-
Iustin Pop authored
Was showing in the man page as --diskN, without a space. Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-