Start heat services in addition to enabling them

I noticed this was missing during some upgrade testing when I noticed the heat
services didn't start back up after shutting them down for the upgrade and
running chef. I'm not sure why this was set to enable only.

Change-Id: I8048270047767bda7414b2baee176f7bc9ab7a8b
Signed-off-by: Lance Albertson <lance@osuosl.org>
This commit is contained in:
Lance Albertson 2019-10-12 11:25:35 -07:00
parent cd52c71b6c
commit d98d4a9757
6 changed files with 18 additions and 6 deletions

View File

@ -34,6 +34,6 @@ service 'heat-api-cfn' do
service_name platform_options['heat_api_cfn_service']
supports status: true, restart: true
action :enable
action [:enable, :start]
subscribes :restart, 'template[/etc/heat/heat.conf]'
end

View File

@ -34,6 +34,6 @@ service 'heat-api' do
service_name platform_options['heat_api_service']
supports status: true, restart: true
action :enable
action [:enable, :start]
subscribes :restart, 'template[/etc/heat/heat.conf]'
end

View File

@ -33,6 +33,6 @@ end
service 'heat_engine' do
service_name platform_options['heat_engine_service']
supports status: true, restart: true
action :enable
action [:enable, :start]
subscribes :restart, 'template[/etc/heat/heat.conf]'
end

View File

@ -14,8 +14,12 @@ describe 'openstack-orchestration::api-cfn' do
expect(chef_run).to upgrade_package 'openstack-heat-api-cfn'
end
it 'starts heat api-cfn on boot' do
it 'enables heat api-cfn on boot' do
expect(chef_run).to enable_service('openstack-heat-api-cfn')
end
it 'starts heat api-cfn on boot' do
expect(chef_run).to start_service('openstack-heat-api-cfn')
end
end
end

View File

@ -14,8 +14,12 @@ describe 'openstack-orchestration::api' do
expect(chef_run).to upgrade_package 'openstack-heat-api'
end
it 'starts heat api on boot' do
it 'enables heat api on boot' do
expect(chef_run).to enable_service('openstack-heat-api')
end
it 'starts heat api on boot' do
expect(chef_run).to start_service('openstack-heat-api')
end
end
end

View File

@ -14,8 +14,12 @@ describe 'openstack-orchestration::engine' do
expect(chef_run).to upgrade_package 'openstack-heat-engine'
end
it 'starts heat engine on boot' do
it 'enables heat engine on boot' do
expect(chef_run).to enable_service('openstack-heat-engine')
end
it 'starts heat engine on boot' do
expect(chef_run).to start_service('openstack-heat-engine')
end
end
end