Commit f8f1ec25 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis Committed by Klaus Aehlig

Check drbd helper only in VM capable nodes

Upon change of enabled disk templates, Ganeti checks for a valid drbd
helper among all nodes. Let those nodes be only the VM capable ones.
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 4922cd73
......@@ -996,7 +996,8 @@ class LUClusterSetParams(LogicalUnit):
drbd_enabled = constants.DT_DRBD8 in enabled_disk_templates
drbd_gets_enabled = constants.DT_DRBD8 in new_enabled_disk_templates
self._CheckDrbdHelper(node_uuids, drbd_enabled, drbd_gets_enabled)
self._CheckDrbdHelper(vm_capable_node_uuids,
drbd_enabled, drbd_gets_enabled)
# validate params changes
if self.op.beparams:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment