aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2016-07-28 00:54:41 +0800
committerQiLiang <liangqi1@huawei.com>2016-07-28 00:59:07 +0800
commit4e4a109762f452f12caf86e036eb9704ca111cab (patch)
tree8bb1e81b492c1b3a28b4b21351833d9bb65c3cd5 /deploy
parent3f8f101b2559e0e3e96a7780658488defc57114d (diff)
Workaround for openstack api access random failure
JIRA: COMPASS-446 Change-Id: I0f67779786d53ca8ec1d16a05a21a10267f83471 Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'deploy')
-rw-r--r--deploy/adapters/ansible/roles/ext-network/tasks/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/ext-network/tasks/main.yml b/deploy/adapters/ansible/roles/ext-network/tasks/main.yml
index cb6cb2ce..ad427691 100644
--- a/deploy/adapters/ansible/roles/ext-network/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/ext-network/tasks/main.yml
@@ -7,6 +7,17 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---
+# FIXME: temporary workaround for openstack api access random failure
+- name: restart api server
+ service: name={{ item }} state=restarted enabled=yes
+ with_items:
+ - nova-api
+ - cinder-api
+ - glance-api
+ - ceilometer-api
+ - heat-api
+ - aodh-api
+
- name: restart neutron server
service: name=neutron-server state=restarted enabled=yes