Revision 049a6c6b

b/qa/qa_instance.py
607 607
    print qa_utils.FormatInfo("Test only supported for the file disk template")
608 608
    return
609 609

  
610
  cluster_name = qa_config.get("name")
611

  
610 612
  name = instance.name
611 613
  current = currentnode.primary
612 614
  other = othernode.primary
......
619 621
  AssertCommand(["gnt-instance", "modify", "--new-primary=%s" % other, name],
620 622
                fail=True)
621 623
  AssertCommand(["gnt-instance", "shutdown", name])
622
  AssertCommand(["scp", "-r", disk, "%s:%s" % (other, filestorage)])
624
  AssertCommand(["scp", "-oGlobalKnownHostsFile=%s" %
625
                 pathutils.SSH_KNOWN_HOSTS_FILE,
626
                 "-oCheckHostIp=no", "-oStrictHostKeyChecking=yes",
627
                 "-oHashKnownHosts=no", "-oHostKeyAlias=%s" % cluster_name,
628
                 "-r", disk, "%s:%s" % (other, filestorage)])
623 629
  AssertCommand(["gnt-instance", "modify", "--new-primary=%s" % other, name])
624 630
  AssertCommand(["gnt-instance", "startup", name])
625 631

  

Also available in: Unified diff