in TestNodeAddAll QA. This is a test for issue 1126.
Signed-off-by: BSRK Aditya <[email protected]>
---
qa/qa_node.py | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/qa/qa_node.py b/qa/qa_node.py
index b752932..a8924cb 100644
--- a/qa/qa_node.py
+++ b/qa/qa_node.py
@@ -93,6 +93,29 @@ def TestNodeAddAll():
if node != master:
NodeAdd(node, readd=False)
+ for node in qa_config.get("nodes"):
+ def getNonStartDaemons():
+ cmd = utils.ShellQuoteArgs(["ps", "-Ao", "comm"])
+ prcs = AssertCommand(cmd, node=node)[1]
+
+ nonStartDaemons = []
+ def addIfNotStarted(daemon):
+ if daemon not in prcs:
+ nonStartDaemons.append(daemon)
+
+ addIfNotStarted('ganeti-noded')
+ if constants.ENABLE_MOND:
+ addIfNotStarted('ganeti-mond')
+ if node == master:
+ addIfNotStarted('ganeti-wconfd')
+ addIfNotStarted('ganeti-rapi')
+ addIfNotStarted('ganeti-luxid')
+ addIfNotStarted('ganeti-maintd')
+ return nonStartDaemons
+
+ nsd = getNonStartDaemons()
+ for daemon in nsd:
+ raise qa_error.Error(daemon + ' is not running at %s' % node.primary)
def MarkNodeAddedAll():
"""Mark all nodes as added.
--
2.6.0.rc2.230.g3dd15c0