use new boot states
Thierry Parmentelat [Mon, 18 Aug 2008 06:35:21 +0000 (06:35 +0000)]
system/TestNode.py
system/selftest

index 23cc26a..7cc3602 100644 (file)
@@ -131,7 +131,7 @@ class TestNode:
 
     def reinstall_node (self):
         self.test_plc.apiserver.UpdateNode(self.test_plc.auth_root(),
-                                           self.name(),{'boot_state':'rins'})
+                                           self.name(),{'boot_state':'reinstall'})
         return True
     
     def configure_qemu(self):
index a14be16..595e8da 100755 (executable)
@@ -132,7 +132,7 @@ cat > $config <<EOF
 DeleteSite("$TESTSITE")
 AddSite({"name":"$TESTNAME","url":"$TESTURL","max_slices":10,"login_base":"$TESTSITE","is_public":True,"abbreviated_name":"$TESTABR"})
 # create a test node for qemu
-AddNode("st",{"boot_state":"rins","model":"qemu/minhw","hostname":"$TESTHOST","version":"$TESTVERS"})
+AddNode("st",{"boot_state":"reinstall","model":"qemu/minhw","hostname":"$TESTHOST","version":"$TESTVERS"})
 # set up the interface setting for qemu
 AddInterface("$TESTHOST",{"network":"10.0.2.0","hostname":"$TESTHOST","is_primary":True,"dns1":"$SELF_IP","method":"static","type":"ipv4","netmask":"255.255.255.0","broadcast":"10.0.2.255","gateway":"10.0.2.2"})
 # Download the node's boot cd iso