Fix centos keystone-apache timeout
The current hack just does a apache reload, but a full restart is required on centos. Change-Id: I1deb415bc6f8d035775c9bd723ae8b2207c333e6 Closes-Bug: #1512480
This commit is contained in:
parent
5b8a8f8949
commit
98030c26e0
|
@ -349,8 +349,8 @@ execute 'Keystone: sleep' do
|
|||
end
|
||||
|
||||
# Hack until Apache cookbook has lwrp's for proper use of notify
|
||||
execute 'Keystone apache reload' do
|
||||
execute 'Keystone apache restart' do
|
||||
command 'uname'
|
||||
notifies :reload, 'service[apache2]', :immediately
|
||||
notifies :restart, 'service[apache2]', :immediately
|
||||
notifies :run, 'execute[Keystone: sleep]', :immediately
|
||||
end
|
||||
|
|
|
@ -1017,12 +1017,12 @@ describe 'openstack-identity::server-apache' do
|
|||
end
|
||||
end
|
||||
|
||||
describe 'reload apache and sleep' do
|
||||
let(:reload) { chef_run.execute('Keystone apache reload') }
|
||||
describe 'restart apache and sleep' do
|
||||
let(:restart) { chef_run.execute('Keystone apache restart') }
|
||||
let(:sleep) { chef_run.execute('Keystone: sleep') }
|
||||
|
||||
it 'has reload resource' do
|
||||
expect(chef_run).to run_execute(reload.name).with(
|
||||
it 'has restart resource' do
|
||||
expect(chef_run).to run_execute(restart.name).with(
|
||||
command: 'uname'
|
||||
)
|
||||
end
|
||||
|
@ -1031,12 +1031,12 @@ describe 'openstack-identity::server-apache' do
|
|||
expect(sleep.command).to eq('sleep 10')
|
||||
end
|
||||
|
||||
it 'has notified apache to reload' do
|
||||
expect(reload).to notify('service[apache2]').to(:reload).immediately
|
||||
it 'has notified apache to restart' do
|
||||
expect(restart).to notify('service[apache2]').to(:restart).immediately
|
||||
end
|
||||
|
||||
it 'has notified sleep to run' do
|
||||
expect(reload).to notify("execute[#{sleep.name}]").to(:run).immediately
|
||||
expect(restart).to notify("execute[#{sleep.name}]").to(:run).immediately
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue