Slight change to the LU initialization code
authorIustin Pop <iustin@google.com>
Tue, 25 Nov 2008 12:57:13 +0000 (12:57 +0000)
committerIustin Pop <iustin@google.com>
Tue, 25 Nov 2008 12:57:13 +0000 (12:57 +0000)
commit4be4691d5be0f08780678b18f75ed55b03fdba57
tree76aa90b15b8e784b4229f5fb58dbcd9d56899014
parentb637ae4da36fbb36a926fdd1f9d9c0d76f8a9ab8
Slight change to the LU initialization code

This patch adds support for a separate LU.CheckArguments() method which
should do syntactic checks without holding locks and without polluting
the ExpandNames which is a lock-related function. See for example the
FIXME in LUSetInstanceParams.CheckPrereq.

The patch also removes the REQ_MASTER and IsCluster checks since with
the current architecture, inside LU code we are always in a valid
cluster and we are always running on the master node.

Reviewed-by: ultrotter
lib/cmdlib.py