# with the node flavour that goes with bonding plc
for tag in ['arch', 'fcdistro', 'pldistro']:
node_spec['tags'][tag] = self.bonding_spec[tag]
- # do not use plain bootstrapfs
- del node_spec['tags']['plain-bootstrapfs']
#################### steps
def init_partial(self):
print("Flavour for {} : {}".format(self.name(), flavour))
return True
- def nodeplain_set(self, plain):
- " set bootstrapfs-plain tag on nodes"
- self.test_plc.apiserver.SetNodePlainBootstrapfs(self.test_plc.auth_root(),
- self.name(), plain)
- return True
- def nodeplain_on(self):
- return self.nodeplain_set("True")
- def nodeplain_off(self):
- return self.nodeplain_set("")
- def nodeplain_show(self):
- "display bootstrapfs-plain tag"
- if self.dry_run():
- print("Dry_run: would fetch node plain-bootstrapfs tag")
- return True
- plain = self.test_plc.apiserver.GetNodePlainBootstrapfs(self.test_plc.auth_root(),
- self.name())
- print("Plain bootstrapfs for {} is {}".format(self.name(), plain))
- return True
-
def qemu_local_config(self):
"all nodes: compute qemu config qemu.conf and store it locally"
if not self.is_qemu():
'nodestate_show','nodestate_safeboot','nodestate_boot', 'nodestate_upgrade', SEP,
'nodeflavour_show','nodedistro_f14','nodedistro_f18', SEP,
'nodedistro_f20', 'nodedistro_f21','nodedistro_f22', SEP,
- 'nodeplain_on','nodeplain_off','nodeplain_show', SEP,
'qemu_list_all', 'qemu_list_mine', 'qemu_kill_all', SEP,
'sfa_install_core', 'sfa_install_sfatables', 'sfa_install_plc', 'sfa_install_client', SEPSFA,
'sfa_plcclean', 'sfa_dbclean', 'sfa_stop','sfa_uninstall', 'sfi_clean', SEPSFA,
### install_rpm
def plc_install(self):
"""
- yum install myplc, noderepo + plain bootstrapfs as well
+ yum install myplc, noderepo
"""
# compute nodefamily
pkgs_list.append("slicerepo-{}".format(nodefamily))
pkgs_list.append("myplc")
pkgs_list.append("noderepo-{}".format(nodefamily))
- pkgs_list.append("nodeimage-{}-plain".format(nodefamily))
pkgs_string=" ".join(pkgs_list)
return self.yum_install(pkgs_list)
def nodedistro_f22(self): pass
@node_mapper
def nodeflavour_show(self): pass
- @node_mapper
- def nodeplain_on(self): pass
- @node_mapper
- def nodeplain_off(self): pass
- @node_mapper
- def nodeplain_show(self): pass
### check hooks : invoke scripts from hooks/{node,slice}
def check_hooks_node(self):
'next_hop' : 'xxx-deferred-xxx',
},
'bootmedium_options' : [ 'serial', 'no-hangcheck', 'systemd-debug' ],
- # do not use plain bootstrapfs anymore as
- # it tends to make bonding awkward (it's complicated enough already)
- # plus, benefits are not clear any more, and it's closer to real life
'tags' : {
-# 'plain-bootstrapfs' : 'YES',
+ # no tags anymore
},
# boot cd settings
# we should have tags here instead of the hard-wired