- Failover back to original node in instance failure test
- Exclude secondary node from list of potential nodes in
replace-disks test
Reviewed-by: iustinp
RunTest(qa_instance.TestInstanceFailover, instance)
if qa_config.TestEnabled('instance-replace-disks'):
- othernode = qa_config.AcquireNode(exclude=pnode)
+ othernode = qa_config.AcquireNode(exclude=[pnode, snode])
try:
RunTest(qa_instance.TestReplaceDisks,
instance, pnode, snode, othernode)
AssertEqual(StartSSH(master['primary'],
utils.ShellQuoteArgs(cmd)).wait(), 0)
+ # ... and back
+ cmd = ['gnt-instance', 'failover', '--force', instance['name']]
+ AssertEqual(StartSSH(master['primary'],
+ utils.ShellQuoteArgs(cmd)).wait(), 0)
+
@qa_utils.DefineHook('instance-info')
def TestInstanceInfo(instance):