summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/cinder-controller
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2015-11-13 15:12:28 +0800
committercarey.xu <carey.xuhan@huawei.com>2015-11-13 15:12:28 +0800
commit5c7758386ec5cb2ecc2689b8fa92a5c249f0b986 (patch)
tree1e965ca92c1019dd9cf697372255a4ce8622542f /deploy/adapters/ansible/roles/cinder-controller
parentd1088174620fec05caf6899809a999bfc21d57d1 (diff)
use shell execute openstack components' db_sync method
JIRA: COMPASS-143 Change-Id: Ia4d7ce85c908bec3624dd7d20219daa7a90f4268 Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/cinder-controller')
-rw-r--r--deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_config.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_config.yml b/deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_config.yml
index 85556a5a..b06aac50 100644
--- a/deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_config.yml
+++ b/deploy/adapters/ansible/roles/cinder-controller/tasks/cinder_config.yml
@@ -4,6 +4,6 @@
- name: sync cinder db
#cinder_manage: action=dbsync
- shell: cinder-manage db sync
+ shell: su -s /bin/sh -c 'cinder-manage db sync' cinder
notify:
- restart cinder control serveice