diff options
author | chenshuai@huawei.com <chenshuai@huawei.com> | 2016-07-29 05:05:38 -0400 |
---|---|---|
committer | chenshuai@huawei.com <chenshuai@huawei.com> | 2016-07-29 05:05:38 -0400 |
commit | 1662ac0fafd1ecacd8af9b23976ef844e1d8cef7 (patch) | |
tree | 3da9e6043ee1f4ea29f4d1d1ee652454c5382920 /deploy/adapters/ansible | |
parent | a15266e43031c9b7f4366c84b5ae6a26dbb30d47 (diff) |
workaround for swift task
JIRA: COMPASS-446
Change-Id: Id697fc0d314e223d41e7d1e67ce828986f24760f
Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible')
-rw-r--r-- | deploy/adapters/ansible/openstack_mitaka_xenial/roles/swift/tasks/main.yml | 42 |
1 files changed, 42 insertions, 0 deletions
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'] |