提交 303cc51c 编写于 作者: Y Yihuang Yu

ansible_test: Log into the guest at first to ensure it is available

Sometimes, guest can return its IP address before it is available, and
the ansible-playbook command failed to execute through ssh connection.
So log into the guest at first.
Signed-off-by: NYihuang Yu <yihyu@redhat.com>
上级 195b754d
......@@ -43,7 +43,8 @@ def run(test, params, env):
vm = env.get_vm(params["main_vm"])
vm.verify_alive()
guest_ip = vm.wait_for_get_address(0, get_ip_timeout)
vm.wait_for_login()
guest_ip = vm.get_address()
logging.info("Cloning %s", playbook_repo)
process.run("git clone {src} {dst}".format(src=playbook_repo,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册