backube / scribe

Asynchronous data replication for Kubernetes CSI storage
https://scribe-replication.readthedocs.io
GNU Affero General Public License v3.0
69 stars 18 forks source link

Empty volume causes restic mover to get stuck #156

Closed JohnStrunk closed 3 years ago

JohnStrunk commented 3 years ago

Describe the bug

Steps to reproduce Create a replicationsource using the restic mover w/ a copyMethod of Snapshot or Clone, and provide a source volume that is empty (a PVC w/ no data in it)

Expected behavior Once data is placed in the volume, backups should start being created correctly

Actual results Restic/scribe gets stuck indefinitely

Additional context Workaround:

JohnStrunk commented 3 years ago

Mover pod log:

$ kubectl -n test logs pod/scribe-restic-src-datavol-source-6bwcw
Scribe restic container version: helm-v0.1.0-76-g586ca46-dirty
backup
Testing mandatory env variables
== Initialize Dir =======
=== Starting backup ===
/data /
no parent snapshot found, will read all files
[0:00] 0 files, 0 B, 0 errors
Fatal: unable to save snapshot: snapshot is empty