Statistics
| Branch: | Tag: | Revision:

root @ b883637f

# Date Author Comment
b883637f 10/26/2010 02:36 pm René Nussbaumer

Support modify of prealloc_wipe_disks config value

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

1116c3b2 10/26/2010 12:48 pm Iustin Pop

Export a node's group information in iallocator

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

f936c153 10/26/2010 12:48 pm Iustin Pop

Rename node.nodegroup to node.group

In the context of a node, its group has (at least today) only one
meaning, that is the node's node group. As such, we rename
node.nodegroup to just node.group.

Note: if we want to keep node in there, it should be at least...

a285fcfd 10/26/2010 12:47 pm Iustin Pop

Rename --nodegroup to --node-group

For consistency with other CLI options.

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

622444e5 10/26/2010 12:47 pm Iustin Pop

Export node group data in iallocator

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

acd34ea7 10/26/2010 12:47 pm Iustin Pop

Split IAllocator._ComputeClusterData

The node and instance computations were all in this big function; we
separate them out for more clarity.

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

a03fcb26 10/26/2010 12:13 pm René Nussbaumer

Putting the pieces together and invoke the wipe in cmdlib

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

271b7cf9 10/26/2010 12:13 pm René Nussbaumer

Adding RPC call for blockdev_wipe

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

da63bb4e 10/26/2010 12:12 pm René Nussbaumer

Second iteration over backend.BlockdevWipe

This patch now uses dd entirely to wipe the disk, make it
much easier to wipe in blocks so we can give interactive feedback
about the status.

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>...

f2165b8a 10/25/2010 01:47 pm Iustin Pop

Simplify and extend the instance OS env

Some parameters were missing (uuid, c/mtime). We simplify the export
method; unfortunately we cannot simply iterate over slots since the
mapping is not 1:1.

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

729c4377 10/25/2010 12:23 pm Iustin Pop

Fix QA mixup of node/instance tests

There are two node tests that are run from RunCommonInstanceTests, which is the
bad place—it causes these node tests to be run three times instead of once.

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

eb180fe2 10/22/2010 06:23 pm Iustin Pop

ConfigWriter: prevent using a foreign config

If the configuration file doesn't denote this node as master, we prevent
startup. This would have detected our previous race condition more
easily, hence we add it as a permanent check.

Signed-off-by: Iustin Pop <>...

21004460 10/22/2010 06:23 pm Iustin Pop

Fix bootstrap.MasterFailover race with watcher

This fixes a recently diagnosed race condition between master failover
and the watcher.

Currently, the master failover first stops the master daemon, checks
that the IP is no longer reachable, and then distributes the updated...

bd407597 10/22/2010 06:23 pm Iustin Pop

ConfigWriter: protect against multiple writers

This should fix the case where there are two masters that both try to
distribute the configuration file to the cluster. The first one that does so,
will "win" the ownership of the config.data.

Signed-off-by: Iustin Pop <>...

8f065ae2 10/22/2010 06:23 pm Iustin Pop

backend.Upload: switch to utils.SafeWriteFile

This allows serialization of updates to a given file, with respect to
other cooperating writers.

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

4138d39f 10/22/2010 06:22 pm Iustin Pop

Add a "safe" file wrapper over WriteFile

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

9e100285 10/22/2010 06:21 pm Iustin Pop

Add functions to read and compare file 'ID's

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

574d1b7b 10/22/2010 03:19 pm Michael Hanselmann

LUSetInstanceParams: Remove unused attribute

“os_new” is not used anywhere, removing it.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

69dd363f 10/22/2010 02:47 pm René Nussbaumer

Adding backend method to wipe a block device

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

6e991d0e 10/22/2010 02:46 pm René Nussbaumer

Allow to specify wipe command and flags at configure time

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

edb8b377 10/22/2010 11:41 am Iustin Pop

Fix typo introduced in 8d8c4ef

Commit 8d8c4ef broke instance reinstall with different OS, due to an
attribute typo.

Signed-off-by: Iustin Pop <>
Reviewed-by: René Nussbaumer <>

e389d95b 10/21/2010 05:03 pm René Nussbaumer

Adjust the error message of setup-ssh if join check fails

Signed-off-by: René Nussbaumer <>
Reviewed-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

