Statistics
| Branch: | Tag: | Revision:

root / lib / cmdlib.py @ 6b9b18a2

History | View | Annotate | Download (398.6 kB)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

93ac2fea 01/19/2011 05:52 pm Apollon Oikonomopoulos

Fix disk count check in LUSetInstanceParams

LUSetInstanceParams checked instance.nics (and not instance.disks)
against constants.MAX_DISKS.

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

c6afb1ca 01/18/2011 01:47 pm Iustin Pop

Rename OpGetTags and LUGetTags

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

715462e7 01/18/2011 01:47 pm Iustin Pop

Rename OpSearchTags and LUSearchTags

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

d1602edc 01/18/2011 01:47 pm Iustin Pop

Rename OpAddTags and LUAddTags

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

b469eb4d 01/18/2011 01:47 pm Iustin Pop

Rename OpTestJobqueue and LUTestJobqueue

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

c873d91c 01/18/2011 01:47 pm Iustin Pop

Rename OpStartupInstance and LUStartupInstance

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

d817d49f 01/18/2011 01:47 pm Iustin Pop

Rename OpAddNode and LUAddNode

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

0ae89533 01/18/2011 01:47 pm Iustin Pop

Rename OpNodeEvacuationStrategy and LUNodeEvacuationStrategy

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

5b14a488 01/18/2011 01:47 pm Iustin Pop

Rename OpMigrateNode and LUMigrateNode

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

2cee4077 01/18/2011 01:47 pm Iustin Pop

Rename OpModifyNodeStorage and LUModifyNodeStorage

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

e0d4735f 01/18/2011 01:47 pm Iustin Pop

Rename OpPowercycleNode and LUPowercycleNode

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

2237687b 01/18/2011 01:47 pm Iustin Pop

Rename OpQueryNodes and LUQueryNodes

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

8ed55bfd 01/18/2011 01:47 pm Iustin Pop

Rename OpQueryNodeVolumes and LUQueryNodeVolumes

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

ad8d0595 01/18/2011 01:47 pm Iustin Pop

Rename OpQueryNodeStorage and LUQueryNodeStorage

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

73d565a3 01/18/2011 01:47 pm Iustin Pop

Rename OpRemoveNode and LURemoveNode

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

f13973c4 01/18/2011 01:47 pm Iustin Pop

Rename OpSetNodeParams and LUSetNodeParams

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

da2d02e7 01/18/2011 01:47 pm Iustin Pop

Rename OpDiagnoseOS and LUDiagnoseOS

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

3f0ab95f 01/18/2011 01:47 pm Iustin Pop

Rename OpDelTags and LUDelTags

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

75c866c2 01/18/2011 01:47 pm Iustin Pop

Rename OpMigrateInstance and LUMigrateInstance

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

0091b480 01/18/2011 01:47 pm Iustin Pop

Rename OpMoveInstance and LUMoveInstance

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

f2af0bec 01/18/2011 01:47 pm Iustin Pop

Rename OpQueryInstances and LUQueryInstances

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

dc28c4e4 01/18/2011 01:47 pm Iustin Pop

Rename OpQueryInstanceData and LUQueryInstanceData

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

90ab1a95 01/18/2011 01:47 pm Iustin Pop

Rename OpRebootInstance and LURebootInstance

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

6b273e78 01/18/2011 01:47 pm Iustin Pop

Rename OpRecreateInstanceDisks and LURecreateInstanceDisks

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

5073fd8f 01/18/2011 01:47 pm Iustin Pop

Rename OpReinstallInstance and LUReinstallInstance

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

3cd2d4b1 01/18/2011 01:47 pm Iustin Pop

Rename OpRemoveInstance and LURemoveInstance

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

5659e2e2 01/18/2011 01:47 pm Iustin Pop

Rename OpRenameInstance and LURenameInstance

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

668f755d 01/18/2011 01:47 pm Iustin Pop

Rename OpReplaceDisks and LUReplaceDisks

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

9a3cc7ae 01/18/2011 01:47 pm Iustin Pop

Rename OpSetInstanceParams and LUSetInstanceParams

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

ee3e37a7 01/18/2011 01:47 pm Iustin Pop

Rename OpShutdownInstance and LUShutdownInstance

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

bd8210a7 01/18/2011 01:47 pm Iustin Pop

Rename OpVerifyDisks and LUVerifyDisks

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

fabf1731 01/18/2011 01:47 pm Iustin Pop

Rename OpAddGroup and LUAddGroup

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

934704ae 01/18/2011 01:47 pm Iustin Pop

Rename OpAssignGroupNodes and LUAssignGroupNodes

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

d4d654bd 01/18/2011 01:47 pm Iustin Pop

Rename OpQueryGroups and LUQueryGroups

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

4d1baa51 01/18/2011 01:47 pm Iustin Pop

Rename OpRemoveGroup and LURemoveGroup

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

a8173e82 01/18/2011 01:47 pm Iustin Pop

Rename OpRenameGroup and LURenameGroup

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

