Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add volsync block based self test #1560

Merged
merged 6 commits into from
Oct 14, 2024
Merged

Conversation

nirs
Copy link
Member

@nirs nirs commented Sep 16, 2024

Test both file (cephfs) and block (rbd) pvcs with volsync.

The new layout:

% tree addons/volsync 
addons/volsync
├── app
│   ├── base
│   │   ├── kustomization.yaml
│   │   ├── namespace.yaml
│   │   └── pvc.yaml
│   ├── block
│   │   ├── deploy.yaml
│   │   └── kustomization.yaml
│   └── file
│       ├── deploy.yaml
│       └── kustomization.yaml
├── rd
│   ├── base
│   │   ├── kustomization.yaml
│   │   ├── namespace.yaml
│   │   ├── pvc.yaml
│   │   └── rd.yaml
│   ├── block
│   │   └── kustomization.yaml
│   └── file
│       └── kustomization.yaml
├── rs
│   ├── block
│   │   ├── rs.yaml
│   │   └── secret.yaml
│   └── file
│       ├── rs.yaml
│       └── secret.yaml
├── start
└── test

@nirs nirs requested a review from BenamarMk September 16, 2024 13:08
@nirs nirs force-pushed the volsync-block branch 11 times, most recently from bba8ad1 to 329a6d9 Compare September 19, 2024 14:26
@nirs nirs force-pushed the volsync-block branch 2 times, most recently from a5f5d81 to eed0c22 Compare October 10, 2024 13:40
We need this for testing volsync with block devices. For lima vms we
will need this later when we have nested virtualization for kubevirt vm.

For minikube clusters this change 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.

For lima clusters we don't have an easy way to make the configuration
conditional. The configuration is baked in the provisioning scripts so
contained starts with this configuration.

We need to upstream this change to minikube later.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
@nirs nirs force-pushed the volsync-block branch 3 times, most recently from 8c4a0f1 to 0702f96 Compare October 10, 2024 20:41
Self tests should use {addon}-test namespace to make the tests easier to
debug.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
VolSync support 2 modes: creating the destination pvc or using existing
pvc. To support block pvcs we need to create the pvc. Changing the test
to use create a pvc so it is easy to add a second test using block mode.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
@nirs nirs changed the title WIP: test if volsync works with block devices Add volsync block based self test Oct 13, 2024
@nirs nirs marked this pull request as ready for review October 13, 2024 21:38
test/addons/volsync/test Outdated Show resolved Hide resolved
@nirs nirs marked this pull request as draft October 14, 2024 15:29
We need to kustomize both the application and the replication source for
file and block, and we install them separately. So we need 2
directories. Using the common shortcuts used by ramen rs (replication
source) and rd (replication destination).

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
Rewrite the resource and test script to use kustomization. The first
overlay is file (app/file, rs/file, rd/file).

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
Add an overlay using rook-ceph-block pvc. We deploy and both test in
parallel.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
@nirs nirs marked this pull request as ready for review October 14, 2024 15:48
Copy link
Member

@BenamarMk BenamarMk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@BenamarMk BenamarMk merged commit 3929be6 into RamenDR:main Oct 14, 2024
20 checks passed
@nirs nirs deleted the volsync-block branch October 14, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants