Run db-manage command by the service user
... instead of root, because the command doesn't require root. This follows the guidance in the current installation guide[1][2]. [1] https://docs.openstack.org/neutron/latest/install/controller-install-rdo.html [2] https://docs.openstack.org/neutron/latest/install/controller-install-ubuntu.html Change-Id: Iad40023e370a978a58f2894bba2dd08cbab5d71a
This commit is contained in:
parent
46b552b1dc
commit
da49c1914f
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user