From 1662ac0fafd1ecacd8af9b23976ef844e1d8cef7 Mon Sep 17 00:00:00 2001 From: "chenshuai@huawei.com" Date: Fri, 29 Jul 2016 05:05:38 -0400 Subject: workaround for swift task JIRA: COMPASS-446 Change-Id: Id697fc0d314e223d41e7d1e67ce828986f24760f Signed-off-by: chenshuai@huawei.com --- .../roles/swift/tasks/main.yml | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'deploy/adapters/ansible/openstack_mitaka_xenial/roles') diff --git a/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/main.yml b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/main.yml index 71d54546..b3c93bb6 100644 --- a/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/main.yml +++ b/deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/main.yml @@ -41,3 +41,45 @@ with_items: - rsync when: inventory_hostname in groups['compute'] + +- name: wait 30 seconds + shell: sleep 30 + +- name: stop tasks on compute + service: name={{ item }} state=stop enabled=yes + with_items: + - swift-account + - swift-account-replicator + - swift-container-replicator + - swift-object + - swift-object-updater + - swift-account-auditor + - swift-container + - swift-container-sync + - swift-object-auditor + - swift-account-reaper + - swift-container-auditor + - swift-container-updater + - swift-object-replicator + when: inventory_hostname in groups['compute'] + +- name: sleep 10 second + shell: sleep 10 + +- name: start tasks on compute + service: name={{ item }} state=start enabled=yes + with_items: + - swift-account + - swift-account-replicator + - swift-container-replicator + - swift-object + - swift-object-updater + - swift-account-auditor + - swift-container + - swift-container-sync + - swift-object-auditor + - swift-account-reaper + - swift-container-auditor + - swift-container-updater + - swift-object-replicator + when: inventory_hostname in groups['compute'] -- cgit 1.2.3-korg