Browse Source

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 <jslagle@redhat.com>
(cherry picked from commit 6b5ebca318)
changes/70/795470/1
James Slagle 2 months ago
parent
commit
ee1ce3224b
  1. 2
      tripleoclient/heat_launcher.py

2
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:

Loading…
Cancel
Save