Bug 2204461 - Adjust rsync options in DVM
Summary: Adjust rsync options in DVM
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Containers
Classification: Red Hat
Component: Controller
Version: 1.7.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 1.7.10
Assignee: Jason Montleon
QA Contact: mohamed
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-15 15:32 UTC by Jason Montleon
Modified: 2023-06-15 09:50 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-15 09:48:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:3624 0 None None None 2023-06-15 09:50:02 UTC

Description Jason Montleon 2023-05-15 15:32:56 UTC
Description of problem:
After discussion we want to remove the hard coded munge links option in rsync for DVM transfer, as we think it may lead to undesired behavior in at least some occasions.

As the goal is also to transfer singular volumes we would also like to add the -x option to ensure we don't transfer data from other mounts.

Version-Release number of selected component (if applicable):
1.7.9

Comment 1 Dylan Murray 2023-05-17 01:27:29 UTC
I was able to get this working setting `migration_rsync_privileged: true` as well as testing a version of crane-lib that sets on the rsync server config:

```
use chroot = yes
munge symlinks = no
```

Seems like this should preserve the symlinks as is, will likely want to make both of these options configurable.

Comment 7 mohamed 2023-06-01 15:15:23 UTC
Verified using MTC 1.7.10
symbolic links are migrated as expected

in Source cluster:

[midays@fedora ~]$ oc exec -it -n migration-options test-pod -c test-container -- ls -l /test-volume
total 0
lrwxrwxrwx    1 root     root            10 Jun  1 14:55 test-link -> /test-file


in target cluster:

[midays@fedora crane-ui-tests]$ oc exec -it -n migration-options test-pod -c test-container -- ls -l /test-volume
total 0
lrwxrwxrwx    1 root     root            10 Jun  1 14:55 test-link -> /test-file

Comment 11 errata-xmlrpc 2023-06-15 09:48:27 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 (Important: Migration Toolkit for Containers (MTC) 1.7.10 security and bug fix update), 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/RHSA-2023:3624


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