verify that the base configuration (e.g. bootstrapfs) is setup correctly.
authorStephen Soltesz <soltesz@cs.princeton.edu>
Mon, 29 Sep 2008 17:43:15 +0000 (17:43 +0000)
committerStephen Soltesz <soltesz@cs.princeton.edu>
Mon, 29 Sep 2008 17:43:15 +0000 (17:43 +0000)
qaapi/qa/tests/node/baseconfig.help [new file with mode: 0644]
qaapi/qa/tests/node/baseconfig.py [new file with mode: 0644]

diff --git a/qaapi/qa/tests/node/baseconfig.help b/qaapi/qa/tests/node/baseconfig.help
new file mode 100644 (file)
index 0000000..d96d175
--- /dev/null
@@ -0,0 +1,3 @@
+base config performs a basic sanity check on the base configuration, i.e. the
+bootstrapfs setup of a node.  I'm guessing that it will check for various
+configuration files, and perhaps various packages needed by the system.
diff --git a/qaapi/qa/tests/node/baseconfig.py b/qaapi/qa/tests/node/baseconfig.py
new file mode 100644 (file)
index 0000000..f3550f0
--- /dev/null
@@ -0,0 +1,23 @@
+#!/usr/bin/python
+
+import sys
+import os
+
+
+##################################################################################
+###  check for util-vserver 'chkconfig on'  ######################################
+##################################################################################
+files = [
+       '/etc/rc1.d/K90util-vserver',
+       '/etc/rc2.d/S10util-vserver',
+       '/etc/rc3.d/S10util-vserver',
+       '/etc/rc4.d/S10util-vserver',
+       '/etc/rc5.d/S10util-vserver',
+       '/etc/rc6.d/K90util-vserver',
+]
+for file in files:
+       if os.path.exits(file):
+               print "[PASSED] util-vserver init script is enabled."
+       else:
+               print "[FAILED] util-vserver does not appear to be enabled via 'chkconfig util-vserver on'."
+               sys.exit(1)