(2.11) Make disk.name and disk.uuid available in bdev
authorDimitris Aragiorgis <dimara@grnet.gr>
Mon, 10 Mar 2014 10:19:17 +0000 (12:19 +0200)
committerDimitris Aragiorgis <dimara@grnet.gr>
Thu, 27 Mar 2014 08:01:18 +0000 (10:01 +0200)
commitea1c35c8d173679aa302ecfb87cdf73123fcaf22
treeefc7889e6f13ecd03fb925989847ee59110e9153
parent1ec375e980032905019d4f75231e2276b8132838
(2.11) Make disk.name and disk.uuid available in bdev

Until now Disk name and uuid was not available on bdev level.
In case of ExtStorage, this info is useful, and may be for other
templates in the future too.

This patch treats the name and uuid object slots just like the size
one and passes them to BlockDev.__init__() and to BlockDev.Create().

The ExtStrorage interface exports these options to scripts via the
VOL_CNAME and VOL_UUID environment variables.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>

This should be backported since in stable-2.11 bdev.py is split
in lib/storage/*.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
lib/bdev.py
man/ganeti-extstorage-interface.rst