X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2FTestPlc.py;h=3d8de365b9f3efe0a2c4946d3ba9c23b854efe00;hb=890d71f31cf0a54b84ee8350cc427f6873de76b6;hp=2f994f27a79549d2111b10644094511f3de3a27b;hpb=9385eabe5ac58244848c08805f0bec15c7e11009;p=tests.git diff --git a/system/TestPlc.py b/system/TestPlc.py index 2f994f2..3d8de36 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -204,7 +204,7 @@ class TestPlc: 'check_netflow','check_drl', SEP, 'debug_nodemanager', 'slice_fs_present', SEP, 'standby_1_through_20','yes','no',SEP, - 'install_syslinux6', 'installed_bonds', SEP, + 'install_syslinux6', 'bonding_builds', 'bonding_nodes', SEP, ] default_bonding_steps = [ 'bonding_init_partial', @@ -724,6 +724,7 @@ class TestPlc: 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) @@ -742,13 +743,24 @@ class TestPlc: self.run_in_guest("rpm --import {key}".format(**locals())) return self.run_in_guest("yum -y localinstall {}".format(" ".join(rpms))) == 0 - def installed_bonds(self): + def bonding_builds(self): """ list /etc/yum.repos.d on the myplc side """ self.run_in_guest("ls /etc/yum.repos.d/*partial.repo") return True - + + def bonding_nodes(self): + """ + List nodes known to the myplc together with their nodefamiliy + """ + print("---------------------------------------- nodes") + for node in self.apiserver.GetNodes(self.auth_root()): + print("{} -> {}".format(node['hostname'], + self.apiserver.GetNodeFlavour(self.auth_root(),node['hostname'])['nodefamily'])) + print("---------------------------------------- nodes") + + ### def mod_python(self): """yum install mod_python, useful on f18 and above so as to avoid broken wsgi"""