From 8707fb367efc4c95f003d5609040c995b470af9b Mon Sep 17 00:00:00 2001 From: Matt Spilchen Date: Fri, 16 Jun 2023 08:53:49 -0300 Subject: [PATCH] Fix to ensure vbr can find rsync In some deployments, we have seen vbr fail because it cannot find rsync, which causes vbr to fail. This creates a symlink in /usr/bin to the rsync binary in /opt/vertica/bin. This ensures that rsync will be found. --- changes/unreleased/Fixed-20230616-085300.yaml | 5 +++++ docker-vertica-v2/Dockerfile | 5 ++++- docker-vertica/Dockerfile | 5 ++++- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 changes/unreleased/Fixed-20230616-085300.yaml diff --git a/changes/unreleased/Fixed-20230616-085300.yaml b/changes/unreleased/Fixed-20230616-085300.yaml new file mode 100644 index 000000000..16b0e9217 --- /dev/null +++ b/changes/unreleased/Fixed-20230616-085300.yaml @@ -0,0 +1,5 @@ +kind: Fixed +body: Ensure vbr can find rsync. This will be available in server versions 23.3.0 and higher. +time: 2023-06-16T08:53:00.755543732-03:00 +custom: + Issue: "418" diff --git a/docker-vertica-v2/Dockerfile b/docker-vertica-v2/Dockerfile index b5302e2c8..1a8f791cd 100644 --- a/docker-vertica-v2/Dockerfile +++ b/docker-vertica-v2/Dockerfile @@ -200,7 +200,10 @@ RUN set -x \ && tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz \ && tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz \ # delete old host keys - && rm -rf /etc/ssh/ssh_host* + && rm -rf /etc/ssh/ssh_host* \ + # Create a symlink to the rsync for use with vbr. This works around a problem + # seen in some deployments where vbr cannot find rsync. + && ln -s /opt/vertica/bin/rsync /usr/bin/rsync ENTRYPOINT [ "/init" ] diff --git a/docker-vertica/Dockerfile b/docker-vertica/Dockerfile index b5302e2c8..1a8f791cd 100644 --- a/docker-vertica/Dockerfile +++ b/docker-vertica/Dockerfile @@ -200,7 +200,10 @@ RUN set -x \ && tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz \ && tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz \ # delete old host keys - && rm -rf /etc/ssh/ssh_host* + && rm -rf /etc/ssh/ssh_host* \ + # Create a symlink to the rsync for use with vbr. This works around a problem + # seen in some deployments where vbr cannot find rsync. + && ln -s /opt/vertica/bin/rsync /usr/bin/rsync ENTRYPOINT [ "/init" ]