Revision d7e49c13 qa/qa_node.py
b/qa/qa_node.py | ||
---|---|---|
88 | 88 |
"""gnt-node failover""" |
89 | 89 |
master = qa_config.GetMasterNode() |
90 | 90 |
|
91 |
if qa_utils.GetNodeInstances(node2): |
|
91 |
if qa_utils.GetNodeInstances(node2, secondaries=False):
|
|
92 | 92 |
raise qa_errors.UnusableNodeError("Secondary node has at least one " |
93 | 93 |
"primary instance. This test requires " |
94 | 94 |
"it to have no primary instances.") |
... | ... | |
110 | 110 |
|
111 | 111 |
node3 = qa_config.AcquireNode(exclude=[node, node2]) |
112 | 112 |
try: |
113 |
if qa_utils.GetNodeInstances(node3): |
|
113 |
if qa_utils.GetNodeInstances(node3, secondaries=True):
|
|
114 | 114 |
raise qa_errors.UnusableNodeError("Evacuation node has at least one " |
115 | 115 |
"secondary instance. This test requires " |
116 | 116 |
"it to have no secondary instances.") |
Also available in: Unified diff