Commit 7a6d0dfa authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis

deploy: Fix gnt-cluster modify wrt disk templates

Modify --enabled-disk-templates and --ipolicy-disk-templates
at once otherwise an error is raised.
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
parent b400f4b9
...@@ -700,10 +700,10 @@ gnt-node modify --master-capable=yes {0} ...@@ -700,10 +700,10 @@ gnt-node modify --master-capable=yes {0}
# This is needed because MIN_VG_SIZE is constant and set to 20G # This is needed because MIN_VG_SIZE is constant and set to 20G
# and cluster modify --vg-name may result to: # and cluster modify --vg-name may result to:
# volume group 'ganeti' too small # volume group 'ganeti' too small
# But this check is made only ff a vm-capable node is found # But this check is made only if a vm-capable node is found
"gnt-cluster modify --enabled-disk-templates file,ext,plain \ "gnt-cluster modify --enabled-disk-templates file,ext,plain \
--ipolicy-disk-template file,ext,plain \
--vg-name=%s" % vg, --vg-name=%s" % vg,
"gnt-cluster modify --ipolicy-disk-template file,ext,plain",
] ]
@base.run_cmds @base.run_cmds
...@@ -711,8 +711,8 @@ gnt-node modify --master-capable=yes {0} ...@@ -711,8 +711,8 @@ gnt-node modify --master-capable=yes {0}
vg = self.cluster.vg vg = self.cluster.vg
return [ return [
"gnt-cluster modify --enabled-disk-templates file,ext,plain,drbd \ "gnt-cluster modify --enabled-disk-templates file,ext,plain,drbd \
--ipolicy-disk-template file,ext,plain,drbd \
--drbd-usermode-helper=/bin/true", --drbd-usermode-helper=/bin/true",
"gnt-cluster modify --ipolicy-disk-template file,ext,plain,drbd",
"gnt-cluster modify --disk-parameters=drbd:metavg=%s" % vg, "gnt-cluster modify --disk-parameters=drbd:metavg=%s" % vg,
"gnt-group modify --disk-parameters=drbd:metavg=%s default" % vg, "gnt-group modify --disk-parameters=drbd:metavg=%s default" % vg,
] ]
......
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