Statistics
| Branch: | Tag: | Revision:

root @ 3b877f08

# Date Author Comment
3b877f08 03/07/2011 03:28 pm Michael Hanselmann

query: Add operator for truth

The “?” operator is the equivalent of “if var” in Python.

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

a84d1115 03/04/2011 11:52 am René Nussbaumer

gnt-instance rename: Update the man-page

In commit 31fe5102a a additional check was added. This patch rephrases
the man page accordingly to address this change.

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

31fe5102 03/03/2011 05:45 pm René Nussbaumer

LUInstanceRename: Fail if renamed hostname mismatch

There's a problem if you run gnt-instance rename with a non FQDN and the
renamed LU tries to resolve the hostname to make it FQDN. It could be
that this resolved hostname was just a CNAME to another name which leads...

e83d962b 03/02/2011 10:12 pm Guido Trotter

Remove bridge field from rapi daemon

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

c97fcab8 03/02/2011 10:11 pm Guido Trotter

Remove bridge field from rapi client

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

ba05464f 03/02/2011 10:11 pm Guido Trotter

Fix test rapi request

This was wrong even before, as it contained both a bridge and a link,
which are incompatible when passed together. Fix by passing only the
link field.

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

72f0ef8e 03/02/2011 10:03 pm Guido Trotter

Remove deprecated 'bridge' nic parameter

This has been a synonym for "link" since a few major versions.
Add a NEWS entry so we won't forget to mention it at release time.

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

717920a0 03/02/2011 10:03 pm Guido Trotter

Unhardcode constants from instance batch create

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

246f4067 03/02/2011 10:03 pm Guido Trotter

Add comments about INIC, IDISK and NIC constants

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

fbc263a9 03/02/2011 11:59 am Michael Hanselmann

query: Fix bug when names are specified

If the client/caller would specify names through the use of a filter,
the result would be sorted. This is a regression over earlier Ganeti
versions and verified in QA. This patch adds an optional parameter to
control the sorting and provides unittests....

85a0ff7e 03/01/2011 07:18 pm Apollon Oikonomopoulos

Add DTS_MIRRORED frozenset

Use DTS_MIRRORED to indicate mirrored disk templates that allow
migrations/failover.

DTS_MIRRORED is the union of DTS_EXT_MIRROR and DTS_NET_MIRROR.

Signed-off-by: Apollon Oikonomopoulos <>
Reviewed-by: Michael Hanselmann <>...

7925d409 03/01/2011 07:18 pm Apollon Oikonomopoulos

Shared file storage initialization code

Add shared file storage handling during cluster initialization.

Signed-off-by: Apollon Oikonomopoulos <>
Signed-off-by: Iustin Pop <>
Reviewed-by: Iustin Pop <>

4b97f902 03/01/2011 07:11 pm Apollon Oikonomopoulos

Core shared file storage support

This patch introduces core file storage support, consisting of the following:

A configure-time switch for enabling/disabling shared file storage
support and controlling the shared file storage location:
--with-shared-file-storage-dir=. Shared file storage configuration is then...

a997cec5 03/01/2011 05:22 pm Apollon Oikonomopoulos

Add shared file storage design doc

Add doc/design-shared-storage.rst to document the proposed changes and update
Makefile.am respectively.

Signed-off-by: Apollon Oikonomopoulos <>
Signed-off-by: Iustin Pop <>
Reviewed-by: Iustin Pop <>

d3308c6b 03/01/2011 03:42 pm Michael Hanselmann

cmdlib: Allow use of more complex filters

This patch finally enables the use of complex filters through opcodes
and LUXI.

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

fb0be379 03/01/2011 03:42 pm Michael Hanselmann

query: Add support for filters

This patch adds a “compiler” for query filters, converting them to a
callable function used while preparing the query result. In addition, a
hints call allows some analysis to be done on the query (e.g. referenced
names), making data collection more efficient....

111bf531 03/01/2011 03:31 pm Michael Hanselmann

Add query field flags

Some fields (e.g. “name”) should be treated specially when comparing for
equality. Hypervisor names should use normal rules, but for node names,
“node2” should be equivalent with “node2.example.com”.

To make these differences, a new field for flags is added to the query...

88076fd1 03/01/2011 12:02 pm Michael Hanselmann

qlang: Add new operators

These are only used programmatically, not exposed to the user.

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

ff699aa9 02/28/2011 05:26 pm Michael Hanselmann

gnt-cluster master-failover: Undrain queue

- Move functions for drain status (tracked via file) from jqueue to jstore
- Undrain queue on master failover if necessary
- Add QA test

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

b12d5e2e 02/28/2011 02:33 pm René Nussbaumer

Query: Add additional test to node.powered for OOB handling

This patch covers the testing of _GetNodePower of query.py not only for
unavailable but also for OOB support and returning the right
node.powered.

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

ea1440c1 02/25/2011 04:22 pm Michael Hanselmann

gnt-* list-fields: Show field description

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

cc27265e 02/25/2011 02:25 pm René Nussbaumer

gnt-instance reboot start instance if not yet started

This patch starts the instance when gnt-instance reboot is invoked on a
instance already stopped.

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

effb49b4 02/25/2011 12:13 pm René Nussbaumer

Update the DD of OOB with gnt-cluster epo

This command came up in a local discussion about how much logic we
should put into gnt-node power off. We decided to go with a separate
convenience command which takes care of all the steps through the
procedures to turn down the cluster into a state suitable for a shutdown...

f47941f8 02/25/2011 11:55 am Michael Hanselmann

utils: Export NiceSortKey function

The ability to split a string into a list of strings and integers can be
handy elsewhere and is necessary for sorting query results by names.

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

8e74adce 02/24/2011 04:40 pm René Nussbaumer

Fix test output splattering

Instead of hardcode to ToStdout in the helper class, we should use
a user provided feedback function. In unittests this is a noop.

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

fcdb582d 02/24/2011 03:25 pm Michael Hanselmann

Generate query fields in man pages

This patch replaces the hand-written lists of fields, sometimes
incomplete, wrong or inconsistent, with generated ones. What's not very
nice yet is the representation for numbered lists (“nic.ip/0: IP address
of 1st network interface”, “nic.ip/1: IP address of 2nd network...

95eb4188 02/24/2011 03:25 pm Michael Hanselmann

Add script to generate query fields documentation

- All lines matching "QUERY_FIELDS_${resource}" in the input will be
replaced with a definition list describing the fields for $resource
- The core code is kept in the Sphinx extension, so that it could be...

79b2ca83 02/24/2011 03:25 pm Michael Hanselmann

Add query field descriptions

- Make “doc” parameter to MakeField non-optional
- Add descriptions for all fields

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

1ae17369 02/24/2011 03:25 pm Michael Hanselmann

query: Add support for field description

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

92ea69bf 02/24/2011 03:25 pm Michael Hanselmann

Add function to format ordinals

See [1] for the rules.

[1] http://en.wikipedia.org/wiki/Names_of_numbers_in_English#Ordinal_numbers

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

66d1f035 02/24/2011 12:28 pm René Nussbaumer

Introducing gnt-cluster epo

This is a convenience command to do an automated EPO in the possible limits of
Ganeti.

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

41543d8b 02/24/2011 12:28 pm René Nussbaumer

Move OOB_TIMEOUT_OPT to cli.py

OOB commands where we need to be able to specify the timeout are
enhancing over the border of just gnt-node so we move it into cli.py
for easy reuse in other cli parts.

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

75f76703 02/23/2011 08:55 pm Michael Hanselmann

epydoc.conf: Avoid newlines, rebuild if necessary

Using $(strip …) ensures there won't be any newlines in the value.

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

1e28e3b8 02/23/2011 08:55 pm Michael Hanselmann

Add constants for node roles

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

61a980a9 02/23/2011 03:52 pm Michael Hanselmann

Add constants for instance status

They've been hardcoded for too long.

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

502b3316 02/23/2011 03:31 pm René Nussbaumer

Merge remote branch 'devel-2.4'

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

bacae536 02/23/2011 03:27 pm René Nussbaumer

query_unittest: Fix argument to set()

Commit e431074f introduced an uncatched bug. This patch fixes this. The
set is expecting a list or iteratable to work on, so it splitted the
provided instance name into a set of characters. This caused the
exp_status never been set and therefore not catched in one assert rule...

4cc4d1fa 02/23/2011 02:55 pm Michael Hanselmann

query: Use aliases for legacy instance NIC fields

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

38499e1b 02/23/2011 02:43 pm Michael Hanselmann

Merge branch 'devel-2.4'

  • devel-2.4:
    Fix title of query field containing instance name

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

f2c6673d 02/22/2011 08:05 pm Michael Hanselmann

Add unittest for cli.FormatResultError

Also make the parameter for verbosity mandatory.

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

f5182ecb 02/22/2011 08:03 pm Michael Hanselmann

Fix title of query field containing instance name

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

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...
a1e43376 02/22/2011 02:50 pm Michael Hanselmann

Add/rename label for LUXI in documentation

The HTTP server design doc will refer to the LUXI protocol,
so conflicts need to be avoided.

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

e41a1c0c 02/21/2011 02:38 pm Iustin Pop

Update news and bump version for 2.4.0 rc2

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

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...
9b945588 02/18/2011 06:09 pm Stephen Shirley

Fix pylint warnings

- 1 80-char line infraction
- 4 changes in how arguments are passed to logging functions
- 3 pylint disable-msg's because cluster-merge needs to access ganeti
config internals

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

0e265161 02/18/2011 05:58 pm Guido Trotter

TestRapiInstanceRename use instance name

Currently the QA rename job wrongly passed the whole info dict to the
client.

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

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 <>...

3a969900 02/18/2011 04:46 pm Stephen Shirley

Add support for merging node groups

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

1a615be0 02/18/2011 04:46 pm Stephen Shirley

Add option to rename groups on conflict

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

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

Fix minor docstring typo

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

0220d2cf 02/18/2011 02:16 pm Guido Trotter

Add QA rapi test for instance reinstall

This tests at least the basic case, unfortunately there is no way to
check all possibilities using the provided rapi client, as that will use
the new method unless the cluster doesn't support it.

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

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 <>

4fbd5444 02/17/2011 12:09 pm Stephen Shirley

Remove superfluous redundant requirement

The condition is already covered by the previous requirement.

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

98632c4f 02/17/2011 12:09 pm Stephen Shirley

Don't remove master_candidate flag from merged nodes

Prevents lots of spurious warnings like:
2011-02-10 17:00:22,776: CRITICAL Configuration data is not consistent:
Not enough master candidates: actual 3, target 4

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

a536aaac 02/17/2011 12:09 pm Stephen Shirley

Use a consistent ECID base

ECID was being calculated completely differently in
__MergeNodeGroups() and _MergeConfig()

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

b74c0684 02/16/2011 06:35 pm Iustin Pop

listrunner: convert from getopt to optparse

The “-A” (use agent) was not documented, and instead of adding manual
listing, I converted it to optparse like the other CLI tools.

Note that I cleaned up a bit the usage and help texts.

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

99a11adc 02/16/2011 06:35 pm Iustin Pop

listrunner: fix agent usage

By delaying the agent key query until after the fork, we prevent the
problem of simultaneous access to the agent.

Tested that it works against 80 hosts in parallel without error; the
current version breaks already at 20 hosts....

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 <>

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

Adding more details to gnt-node man-page

This adds some recently added flags to the man-page of gnt-node command.
It also describes their purpose and handling.

Signed-off-by: René Nussbaumer <>
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 <>

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

RAPI documentation: Use constants and assertions

This doesn't cover everything yet, but it's a good demonstration on how
to use “pyeval” and “pyassert”.

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 <>

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

RAPI: Generate documentation for assigning nodes to groups

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 <>

3d8f154f 02/14/2011 01:19 pm Stephen Shirley

Revert "Disable the cluster-merge tool for the moment"

This reverts commit c0711f2cb989facd60430ab18c5b0e59a1f279ac.

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

9c03a67a 02/14/2011 01:18 pm Stephen Shirley

Fix cluster-merging by not stopping noded

cli.RunWhileClusterStopped() stops noded on all of the nodes in the
original cluster. This prevents /etc/hosts updates on the master, and
config redistribution doesn't reach the other nodes in the original
cluster. As all we want to do is merge while the master is stopped,...

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...

a2d917f3 02/09/2011 04:58 pm Iustin Pop

Fix html docs builds

This fixes the doc builds broken by commit b292b986, but is only an
ugly workaround due to our dependency chain.

opcodes.py imports (both directly and indirectly) constants.py, which
imports _autoconf.py. Hence one could say that all .py files have a...

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...

3d2e7a27 02/09/2011 10:56 am Stephen Shirley

Minor reordering to match param order

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

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 <>

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

Generate parts of RAPI documentation from opcodes

This replaces hardcoded lists of parameters with automatically generated
ones, making maintenance easier.

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 <>