Use more specific name for daemon-reload command
... to avoid conflict with the other modules. Also fix the typo of daemon. Change-Id: I7f9abcbafa97ed5d542b5ac4166f7fea0b5b5ffb
This commit is contained in:
parent
4ce92dd2ed
commit
de3a8a91e3
@ -383,7 +383,7 @@ class nova::migration::libvirt(
|
||||
file { "/etc/systemd/system/${socket_name}.socket":
|
||||
ensure => absent,
|
||||
require => Anchor['nova::install::end']
|
||||
} ~> exec { 'systemd-damon-reload':
|
||||
} ~> exec { 'libvirt-socket-daemon-reload':
|
||||
command => 'systemctl daemon-reload',
|
||||
path => ['/sbin', '/usr/sbin', '/bin', '/usr/bin'],
|
||||
refreshonly => true,
|
||||
@ -410,16 +410,16 @@ class nova::migration::libvirt(
|
||||
path => "/etc/systemd/system/${socket_name}.socket",
|
||||
line => "ListenStream=${listen_address_real}:${listen_port}",
|
||||
match => '^ListenStream=.*',
|
||||
} ~> exec { 'systemd-damon-reload':
|
||||
} ~> exec { 'libvirt-socket-daemon-reload':
|
||||
command => 'systemctl daemon-reload',
|
||||
path => ['/sbin', '/usr/sbin', '/bin', '/usr/bin'],
|
||||
refreshonly => true,
|
||||
} ~> Service[$socket_name]
|
||||
File["/etc/systemd/system/${socket_name}.socket"] ~> Exec['systemd-damon-reload']
|
||||
File["/etc/systemd/system/${socket_name}.socket"] ~> Exec['libvirt-socket-daemon-reload']
|
||||
}
|
||||
|
||||
# We have to stop libvirtd.service to restart socket.
|
||||
Exec['systemd-damon-reload'] ~> Exec["stop ${proxy_service}.service"]
|
||||
Exec['libvirt-socket-daemon-reload'] ~> Exec["stop ${proxy_service}.service"]
|
||||
|
||||
if $modular_libvirt {
|
||||
Service["${proxy_service}-${transport}"] -> Service<| title == 'virtproxyd' |>
|
||||
|
@ -2,6 +2,6 @@
|
||||
features:
|
||||
- |
|
||||
The ``nova::compute::libvirt::services`` class now installs
|
||||
the ``libvirt-damon`` package explicitly in CentOS and RHEL when modular
|
||||
the ``libvirt-daemon`` package explicitly in CentOS and RHEL when modular
|
||||
libvirt daemons are not used. This is required in recent CentOS Stream 9
|
||||
to use legacy libvirtd service and socket.
|
||||
|
Loading…
x
Reference in New Issue
Block a user