diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2018-11-05 20:08:43 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2018-11-05 20:09:12 +0800 |
commit | 43aad4c8b7f25976001067130b55486ad5ba98b4 (patch) | |
tree | dda016a8cb93ad5bfa7e691f21a75d63509e1e7d /deploy/adapters/ansible/roles | |
parent | 2a079467460c3d12672232607ded589280396c50 (diff) |
Add delay in nova when spinning VM
JIRA: -
Change-Id: I3c2e291fe41135b3653a78473e8851703184847f
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles')
-rw-r--r-- | deploy/adapters/ansible/roles/post-openstack/tasks/main.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/post-openstack/tasks/main.yml b/deploy/adapters/ansible/roles/post-openstack/tasks/main.yml index 0bd9aeff..0efa1cdf 100644 --- a/deploy/adapters/ansible/roles/post-openstack/tasks/main.yml +++ b/deploy/adapters/ansible/roles/post-openstack/tasks/main.yml @@ -86,3 +86,12 @@ state: restarted when: - inventory_hostname in groups['horizon'] + +- name: add sleep in nova + shell: + sed -i '/return self.driver.host_power_action/i\ time.sleep(2)' manager.py + args: + chdir: /openstack/venvs/nova-{{ openstack_release }}/lib/python2.7/site-packages/nova/compute + ignore_errors: true + when: + - inventory_hostname in groups['compute'] |