From: Yifei Xue Date: Thu, 16 Nov 2017 08:22:50 +0000 (+0800) Subject: Add timeout and delay time to fix the reboot problem X-Git-Tag: opnfv-6.0.0~96^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=76d56a89cb9c3a3e07a4e1c58561f076eeb0298a;p=compass4nfv.git Add timeout and delay time to fix the reboot problem of rt_kvm scenario JIRA: - The rt_kvm scenario deployment always fails on Huawei Pod2 while running reboot task. However it's fine on Huawei Pod1. We think it may be caused by the performance of Pod1. Pod1 truely has a lower performance than Pod2. So we add timeout and delay time to verify our idea. Change-Id: I56acc88354abcdd4ba72c7d24980033871972688 Signed-off-by: Yifei Xue --- diff --git a/plugins/dpdk/roles/ins_dpdk/tasks/hugepages.yml b/plugins/dpdk/roles/ins_dpdk/tasks/hugepages.yml index 3f41cf03..d68fc031 100644 --- a/plugins/dpdk/roles/ins_dpdk/tasks/hugepages.yml +++ b/plugins/dpdk/roles/ins_dpdk/tasks/hugepages.yml @@ -41,5 +41,5 @@ - name: Wait for reboot local_action: module: wait_for - host={{ ansible_eth0.ipv4.address }} port=22 delay=1 timeout=300 + host={{ ansible_eth0.ipv4.address }} port=22 delay=10 timeout=1200 when: check_result.rc == 1 diff --git a/plugins/rt_kvm/roles/rt_kvm/tasks/kvm.yml b/plugins/rt_kvm/roles/rt_kvm/tasks/kvm.yml index 5d3ca7bc..289ab19d 100644 --- a/plugins/rt_kvm/roles/rt_kvm/tasks/kvm.yml +++ b/plugins/rt_kvm/roles/rt_kvm/tasks/kvm.yml @@ -37,4 +37,4 @@ - name: wait for reboot local_action: module: wait_for - host={{ ansible_eth0.ipv4.address }} port=22 delay=1 timeout=600 + host={{ ansible_eth0.ipv4.address }} port=22 delay=10 timeout=1200