Statistics
| Branch: | Tag: | Revision:

root / lib / cmdlib @ f6d4260c

Name Size
__init__.py 3.2 kB
backup.py 18 kB
base.py 17.5 kB
cluster.py 104.7 kB
common.py 34.8 kB
group.py 31.5 kB
instance.py 140.6 kB
instance_migration.py 35.9 kB
instance_operation.py 17.7 kB
instance_query.py 15 kB
instance_storage.py 93.4 kB
instance_utils.py 20.2 kB
misc.py 13.8 kB
network.py 21.3 kB
node.py 56.4 kB
operating_system.py 6.1 kB
query.py 2.8 kB
tags.py 5.9 kB
test.py 11.9 kB

Latest revisions

# Date Author Comment
f6d4260c 12/03/2013 02:59 pm Dimitris Aragiorgis

SetDiskID before accept instance RPC

This is needed for disk entries inside config data without
physical_id slot.

Signed-off-by: Dimitris Aragiorgis <>

b4076d8a 12/03/2013 01:17 pm Dimitris Aragiorgis

Support reseting arbitrary params for ext disks

If param=default and the param already exists then we remove
it from params dict. This is stolen by GetUpdatedParams() which
is used for hvparams modification/inheritance.

This means that 'default' value is unaccepted for an arbitrary...

5706396c 12/02/2013 07:41 pm Dimitris Aragiorgis

Export DISK_ID as the second part of logical_id

DISK_NAME already is exported and shows disk.name

Signed-off-by: Dimitris Aragiorgis <>

26e7a6c2 12/02/2013 06:16 pm Petr Pudlak

Lock group(s) when creating instances.

This is required to prevent race conditions such as removing a network
from a group and adding an instance at the same time. (See issue 621#2.)

Signed-off-by: Petr Pudlak <>

7a8d0d76 12/02/2013 04:56 pm Dimitris Aragiorgis

Allow modification of arbitrary params for ext

Signed-off-by: Dimitris Aragiorgis <>

11bd1fac 12/02/2013 12:36 pm Dimitris Aragiorgis

Export logical_id info to hooks env

Signed-off-by: Dimitris Aragiorgis <>

83e6917d 11/26/2013 04:52 pm Dimitris Aragiorgis

Fix a bug in InstanceSetParams concerning names

In case no name is passed in disk modifications we should
keep the old one. If name=none then set disk name to None.

Signed-off-by: Dimitris Aragiorgis <>

77ed6182 11/25/2013 06:39 pm Dimitris Aragiorgis

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.

TODO: find a less greedy way to fix that....

f71dde78 11/25/2013 05:57 pm Dimitris Aragiorgis

Fix NODE/NODE_RES locking in LUInstanceCreate

Both NODE and NODE_RES locks were acquired opportunistically if so
requested by the user. LUInstanceCreate requires, however, that the
actually locked elements on NODE and NODE_RES level are the same.

This patch changes the locking of NODE_RES such that those locks are...

7cfe1eb6 11/21/2013 04:34 pm Dimitris Aragiorgis

Introduce --hotplug-if-possible option

This will be useful for an external entity using RAPI that
wants to modify devices of instances.

The common use case for that is:
"I want to add a NIC/disk to an instance. If it is running
then try to hotplug the device. If not, then just add it to config."...

View revisions

Also available in: Atom