Bug 2058189 - [MTC] Rsync command is missing --checksum flag when “verify_copy” is set to “true”
Summary: [MTC] Rsync command is missing --checksum flag when “verify_copy” is set to “...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: Controller
Version: 1.7.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 1.7.0
Assignee: Pranav Gaikwad
QA Contact: Xin jiang
Steve Goodman
URL:
Whiteboard:
Depends On:
Blocks: 2072852
TreeView+ depends on / blocked
 
Reported: 2022-02-24 13:18 UTC by Prasad Joshi
Modified: 2022-04-07 06:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2072852 (view as bug list)
Environment:
Last Closed: 2022-03-24 06:32:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github konveyor mig-controller pull 1268 0 None open Bug 2058189: Fix checksum option in Rsync command 2022-03-01 17:14:07 UTC
Red Hat Product Errata RHBA-2022:1043 0 None None None 2022-03-24 06:32:59 UTC

Comment 5 Prasad Joshi 2022-03-03 05:25:23 UTC
Verified with MTC 1.7.0 (Pre-stage)

metadata_nvr: openshift-migration-operator-metadata-container-v1.7.0-43

$ oc get pods migration-controller-c7867dccb-88598 -n openshift-migration -o yaml

    image: registry.redhat.io/rhmtc/openshift-migration-controller-rhel8@sha256:98f08b4ebbcc24a6bc70eae25fb448e151ea3f741aaead009a827d090bf0cc71

When we check "Verify copy" option in the migration, the rsync command is executed with the --checksum flag.

We can see that in rsync command

$ oc get pod -n ocp-attached-pvc rsync-m2s68 -o yaml
    containers:
    - command:
      - /bin/bash
      - -c
      - trap "touch /usr/share/rsync/rsync-client-container-done" EXIT SIGINT SIGTERM; timeout=120; SECONDS=0; while [ $SECONDS -lt $timeout ]; do nc -z localhost 6443; rc=$?; if [ $rc -eq 0 ]; then /usr/bin/rsync --recursive --links --perms --devices --specials --times --owner --group --hard-links --delete --partial --human-readable --log-file=/dev/stdout --info=COPY2,DEL2,REMOVE2,SKIP2,FLIST2,PROGRESS2,STATS2 --checksum /mnt/ocp-attached-pvc/24346e1b50066607059af36e3b684b24/ rsync://root@localhost/24346e1b50066607059af36e3b684b24 --port 6443; rc=$?; break; fi; done; exit $rc;

Moving this to verified status.

Comment 7 errata-xmlrpc 2022-03-24 06:32:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Migration Toolkit for Containers (MTC) 1.7.0 release advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:1043


Note You need to log in before you can comment on or make changes to this bug.