nova-cpu: fix migration support
In Debian, libvirt service has now the same name as in Red Hat (libvirtd). A patch has been done: https://review.openstack.org/#/c/128399/ This patch aims to update cloud::compute::hypervisor.
This commit is contained in:
parent
994b6d430f
commit
92e6a44686
@ -11,7 +11,7 @@ fixtures:
|
|||||||
ref: 'e381349c1b838301dd730aa3cd146ecacc75aa7c'
|
ref: 'e381349c1b838301dd730aa3cd146ecacc75aa7c'
|
||||||
'nova':
|
'nova':
|
||||||
repo: 'git://github.com/enovance/puppet-nova.git'
|
repo: 'git://github.com/enovance/puppet-nova.git'
|
||||||
ref: 'ae171f93ed8dc60e6597ec03a7cfd7c7b70e65ed'
|
ref: '93a0c27ac9f4a4eeec761250838aae2e321eb1b1'
|
||||||
'glance':
|
'glance':
|
||||||
repo: 'git://github.com/enovance/puppet-glance.git'
|
repo: 'git://github.com/enovance/puppet-glance.git'
|
||||||
ref: '78042d76c0854e16a55aaf05c03696d4d422e3c5'
|
ref: '78042d76c0854e16a55aaf05c03696d4d422e3c5'
|
||||||
|
@ -44,7 +44,7 @@ mod 'neutron',
|
|||||||
:ref => 'cefbdc897d70fd1c1fc44e372f05336674efd940'
|
:ref => 'cefbdc897d70fd1c1fc44e372f05336674efd940'
|
||||||
mod 'nova',
|
mod 'nova',
|
||||||
:git => 'git://github.com/enovance/puppet-nova.git',
|
:git => 'git://github.com/enovance/puppet-nova.git',
|
||||||
:ref => 'ae171f93ed8dc60e6597ec03a7cfd7c7b70e65ed'
|
:ref => '93a0c27ac9f4a4eeec761250838aae2e321eb1b1'
|
||||||
mod 'swift',
|
mod 'swift',
|
||||||
:git => 'git://github.com/enovance/puppet-swift.git',
|
:git => 'git://github.com/enovance/puppet-swift.git',
|
||||||
:ref => '3ea00440361ff2452561d2cce808d938e39cce56'
|
:ref => '3ea00440361ff2452561d2cce808d938e39cce56'
|
||||||
|
@ -86,9 +86,10 @@ class cloud::compute::hypervisor(
|
|||||||
$ks_spice_public_host = false,
|
$ks_spice_public_host = false,
|
||||||
# DEPRECATED
|
# DEPRECATED
|
||||||
$has_ceph = false
|
$has_ceph = false
|
||||||
) {
|
) inherits cloud::params {
|
||||||
|
|
||||||
include 'cloud::compute'
|
include 'cloud::compute'
|
||||||
|
include 'cloud::params'
|
||||||
include 'cloud::telemetry'
|
include 'cloud::telemetry'
|
||||||
include 'cloud::network'
|
include 'cloud::network'
|
||||||
include 'cloud::network::vswitch'
|
include 'cloud::network::vswitch'
|
||||||
@ -325,7 +326,8 @@ Host *
|
|||||||
# Needed to support migration but we still use Spice:
|
# Needed to support migration but we still use Spice:
|
||||||
vncserver_listen => '0.0.0.0',
|
vncserver_listen => '0.0.0.0',
|
||||||
migration_support => true,
|
migration_support => true,
|
||||||
libvirt_disk_cachemodes => $libvirt_disk_cachemodes_real
|
libvirt_disk_cachemodes => $libvirt_disk_cachemodes_real,
|
||||||
|
libvirt_service_name => $::cloud::params::libvirt_service_name,
|
||||||
}
|
}
|
||||||
|
|
||||||
# Extra config for nova-compute
|
# Extra config for nova-compute
|
||||||
|
@ -42,12 +42,21 @@ class cloud::params {
|
|||||||
$start_haproxy_service = '"/usr/bin/systemctl start haproxy"'
|
$start_haproxy_service = '"/usr/bin/systemctl start haproxy"'
|
||||||
$stop_haproxy_service = '"/usr/bin/systemctl stop haproxy"'
|
$stop_haproxy_service = '"/usr/bin/systemctl stop haproxy"'
|
||||||
$horizon_auth_url = 'dashboard'
|
$horizon_auth_url = 'dashboard'
|
||||||
|
$libvirt_service_name = 'libvirtd'
|
||||||
} # RedHat
|
} # RedHat
|
||||||
'Debian': {
|
'Debian': {
|
||||||
# Specific to Debian / Ubuntu
|
# Specific to Debian / Ubuntu
|
||||||
$start_haproxy_service = '"/etc/init.d/haproxy start"'
|
$start_haproxy_service = '"/etc/init.d/haproxy start"'
|
||||||
$stop_haproxy_service = '"/etc/init.d/haproxy stop"'
|
$stop_haproxy_service = '"/etc/init.d/haproxy stop"'
|
||||||
$horizon_auth_url = 'horizon'
|
$horizon_auth_url = 'horizon'
|
||||||
|
case $::operatingsystem {
|
||||||
|
'Ubuntu': {
|
||||||
|
$libvirt_service_name = 'libvirt-bin'
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
$libvirt_service_name = 'libvirtd'
|
||||||
|
}
|
||||||
|
}
|
||||||
} # Debian
|
} # Debian
|
||||||
default: {
|
default: {
|
||||||
fail("Unsupported osfamily (${::osfamily})")
|
fail("Unsupported osfamily (${::osfamily})")
|
||||||
|
@ -540,6 +540,7 @@ describe 'cloud::compute::hypervisor' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it_configures 'openstack compute hypervisor'
|
it_configures 'openstack compute hypervisor'
|
||||||
|
it { should contain_file_line('/etc/default/libvirtd libvirtd opts').with(:line => 'libvirtd_opts="-d -l"') }
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'on RedHat platforms' do
|
context 'on RedHat platforms' do
|
||||||
@ -553,6 +554,7 @@ describe 'cloud::compute::hypervisor' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it_configures 'openstack compute hypervisor'
|
it_configures 'openstack compute hypervisor'
|
||||||
|
it { should contain_file_line('/etc/sysconfig/libvirtd libvirtd args').with(:line => 'LIBVIRTD_ARGS="--listen"') }
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user