From bca823e12246484c2e48190815ea8c02b93d2ad0 Mon Sep 17 00:00:00 2001 From: Yun Mao Date: Wed, 6 Feb 2013 15:08:06 -0500 Subject: [PATCH] Sync db after the config file is generated cinder-api seems to be able to start without a proper db schema so we still don't need to use event to notify db sync. --- recipes/api.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/api.rb b/recipes/api.rb index 18f0902..96c6c4c 100644 --- a/recipes/api.rb +++ b/recipes/api.rb @@ -49,8 +49,6 @@ service "cinder-api" do action :enable end -execute "cinder-manage db sync" - db_user = node["cinder"]["db"]["username"] db_pass = db_password "cinder" sql_connection = db_uri("volume", db_user, db_pass) @@ -99,6 +97,8 @@ template "/etc/cinder/cinder.conf" do notifies :restart, "service[cinder-api]" end +execute "cinder-manage db sync" + template "/etc/cinder/api-paste.ini" do source "api-paste.ini.erb" group node["cinder"]["group"]