From 98fdd237e5a7c1de3fae4600d9e320859f6835b9 Mon Sep 17 00:00:00 2001 From: Rabi Mishra Date: Wed, 7 Sep 2022 09:12:05 +0530 Subject: [PATCH] Use host network for db_sync Let's use host network for all containers doing db_sync. This would avoid any issues from the netavark network stack which is the default with podman. Resolves: rhbz#2123252 Change-Id: Ifc72293052e8719cd519400c76c548910a741ff3 (cherry picked from commit a197198b7c967776b9aad8983ffb0ac54bca6eda) --- tripleoclient/heat_launcher.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tripleoclient/heat_launcher.py b/tripleoclient/heat_launcher.py index ccb46853d..f5543db25 100644 --- a/tripleoclient/heat_launcher.py +++ b/tripleoclient/heat_launcher.py @@ -383,6 +383,7 @@ class HeatContainerLauncher(HeatBaseLauncher): cmd = [ 'podman', 'run', '--rm', + '--net', 'host', '--user', self.user, '--volume', '%(conf)s:/etc/heat/heat.conf:Z' % {'conf': self.config_file}, @@ -396,6 +397,7 @@ class HeatContainerLauncher(HeatBaseLauncher): def get_heat_uid(self): cmd = [ 'podman', 'run', '--rm', + '--net', 'host', self.all_container_image, 'getent', 'passwd', self.user ] @@ -410,6 +412,7 @@ class HeatContainerLauncher(HeatBaseLauncher): def get_heat_gid(self): cmd = [ 'podman', 'run', '--rm', + '--net', 'host', self.all_container_image, 'getent', 'group', self.user ] @@ -546,6 +549,7 @@ class HeatPodLauncher(HeatContainerLauncher): cmd = [ 'sudo', 'podman', 'run', '--rm', '--user', 'heat', + '--net', 'host', '--volume', '%(conf)s:/etc/heat/heat.conf:z' % {'conf': self.config_file}, '--volume', '%(inst_tmp)s:%(inst_tmp)s:z' % {'inst_tmp':