Statistics
| Branch: | Tag: | Revision:

root / lib @ 6b9b18a2

# Date Author Comment
6b9b18a2 02/22/2011 08:03 pm Michael Hanselmann

cmdlib: Fix pylint error

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

e26096bd 02/22/2011 06:49 pm Michael Hanselmann

cmdlib: Use filters internally for queries

This is in preparation for implementing real query filters.

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

cbfa4f0f 02/22/2011 05:57 pm Michael Hanselmann

Merge branch 'devel-2.4'

  • devel-2.4: (60 commits)
    Update news and bump version for 2.4.0 rc2
    Fix pylint warnings
    TestRapiInstanceRename use instance name
    Change the list formatting to a 'special' chars
    Add support for merging node groups
    Add option to rename groups on conflict...
b31393a1 02/21/2011 12:07 pm Iustin Pop

Merge branch 'devel-2.4' into stable-2.4

  • devel-2.4: (23 commits)
    Fix pylint warnings
    Change the list formatting to a 'special' chars
    Add support for merging node groups
    Add option to rename groups on conflict
    Fix minor docstring typo
    Fix HV/OS parameter validation on non-vm nodes...
f0b1bafe 02/18/2011 04:47 pm Iustin Pop

Change the list formatting to a 'special' chars

And also enable verbose display via the, well, verbose option. Man
page and tests are updated, and the formatting is moved from 4 if
statements to a data structure.

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

fecbc0b6 02/18/2011 04:35 pm Stephen Shirley

Fix minor docstring typo

Signed-off-by: Stephen Shirley <>
Reviewed-by: Iustin Pop <>

bd0807fe 02/18/2011 02:16 pm Guido Trotter

RAPI: remove required parameters for reinstall

Before c744425f354f1bef2d0d7d306e2d00c494d67d2b instance reinstall
accepted the "os" and "nostartup" optional query parameters. With that
commit it was changed to allow "os" "start" and "osparams" via body
rather than encoded in the URL. Unfortunately that commit introduced a...

74f258b6 02/17/2011 07:25 pm Iustin Pop

NodeQuery: don't query non-vm_capable nodes

Because non-vm_capable nodes most likely don't have a hypervisor
configured and/or storage, so the call will fail anyway.

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

effab4ca 02/17/2011 07:25 pm Iustin Pop

NodeQuery: mark live fields as UNAVAIL for non-vm_capable nodes

Since we don't have the data per design, UNAVAIL is appropriate here,
while NODATA is not.

The patch also adds a comment: if we extend the live fields list to
contain other data in the future, we need to reevaluate this solution....

9c24736c 02/17/2011 07:25 pm Iustin Pop

Fix HV/OS parameter validation on non-vm nodes

Currently, there is at least one LU that does wrong validation of HV
parameters (against all nodes, LUClusterSetParams). It's possible to
fix this case, but I went and modified the base functions to filter
out non-vm_capable nodes so all callers are protected....

043beb38 02/17/2011 07:24 pm Iustin Pop

Fix LUClusterRepairDiskSizes and rpc result usage

This LU was introduced before the RPC result conversion from .data to
.payload, and it has managed to keep the old-style usage (how? it's
the only LU that does so). Fix by changing to payload, and add some...

ccfbbd2d 02/17/2011 07:24 pm Iustin Pop

Fix RPC mismatch in blockdev_getsize[s]

Commit 92fd2250 added consistency checks in the RPC layer, which broke
the call_blockdev_getsizes RPC call (declared with 's' at the end in
rpc.py, without 's' in the node daemon).

The immediate fix is to correct the rpc function name, the long term...

77b02a99 02/17/2011 04:39 pm René Nussbaumer

Rephrase a misleading pydoc for netutils.TcpPing

Signed-off-by: René Nussbaumer <>
Reviewed-by: Stephen Shirley <>

cbb86b63 02/16/2011 02:11 pm Michael Hanselmann

Fix build error when using docutils 0.4

Docutils 0.4 doesn't provide the “Directive” class and Sphinx supplies
its own version which doesn't have the “assert_has_content” method.

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

fed67843 02/16/2011 02:06 pm René Nussbaumer

Remove force_master support from LUOobCommand