e725bee0 10/21/2010 02:17 pm Iustin Pop

Fix clearing of the default iallocator

And also update the man page.

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

8d8c4eff 10/21/2010 12:57 pm Michael Hanselmann

gnt-instance reinstall: Allow overriding OS parameters

This allows OS installation scripts to make use of special parameters,
e.g. to retain some data on reinstallation.

The RAPI resource is not updated as it takes all parameters via the
query string and encoding arbitrary data in a query string is tricky....

b44bd844 10/20/2010 07:18 pm Michael Hanselmann

Add option to ignore offline node on instance start/stop

In some cases it can be useful to mark as an instance as started
or stopped while its primary node is offline. With this patch,
a new option, “--ignore-offline”, is introduced to “gnt-instance
start” and “… stop”....

691c81b7 10/20/2010 03:53 pm Michael Hanselmann

utils: Add function to find items in dictionary using regex

This basically extracts a small piece of code from ganeti-rapi and puts
it into a utility function. RAPI resources are found using a dictionary
in which the keys can either be static strings or compiled regular...

4d2bd00a 10/20/2010 03:05 pm Michael Hanselmann

QA RAPI: Test HTTP 404 and 501

This tests the HTTP Not Found and Not Implemented errors.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

d0cb68cb 10/20/2010 03:04 pm Michael Hanselmann

QA: Add test for “gnt-node modify”

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

b18ecea2 10/19/2010 05:29 pm René Nussbaumer

Let gnt-cluster support prealloc_wipe_disks

This includes a new option gnt-cluster init and approriate output
on gnt-cluster info. Though gnt-cluster modify is not yet prepared.

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

b02e3172 10/19/2010 02:44 pm Michael Hanselmann

Merge branch 'devel-2.2'

  • devel-2.2:
    Bump version to 2.2.1, update NEWS

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

dcb95afb 10/19/2010 02:29 pm Michael Hanselmann

Bump version to 2.2.1, update NEWS

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

25c45709 10/15/2010 06:34 pm Michael Hanselmann

Merge branch 'devel-2.2'

  • devel-2.2:
    http.client: Disable SSL session ID cache
    Crude workaround for pylint breakage

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Guido Trotter <>

4ba4fe14 10/15/2010 06:21 pm Apollon Oikonomopoulos

http.client: Disable SSL session ID cache

This patch disables the SSL session ID cache for all cURL operations.
This is needed because http.HttpBase's PyOpenSSL implementation does not
currently set a context using SSL_set_session_id_context(3SSL), cURL
tries to re-use the session ID and, according to...

7b70d7a8 10/15/2010 06:13 pm Apollon Oikonomopoulos

http.client: Disable SSL session ID cache

This patch disables the SSL session ID cache for all cURL operations.
This is needed because http.HttpBase's PyOpenSSL implementation does not
currently set a context using SSL_set_session_id_context(3SSL), cURL
tries to re-use the session ID and, according to...

f1763373 10/15/2010 06:01 pm Iustin Pop

Crude workaround for pylint breakage

