(2.13) Make 'access' an optional disk parameter
authorIlias Tsitsimpis <iliastsi@grnet.gr>
Tue, 13 May 2014 13:34:38 +0000 (16:34 +0300)
committerDimitris Aragiorgis <dimara@grnet.gr>
Thu, 29 May 2014 11:07:53 +0000 (14:07 +0300)
commit4f3bdf5a0cdff5afa7c213e3d8b5378917da6934
treeaad720830f6cb3fdf3342d1642928e60a55b4837
parentfc1ca91932b71aec6f2d31cc331f21157d52e583
(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.

If 'access' is not specified, the default value of the node-group
(possibly inherited from the cluster-wide settings) will be used. This
behavior is similar to what 'vg' and 'metavg' parameters do.

Currently this option works only for RBD and Gluster devices, since
these are the only templates that actually support the parameter.

Signed-off-by: Ilias Tsitsimpis <iliastsi@grnet.gr>
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
lib/cmdlib/instance.py
lib/cmdlib/instance_storage.py
src/Ganeti/Constants.hs
src/Ganeti/OpParams.hs
test/hs/Test/Ganeti/OpCodes.hs