As per discussion on the man-page1 update, this functionality should be
removed and replaced by just give the command to run if the user insists
of power cycle/power off the master and refuse to operate.

[1] http://groups.google.com/group/ganeti-devel/browse_thread/thread/95d4879a747cc295...

1aa50158 02/15/2011 04:14 pm Michael Hanselmann

Add pylint disables to Sphinx extension

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

df156277 02/15/2011 03:20 pm Michael Hanselmann

errors: Add list of possible failure types

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

685d3b42 02/15/2011 03:20 pm Michael Hanselmann

Sphinx extension: Allow evaluation of Python expressions

There are quite many hardcoded constants (e.g. “[…] one of ``file``,
``lvm-pv`` or ``lvm-vg`` […]). By using constants it'll be easier to
identify these.

With such lists of values it's also easy to miss some when...

dac59ac5 02/15/2011 03:20 pm Michael Hanselmann

Sphinx extension: Don't use “from … import …”

Import with full name instead to reduce potential conflicts.

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

4b163794 02/15/2011 03:20 pm Michael Hanselmann

RAPI: Remove “__version__” for instance creation

If left in data, FillOpCode will complain. This fixes the QA breakage
after commit 526a662af.

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

527fbde8 02/15/2011 01:11 pm Michael Hanselmann

RAPI: Use FillOpCode for adding node group

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

8a08be3b 02/15/2011 01:11 pm Michael Hanselmann

RAPI: Use FillOpCode for renaming groups

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

12da663a 02/15/2011 01:11 pm Michael Hanselmann

Make OpGroupRename consistent with OpInstanceRename

OpInstanceRename uses “instance_name” (like almost all other OpInstance*
opcodes), not “old_name”, to specify the original name. OpGroupRename is
made consistent by renaming “old_name” to “group_name”.
...

526a662a 02/15/2011 01:11 pm Michael Hanselmann

RAPI: Clean up instance creation, use generated docs

- Use FillOpCode and unify parameter names between RAPI and opcode
- Generate parameter documentation
- Improve opcode parameter documentation

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

df340fae 02/15/2011 01:11 pm Michael Hanselmann

RAPI: Use FillOpCode for modifying node group

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

88bc199a 02/15/2011 01:11 pm Michael Hanselmann

RAPI: Use FillOpCode for renaming instances

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

b166ef84 02/15/2011 01:09 pm Michael Hanselmann

baserlib.FillOpCode: Allow parameter rename

Some RAPI parameters don't match the name of the underlying
opcode. With this patch they can be renamed while filling
the opcode.

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

80a01808 02/10/2011 06:00 pm Iustin Pop

Fix bug in iallocator data structures build

Commit a1cef11c fixed non-vm_capable nodes export, but broke
inadvertently offline nodes. The update of the dict only needs to
happen for online nodes, in the 'if' block.

Without this patch, offline nodes keep the data from the last node...

11dcce87 02/09/2011 01:23 pm Iustin Pop

Fix error msg for instances on offline nodes

Currently, for both primary and secondary offline nodes, we give the
same message:
- ERROR: instance instance14: instance lives on offline node(s) node3
- ERROR: instance instance15: instance lives on offline node(s) node3...

a3de2ae7 02/09/2011 10:53 am Iustin Pop

cluster verify and instance disks on offline nodes

Currently, cluster-verify says:

- ERROR: instance instance14: couldn't retrieve status for disk/0 on node3: node offline
- ERROR: instance instance14: instance lives on offline node(s) node3
- ERROR: instance instance15: couldn't retrieve status for disk/0 on node3: node offline...

f7661f6b 02/09/2011 10:52 am Iustin Pop

Cluster verify and N+1 warnings for offline nodes

Currently, cluster verify shows warnings N+1 warnings for offline
nodes having any redundant instances since the memory data that we
have for those nodes is zero, so any instance will trigger the
warning....

c37bb2c6 02/08/2011 02:41 pm Stephen Shirley

Handle gnt-instance shutdown --all for empty clusters

The current code gives:
Failure: prerequisites not met for this operation:
error type: wrong_input, error details:
Selection filter does not match any instances

Signed-off-by: Stephen Shirley <>...

