ソースを参照

Add `127.0.0.1` address to replicator certificate hosts

This patch aims to fixing connection to the replicator service using SSH
tunneling. SSL handshake fails if the certificates don't include the
`127.0.0.1` extra host.
Daniel Vincze 3 年 前
コミット
594e3b2d3c
1 ファイル変更1 行追加1 行削除
  1. 1 1
      coriolis/providers/replicator.py

+ 1 - 1
coriolis/providers/replicator.py

@@ -661,7 +661,7 @@ class Replicator(object):
             utils.exec_ssh_cmd(
                 ssh,
                 "sudo %(replicator_cmd)s gen-certs -output-dir "
-                "%(cert_dir)s -certificate-hosts %(extra_hosts)s" % {
+                "%(cert_dir)s -certificate-hosts 127.0.0.1,%(extra_hosts)s" % {
                     "replicator_cmd": REPLICATOR_PATH,
                     "cert_dir": remote_base_dir,
                     "extra_hosts": ip,