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.
This commit is contained in:
Yun Mao 2013-02-06 15:08:06 -05:00
parent d1a24ab1dd
commit bca823e122
1 changed files with 2 additions and 2 deletions

View File

@ -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"]