d1c172de 02/04/2011 07:05 pm Michael Hanselmann

RAPI: Use FillOpCode for replacing disks

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

5f43f393 02/04/2011 07:05 pm Michael Hanselmann

Add sphinx extension

For now this just registers a single new directive, “opcode_params”,
which can be used to generate opcode parameter documentation.

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

45d4c81c 02/04/2011 07:05 pm Michael Hanselmann

Add opcode parameter descriptions

These will be used in automatically generated parts of the RAPI
documentation. Not all opcodes are documented so far, but each added
opcode's parameters need to be fully documented (verified by an
assertion).

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

197b323b 02/04/2011 07:05 pm Michael Hanselmann

opcodes: Prepare addition of parameter descriptions

For now they're all set to None, but a following patch will set descriptions.

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

8c9ee749 02/04/2011 07:05 pm Michael Hanselmann

ht: Add descriptive text representations

This patch adds text descriptions to all T* checks. Converting to a
string (e.g. str(ht.TNone)) will produce a user-readable text. This
will be used for Opcode parameter documentation.

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

f86426f5 02/04/2011 07:01 pm Iustin Pop

gnt-instance reinstall: display OS changes

Currently, when reinstalling an instance, especially when selecting an
OS interactively, is hard to be sure one has chosen the correct OS.

This patch adds displaying the selected OS. I'm not entirely happy, as
it's not very good English (e.g. keeping the same OS should be "but...

65a77fab 02/04/2011 04:34 pm René Nussbaumer

Allow passing timeout for oob helper in gnt_node.py

This allow to pass in --oob-timeout to define the timeout before the
out-of-band helper is beeing aborted.

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

61413377 02/04/2011 04:21 pm Stephen Shirley

Add --force-join option to gnt-node add

This is needed so cluster-merge can add nodes from other clusters.

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

ee5549c7 02/04/2011 02:49 pm Michael Hanselmann

RAPI: Use FillOpCode for modifying instance

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

c1a27c9a 02/04/2011 02:49 pm Michael Hanselmann

RAPI: Use FillOpCode for migrating instance

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

07ce3e70 02/04/2011 02:49 pm Michael Hanselmann

RAPI: Use FillOpCode for exporting instance

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

81635b5a 02/03/2011 06:02 pm Iustin Pop

Bump up intra-cluster import connect timeout

Currently, the export timeout is 10 times 20 seconds, but the import
is only 30 seconds. I'm raising this to 60 seconds with two goals in
mind:

- when debugging manually, this allows for easier synchronisation of...

c9300bb3 02/03/2011 04:52 pm Iustin Pop

Import-export: fix logging of daemon output

In case of failures, the recent daemon output is logged as %r on a
list of unicode strings, which results in the (ugly):

Thu Feb 3 05:13:34 2011 snapshot/0 failed to send data: Exited with status 1 (recent output: [u' DUMP: Date of this level 0 dump: Thu Feb 3 05:13:18 2011', u' DUMP: Dumping /dev/mapper/6369a5f7-1e67-4d0d-a4f0-956b3649c6d7.disk0_data.snap-1 (an unlisted file system) to standard output', u' DUMP: Label: none', u' DUMP: Writing 10 Kilobyte records', u' DUMP: mapping (Pass I) [regular files]', u' DUMP: mapping (Pass II) [directories]', u' DUMP: estimated 54301 blocks.', u' DUMP: Volume 1 started with block 1 at: Thu Feb 3 05:13:19 2011', u' DUMP: dumping (Pass III) [directories]', u' DUMP: dumping (Pass IV) [regular files]', u'socat: E SSL_write(): Connection reset by peer', u"dd: dd: writing `standard output': Broken pipe", u' DUMP: Broken pipe', u' DUMP: The ENTIRE dump is aborted.'])...

8a53b55f 02/03/2011 02:42 pm Iustin Pop

Fix handling of ^C in the CLI scripts

This adds a message and nice handling of ^C, especially useful for
``gnt-job watch``.

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

ee841437 02/03/2011 01:38 pm Michael Hanselmann

Merge branch 'devel-2.3' into devel-2.4

  • devel-2.3:
    backend: Disable compression in export info file

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

775b8743 02/03/2011 01:38 pm Michael Hanselmann

