Use 127.0.0.1 for ephemeral Heat server instead of ctlplane ip

127.0.0.1 should be used for the ephemeral Heat api endpoint IP instead
of the ctlplane IP. There is no need for the api to be listening
externally, and it's more secure if it isn't.

Change-Id: Id9992ee242d381c02cb530838fef21e60d10dfa6
Signed-off-by: James Slagle <jslagle@redhat.com>
(cherry picked from commit f1fd9d0982)
This commit is contained in:
James Slagle 2021-11-12 15:17:19 -05:00 committed by Jose Luis Franco
parent c41459a61d
commit 60ce1c06c2

View File

@ -455,7 +455,7 @@ class HeatPodLauncher(HeatContainerLauncher):
super(HeatPodLauncher, self).__init__(*args, **kwargs)
if not os.path.isdir(self.log_dir):
os.makedirs(self.log_dir)
self.host = self._get_ctlplane_ip()
self.host = "127.0.0.1"
self._chcon()
def _chcon(self):