Commit b2525349 authored by Thomas Thrainer's avatar Thomas Thrainer
Browse files

Disable failing QA test



See issue 516 for an explanation of the problem, and why it was required
to disable this test.
Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 2b5b6da1
......@@ -33,7 +33,6 @@ from ganeti import utils
from ganeti import pathutils
import qa_config
import qa_daemon
import qa_utils
import qa_error
import qa_instance
......@@ -348,42 +347,46 @@ def TestClusterVerify():
AssertCommand(["gnt-cluster", "verify-disks"])
# pylint: disable=W0613
def TestClusterVerifyDisksBrokenDRBD(instance, inst_nodes):
"""gnt-cluster verify-disks with broken DRBD"""
qa_daemon.TestPauseWatcher()
pass
try:
info = qa_instance.GetInstanceInfo(instance.name)
snode = inst_nodes[1]
for idx, minor in enumerate(info["drbd-minors"][snode.primary]):
if idx % 2 == 0:
break_drbd_cmd = \
"(drbdsetup %d down >/dev/null 2>&1;" \
" drbdsetup down resource%d >/dev/null 2>&1) || /bin/true" % \
(minor, minor)
else:
break_drbd_cmd = \
"(drbdsetup %d detach >/dev/null 2>&1;" \
" drbdsetup detach %d >/dev/null 2>&1) || /bin/true" % \
(minor, minor)
AssertCommand(break_drbd_cmd, node=snode)
verify_output = GetCommandOutput(qa_config.GetMasterNode().primary,
"gnt-cluster verify-disks")
activation_msg = "Activating disks for instance '%s'" % instance.name
if activation_msg not in verify_output:
raise qa_error.Error("gnt-cluster verify-disks did not activate broken"
" DRBD disks:\n%s" % verify_output)
verify_output = GetCommandOutput(qa_config.GetMasterNode().primary,
"gnt-cluster verify-disks")
if activation_msg in verify_output:
raise qa_error.Error("gnt-cluster verify-disks wants to activate broken"
" DRBD disks on second attempt:\n%s" % verify_output)
AssertCommand(_CLUSTER_VERIFY)
finally:
qa_daemon.TestResumeWatcher()
# FIXME (thomasth): reenable once it works (see issue 516!)
# qa_daemon.TestPauseWatcher()
#
# try:
# info = qa_instance.GetInstanceInfo(instance.name)
# snode = inst_nodes[1]
# for idx, minor in enumerate(info["drbd-minors"][snode.primary]):
# if idx % 2 == 0:
# break_drbd_cmd = \
# "(drbdsetup %d down >/dev/null 2>&1;" \
# " drbdsetup down resource%d >/dev/null 2>&1) || /bin/true" % \
# (minor, minor)
# else:
# break_drbd_cmd = \
# "(drbdsetup %d detach >/dev/null 2>&1;" \
# " drbdsetup detach %d >/dev/null 2>&1) || /bin/true" % \
# (minor, minor)
# AssertCommand(break_drbd_cmd, node=snode)
#
# verify_output = GetCommandOutput(qa_config.GetMasterNode().primary,
# "gnt-cluster verify-disks")
# activation_msg = "Activating disks for instance '%s'" % instance.name
# if activation_msg not in verify_output:
# raise qa_error.Error("gnt-cluster verify-disks did not activate broken"
# " DRBD disks:\n%s" % verify_output)
#
# verify_output = GetCommandOutput(qa_config.GetMasterNode().primary,
# "gnt-cluster verify-disks")
# if activation_msg in verify_output:
# raise qa_error.Error("gnt-cluster verify-disks wants to activate broken"
# " DRBD disks on second attempt:\n%s" % verify_output)
#
# AssertCommand(_CLUSTER_VERIFY)
# finally:
# qa_daemon.TestResumeWatcher()
def TestJobqueue():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment