Extend DRBD disks with shared secret attribute
authorIustin Pop <iustin@google.com>
Mon, 29 Sep 2008 13:15:08 +0000 (13:15 +0000)
committerIustin Pop <iustin@google.com>
Mon, 29 Sep 2008 13:15:08 +0000 (13:15 +0000)
commitf9518d384bec1a7ec62e53675f8d8e54f6c1f22b
treefde0542552b6df63f3f1a8bf8884e86e97cb6a77
parent191712c08fff29c78492c88262a0bf002b6ca810
Extend DRBD disks with shared secret attribute

This patch, which is similar to r1679 (Extend DRBD disks with minors
attribute), extends the logical and physical id of the DRBD disks with a
shared secret attribute. This is generated at disk creation time and
saved in the config file.

The generation of the secret is done so that we don't have duplicates in
the configuration (otherwise the goal of preventing cross-connection
will not be reached), so we add to config.py more than just a simple
call to utils.GenerateSecret().

The patch does not yet enable the use of the secrets.

Reviewed-by: imsnah
lib/bdev.py
lib/cmdlib.py
lib/config.py
lib/objects.py