Fix for nova-compute service not beeing started.

nova-compute service should be started after nova::compute recipe will
finish its work.

Change-Id: I9dac760c901d04e465a20ced363242fab0b93a03
This commit is contained in:
tpaszkowski 2013-03-18 10:47:43 -04:00 committed by Ionuț Arțăriși
parent 93f877d7e3
commit 748154a16f
3 changed files with 9 additions and 1 deletions

View File

@ -59,7 +59,7 @@ service "nova-compute" do
supports :status => true, :restart => true
subscribes :restart, resources("template[/etc/nova/nova.conf]")
action :enable
action [:enable, :start]
end
include_recipe "openstack-compute::libvirt"

View File

@ -32,5 +32,9 @@ describe "openstack-compute::compute" do
expected = "openstack-nova-compute"
expect(@chef_run).to set_service_to_start_on_boot expected
end
it "starts nova compute" do
expect(@chef_run).to start_service "openstack-nova-compute"
end
end
end

View File

@ -60,6 +60,10 @@ describe "openstack-compute::compute" do
expect(@chef_run).to set_service_to_start_on_boot "nova-compute"
end
it "starts nova compute" do
expect(@chef_run).to start_service "nova-compute"
end
it "runs libvirt recipe" do
expect(@chef_run).to include_recipe "openstack-compute::libvirt"
end