Ensure dbus is running before starting libvirt
Customer backport Related to #330
This commit is contained in:
@@ -102,6 +102,14 @@ Host *
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $::operatingsystem == 'Ubuntu' {
|
||||||
|
service { 'dbus':
|
||||||
|
ensure => running,
|
||||||
|
enable => true,
|
||||||
|
before => Class['nova::compute::libvirt'],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Service<| title == 'dbus' |> { enable => true }
|
Service<| title == 'dbus' |> { enable => true }
|
||||||
Service<| title == 'libvirt-bin' |> { enable => true }
|
Service<| title == 'libvirt-bin' |> { enable => true }
|
||||||
|
|
||||||
|
@@ -248,6 +248,22 @@ describe 'cloud::compute::hypervisor' do
|
|||||||
should contain_nova_config('DEFAULT/live_migration_flag').with('value' => 'VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_PERSIST_DEST')
|
should contain_nova_config('DEFAULT/live_migration_flag').with('value' => 'VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_PERSIST_DEST')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context 'with dbus on Ubuntu' do
|
||||||
|
let :facts do
|
||||||
|
{ :osfamily => 'Debian',
|
||||||
|
:operatingsystem => 'Ubuntu',
|
||||||
|
:concat_basedir => '/var/lib/puppet/concat'
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
it 'ensure dbus is running and started at boot' do
|
||||||
|
should contain_service('dbus').with(
|
||||||
|
:ensure => 'running',
|
||||||
|
:enable => 'true'
|
||||||
|
)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
context 'without RBD backend' do
|
context 'without RBD backend' do
|
||||||
before :each do
|
before :each do
|
||||||
params.merge!( :has_ceph => false )
|
params.merge!( :has_ceph => false )
|
||||||
@@ -269,8 +285,9 @@ describe 'cloud::compute::hypervisor' do
|
|||||||
|
|
||||||
context 'on Debian platforms' do
|
context 'on Debian platforms' do
|
||||||
let :facts do
|
let :facts do
|
||||||
{ :osfamily => 'Debian',
|
{ :osfamily => 'Debian',
|
||||||
:concat_basedir => '/var/lib/puppet/concat'
|
:operatingsystem => 'Debian',
|
||||||
|
:concat_basedir => '/var/lib/puppet/concat'
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user