Commit fcc27323 authored by Jose A. Lopes's avatar Jose A. Lopes
Browse files

Fix 'UserDown' QA



Increase instance shutdown timeout and make call 'pkill' more
reliable, which should fix the KVM QA.
Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
parent 483e3012
......@@ -1158,8 +1158,8 @@ def _TestInstanceUserDownXen(instance, master):
@InstanceCheck(INST_UP, INST_UP, FIRST_ARG)
def _TestInstanceUserDownKvm(instance, master):
def _StopKVMInstance():
AssertCommand("pkill -f \"kvm -name %s\"" % instance.name, node=primary)
time.sleep(5)
AssertCommand("pkill -f \"\\-name %s\"" % instance.name, node=primary)
time.sleep(10)
AssertCommand(["gnt-instance", "modify", "-H", "user_shutdown=true",
instance.name])
......
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