test nodes use plain bootstrapfs
Thierry Parmentelat [Mon, 24 Nov 2008 20:31:07 +0000 (20:31 +0000)]
system/TestApiserver.py
system/TestNode.py
system/TestPlc.py

index 740ae85..41823e2 100644 (file)
@@ -5,6 +5,7 @@ import xmlrpclib
 
 server_methods = [ ('GetNodes' ,  []),
                    ('AddNode' , True),
+                   ('SetNodePlainBootstrapfs', True),
                    ('DeleteNode' , True),
                    ('UpdateNode' , True),
                    ('AddInterface' , True),
index 4cb2215..e4ba823 100644 (file)
@@ -67,6 +67,7 @@ class TestNode:
         server.AddNode(userauth,
                        self.test_site.site_spec['site_fields']['login_base'],
                        self.node_spec['node_fields'])
+        server.SetNodePlainBootstrapfs(self.node_spec['node_fields']['hostname'],'YES')
         # create as reinstall to avoid user confirmation
         server.UpdateNode(userauth, self.name(), {'boot_state':'reinstall'})
         # populate network interfaces - primary
index 9b5a32f..d4172e1 100644 (file)
@@ -515,7 +515,8 @@ class TestPlc:
             raise Exception, "Unsupported personality %r"%self.options.personality
         return \
             self.run_in_guest("yum -y install myplc-native")==0 and \
-            self.run_in_guest("yum -y install noderepo-%s-%s"%(self.options.pldistro,arch))==0
+            self.run_in_guest("yum -y install noderepo-%s-%s"%(self.options.pldistro,arch))==0 and \
+            self.run_in_guest("yum -y install bootstrapfs-%s-%s-plain"%(self.options.pldistro,arch))==0 
 
     ### 
     def configure(self):