7cbf74f0 01/18/2011 01:47 pm Iustin Pop

Rename OpSetGroupParams and LUSetGroupParams

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

83f5d475 01/18/2011 01:47 pm Iustin Pop

Rename OpActivateInstanceDisks and LUActivateInstanceDisks

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

cc0dec7b 01/18/2011 01:47 pm Iustin Pop

Rename OpConnectConsole and LUConnectConsole

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

e1530b10 01/18/2011 01:47 pm Iustin Pop

Rename OpCreateInstance and LUCreateInstance

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

e176281f 01/18/2011 01:47 pm Iustin Pop

Rename OpDeactivateInstanceDisks and LUDeactivateInstanceDisks

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

019dbee1 01/18/2011 01:47 pm Iustin Pop

Rename OpFailoverInstance and LUFailoverInstance

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

60472d29 01/18/2011 01:47 pm Iustin Pop

Rename OpGrowDisk and LUGrowDisk

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

71910715 01/18/2011 01:47 pm Iustin Pop

Rename OpPrepareExport and LUPrepareExport

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

7ca2d4d8 01/18/2011 01:47 pm Iustin Pop

Rename OpQueryExports and LUQueryExports

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

ca5890ad 01/18/2011 01:47 pm Iustin Pop

Rename OpRemoveExport and LURemoveExport

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

2f093ea0 01/18/2011 01:47 pm Iustin Pop

Rename OpQueryConfigValues and LUQueryConfigValues

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

c6d43e9e 01/18/2011 01:47 pm Iustin Pop

Rename OpDestroyCluster and LUDestroyCluster

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

bc84ffa7 01/18/2011 01:47 pm Iustin Pop

Rename OpPostInitCluster and LUPostInitCluster

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

a2f7ab92 01/18/2011 01:47 pm Iustin Pop

Rename OpQueryClusterInfo and LUQueryClusterInfo

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

d1240007 01/18/2011 01:47 pm Iustin Pop

Rename OpRedistributeConfig and LURedistributeConfig

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

e126df25 01/18/2011 01:47 pm Iustin Pop

Rename OpRenameCluster and LURenameCluster

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

5d01aca3 01/18/2011 01:47 pm Iustin Pop

Rename OpRepairDiskSizes and LURepairDiskSizes

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

a6682fdc 01/18/2011 01:47 pm Iustin Pop

Rename OpSetClusterParams and LUSetClusterParams

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

a3d32770 01/18/2011 01:47 pm Iustin Pop

Rename OpVerifyCluster and LUVerifyCluster

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

4ff922a2 01/18/2011 01:47 pm Iustin Pop

Rename OpExportInstance and LUExportInstance

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

ff6082e4 01/18/2011 01:47 pm Iustin Pop

Fix bug introduced by f5677ab

Commit f5677ab added the _VerifyOob functionality, but there are two
issues with this function:

- a real bug, as objects.Node doesn't have a 'master' attribute
- a design bug, as we need to verify the OOB programs not only on...

6d33a6eb 01/13/2011 06:11 pm Iustin Pop

Fix growing of DRBD disks

Patch 03941a26 made disk growth VG-aware, but the code has a bug: it
only works for LD_LV disks, and not LD_DRBD. To fix it, we add a
generic function to compute the per-VG growth requirements, and switch
to using that instead of manual build....

8572f1fe 01/13/2011 02:08 pm René Nussbaumer

List node parameters (if any) in gnt-node info

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

88be69ee 01/13/2011 02:08 pm René Nussbaumer

List node parameters in gnt-cluster info output

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

904b3bfe 01/12/2011 05:57 pm René Nussbaumer

gnt-group modify: ndparams not correctly updated

ndparams should delete keys which are reset to default

Signed-off-by: René Nussbaumer <>
Reviewed-by: Adeodato Simo <>
Reviewed-by: Guido Trotter <>

1d5f1b4c 01/11/2011 02:44 pm René Nussbaumer

Pause/Resume sync accordingly before wiping disk

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

96276ae7 01/10/2011 06:32 pm Adeodato Simo

Add OpAssignGroupNodes and LUAssignGroupNodes

This operation allows to assign nodes to a group, verifying whether
the change would leave any mirrored instance split between different
node groups.

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

3eff8ae6 01/10/2011 06:32 pm Adeodato Simo

Cluster verify warns if there are split instances

Emit a warning for each instance with a mirrored disk template that has
its primary and secondary nodes living in different node groups.

Signed-off-by: Adeodato Simo <>
Reviewed-by: Michael Hanselmann <>

a1cef11c 01/10/2011 11:47 am Iustin Pop

IAllocator: fix breakage for non-vm_capable nodes

Currently, the IAllocator doesn't know that non-vm_capable nodes
should not be queried for hypervisor/instance information.

This patch updates the node data computation to generate basic info,
but not the runtime data for such nodes. Furthermore, the...

55cc0a44 01/07/2011 05:34 pm Michael Hanselmann

Use new console information in hypervisor abstraction

This makes use of the new way of returning console information from the
master daemon. Unittests are included.

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