(2.8r) Workaround for Issue 621
authorDimitris Aragiorgis <dimara@grnet.gr>
Mon, 25 Nov 2013 16:25:08 +0000 (18:25 +0200)
committerDimitris Aragiorgis <dimara@grnet.gr>
Tue, 17 Dec 2013 10:46:25 +0000 (12:46 +0200)
commitadea59b3614e796a9b7fa9fdac9b9fd7d7500c47
treedfae5de25183922fe5a16dfd07ae56940719716e
parent7bc2c09762fbd1cf6328081263014edcd3e53e4b
(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
one opcode fail and make the end user retry, rather than have a
greedy way that locks all instances to resolve this. Since synnefo
does not use nodegroups, locking all instances is the same with
locking instances on default nodegroup.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
lib/cmdlib/network.py