diff --git a/manifests/compute/libvirt.pp b/manifests/compute/libvirt.pp index 8297cb379..c3e7b84ef 100644 --- a/manifests/compute/libvirt.pp +++ b/manifests/compute/libvirt.pp @@ -15,6 +15,16 @@ class nova::compute::libvirt ( } } + if($::osfamily == 'RedHat') { + service { 'messagebus': + ensure => running, + enable => true, + provider => $::nova::params::special_service_provider, + } + Package['libvirt'] -> Service['messagebus'] -> Service['libvirt'] + + } + if $migration_support { if $vncserver_listen != '0.0.0.0' { fail("For migration support to work, you MUST set vncserver_listen to '0.0.0.0'") diff --git a/spec/classes/nova_compute_libvirt_spec.rb b/spec/classes/nova_compute_libvirt_spec.rb index 0e59cbec9..86b636af3 100644 --- a/spec/classes/nova_compute_libvirt_spec.rb +++ b/spec/classes/nova_compute_libvirt_spec.rb @@ -95,6 +95,11 @@ describe 'nova::compute::libvirt' do :require => 'Package[libvirt]', :before => 'Service[nova-compute]' )} + it { should contain_service('messagebus').with( + :ensure => 'running', + :enable => true, + :before => 'Service[libvirt]' + ) } it { should contain_nova_config('compute_driver').with_value('libvirt.LibvirtDriver')} it { should contain_nova_config('libvirt_type').with_value('kvm')}