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:
parent
93f877d7e3
commit
748154a16f
@ -59,7 +59,7 @@ service "nova-compute" do
|
|||||||
supports :status => true, :restart => true
|
supports :status => true, :restart => true
|
||||||
subscribes :restart, resources("template[/etc/nova/nova.conf]")
|
subscribes :restart, resources("template[/etc/nova/nova.conf]")
|
||||||
|
|
||||||
action :enable
|
action [:enable, :start]
|
||||||
end
|
end
|
||||||
|
|
||||||
include_recipe "openstack-compute::libvirt"
|
include_recipe "openstack-compute::libvirt"
|
||||||
|
@ -32,5 +32,9 @@ describe "openstack-compute::compute" do
|
|||||||
expected = "openstack-nova-compute"
|
expected = "openstack-nova-compute"
|
||||||
expect(@chef_run).to set_service_to_start_on_boot expected
|
expect(@chef_run).to set_service_to_start_on_boot expected
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "starts nova compute" do
|
||||||
|
expect(@chef_run).to start_service "openstack-nova-compute"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -60,6 +60,10 @@ describe "openstack-compute::compute" do
|
|||||||
expect(@chef_run).to set_service_to_start_on_boot "nova-compute"
|
expect(@chef_run).to set_service_to_start_on_boot "nova-compute"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it "starts nova compute" do
|
||||||
|
expect(@chef_run).to start_service "nova-compute"
|
||||||
|
end
|
||||||
|
|
||||||
it "runs libvirt recipe" do
|
it "runs libvirt recipe" do
|
||||||
expect(@chef_run).to include_recipe "openstack-compute::libvirt"
|
expect(@chef_run).to include_recipe "openstack-compute::libvirt"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user