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
|
||||
subscribes :restart, resources("template[/etc/nova/nova.conf]")
|
||||
|
||||
action :enable
|
||||
action [:enable, :start]
|
||||
end
|
||||
|
||||
include_recipe "openstack-compute::libvirt"
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user