Replication Mover Pods Terminating with Rsync Error in TLS Mode - Configuration Issue #805
Replies: 6 comments 5 replies
-
@Sanjeeth8733 I'm not sure anything particular is jumping out at me straight away with this issue. Some questions I guess, to help narrow things down:
|
Beta Was this translation helpful? Give feedback.
-
Interesting - was this switched from using the annotation to not? If so it's possible some files were written as root when the replication was done with the namespace annotation and then a subsequent sync without privileged mode could have problems reading/writing the files. Would it be possible to run a test replicationsource/dest with a new/different PVC on each side to see if that is successful? |
Beta Was this translation helpful? Give feedback.
-
Unfortunately I don't have a good explanation at this point, a few thoughts though:
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
We can try it |
Beta Was this translation helpful? Give feedback.
-
We are facing an issue with configuring the moverSecurityContext for both replicationSources and replicationDestinations in our Kubernetes environment. The goal is to enable Rsync-based replication in TLS mode for data transfer between the source and destination pods.
Current Configuration:
The required configuration for moverSecurityContext, which applies to the pods responsible for replication, is as follows:
`
podSecurityContext:
fsGroup: 1000
containerSecurityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
`
Issue:
The replication mover pods are terminating with an Rsync error while attempting replication using TLS mode. The following log lines from the pod are relevant:
`
LOG7[2]: Local descriptor (FD=3) closed
LOG7[2]: Service [rsync] finished (1 left)
[73] rsync to data/ from UNDETERMINED (::ffff:10.131.0.2)
[73] receiving file list
[70] rsync: connection unexpectedly closed (17600 bytes received so far) [generator]
[70] rsync error: error in rsync protocol data stream (code 12) at io.c(228) [generator=3.2.3]
LOG7[3]: TLS alert (read): warning: close notify
LOG6[3]: TLS closed (SSL_read)
`
Attempted Solution:
We attempted to configure the moverSecurityContext with the provided settings, as shown below:
`
moverSecurityContext:
fsGroup: 1000
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
`
However, the issue persists despite this configuration.
Additional Details:
The provided security context (fsGroup, runAsUser, runAsGroup, and runAsNonRoot) is applied to the source pod responsible for writing to the volume.
Source Operator Configuration:
`
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: src
namespace: doc
spec:
rsyncTLS:
moverSecurityContext:
fsGroup: 1000
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
address: 0.2.8.4
copyMethod: Direct
port: 00100
keySecret: tls-key-secret
sourcePVC: PVC-0
trigger: {}
`
The destination operator also has the same moverSecurityContext configuration:
Destination Operator Configuration:
`
apiVersion: volsync.backube/v1alpha1
kind: ReplicationDestination
metadata:
name: destination
namespace: doc
spec:
rsyncTLS:
moverSecurityContext:
fsGroup: 1000
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
copyMethod: Direct
destinationPVC: PVC-0
serviceType: ClusterIP
keySecret: tls-key-secret
`
The replication is performed using the "Direct" method.
Please help us identify the root cause of the Rsync error in TLS mode and provide any possible solutions or suggestions to resolve this issue, I have also attache log file below. Thank you!
Source.log
Destination-1.log
Destination-2.log
Beta Was this translation helpful? Give feedback.
All reactions