Commit Graph

21 Commits

Author SHA1 Message Date
Venky Shankar
11b61b4fb9 test: adjust mirroring tests for daemon status change
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-08-02 06:39:16 -04:00
Venky Shankar
19a45c8d54 test: add test for checking readd after remove for a directory path
Fixes: http://tracker.ceph.com/issues/51666
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-07-16 01:08:23 -04:00
Patrick Donnelly
4fc4ccb7a1
qa: convert mount calls to mount_wait
These tests want to immediately use the mount anyway. But the main
problem is, without waiting for the mount to complete, the command:

    chmod 1777 /path/to/mount

is not run so the mount cannot be written to by normal users without
sudo.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-07-01 10:56:10 -07:00
Venky Shankar
074f55006e test: add test to verify adding an active peer back to source
Fixes: http://tracker.ceph.com/issues/50447
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-05-31 00:32:05 -04:00
Venky Shankar
da9788a9b5 test: add test to verify incremental snapshot updates
Fixes: http://tracker.ceph.com/issues/49939
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-05-25 08:45:44 -04:00
Patrick Donnelly
21b69fda3c
Merge PR #41084 into master
* refs/pull/41084/head:
	test: test to verify dir path removal when no mirror daemons are running
	pybind/mirroring: advance state machine from stalled state
	pybind/mirroring: start from correct state during policy init

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-05-20 12:42:19 -07:00
Venky Shankar
f4ed3ae5f3 test: test to verify dir path removal when no mirror daemons are running
Fixes: http://tracker.ceph.com/issues/50523
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-05-11 08:39:45 -04:00
Venky Shankar
0676409bec test: disable mirroring module for certain tests
Without this a traceback is seen in mgr logs. Also, this solves
one part of the issue. The other half (failing tests) will be
resolved by PR #40885.

Fixes: http://tracker.ceph.com/issues/50224
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-05-05 08:37:35 -04:00
Patrick Donnelly
a52cc67249
Merge PR #40962 into master
* refs/pull/40962/head:
	test: add test to validate snap synchronization with parent directory snapshots
	cephfs-mirror: ignore parent directory snapshots when building snap map

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-05-03 17:43:47 -07:00
Venky Shankar
2b308e6165 test: add test to validate snap synchronization with parent directory snapshots
Fixes: http://tracker.ceph.com/issues/50442
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-04-21 07:57:09 -04:00
Venky Shankar
18deb52f5d test: adjust mirroring test to use changed daemon status JSON
Fixes: http://tracker.ceph.com/issues/50266
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-04-20 21:18:54 -04:00
Venky Shankar
6f4201d15f test: bump up retries for test_mirroring_init_failure_with_recovery test
The test could fail at times since the mirror daemon periodically
retries the failed state for a mirror enabled file system. This
flips the status reported via asok interface.

Fixes: http://tracker.ceph.com/issues/50020
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-03-29 02:53:16 -04:00
Venky Shankar
4ff70e94ac test: fix typo
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-03-29 02:53:16 -04:00
Venky Shankar
c0df8cf78d test: disable mgr/mirroring for test_mirroring_init_failure_with_recovery test
The test simulates failures by enabling mirroring for file system
via mon interface. Doing this does not create `cephfs-mirror` index
obejct that trips the mirror daemon to report failed status via
asok interface -- so that the test can verify this.

However, mgr/mirroring module gets to know that mirroring is
enabled for this file system (via FSMap) and tried to load the
directory map, but fails to do so and throws a backtrace in the
logs. Fix this by disabling mgr/mirroring before mirroring is
enabled via mon command.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-03-29 02:53:16 -04:00
Venky Shankar
cecc3a6982 test: add symbolic link synchronization test for cephfs-mirror
Fixes: http://tracker.ceph.com/issues/49711
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-03-12 03:53:42 -05:00
Venky Shankar
8ee88f5735 pybind/mirroring: add interface to list file system mirror peers
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-03-11 03:41:52 -05:00
Venky Shankar
3e13f48937 test: add tests for mirroring bootstrap interfaces
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-03-11 03:41:52 -05:00
Venky Shankar
d1585af77b test: add test for failed filesystem mirror instances
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-03-11 03:41:52 -05:00
Venky Shankar
c0632f6bd5 test: add test for validating cephfs-mirror daemon service status
Fixes: http://tracker.ceph.com/issues/48943
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-03-05 01:00:01 -05:00
Venky Shankar
ebf248b143 test: adjust sleep time to account for valgrind runs
Valgrind make everything run slow. So, increase wait timeouts
wherever necessary.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-02-02 09:25:20 -05:00
Venky Shankar
f81e8f1e88 test: add tests for mirroring module w/ daemon verification
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-01-19 01:08:10 -05:00