backend: Disable compression in export info file

The new import/export infrastructure in Ganeti 2.2 and up handles
compression differently. It no longer writes compressed files to the
destination. Unfortunately changing this behaviour would be non-trivial,...

c832b6c8 02/03/2011 11:42 am René Nussbaumer

Modify gnt-node power to support multiple nodes

This also has the sideeffect of presenting a table with the result

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

c957326e 02/03/2011 11:42 am René Nussbaumer

Fix execution order in LUOobCommand causing wrongly setup node list

In commit bfceedbe a check was added to put the master at the end or
skip it completely. While this functionality works, it was done at the
wrong point because node_names was already processed to a node list...

9a6813ac 02/02/2011 06:02 pm Michael Hanselmann

utils.SetupLogging: Return function to reopen log file

This function can be used from a SIGHUP handler to reopen log files.
Initial, simple unittests are included.

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

8cabf472 02/02/2011 06:02 pm Michael Hanselmann

Reopen log files upon SIGHUP in daemons

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

cfcc79c6 02/02/2011 06:02 pm Michael Hanselmann

utils.SetupLogging: Make program a mandatory argument

It's passed in by most users (daemons, CLI scripts) and for the others
(burnin, watcher) it certainly doesn't hurt, especially when using
syslog.

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

aa0cc3e5 02/02/2011 05:57 pm Michael Hanselmann

utils.log: Restrict I/O error handling coverage

The I/O error will occur while opening the file, not while adding
and configuring the handler.

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

d24bc000 02/02/2011 05:57 pm Michael Hanselmann

utils.log: Split formatter building into separate function

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

25bd815c 02/01/2011 02:39 pm René Nussbaumer

Refactor _ConfirmOperation from gnt_instance.py to cli.py

This will allow us to use this functionality also in other cli-tools
like gnt-node power where we've to operate on multiple nodes.

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

18ffc0fe 02/01/2011 02:15 pm Stephen Shirley

Enforce that new node groups have unique names

Signed-off-by: Stephen Shirley <>
Reviewed-by: René Nussbaumer <>

e85d8982 02/01/2011 02:15 pm Stephen Shirley

Add _UnlockedLookupNodeGroup()

This allows calling of _UnlockedLookupNodeGroup() from within
AddNodeGroup()

Signed-off-by: Stephen Shirley <>
Reviewed-by: René Nussbaumer <>

a167575e 02/01/2011 01:28 pm Adeodato Simo

Do not repeatedly call GetClusterInfo() in inner loop

Signed-off-by: Adeodato Simo <>
Reviewed-by: Iustin Pop <>

0938dd05 02/01/2011 01:28 pm Adeodato Simo

Fix docstring for NodeImage.sbp attribute

This was stating "secondary nodes" were the keys of the dictionary, when
they are primary nodes. Also, further clarify only the node's secondary
instances are included.

Signed-off-by: Adeodato Simo <>...

efae0fdd 01/31/2011 07:06 pm René Nussbaumer

Adding support for the new option flags in gnt-node power

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

bfceedbe 01/31/2011 07:06 pm René Nussbaumer

Add two new opcode options to LUOobCommand

This patch adds ignore_status to ignore the offline flag of nodes
and also adds a force_master option to force operations on master node
if they will make the master unavailable (for some time).

Signed-off-by: René Nussbaumer <>...

a0724772 01/31/2011 05:45 pm René Nussbaumer

Adding gnt-node health

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

ae95e419 01/31/2011 05:45 pm René Nussbaumer

Refactor formatting of query results so we can reuse it

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

7e975535 01/31/2011 05:38 pm Stephen Shirley

Minor grammar fix in QuitGanetiException docstring

Signed-off-by: Stephen Shirley <>
Reviewed-by: Michael Hanselmann <>

b6fa9a44 01/31/2011 02:53 pm Michael Hanselmann

Introduce re-openable log record handler

This patch adds a new log handler class based on the standard library's
BaseRotatingHandler. This new class allows the log file to be re-opened,
e.g. upon receiving a SIGHUP signal. The latter will be implemented in...

c417e115 01/28/2011 06:44 pm Iustin Pop

Re-create instance disk symlinks on activate

