From 6b5ebca318f7132eb2f22e6702f20331cb0d340a Mon Sep 17 00:00:00 2001 From: James Slagle Date: Thu, 3 Jun 2021 15:29:12 -0400 Subject: [PATCH] Use podman interactive mode when restoring db interactive mode (-i) is required since the db restore makes use of stdin redirect. Change-Id: I9668df39ed874949badd2bd169de2eaae0c08a48 Signed-off-by: James Slagle --- tripleoclient/heat_launcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripleoclient/heat_launcher.py b/tripleoclient/heat_launcher.py index c3006ab7c..776990b94 100644 --- a/tripleoclient/heat_launcher.py +++ b/tripleoclient/heat_launcher.py @@ -546,7 +546,7 @@ class HeatPodLauncher(HeatContainerLauncher): try: with open(db_dump_path) as f: subprocess.run([ - 'sudo', 'podman', 'exec', '-u', 'root', + 'sudo', 'podman', 'exec', '-i', '-u', 'root', 'mysql', 'mysql', 'heat'], stdin=f, check=True) finally: