Run trove-manage db_sync as database user
Without this specified it runs as root, which screws up permissions. Change-Id: I308b13edf12b18a686740c72fe305da82d205d25 Closes-Bug: #1411403
This commit is contained in:
parent
53e4a4db73
commit
b5d93e70e6
|
@ -7,6 +7,7 @@ This file is used to list changes made in each version of the cookbook-openstack
|
|||
* Upgrading berkshelf from 2.0.18 to 3.1.5
|
||||
* Bump Chef gem to 11.16
|
||||
* update cinder api url to default of v2
|
||||
* Run trove-manage as user, not as root
|
||||
|
||||
## 9.0.1
|
||||
* Allow setting passwords via attributes by using the get_password method
|
||||
|
|
|
@ -96,5 +96,7 @@ template '/etc/trove/api-paste.ini' do
|
|||
end
|
||||
|
||||
execute 'trove-manage db_sync' do
|
||||
user node['openstack']['database']['user']
|
||||
group node['openstack']['database']['group']
|
||||
notifies :restart, 'service[trove-api]', :immediately
|
||||
end
|
||||
|
|
|
@ -96,7 +96,10 @@ describe 'openstack-database::api' do
|
|||
let(:manage_cmd) { 'trove-manage db_sync' }
|
||||
|
||||
it 'runs trove-manage' do
|
||||
expect(chef_run).to run_execute(manage_cmd)
|
||||
expect(chef_run).to run_execute(manage_cmd).with(
|
||||
user: 'trove',
|
||||
group: 'trove'
|
||||
)
|
||||
end
|
||||
|
||||
it 'restarts the trove-api service' do
|
||||
|
|
Loading…
Reference in New Issue