Statistics
| Branch: | Tag: | Revision:

root / lib / cmdlib @ fcbf3d43

Name Size
__init__.py 3.8 kB
backup.py 18.9 kB
base.py 19.1 kB
cluster.py 123.9 kB
common.py 43.6 kB
group.py 36.1 kB
instance.py 152 kB
instance_migration.py 38.4 kB
instance_operation.py 16.7 kB
instance_query.py 17.1 kB
instance_storage.py 99.7 kB
instance_utils.py 22.5 kB
misc.py 14.7 kB
network.py 22.6 kB
node.py 60.8 kB
operating_system.py 6.8 kB
query.py 3.4 kB
tags.py 6.9 kB
test.py 12.4 kB

Latest revisions

# Date Author Comment
b6e31c23 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Let drbd disks resync during cluster verify

Commit 9b0e86e issues an error during cluster verify if the status
of DRBD is degraded and if the local disk is not UpToDate.

Still in case of a newly created instance or a newly attached disk with
--no-wait-for-sync, if a cluster verify runs it will report errors...

acd77fbd 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Export logical_id info to hooks env

..and let utils compute the hooks environment related to disks.

Until now, the only exported information regarding disks in hooks
context was their size, mode, name and uuid.

With this patch, depending on the disk template, we export the info...

4fd90052 12/11/2014 12:54 pm Dimitris Aragiorgis

(2.13) Allow NICs with routed mode and no IP

..in case attached to a network.

This allows us to define an IPv6 only network (currently with a
dummy IPv4 subnet) with connectivity mode 'routed' and let a NIC
inside this network have only an IPv6 address, e.g. an...

933147e3 12/11/2014 12:54 pm Ilias Tsitsimpis

(2.13) Pass the access parameter to ExtStorage template

Add the ExtStorage template to the set of templates that accept the
'access' parameter. The default 'access' of the node-group for
ExtStorage devices will be 'kernelspace'.

Update the man page for gnt-instance to state that ExtStorage templates...

a34f2caf 12/11/2014 12:54 pm Ilias Tsitsimpis

(2.13) Handle IDISK_ACCESS parameter in ComputeDisks

The IDISK_ACCESS disk parameter was not handled in the 'ComputeDisks'
function, thus the 'access' parameter was ignored during the instance
creation. This patch fixes this and also fixes a typo in
'_VerifyDiskModification'....

8e56ecfb 12/11/2014 12:54 pm Ilias Tsitsimpis

(2.13) Make 'access' an optional disk parameter

This patch makes 'access' an optional disk parameter just like
spindles, mode, name, vg and metavg. This option can only be set to
'kernelspace' or 'userspace'. When 'userspace' is used, the instance
will access this disk directly without going through a block device....

1fdfe8d1 12/11/2014 12:53 pm Dimitris Aragiorgis

(2.8r) Workaround for Issue 621

Upon LUNetworkDisconnect() and LUNetworkConnect() try to acquire
all cluster's instances.

By that _LS_ACQUIRE_ALL acquire mode is set and not
_LS_ACQUIRE_EXACT and thus the deleted lock does cause any problem.

NOTE: This workaround is not merged upstream. They prefer to have...

a8f2733b 09/25/2014 05:53 pm Dimitris Aragiorgis

Fix DRBD version check for non VM capable nodes

Commit 742dc8de revealed a bug concerning DRBD version check during
cluster verify: In case non VM cabables nodes have DRBD not
installed, we get a version mismatch warning.

VerifyNode() updates the NV_DRBDVERSION key in the response message...

29625e5a 09/25/2014 11:27 am Helga Velroyen

Renaming NV_VMNODES to NV_NONVMNODES

This patch renames the constant 'NV_VMNODES' to
'NV_NONVMNODES' as it is actually used to store
a list of non vm-capable nodes.

Signed-off-by: Helga Velroyen <>
Reviewed-by: Hrvoje Ribicic <>

742dc8de 09/25/2014 11:26 am Helga Velroyen

Node names in NV_VMNODES

This patch populates the list 'NV_VMNODES' with node
names and not node UUIDs, as the backend only uses this
list to identify VM-capable nodes by querying for the
node name.

Signed-off-by: Helga Velroyen <>
Reviewed-by: Hrvoje Ribicic <>

View revisions

Also available in: Atom