diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2018-11-07 20:20:17 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2018-11-07 20:22:17 +0800 |
commit | f0cfbec4469e30292f0e7fee0075b0e1e04cdf07 (patch) | |
tree | 5b88380a4fe6958fd341464834d15f1c323d9542 /deploy/adapters/ansible/roles/post-openstack/tasks/nova_patch.yml | |
parent | a60e70f7375a7371b0295d7eb659a7204b402d91 (diff) |
Patch nova to fix functest issue
JIRA:-
Change-Id: Ia10c35e5feb91200fba61ba36d76555f53babe18
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/post-openstack/tasks/nova_patch.yml')
-rwxr-xr-x | deploy/adapters/ansible/roles/post-openstack/tasks/nova_patch.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/post-openstack/tasks/nova_patch.yml b/deploy/adapters/ansible/roles/post-openstack/tasks/nova_patch.yml new file mode 100755 index 00000000..8a35ab62 --- /dev/null +++ b/deploy/adapters/ansible/roles/post-openstack/tasks/nova_patch.yml @@ -0,0 +1,23 @@ +############################################################################# +# Copyright (c) 2018 HUAWEI TECHNOLOGIES CO.,LTD and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## +--- +- name: copy manager.py.patch + copy: + src: manager.py.patch + dest: /openstack/venvs/nova-{{ openstack_release }}/lib/python2.7/site-packages/nova/compute + +- name: patch manager.py.patch + shell: + patch -p0 < manager.py.patch + args: + chdir: /openstack/venvs/nova-{{ openstack_release }}/lib/python2.7/site-packages/nova/compute + +- name: restart nova-compute + shell: + systemctl restart nova-compute |