This patch implements recreation of instance disk symlinks when the
activate-disks operation is run. Until now, it was not possible to
re-create these symlinks without stopping and starting or migrating an
instance as the RPC call where this is done was in instance startup...

b82d4c5e 01/28/2011 04:31 pm Michael Hanselmann

Add RAPI resource for instance console

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

5d28cb6f 01/28/2011 04:31 pm Michael Hanselmann

Export console information as query field

This makes it possible to get the console information via a LUXI query.

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

7e01d204 01/28/2011 03:57 pm Iustin Pop

ConfigWriter: simplify _UnlockedVerifyConfig

This just adds a 'cluster' local variable for reducing duplication.

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

26f2fd8d 01/28/2011 03:57 pm Iustin Pop

ConfigWriter: add checks for be/nd/nic params

This adds checking (in the configuration) for invalid be, nd and nic
params. The code is a bit tricky as nd params are at cluster,
nodegroup and node level, nicparams are at cluster and nic level,
whereas beparams are at cluster and instance level....

a4d9fbac 01/28/2011 03:01 pm Guido Trotter

Add e1000 nic support for HVM

Closes issue: 130

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

0389c42a 01/28/2011 02:43 pm Stephen Shirley

Prevent removal of last node group

- Add check in ConfigWriter to prevent last node group from being
removed
- Tidy up error message a bit

Signed-off-by: Stephen Shirley <>
Signed-off-by: Iustin Pop <>
Reviewed-by: Iustin Pop <>

e431074f 01/28/2011 02:42 pm René Nussbaumer

Fix instance list for instances running multiple times

If for some reason (e.g. failed migration) one instance is running
on multiple nodes the output can become inconsistent. To get that error
and make it consistent between runs we make the call on the secondary...

fb87cbeb 01/27/2011 07:07 pm Michael Hanselmann

Merge branch 'devel-2.3' into devel-2.4

  • devel-2.3:
    Wait for master to become available on initialization
    Start all daemons on cluster initialization
    Clarify job processing order in admin guide
    Improve option descriptions
    Remove two unused variables...
58a59652 01/27/2011 06:39 pm Iustin Pop

cluster verify: add hvparams verification

Currently, the validity of the hypervisor parameters is only checked
at init/modification time, and not in the cluster verify. This is bad,
as it can lead to inconsistent state that is only detected when the
next modification (which can be unrelated) is made, leading to...

54d4c13b 01/27/2011 01:04 pm Michael Hanselmann

RAPI client: Wrap /2/redistribute-config resource

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

b680c8be 01/27/2011 01:04 pm Michael Hanselmann

RAPI client: De-/activating instance disks

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

83e5e26f 01/27/2011 01:01 pm René Nussbaumer

Watcher: Fix endless repair tries for broken secondary

In cases where secondary was offline and not evacuated watcher tried
to activate-disks in an endless manner, but this is useless, as the
secondary is offline and therefore not responding to this approach....

397693d3 01/26/2011 08:20 pm Iustin Pop

Verify disks: increase parallelism and other fixes

The recent work on multi-VG support has converted LUClusterVerifyDisks
into doing serialised calls to each node, as each node can have
different VGs. This is suboptimal, especially for big clusters, where...

fd78c5ce 01/26/2011 08:07 pm Iustin Pop

gnt-cluster verify-disks: fix VG name

Recent multi-VG work already exports the missing LV names as vg/lv,
not simply lv. So the query and addition of the VG name in gnt-cluster
verify-disks is redundant, and even wrong for non-default-VG
instances.

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

c9c41373 01/26/2011 06:53 pm Iustin Pop

Deactivate disks: allow skipping hypervisor checks

In some cases (e.g. the hypervisor not running at all), we might want
to force disk deactivation, skipping the hypervisor checks. I believe
this is not a good thing to do all the time, so this patch adds the...

3b6b6129 01/26/2011 06:26 pm Michael Hanselmann

Wait for master to become available on initialization

This is analogue to the existing check for a responsive node daemon.

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

952d7515 01/26/2011 06:25 pm Michael Hanselmann

Start all daemons on cluster initialization

At least ganeti-confd was not started. It got started a few minutes
later by ganeti-watcher. Also move one pylint disable to the effective
line.

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

34616379 01/26/2011 06:06 pm Michael Hanselmann

Improve option descriptions

Also replace hardcoded “xenvg” with constant.

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

65cb5c4d 01/26/2011 05:44 pm Iustin Pop

Remove two unused variables

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

afc3c260 01/26/2011 04:50 pm Iustin Pop

Show hidden/blacklisted OSes in cluster info

Since we can blacklist/hide non-existing OSes (for preseeding), we
cannot query easily the OSes themselves for this status. Hence we
export the entire lists in cluster info (which should be cheaper than
gnt-os diagnose)....

5ca09268 01/26/2011 02:26 pm Iustin Pop

Fix LUOSDiagnose and non-vm_capable nodes

This skips non-vm_capable nodes in the OS diagnose search, since such
OSes will not be used anyway on those nodes.

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

8b437a6e 01/26/2011 01:45 pm René Nussbaumer

Rephrasing two error messages for auto promotion

Using auto_promote or auto-promote can lead to confusion on using the
user facing interfaces. While auto-promote is fine for CLI it's not for
RAPI and vice-versa. This patch should eliminate this confusion....

985e3f77 01/26/2011 12:31 pm Iustin Pop

storage: Check that mapper is either used or None

This is a followup patch to the one moving GetAllocatable out to
module level.

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

5ae7cd11 01/26/2011 12:06 pm Michael Hanselmann

Fix bug in “gnt-node list-storage”

LVM PV storage units would always show as allocatable, even when they
weren't. For some reason I have not been able to determine, the function
parsing the attributes (“_GetAllocatable”) was not even called and the
list opcode simply returned the attribute string as the value (e.g....

6ec77900 01/26/2011 11:17 am René Nussbaumer

Fix payload check for out-of-band health

This logic error was not detected before as health has not been
implemented on the cli and therefore no QA code existed for that.

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

edd8fe4c 01/26/2011 11:11 am René Nussbaumer

Fix premature abort of LUOobCommand due to result.Raise

This is a bug I recognized while doing tests on gnt-node health. A left
over result.Raise line causes premature abort of LUOobCommand on the
first node failing the RPC call. This is not expected behaviour for...

5f074973 01/25/2011 07:00 pm Michael Hanselmann

ht: Add TMaybeDict check

This replaces a number of equal “ht.TOr(ht.TDict, ht.TNone)” checks.

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

b04808ea 01/24/2011 05:32 pm René Nussbaumer

Modify LUOobCommand to support multiple nodes

This will change the result of this LU to a query like result. A list of
tuples with information about the state of the data.

It also includes the modification to the commands calling this opcode.

Signed-off-by: René Nussbaumer <>...

e18c6c47 01/21/2011 05:36 pm Iustin Pop

Merge branch 'devel-2.4'

  • devel-2.4:
    Another fix for LUClusterVerifyDisks
    QA: also run gnt-cluster verify-disks
    Fix disk adoption breakage
    Fix typo in query2 design document
    Improve documentation for QRFS_UNAVAIL
    lvmstrap: add PV-on-partition support...
cfb084ae 01/21/2011 11:04 am René Nussbaumer

Rename QRFS_* to RS_*

This patch renames QRFS_* to RS_* fields so they can be used in other
places (i.e. LUs) without confusion, as this was initially meant for
query operations.

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

075b62ca 01/20/2011 07:43 pm Iustin Pop

Another fix for LUClusterVerifyDisks

The LVM queries should only be done for vm_capable nodes. In order to
do this, we also add a new ConfigWriter method to abstract that query.

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

f7c94c17 01/20/2011 06:10 pm Apollon Oikonomopoulos

Fix disk adoption breakage

Disk adoption is currently broken by 84d7e26b, which added multiple LVM
volume group support. This patch fixes the calls to rpc.call_vg_list,
which are multi-node calls but were handled as single-node calls in
84d7e26b.

Signed-off-by: Apollon Oikonomopoulos <>...

4478301b 01/20/2011 02:15 pm Michael Hanselmann

Improve import/export timeout settings

With this patch, the exporting node will retry to connect a few times.
The receiving node will make use of the master's increased timeout (see
previous patch).

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