Commit
fe6287b4 made the --user-shutdown switch meaningful for Xen,
preventing USER_DOWN reporting if disabled. The QA turned this switch
on for KVM, where it is needed to start the specialized daemon, but
not for Xen. This patch fixes the discrepancy.
Signed-off-by: Hrvoje Ribicic <riba@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
primary = _GetInstanceField(instance.name, "pnode")
fn = lambda: AssertCommand(["xm", "shutdown", "-w", instance.name],
node=primary)
+
+ AssertCommand(["gnt-cluster", "modify", "--user-shutdown=true"])
_TestInstanceUserDown(instance, fn)
+ AssertCommand(["gnt-cluster", "modify", "--user-shutdown=false"])
@InstanceCheck(INST_UP, INST_UP, FIRST_ARG)