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:
parent
d1a24ab1dd
commit
bca823e122
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue