diff --git a/manifests/db/sync.pp b/manifests/db/sync.pp index 415124e9d..90e44b134 100644 --- a/manifests/db/sync.pp +++ b/manifests/db/sync.pp @@ -26,6 +26,7 @@ class neutron::db::sync( command => "neutron-db-manage ${extra_params} upgrade heads", path => '/usr/bin', refreshonly => true, + user => $::neutron::params::user, try_sleep => 5, tries => 10, timeout => $db_sync_timeout, diff --git a/spec/classes/neutron_db_sync_spec.rb b/spec/classes/neutron_db_sync_spec.rb index dcecfa400..498cc3dda 100644 --- a/spec/classes/neutron_db_sync_spec.rb +++ b/spec/classes/neutron_db_sync_spec.rb @@ -10,6 +10,7 @@ describe 'neutron::db::sync' do :command => 'neutron-db-manage upgrade heads', :path => '/usr/bin', :refreshonly => 'true', + :user => 'neutron', :try_sleep => 5, :tries => 10, :timeout => 300, @@ -34,6 +35,7 @@ describe 'neutron::db::sync' do :command => 'neutron-db-manage --config-file /etc/neutron/neutron.conf upgrade heads', :path => '/usr/bin', :refreshonly => 'true', + :user => 'neutron', :try_sleep => 5, :tries => 10, :timeout => 300, @@ -59,6 +61,7 @@ describe 'neutron::db::sync' do :command => 'neutron-db-manage upgrade heads', :path => '/usr/bin', :refreshonly => 'true', + :user => 'neutron', :try_sleep => 5, :tries => 10, :timeout => 750,