Commit Graph

2999 Commits

Author SHA1 Message Date
Ilya Dryomov
7eb9c5ddb2 Merge branch 'master' into wip-unauthorized-gids
Sync up with master up to commit 3d8e73b266 ("Merge pull request
#40731 from tchaikov/wip-yamlize-options").  Specifically, bring in
src/common/options.cc yamlization and move new auth-related options
into src/common/options/global.yaml.in.

Conflicts:
	src/common/options.cc
	src/common/options/global.yaml.in

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2021-04-13 15:42:06 +02:00
Patrick Donnelly
4d29e591dd
Merge PR #40481 into master
* refs/pull/40481/head:
	qa: test standby-replay with fs:workloads

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-04-09 20:04:32 -07:00
Patrick Donnelly
76ac006875
Merge PR #40431 into master
* refs/pull/40431/head:
	qa/cephfs: remove create_keyring_file from cephfs_test_case.py
	qa/cephfs: don't use sudo to write files in /tmp

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
2021-04-09 20:02:27 -07:00
Samuel Just
055ebe381d
Merge pull request #39216 from myoungwon/wip-manifest-dedup-test
osd, test: reworks for manifest dedup test cases

Reviewed-by: Samuel Just <sjust@redhat.com>
2021-04-09 12:42:18 -07:00
Jos Collin
90ec86d8ff
qa: Update the mdsmap schema in mgr/dashboard/test_health.py
Fixed the error:
tasks.mgr.dashboard.helper._ValError: In `input['fs_map']['filesystems'][0]['mdsmap']`: unknown keys: {'flags_state'}
Traceback (most recent call last):
File "/home/jenkins-build/build/workspace/ceph-api/qa/tasks/mgr/dashboard/test_health.py", line 273, in test_full_health
self.assertSchema(data, schema)

Fixes: https://tracker.ceph.com/issues/48683
Signed-off-by: Jos Collin <jcollin@redhat.com>
2021-04-09 17:34:19 +05:30
Patrick Donnelly
4702be4f47
qa: test standby-replay with fs:workloads
Fixes: https://tracker.ceph.com/issues/50045
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-04-08 11:37:56 -07:00
Rishabh Dave
511434ac5a qa/cephfs: remove create_keyring_file from cephfs_test_case.py
Since teuthology.orchestra.remote.mktemp() can write a temporary file
and not just create it, create_keyring_file() is now redundant.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-04-08 12:11:00 +05:30
Rishabh Dave
e213849581 qa/cephfs: don't use sudo to write files in /tmp
Files in /tmp cannot be written by any user( including the root user)
other than the file owner even if the permission mode on the file is
777.

Fixes: https://tracker.ceph.com/issues/49466
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-04-08 11:56:00 +05:30
Venky Shankar
714d51301b
Merge pull request #40342 from batrick/snap_schedule-qa-fixes
qa: snap_schedule test debugging

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2021-04-08 11:51:05 +05:30
Jos Collin
58b62f10d9
qa: test fs lsflags command
Fixes: https://tracker.ceph.com/issues/48682
Signed-off-by: Jos Collin <jcollin@redhat.com>
2021-04-08 11:09:18 +05:30
Yuval Lifshitz
c43878d0bd
Merge pull request #40625 from TRYTOBE8TME/wip-rgw-notifications
rgw/test: Changing force-branch to master
2021-04-08 08:32:45 +03:00
Kalpesh
42d87989e9 rgw/test: Changing force-branch to master
This PR includes 2 things:
1. Changing force-branch to master and removing the git-remote. This change was forgetten for PR #39139.
2. Proper cleanup/removal after completion of commands more precisely removing the kafka logs directory.

Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
2021-04-08 01:37:29 +05:30
Kefu Chai
39b2b5edc0 qa/tasks/mgr: skip test_diskprediction_local on python>=3.8
query the python version before trying to test diskprediction_local

Fixes: https://tracker.ceph.com/issues/50196
Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-04-07 21:27:44 +08:00
Sage Weil
9f6fd4fe56 qa/tasks/ceph[adm].conf[.template]: disable insecure global_id reclaim health alerts
Turn these off everywhere for our tests so they don't interfere with our health checks.

Signed-off-by: Sage Weil <sage@newdream.net>
2021-04-06 17:29:21 -04:00
Sage Weil
9e96806aea Merge PR #40603 into master
* refs/pull/40603/head:
	qa/tasks/ceph.conf: shorten cephx TTL for testing

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
2021-04-06 17:28:08 -04:00
Sage Weil
3b391cbf7a Merge PR #40602 into master
* refs/pull/40602/head:
	qa/tasks/cephadm: add apply() method/task

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2021-04-06 16:04:27 -04:00
Patrick Donnelly
414b5593f0
Merge PR #40465 into master
* refs/pull/40465/head:
	test: bump up retries for `test_mirroring_init_failure_with_recovery` test
	test: fix typo
	test: disable mgr/mirroring for `test_mirroring_init_failure_with_recovery` test

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-04-06 10:43:12 -07:00
Patrick Donnelly
42d7da5f12
Merge PR #40469 into master
* refs/pull/40469/head:
	qa: check mounts attribute in ctx

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-04-06 10:41:55 -07:00
Sage Weil
94df762447 qa/tasks/ceph.conf: shorten cephx TTL for testing
Rotate tickets frequently to exercise those code paths during testing.

Signed-off-by: Sage Weil <sage@newdream.net>
2021-04-05 13:19:57 -05:00
Sage Weil
05b3ce2585 qa/tasks/cephadm: add apply() method/task
Signed-off-by: Sage Weil <sage@newdream.net>
2021-04-05 11:44:22 -05:00
Alfonso Martínez
7bdb1587fc
Merge pull request #40519 from rhcs-dashboard/50077-vstart-runner-max-required-mgrs
qa/tasks/vstart_runner.py: start max required mgrs

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: rishabh-d-dave <NOT@FOUND>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-04-01 08:30:50 +02:00
Alfonso Martínez
45e1134e3b qa/tasks/vstart_runner.py: start max required mgrs
Pass environment copy with max required mgrs when shell kwarg is True.

Fixes: https://tracker.ceph.com/issues/50077
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
2021-03-31 10:11:50 +02:00
Ramana Raja
433b70a483 qa/tasks/cephfs: create enough subvolumes
... in a subvolume group so that the desired number of ephmerally pinned
subtrees are created for the subvolume group, which has the distributed
ephemeral pin policy set on it.

Fixes: https://tracker.ceph.com/issues/48411
Signed-off-by: Ramana Raja <rraja@redhat.com>
2021-03-30 16:36:21 -04:00
Jos Collin
b4b932fe1c
qa: check mounts attribute in ctx
check mounts attribute in ctx before unmounting in bark()

Fixes: https://tracker.ceph.com/issues/49898
Signed-off-by: Jos Collin <jcollin@redhat.com>
2021-03-29 18:30:39 +05:30
myoungwon oh
242e2ee284 qa: add missing argument parser
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-03-29 17:15:16 +09:00
myoungwon oh
9e8601ddf5 qa: add dedup-io-mixed test
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-03-29 17:09:49 +09: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
Kefu Chai
73925c488a
Merge pull request #39969 from batrick/i49684
qa: wait for daemons to come up via cephadm

Reviewed-by: Sage Weil <sage@redhat.com>
2021-03-28 20:01:32 +08:00
Sridhar Seshasayee
b5570238b6 qa/tasks: Add wait_for_clean() check prior to initiating scrubbing.
Fixes: https://tracker.ceph.com/issues/49983
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
2021-03-25 22:01:19 +05:30
Rishabh Dave
dbe002ef64 vstart_runner: reuse code in LocalRemoteProcess
Reduce duplication in LocalRemoteProcess.wait() and
LocalRemoteProcess.finished() by moving the common code to a separate
method and then using that separate method instead.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-03-25 20:28:05 +05:30
Sage Weil
fe9454722a Merge PR #40314 into master
* refs/pull/40314/head:
	qa/tasks/cephadm: use 'orch apply mon' to deploy mons

Reviewed-by: Juan Miguel Olmo <jolmomar@redhat.com>
2021-03-23 22:58:14 -04:00
Patrick Donnelly
6b461745af
qa: log snapshot changes during verification
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-23 18:24:42 -07:00
Patrick Donnelly
6b58fc35da
pybind/mgr/snap_schedule: log database updates for debugging
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-23 18:24:42 -07:00
Patrick Donnelly
25a513da06
qa: improve assertion check to aid debugging
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-23 18:24:41 -07:00
Ernesto Puerta
f1557e8f62
Merge pull request #36402 from rhcs-dashboard/wip-45965-users-quota-usage
mgr/dashboard: Display users current quota usage

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2021-03-23 20:07:45 +01:00
Patrick Donnelly
7d412b86d0
Merge PR #40174 into master
* refs/pull/40174/head:
	qa/vstart_runner: fix the admin_socket args parsing

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
2021-03-22 20:05:29 -07:00
Patrick Donnelly
49241859b5
Merge PR #40146 into master
* refs/pull/40146/head:
	test: pass peer uuid when adding cephfs mirror peers
	mon: check cephfs mirror peer based on remote cluster spec and file system name

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-22 20:03:41 -07:00
Patrick Donnelly
5000b33180
Merge PR #40145 into master
* refs/pull/40145/head:
	doc: add note about disabling standby-replay during upgrades
	qa: add test for standby-replay disable
	mon: fail standby-replay daemons when flag is turned off

Reviewed-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
2021-03-22 20:03:02 -07:00
Patrick Donnelly
42270a5338
Merge PR #38443 into master
* refs/pull/38443/head:
	qa: set "shell" to False for run_ceph_w()
	vstart_runner: make "shell" a default argument

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
2021-03-22 20:00:46 -07:00
Sage Weil
a17593a177 qa/tasks/cephadm: use 'orch apply mon' to deploy mons
The 'orch daemon add ...' command is not idempotent and can cause
duplicate (and failing) attempts to add the same mon.

Maintain the ability to add mons the old way for the benefit of testing
upgrades from early octopus versions of cephadm.

Signed-off-by: Sage Weil <sage@newdream.net>
2021-03-22 16:28:40 -05:00
Patrick Donnelly
d06689e16e
qa: wait for daemons to come up via cephadm
Rather than waiting for a set amount of time.

Fixes: https://tracker.ceph.com/issues/49684
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-21 10:35:07 -07:00
Patrick Donnelly
5292e88201
qa: reduce dependence on teuthology role list for mds
It's not yet possible to completely remove the dependency on
mds_ids/mds_daemons in the CephFS tests but this commit reduces it
enough for most code paths to work with cephadm.

The main change here is use of CephManager.do_rados, with some
improvements.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-21 10:35:07 -07:00
Patrick Donnelly
24bb1aa31b
qa: improve usability of do_rados helper
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-21 10:35:07 -07:00
Patrick Donnelly
8e45af05c9
qa: remove get_lone_mds_id
This helps remove a dependence on the list of mds_daemons from
teuthology/cephadm.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-21 10:35:07 -07:00
Patrick Donnelly
0825d6aa9e
qa: simplify tests which stop MDS ranks
Instead of stopping MDS daemons and individually failing MDS daemons,
just fail the ranks or the entire file system, where possible.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-21 10:35:06 -07:00
Patrick Donnelly
6ca48f6330
qa: use mds_tell for getting mds status
mds_asok is broken with cephadm currently due to [1].

[1] https://tracker.ceph.com/issues/48019#note-5

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-21 10:35:06 -07:00
Patrick Donnelly
fe85001de2
qa: remove shutdown lockdep not relevant to unit test
This is part of a fleet of commits trying to remove unnecessary mds_stop
calls in testing.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-21 10:35:06 -07:00
Patrick Donnelly
4c3c69b230
qa: remove fallback for non-multifs ceph version
This code was for jewel (IIRC) or older.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-21 10:35:06 -07:00
Patrick Donnelly
eccf961697
qa: add Filesystem.reset helper
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-21 10:35:06 -07:00
Kotresh HR
92dc982318 mgr/volumes: Retain suid/guid bits in subvolume clone
Fixes: https://tracker.ceph.com/issues/49882
Signed-off-by: Kotresh HR <khiremat@redhat.com>
2021-03-19 09:30:04 +05:30
Yuval Lifshitz
b903b2e011
Merge pull request #39139 from TRYTOBE8TME/wip-rgw-bucket-tests-separation-new
Wip rgw bucket tests separation new
2021-03-18 20:33:00 +02:00
Avan Thakkar
9456884c29 mgr/dashboard: Display users current quota usage
Fixes: https://tracker.ceph.com/issues/45965

Signed-off-by: Avan Thakkar <athakkar@redhat.com>
2021-03-18 18:48:37 +05:30
Sridhar Seshasayee
88df47230b qa/tasks: Add additional wait_for_clean() check in lost_unfound tasks.
At the end of the lost_unfound tests add an additional wait_for_clean()
check to ensure that recoveries get enough time to complete before
proceeding and avoid failures down the line. For e.g. failure like
"Scrubbing terminated -- not all pgs were active and clean." is because
recoveries on the PGs did not get sufficient time to complete even though
they were bound to eventually complete.

Fixes: https://tracker.ceph.com/issues/49844
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
2021-03-18 13:03:41 +05:30
Casey Bodley
29f4bbb5ee qa/rgw: notifications suite runs single job
pin to the beast frontend, default bluestore, replicated pools, and run
against a random distro

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2021-03-18 11:06:40 +05:30
Kefu Chai
181dc1a43f
Merge pull request #39757 from aclamk/wip-qa-test-bluestore-reshard
qa: Add bluestore resharding test

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2021-03-17 22:41:34 +08:00
Xiubo Li
e0e5eb4c93 qa/vstart_runner: fix the admin_socket args parsing
Fixes: https://tracker.ceph.com/issues/49621
Signed-off-by: Xiubo Li <xiubli@redhat.com>
2021-03-17 21:54:50 +08:00
Patrick Donnelly
facd7a59ae
Merge PR #39847 into master
* refs/pull/39847/head:
	qa/cephfs: don't expect "file exists" error for "mkdir -p"
	qa/cephfs: don't take parameter cwd in _create_mntpt()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
2021-03-16 20:21:52 -07:00
Venky Shankar
f276782803 test: pass peer uuid when adding cephfs mirror peers
Fixes: http://tracker.ceph.com/issues/49822
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2021-03-16 03:03:16 -04:00
Patrick Donnelly
7925394ddf
qa: add test for standby-replay disable
Causes all standby-replay daemons to be removed.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-15 20:52:07 -07: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
Rishabh Dave
df88ec3822 qa: set "shell" to False for run_ceph_w()
Setting shell to True in call to run() in LocalCephManager.run_ceph_w()
leads to a crash when self.subproc.communicate() is executed for the
process created by running "ceph -w".

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-03-12 09:03:13 +05:30
Rishabh Dave
391e5b19fc vstart_runner: make "shell" a default argument
Add "shell" as a parameter for LocalRemoteProcess._do_run() and set its
default value to True. This is necessary to align the interface that
executes the commands for the teuthology and for vstart_runner.py which
reduces compatibility bugs between vstart_runner and teuthology for
tests.

Also, update the part where LocalRemote._do_run() sets shell to True
based on whether or not list contains an instance of class Raw.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-03-12 09:01:58 +05:30
Sage Weil
1d590a07a2 Merge PR #40034 into master
* refs/pull/40034/head:
	qa/suites/rados/cephadm/upgrade: start at 15.2.9 to test iscsi upgrade
	qa/tasks/cephadm.py: don't set mgr count to +1

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2021-03-11 18:52:03 -05:00
Sage Weil
0a139c1ffc qa/tasks/cephadm.py: don't set mgr count to +1
Signed-off-by: Sage Weil <sage@newdream.net>
2021-03-11 14:16:15 -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
Sebastian Wagner
1d2009c3e9
Merge pull request #39640 from sebastian-philipp/cephadm-cephfs-mirror
cephadm: cephfs-mirror

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2021-03-10 18:34:03 +01:00
Patrick Donnelly
4b506bbe4e
Merge PR #38913 into master
* refs/pull/38913/head:
	qa/tasks/cephfs/nfs: Add tests for updating fs exports
	mgr/volumes/nfs: Handle rook restart error
	doc/cephfs/nfs: Add about update export interface
	mgr/volumes/nfs: Add command to update cephfs exports
	pybind/volumes/nfs: set mds caps according to user specified access type
	mgr/volumes/module: Remove unused json module

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-10 07:01:27 -08:00
Sebastian Wagner
d4bf7157a1 qa/cephadm: Add cephfs-mirror test
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-03-10 15:02:41 +01:00
Sebastian Wagner
340281fe76 qa/tasks: some type annotations
Mostly for making my IDE aware of things

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-03-10 15:02:41 +01:00
Sebastian Wagner
b6a2dfc777
Merge pull request #39877 from liewegas/cephadm-rgw-simplification
mgr/cephadm: simplify handling for rgw

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Or Friedmann <ofriedma@redhat.com>
2021-03-10 13:58:37 +01:00
Adam Kupczyk
a84820b743 qa: Add bluestore resharing test
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
2021-03-10 10:21:09 +01:00
Rishabh Dave
60d5d7cf9c qa/cephfs: don't expect "file exists" error for "mkdir -p"
Get rid of try-except block in _create_mntpt() since "mkdir -p" doesn't
raise any error when the directory to be created already exists. Also,
use chmod command instead of mkdir command to set the permission mode on
directory since mkdir command would have no effect on the directory's
permission mode if the directory already exists.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-03-10 12:05:15 +05:30
Rishabh Dave
1b34665741 qa/cephfs: don't take parameter cwd in _create_mntpt()
Accepting "cwd" as a parameter in _create_mntpt() methods was a mistake
that happened commit 5e71e9b065.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-03-10 12:04:41 +05:30
Patrick Donnelly
1cbad56fd2
Merge PR #37711 into master
* refs/pull/37711/head:
	qa/cephfs: create class LocalCephFSMount
	vstart_runner: reuse FuseMount methods in LocalFuseMount
	vstart_runner: reuse KernelMount methods in LocalKernelMount
	qa/cephfs: move common and generic methods mount.py
	qa/cephfs: refactor FuseMount.mount method
	qa/cephfs: refactor KernelMount.mount method

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-09 13:41:53 -08:00
Patrick Donnelly
be2958f489
Merge PR #39408 into master
* refs/pull/39408/head:
	test: add test for validating cephfs-mirror daemon service status
	pybind/mirroring: interface to fetch mirror daemon status
	cephfs-mirror: register mirror daemon with service manager
	cephfs-mirror: remove unneeded json_spirit header

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-09 13:40:09 -08:00
Patrick Donnelly
fe31c23964
Merge PR #39814 into master
* refs/pull/39814/head:
	qa/cephfs: move is_blocklisted() to filesystem.CephCluster

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-09 13:36:40 -08:00
Sage Weil
1bfb0cd84b qa/tasks/cephadm: drop realm.zone convention for rgw
Note that cephadm.py will no longer do anything with rgw realms and
zones.  That means that the setup of rgw roles here is only useful
for the default zone and a non-multisite config.

Signed-off-by: Sage Weil <sage@newdream.net>
2021-03-09 14:29:43 -05:00
Casey Bodley
ef1c10127f
Merge pull request #38605 from mdw-at-linuxbox/wip-master-transit
rgw: new vault transit logic for SSE-C

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2021-03-08 11:00:01 -05:00
Kefu Chai
434c1ce400
Merge pull request #39775 from rishabh-d-dave/fs-qa-accept-cmds-as-str
qa/ceph_manager: accepts commands as str too

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-07 23:52:54 +08:00
Kefu Chai
3cdb88b0ac
Merge pull request #39690 from rishabh-d-dave/qa-raw_cluster_cmd
qa/ceph_manger: fixes bugs in CephManager

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-07 23:51:05 +08:00
Marcus Watts
e8ff0464d4 rgw/kms/vault - s3tests for both old and new test logic.
Test both "old" and "new" transit logic with s3tests.  Does not test
migration - that will need to be done separately.  I've added
a "flavor" parameter so the test logic can tell the difference
between the "old" engine and the "new" engine.  The vault
keys creation logic now has options to determine whether
the keys created are exportable (needed for the old transit
engine), or not (should be the case going forward with the
new transit engine.)

Fixes: http://tracker.ceph.com/issues/48746
Signed-off-by: Marcus Watts <mwatts@redhat.com>
2021-03-05 23:05:13 -05:00
Rishabh Dave
4d0f56fcc5 qa/cephfs: move is_blocklisted() to filesystem.CephCluster
Using self.fs.mon_manager in mount.py can lead to a crash since self.fs
can be None. Move is_blocklisted() to tasks.filesystem.CephCluster where
it can get access to mon_manager without depending on objects
representing Ceph FSs.

Fixes: https://tracker.ceph.com/issues/49511
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-03-06 09:11:36 +05:30
Matt Benjamin
d2c30d7130
Merge pull request #33996 from mdw-at-linuxbox/wip-master-kmip
rgw / kmip kms
2021-03-05 16:20:18 -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
Rishabh Dave
66a87d21ed qa/cephfs: create class LocalCephFSMount
This would contain methods common to LocalKernelMount and
LocalFuseMount.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-03-05 10:03:14 +05:30
Rishabh Dave
2716c98ce9 vstart_runner: reuse FuseMount methods in LocalFuseMount
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-03-05 10:03:14 +05:30
Rishabh Dave
eeba70eae8 vstart_runner: reuse KernelMount methods in LocalKernelMount
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-03-05 10:03:14 +05:30
Rishabh Dave
5e71e9b065 qa/cephfs: move common and generic methods mount.py
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-03-05 10:03:12 +05:30
Rishabh Dave
21cbda91f1 qa/cephfs: refactor FuseMount.mount method
Make FuseMount.mount() such that it can LocalFuseMount can reuse it
instead of duplicating it. For this, move subtasks required for mounting
Ceph FS (like creating mountpoint directory) to a different method, so
that these methods can be overriden in LocalFuseMount as per
requirement.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-03-05 09:55:10 +05:30
Rishabh Dave
86467b14d7 qa/cephfs: refactor KernelMount.mount method
Make KernelMount.mount() such that it can LocalKernelMount can reuse it
instead of duplicating it. For this, move subtasks required for mounting
Ceph FS (like creating mountpoint directory) to a different method, so
that these methods can be overriden in LocalKernelMount as per
requirement.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2021-03-05 08:53:26 +05:30
Patrick Donnelly
ec13ed7c50
Merge PR #39724 into master
* refs/pull/39724/head:
	qa: skip exit-on-first-failure option for valgrind on ubuntu
	mds,qa: exit instead of respawn under valgrind
	qa: skip chdir for fuse_mount
	qa: ignore all slow request warnings
	qa: add new mds beacon grace mon config
	qa: wait for MDS to join fsmap
	qa: move get_valgrind_args to qa

Reviewed-by: Rishabh Dave <ridave@redhat.com>
2021-03-04 13:32:10 -08:00
Patrick Donnelly
13c50a9923
Merge PR #38684 into master
* refs/pull/38684/head:
	qa: add _check_scrub_status helper to simplify the code
	qa: add run_scrub helper in filesystem class
	qa: add get_scrub_status helper in filesystem class
	qa: wait the scrub task to complete
	qa: remove passed_validation check for test_damage
	qa: move wait_until_scrub_complete helper to filesystem class
	mds: simplify the C_MDS_EnqueueScrub finish code

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-03-04 13:27:45 -08:00
Sage Weil
defc019c6a Merge PR #39823 into master
* refs/pull/39823/head:
	qa/tasks/cephadm: remove mirror code

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2021-03-04 11:41:28 -05:00
Sage Weil
208407c5c0 qa/tasks/cephadm: remove mirror code
This is being done from ansible now.  Also, it breaks when
the conf file has unqualified-search-registries but not 'registry'
entries.

Signed-off-by: Sage Weil <sage@newdream.net>
2021-03-04 07:39:15 -06:00
Varsha Rao
0928858db0 qa/tasks/cephfs/nfs: Add tests for updating fs exports
Signed-off-by: Varsha Rao <varao@redhat.com>
2021-03-04 15:18:07 +05:30
Ernesto Puerta
461d17c29a
Merge pull request #39801 from rhcs-dashboard/49574-fix-pyjwt
mgr/dashboard: fix issues related with PyJWT versions >=2.0.0

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2021-03-04 09:53:42 +01:00