From: Thierry Parmentelat Date: Fri, 14 Jan 2011 08:47:35 +0000 (+0100) Subject: add safeboot_node target X-Git-Tag: tests-5.0-22~6 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ac99c0d0dca7e345a97a92133b2cdb6040568dd6;p=tests.git add safeboot_node target --- diff --git a/system/TestNode.py b/system/TestNode.py index 4b5d99f..380d8a9 100644 --- a/system/TestNode.py +++ b/system/TestNode.py @@ -140,6 +140,11 @@ class TestNode: self.name(),{'boot_state':'reinstall'}) return True + def safeboot_node (self): + self.test_plc.apiserver.UpdateNode(self.test_plc.auth_root(), + self.name(),{'boot_state':'safeboot'}) + return True + def configure_qemu(self): if not self.is_qemu(): return diff --git a/system/TestPlc.py b/system/TestPlc.py index 33cade1..4911647 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -110,7 +110,7 @@ class TestPlc: 'clean_sites', 'clean_nodes', 'clean_slices', 'clean_keys', SEP, 'clean_leases', 'list_leases', SEP, 'populate' , SEP, - 'list_all_qemus', 'list_qemus', 'kill_qemus', SEP, + 'safeboot_node','list_all_qemus', 'list_qemus', 'kill_qemus', SEP, 'plcclean_sfa', 'dbclean_sfa', 'stop_sfa','uninstall_sfa', 'clean_sfi', SEP, 'db_dump' , 'db_restore', SEP, 'standby_1 through 20',SEP, @@ -934,6 +934,10 @@ class TestPlc: "all nodes: mark PLCAPI boot_state as reinstall" pass @node_mapper + def safeboot_node (self): + "all nodes: mark PLCAPI boot_state as safeboot" + pass + @node_mapper def export_qemu (self): "all nodes: push local node-dep directory on the qemu box" pass