From aeec7da4310307f21af848360f2c958c74eadb70 Mon Sep 17 00:00:00 2001 From: Jerry Sun Date: Fri, 7 Jan 2022 13:05:12 -0500 Subject: [PATCH] Revert "Apply runtime class for kube-apiserver when installing ca cert" This reverts commit 3bf25e423c9408d59874fd49d833ae26ba8162f5. There is an issue when installing subclouds where kubeadm tries to execute kubernetes commands while kube-apiserver is restarting. The cause of the restart is executing the runtime class introduced in the reverted commit. The issue is intermittent. Change-Id: I332ea9257de3fdfa327c5405cb45bb414b422c23 Closes-Bug: 1955744 Signed-off-by: Jerry Sun (cherry picked from commit f671ec5ab64aec1317f326c1da7686b21df4513a) --- sysinv/sysinv/sysinv/sysinv/conductor/manager.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sysinv/sysinv/sysinv/sysinv/conductor/manager.py b/sysinv/sysinv/sysinv/sysinv/conductor/manager.py index f023e42a9a..3267dc4ed4 100644 --- a/sysinv/sysinv/sysinv/sysinv/conductor/manager.py +++ b/sysinv/sysinv/sysinv/sysinv/conductor/manager.py @@ -12603,17 +12603,6 @@ class ConductorManager(service.PeriodicService): config_uuid, config_dict, force=True) - - personalities = [constants.CONTROLLER] - config_uuid = self._config_update_hosts(context, personalities) - config_dict = { - "personalities": personalities, - "classes": ['platform::kubernetes::master::apiserver::runtime'] - } - self._config_apply_runtime_manifest(context, - config_uuid, - config_dict) - elif mode == constants.CERT_MODE_DOCKER_REGISTRY: LOG.info("Docker registry certificate install") # docker registry requires a PKCS1 key for the token server