The way we currently call pylint, the exact order it inspect modules in
lib/http/ depends on the filesystem order. This is not good, and if
lib/http/server.py is loaded before lib/http/__init__.py, it will throw
a "R0921:763:HttpMessageReader: Abstract class not referenced" (as that...

c6e7edb8 10/15/2010 05:24 pm Michael Hanselmann

http.auth: Fix docstring error

This was missing from commit 2287b920.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

b3a8bebf 10/15/2010 05:24 pm Michael Hanselmann

devnotes.rst: Remove hardcoded Python version

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

744061f3 10/14/2010 03:44 pm Iustin Pop

Merge branch 'stable-2.2'

  • stable-2.2:
    Release 2.2.1~rc1
    Require aclocal 1.11.1 or above for devel/release
    Revert "Require aclocal 1.11.1 or above for autogen.sh"
    Add mising --units in gnt-instance list man page
    Set list of trusted SSL CAs for client to verify...
76917d97 10/14/2010 03:29 pm Iustin Pop

Brown-bag fix for leftover comment

I did forgot this in the original patch. Sorry!!!!

Signed-off-by: Iustin Pop <>
Reviewed-by: Guido Trotter <>

8201b996 10/14/2010 02:53 pm Iustin Pop

Rework QA interaction with the watcher

The interaction with cron-launched watcher is a well-known failure mode of QA:

---- 2010-10-14 06:54:55.464839 time=0:00:56.764827 Test tools/move-instance

For the following tests it's recommended to turn off the ganeti-watcher cronjob....

46c8a6ab 10/14/2010 02:53 pm Iustin Pop

Add a new watcher option --ignore-pause

During cluster maintenance, when the watcher is disabled, it's useful to
run it just once. This is incovenient to do currently, as the watcher
needs to be unpaused, then run, then paused again.

This patch adds an option “--ignore-pause” that can be used to ignore...

24440be4 10/14/2010 02:13 pm Iustin Pop

Release 2.2.1~rc1

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

7dcadb74 10/14/2010 01:52 pm Iustin Pop

Merge branch 'stable-2.2' into devel-2.2

  • stable-2.2:
    Require aclocal 1.11.1 or above for devel/release
    Revert "Require aclocal 1.11.1 or above for autogen.sh"
    Set list of trusted SSL CAs for client to verify
    Require aclocal 1.11.1 or above for autogen.sh...
ac96953d 10/13/2010 04:54 pm Michael Hanselmann

Fix compatibility with Pyinotify 0.8

I didn't know why the code previously used
“pyinotify.EventsCodes.ALL_FLAGS” instead of using the flags from
“pyinotify.EventsCodes” directly. Turns out that Pyinotify 0.8 has them
in “pyinotify”, not “pyinotify.EventsCodes”....

073c31a5 10/13/2010 03:18 pm Michael Hanselmann

ganeti-rapi: Watch directory, not file for user file changes

We noticed several issues when just watching the file, among them race
conditions upon replacing the file using rename(2) (the new watcher
would be created too soon). By just watching the directory for events on...

e543a42f 10/13/2010 03:18 pm Michael Hanselmann

Extract base class from SingleFileEventHandler

The base class can contain code useful to other inotify users.
As it is “SingleFileEventHandler” can not be used in ganeti-rapi,
therefore it'll use its own small inotify handler class based
on this base class....

2287b920 10/13/2010 03:18 pm Michael Hanselmann

http.auth.ReadPasswordFile: Don't read file directly

Reading the file before this function allows for better error
reporting.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

62e0e880 10/13/2010 02:44 pm Iustin Pop

Move the parameter types to their own module

This is for cleanup, and for later reuse in other parts of the code
(outside of LUs).

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

4b63dc7a 10/13/2010 02:42 pm Iustin Pop

"Fix" handling of old software versions on startup

Currently, masterd startup with old software versions is very confusing
for users: we present two tracebacks, with a message in the middle about
"version mismatch". This can lead to users believing that all that needs...

3ff614e2 10/13/2010 02:14 pm Guido Trotter

Require aclocal 1.11.1 or above for devel/release

1.11.1 is the version in squeeze and lucid, and we know it works. We
also know that 1.10.1 in hardy and lenny doesn't, nor do 1.10 in etch
and 1.9.6 in dapper. We haven't tested any other version.

With older versions python.m4 is buggy, and results in the package being...

df304c82 10/13/2010 01:09 pm Guido Trotter

Revert "Require aclocal 1.11.1 or above for autogen.sh"

The comparison is incorrect, and the check also breaks daily work on
autobuilders and older distros.

This reverts commit dbc4dda7f5b66c9905c3cf6e44414536a5b38177.

Signed-off-by: Guido Trotter <>...

90224407 10/13/2010 12:59 pm Iustin Pop

Export more information via LUQueryInstances/RAPI

Currently, the custom instance parameters (hv, be, nicp) are only
queryable via LUQueryInstanceData. LUQueryInstance returns only the
filled parameters, thus its users (especially RAPI) have no way to know...

3d95cd0d 10/13/2010 11:45 am Iustin Pop

Add mising --units in gnt-instance list man page

Also fixes some wrapping issues, and one typo.

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>
(cherry picked from commit f8409165b4e6d24bd160ee6c85ba432ae8afa117)...

2d93a6a7 10/12/2010 07:09 pm Apollon Oikonomopoulos

Set list of trusted SSL CAs for client to verify

As per SSL_CTX_set_client_CA_list(3SSL), set the list of acceptable CAs
advertised to SSL clients to include the server's own certificate. This
evidently fixes the pycurl/gnutls RPC client.

During the TLS Handshake, when client verification is requested, the...

dbc4dda7 10/12/2010 06:59 pm Guido Trotter

Require aclocal 1.11.1 or above for autogen.sh

1.11.1 is the version in squeeze and lucid, and we know it works. We
also know that 1.10.1 in hardy and lenny doesn't, nor do 1.10 in etch
and 1.9.6 in dapper. We haven't tested any other version.

With older versions python.m4 is buggy, and results in the package being...

bd631b02 10/12/2010 06:25 pm Iustin Pop

Show instance state in instance console failures

The current message is not entirely clear, as it doesn't show the reason
why the instance is not running.

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

614244bd 10/12/2010 04:32 pm Iustin Pop

Fix epydoc errors

And sorry!

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

9e49dfc5 10/12/2010 03:48 pm Michael Hanselmann

jqueue: Fix bug when cancelling jobs

If a job was cancelled while it was waiting for locks, an assertion
would've failed. This patch fixes the problem and provides a unit
test to check for this situation.

Signed-off-by: Michael Hanselmann <>...

900df6cd 10/12/2010 03:48 pm Michael Hanselmann

mcpu: Raise directly in _AcquireLocks

Removes code duplication.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

b8802cc4 10/12/2010 03:48 pm Michael Hanselmann

jqueue/gnt-job: Add job priority fields for display

These fields can help with debugging.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

320d1daf 10/12/2010 03:48 pm Michael Hanselmann

jqueue: Resume jobs from “waitlock” status (2nd try)

Commit 5ef699a0e had to roll back an earlier attempt at implementing
this. With the improved job queue processer, this is finally possible.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

3d914585 10/12/2010 01:57 pm René Nussbaumer

Add prealloc_wipe_disks as a cluster-wide configuration variable

This is the first step for the support of wiping block devices prior
to creation of the instance.

Signed-off-by: René Nussbaumer <>
Reviewed-by: Iustin Pop <>

69750d44 10/11/2010 04:16 pm Iustin Pop

Merge branch 'devel-2.2'

  • devel-2.2:
    RPC: disable curl's Expect header

Conflicts:
lib/rpc.py (trivial, copyright header)

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

8e29563f 10/11/2010 04:15 pm Iustin Pop

RPC: disable curl's Expect header

This patch solves the very slow (~8-9 seconds) gnt-instance modify
behaviour. Well, it solves in general the slow RPC behaviour, but it was
most visible in that LU.

It seems that curl's behaviour with regard to file uploads (via PUT) and...

dedebc6b 10/08/2010 08:46 pm Guido Trotter

Merge branch 'devel-2.2'

  • devel-2.2:
    Release Ganeti 2.2.0.1
    Bump version to 2.2.1~rc0

Signed-off-by: Guido Trotter <>
Reviewed-by: Luca Bigliardi <>

2759d988 10/08/2010 08:39 pm Guido Trotter

Merge commit 'v2.2.0.1' into stable-2.2

  • commit 'v2.2.0.1':
    Release Ganeti 2.2.0.1

Conflicts:
NEWS
- merge
configure.ac
- keep 2.2.1~rc0 version

Signed-off-by: Guido Trotter <>
Reviewed-by: Luca Bigliardi <>

bf21f985 10/08/2010 08:25 pm Guido Trotter

Release Ganeti 2.2.0.1

2.2.0 was built with old autotools, and it's incompatible with Python
2.6. Rebuilding with a newer autotools version fixes this.

Signed-off-by: Guido Trotter <>
Reviewed-by: Luca Bigliardi <>

f89d59b9 10/08/2010 03:55 pm Iustin Pop

Change QA log output

Currently, the logging in QA doesn't show the duration of the various
steps, and if it is needed one has to perform log manipulation. This
patch changes the output so that the log informatio is line based (as
opposed to block-based), such that it's easy to grep for all log lines:...

06fef5e0 10/07/2010 06:10 pm Michael Hanselmann

gnt-job cancel: Use non-zero exit status if canceling failed

This allows the use “gnt-job cancel” in scripts.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

86b16e9d 10/07/2010 06:10 pm Michael Hanselmann

jqueue, CancelJob: Check status only once per call

This simplifies the code a bit--the status is only checked once.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

fad3096a 10/07/2010 04:16 pm Michael Hanselmann

Bump version to 2.2.1~rc0

Also update NEWS.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

ebdefe95 10/07/2010 03:17 pm Iustin Pop

Merge branch 'devel-2.2'

  • devel-2.2:
    Try again to fix the inter-cluster move QA test

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

638a7266 10/07/2010 03:16 pm Iustin Pop

Try again to fix the inter-cluster move QA test

This time, we re-establish the old pri/sec nodes corretly. Unfortunately this
will require now a 3-node cluster at least for drbd instances, hence it's
somewhat suboptimal, but… The other option would be to move it simply from p:s...

ed3920e3 10/07/2010 11:32 am Iustin Pop

Fix a rare bug in StartDaemonChild and GenericMain

I've seen cases where the result from str(sys.exc_info()[1]) is ""; this
breaks the error reporting as the parent relies on non-empty error
messages to properly detect child status (otherwise it will try to read...

3e87c1bf 10/07/2010 11:31 am Iustin Pop

Enhance the error reporting

Since daemon startup error will be often related to socket errors, so it
makes sense to change the original reporting:

Error when starting daemon process: "(98, 'Address already in use')"

Into:

Error when starting daemon process: 'Socket-related error: Address...
3ee53f1f 10/07/2010 11:31 am Iustin Pop

Convert ganeti daemons to the three-stage startup

This makes almost all of the daemons show error messages, and not return
until they finished listening on the appropriate sockets.

Masterd is the only one "special", as it doesn't do enough
initialization in the server creation, only later....

b78aa8c2 10/07/2010 11:31 am Iustin Pop

Change daemon.GenericMain/utils.Daemonize workflow

This patch copies the pipe-based error reporting functionality from
utils.StartDaemon (I gave up for now on tryin to merge the two).

This patch will fix two longstanding bugs:

- if we fork, we lose all error reporting from the child to the original...

b42ea9ed 10/07/2010 11:31 am Iustin Pop

Change utils.GenericMain protocol

Currently, GenericMain does a two-staged workflow:

- Check, before forking
- then Exec, after forking

This means we don't have any possibility to treat preparation work
(before the daemon is ready for work) different from the actual work....

5c4d37f9 10/07/2010 11:31 am Iustin Pop

Use only one version of WritePidFile

This patch merges the pid file handling used for ganeti-* daemons and
impexp daemons. The latter version is used, since it's more reliable:
uses locked pid files as opposed to checking 'live' processes.

Signed-off-by: Iustin Pop <>...

79634555 10/07/2010 11:30 am Iustin Pop

Abstract daemon file descriptor setup

This does some slight changes:

- Daemonize() doesn't explicitly close the file-descriptors anymore, but
only implicitly via the usage of dup2
- StartDaemonChild uses separate devnull for stdin (rdonly) and
stdout/stderr (wronly), or if using a log file, it uses it in append...

0260032c 10/07/2010 11:30 am Iustin Pop

Abstract some daemon functionality

This patch abstracts the chdir/umask/setsid functionality, which is
identical in the code functions, just that Daemonize did the chdir/umask
in the second child; with this change it does it in the first, as
StartDaemon....

50eaae52 10/06/2010 03:39 pm Iustin Pop

Merge branch 'devel-2.2' into master

  • devel-2.2:
    QA: Fix instance move tests

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

677e16eb 10/06/2010 03:38 pm Iustin Pop

QA: Fix instance move tests

The instance move tests were moving the instance from node pair (A,_) to
(B, A), and left it there. This patch makes sure that the first step
moves the instance to (B,A) but the second one back to (A,B), so that
the instance is left on the same primary node....

72884fef 10/05/2010 06:08 pm Michael Hanselmann

Merge branch 'devel-2.2'

  • devel-2.2:
    Add simple unittest for utils.CommaJoin
    LUDelTags: Improve formatting of error message
    LUGetTags: Acquire locks in shared mode
    gnt-cluster: Replace hardcoded “xenvg” with value retrieved from master
    Export VG name via LUQueryConfigValues...
750022e0 10/05/2010 05:59 pm Michael Hanselmann

Add simple unittest for utils.CommaJoin

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

9fc58eac 10/05/2010 05:59 pm Michael Hanselmann

Export VG name via LUQueryConfigValues

This will be used by LUXI client programs to display the VG name.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

f1b083ce 10/05/2010 05:59 pm Michael Hanselmann

gnt-cluster: Replace hardcoded “xenvg” with value retrieved from master

This fixes issue 125 (http://code.google.com/p/ganeti/issues/detail?id=125)

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

60db9336 10/05/2010 05:59 pm Michael Hanselmann

LUGetTags: Acquire locks in shared mode

Retrieving tags can be done while the lock is shared. Only writing
needs to be exclusive.

Also add a FIXME for cluster tags, where the code currently doesn't
use any locks except the config lock.

Signed-off-by: Michael Hanselmann <>...

91c69b44 10/05/2010 05:59 pm Michael Hanselmann

LUDelTags: Improve formatting of error message

Use utils.CommaJoin to add spaces after comma, clean up code a bit.

Before: Tag(s) 'bar','baz','foo','moo' not found
After: Tag(s) 'bar', 'baz', 'foo', 'moo' not found

Signed-off-by: Michael Hanselmann <>...

845c79d8 10/05/2010 05:59 pm Michael Hanselmann

cli: Move parsing of --net option to separate function

This function will also be used in tools/move-instance.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

a111ebde 10/05/2010 05:59 pm Michael Hanselmann

move-instance: Allow overriding instance parameters

When moving a single instance within the same cluster, the NIC
is not allowed to re-use an existing MAC address. To avoid this,
NIC parameters must be overridden. BE, HV, OS and NIC parameters
can be overridden after applying this patch....

a889c536 10/05/2010 05:59 pm Michael Hanselmann

RAPI QA: Override MAC address when moving instance

This will make this test work again.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

e32e7886 10/05/2010 05:51 pm Michael Hanselmann

Clean up Ganeti 2.3 design document

- Typos
- Fix capitalization
- Fix quoting in some places
- Rewrite part of privilege separation section to
match with subsection titles

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Guido Trotter <>

1010ec70 10/05/2010 05:50 pm Michael Hanselmann

QA: Enable all tests by default

This patch enables all tests by default, unless when they're
explicitely disabled in the config file. This will make sure
newly added tests are run even when an old configuration file
is used.

A comment is also added qa-sample.json....

a705dc05 10/05/2010 05:50 pm Michael Hanselmann

qa_config: Use ganeti.serializer for loading config

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Guido Trotter <>

9d3015f9 10/05/2010 04:54 pm Guido Trotter

kvm: collapse two consecutive extend calls

Signed-off-by: Guido Trotter <>
Reviewed-by: Iustin Pop <>

4f958b0b 10/05/2010 04:45 pm Miguel Di Ciurcio Filho

kvm: Introduce support for -mem-path

Using hugepages, KVM instances can get a good performance boost. To
activate that, we need to pass the -mem-path argument to KVM along with
the mount point of the hugetlbfs file system on the node.

For the sake of memory availability computation, we use the -mem-prealloc...

cf10a26f 10/05/2010 12:23 pm Iustin Pop

Merge branch 'devel-2.2'

  • devel-2.2:
    Rename the _oss cluster vars to _os

Conflicts:
lib/objects.py (trivial, strange that this one, and only this one, conflicted)

Signed-off-by: Iustin Pop <>
Reviewed-by: Michael Hanselmann <>

87b2cd45 10/05/2010 12:11 pm Iustin Pop

Rename the _oss cluster vars to _os

Per the mailing list discussion, rename _oss to _os, both in cluster parameters
and in the rest of the code.

This is just an s/_oss/_os, with the exception of a small bit of cleanup
around the helper_os function in cmdlib.py....

df5758b1 10/05/2010 12:11 pm Iustin Pop

Merge branch 'devel-2.2'

  • devel-2.2:
    gnt-job info: Sort input fields
    KVM: Add function to check the hypervisor version
    Bump version to 2.2.0, update NEWS
    Fix instance rename regression from 3fe11ba3
    Fix instance rename regression from 3fe11ba3...