Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare for volsync block device test (RamenDR#1559)
* Allow unprivileged pods to access block devices We need this for testing volsync with block devices with minikube clusters. For minikube clusters this is done via the environment file which is nicer, but it requires configuring containerd after the cluster has started, which can cause failures in addons scripts. We need to upstream this change to minikube later. Signed-off-by: Nir Soffer <[email protected]> * Log replication source status in yaml It is easier to read and works better for viewing the replication logs in the status. Signed-off-by: Nir Soffer <[email protected]> * Improve volsync test teardown - Delete the replication source before unexporting the volsync service using it. - Log every every teardown step to make debugging easier. Signed-off-by: Nir Soffer <[email protected]> * Fail if deleting destination namespace get stuck Replace delete used for waiting for waiting on the deleted namespace with a timeout. If deletion get stuck, the test will fail instead of blocking forever, breaking stress test. When delete get suck we can inspect the resources in the test gather directory: % tree out/013.gather/dr2/namespaces/busybox out/013.gather/dr2/namespaces/busybox └── snapshot.storage.k8s.io └── volumesnapshots └── volsync-busybox-dst-dst-20240914203905.yaml % cat out/013.gather/dr2/namespaces/busybox/snapshot.storage.k8s.io/volumesnapshots/volsync-busybox-dst-dst-20240914203905.yaml apiVersion: snapshot.storage.k8s.io/v1 kind: VolumeSnapshot metadata: creationTimestamp: "2024-09-14T20:39:05Z" deletionGracePeriodSeconds: 0 deletionTimestamp: "2024-09-14T20:39:05Z" finalizers: - snapshot.storage.kubernetes.io/volumesnapshot-bound-protection generation: 2 This looks like an external-snapshotter bug since volsync deleted the snapshot and removed its finalizers. Signed-off-by: Nir Soffer <[email protected]> --------- Signed-off-by: Nir Soffer <[email protected]>
- Loading branch information