Commit f9a429c6 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis

deploy: Add gnt-os modify for snf-image

Set default os parameters for snf-image that are valid for
the debian_base image.
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
parent 16cf905a
......@@ -494,6 +494,7 @@ class VMC(base.Component):
self.MASTER.add_node(self.node)
self.MASTER.enable_lvm()
self.MASTER.enable_drbd()
self.MASTER.modify_os()
class LVM(base.Component):
......@@ -717,6 +718,16 @@ gnt-node modify --master-capable=yes {0}
"gnt-group modify --disk-parameters=drbd:metavg=%s default" % vg,
]
@base.run_cmds
def modify_os(self):
os = """
gnt-os modify \
--os-parameters=img_passwd={0},img_format={1},img_id={2},img_properties={3} \
snf-image+default
""".format("12345678", "diskdump", "debian_base",
"'{\"OSFAMILY\":\"linux\"\\,\"ROOT_PARTITION\":\"1\"}'")
return [os]
@base.run_cmds
def initialize(self):
std = "cpu-count=1,disk-count=1,disk-size=1024"
......
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