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:
Robert Church 2018-10-31 00:25:07 -04:00
parent 5caeedc527
commit 3c4a9c4375
1 changed files with 7 additions and 0 deletions

View File

@ -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'
}
}
}