CentOS: Install libvirt-daemon package for monolithic daemon

CentOS 9 Stream recently bumped libvirt version (from 9.0.0 to 9.3.0)
and the latest libvirt package no longer requires the daemon package
which provides the monolithic libvirt daemon[1]

[1] 5358618b1c

Change-Id: I612856bfd23f980b1e94815d3b5e15e0ea39f72e
This commit is contained in:
Takashi Kajinami 2023-05-25 17:07:04 +09:00
parent bf5ab51240
commit 5fe2ca84b0
2 changed files with 8 additions and 0 deletions

View File

@ -156,6 +156,13 @@ class nova::compute::libvirt::services (
-> Service<| title == 'libvirt' |> -> Service<| title == 'libvirt' |>
-> Service<| title == 'nova-compute'|> -> Service<| title == 'nova-compute'|>
if $facts['os']['family'] == 'RedHat' {
package { 'libvirt-daemon':
ensure => $ensure_package,
name => $::nova::params::libvirt_daemon_package_name,
tag => ['openstack', 'nova-support-package'],
}
}
} else { } else {
# NOTE(tkajinam): libvirt should be stopped before starting modular daemons # NOTE(tkajinam): libvirt should be stopped before starting modular daemons
Service<| title == 'libvirt' |> -> Service<| tag == 'libvirt-modular-service' |> Service<| title == 'libvirt' |> -> Service<| tag == 'libvirt-modular-service' |>

View File

@ -24,6 +24,7 @@ class nova::params {
$doc_package_name = 'openstack-nova-doc' $doc_package_name = 'openstack-nova-doc'
$libvirt_package_name = 'libvirt' $libvirt_package_name = 'libvirt'
$libvirt_guests_package_name = 'libvirt-client' $libvirt_guests_package_name = 'libvirt-client'
$libvirt_daemon_package_name = 'libvirt-daemon'
$libvirt_daemon_package_prefix = 'libvirt-daemon-' $libvirt_daemon_package_prefix = 'libvirt-daemon-'
$libvirt_nwfilter_package_name = 'libvirt-daemon-config-nwfilter' $libvirt_nwfilter_package_name = 'libvirt-daemon-config-nwfilter'
$scheduler_package_name = 'openstack-nova-scheduler' $scheduler_package_name = 'openstack-nova-scheduler'