Remove pyroute2 deprication warning

Whenever a CNI container image is generated, in CNI pod logs there were deprication warning which should be removed.

Closes-bug: 1918709

Change-Id: I4d8db9eb021d33b79a5ff688c91ba0df6cae938a
This commit is contained in:
Darshna Das 2021-04-17 15:17:40 +00:00
parent 1011502b57
commit 2fde08fc1b
1 changed files with 5 additions and 0 deletions

View File

@ -349,6 +349,11 @@ class CNIDaemonServiceManager(cotyledon.ServiceManager):
self.register_hooks(on_terminate=self.terminate)
def run(self):
# FIXME(darshna): Remove pyroute2 IPDB deprecation warning, remove
# once we stop using pyroute2.IPDB.
logging.getLogger('pyroute2').setLevel(logging.ERROR)
reaper_thread = threading.Thread(target=self._zombie_reaper,
daemon=True)
self._terminate_called = threading.Event()