k8s: Make sure PMON will not start native libvirtd
Update the PMON libvirtd configuration file to ignore the service if k8s is enabled. Under no circumstances should we allow PMON to monitor and (re)start native libvirtd if the --kubernetes option is enabled. libvirtd will be a containerized service and only enabled via helm/armada. Change-Id: Iace3e51184787c74bfe681f69293fe26f9655d7d Story: 2002876 Task: 26168 Signed-off-by: Robert Church <robert.church@windriver.com>
This commit is contained in:
parent
5caeedc527
commit
3c4a9c4375
|
@ -277,6 +277,13 @@ class platform::kubernetes::worker
|
|||
ensure => file,
|
||||
replace => no,
|
||||
}
|
||||
# TODO: The following exec is a workaround. Once kubernetes becomes the
|
||||
# default installation, /etc/pmon.d/libvirtd.conf needs to be removed from
|
||||
# the load.
|
||||
exec { 'Update PMON libvirtd.conf':
|
||||
command => "/bin/sed -i 's#mode = passive#mode = ignore #' /etc/pmon.d/libvirtd.conf",
|
||||
onlyif => '/usr/bin/test -e /etc/pmon.d/libvirtd.conf'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue