diff options
author | 2018-11-02 17:34:22 +0800 | |
---|---|---|
committer | 2018-11-02 17:36:42 +0800 | |
commit | 0a47bc97aec08c5cc7c091acdf92e3e29900191a (patch) | |
tree | 50b563ef70e17ee9394c4dfd0684802a549aade3 /deploy/adapters/ansible/roles/config-osa | |
parent | e1f6036aaac72955e32c28dc656f72ce55049105 (diff) |
Add delay in Nova to solve dhcp issue
JIRA: -
VM starts before the openflow is created in
br-int which cause first round dhcp request
can't be sent to controller.
Change-Id: Ie2de5a70890f3d0e9f383c9ccb0aa1126f25b2c8
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/config-osa')
-rwxr-xr-x | deploy/adapters/ansible/roles/config-osa/tasks/main.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml index 6f43e7fd..2be4e646 100755 --- a/deploy/adapters/ansible/roles/config-osa/tasks/main.yml +++ b/deploy/adapters/ansible/roles/config-osa/tasks/main.yml @@ -428,3 +428,16 @@ when: - checkresult.rc == 0 - offline_deployment is defined and offline_deployment == "Disable" + +- name: Add sleep in host_power_action + blockinfile: + dest: /etc/ansible/roles/repo_build/tasks/repo_clone_git.yml + block: | + {% raw %} + - name: Add sleep in host_power_action + shell: + sed -i '/return self.driver.host_power_action/i\ time.sleep(2)' manager.py + args: + chdir: "{{ repo_build_git_dir}}/nova/nova/compute" + ignore_errors: true + {% endraw %} |