Commit Graph

1789 Commits

Author SHA1 Message Date
Varsha Rao
e601242afe cephfs-shell: Add tests for setxattr, getxattr and listxattr
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-01-30 01:16:27 +05:30
Sage Weil
1ce0b70cc0 Merge PR #32943 into master
* refs/pull/32943/head:
	qa/tasks/ceph_manager: fix chmod on log dir during pg export copy

Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-01-29 10:34:09 -06:00
Sage Weil
9a4dd1fb3d qa/tasks/ceph_manager: fix chmod on log dir during pg export copy
With cephadm, we should chmod both /var/log/ceph and /var/log/ceph/$fsid.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-28 13:54:18 -06:00
Yehuda Sadeh
d04ea3aab5 qa: s3a-hadoop: fix user creation
This breaks with the new more strict radosgw-admin command line parsing

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2020-01-28 10:20:39 -08:00
Sage Weil
4fda278eaf Merge PR #32750 into master
* refs/pull/32750/head:
	qa/suites/upgrade/*-x/stress-split: run latest python tests at end
	qa/tasks/ceph_manager: kludge around /var/log/ceph permissions
	mgr/pg_autoscaler: don't check anything until cluster is nautilus
	qa/suites/upgrade: install python3-* as part of final upgrade step
	qa/tasks/radosbench: only set object size if != block size
	qa/tasks/ceph: simplify mon_health_to_clog suppression during restart
	cls_hello: alias write_return_data -> writes_dont_return_data
	ceph_test_cls_hello: only do returndata test on octopus+
	qa: remove unnecessary package excludes in upgrades/nautilus*
	qa: exclude cephadm from upgrade/nautilus-x
	qa/suites/upgrade/mimic-x/parallel: fix msgr2 vs octopus ordering
	qa/suites/upgrade/nautilus-x/stress-split: fix msgr2 vs octopus ordering
	qa/suites/upgrade/mimic-x: fix msgr2 vs octopus ordering
	qa/suites/upgrade/nautilus-x: end on octopus
	qa/suites/upgrade/mimic-x: finish at octopus
	qa/suites/upgrade/nautilus-x: disable TOO_FEW_PGS warning
	qa/tasks/ceph: set mon_health_to_clog=false via mon config
	qa/suites/upgrade/mimic-x: disable TOO_FEW_PGS warning

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-01-24 17:21:28 -06:00
Sage Weil
81fc73b24e Merge PR #32788 into master
* refs/pull/32788/head:
	qa/tasks/mgr/dashboard: set pg_num to 32
	mgr/pg_autoscaler: default to pg_num[_min] = 32

Reviewed-by: Sage Weil <sage@redhat.com>
2020-01-24 08:32:13 -06:00
Sage Weil
29d3eaa1a3 qa/tasks/ceph_manager: kludge around /var/log/ceph permissions
The ceph.py task normally makes these permissive.  But a package upgrade
can reset the permissions so that we can't read and write the temp
export files.  (We put them in these dirs now because it's alreadly
mapped out of cephadm containers to the host.)

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-23 21:25:08 -06:00
Sage Weil
fb991fa5f6 qa/tasks/radosbench: only set object size if != block size
This is mostly pointless, except that the -O option for objects size
used to be -o for pre-octopus, so passing -O breaks the upgrade tests.
Fortunately, the upgrades use the defaults, so we can just skate by here.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-23 21:14:31 -06:00
Sage Weil
be05f210e7 qa/tasks/ceph: simplify mon_health_to_clog suppression during restart
This only does one thing--do that.  More simply.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-23 21:14:31 -06:00
Sage Weil
777f239df9 qa/tasks/ceph: set mon_health_to_clog=false via mon config
This actually works better on new versions.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-23 17:12:56 -06:00
Sage Weil
2e1c9c9409 Merge PR #32787 into master
* refs/pull/32787/head:
	qa/tasks/cephadm: work around .git suffix on ceph_repo
	qa/tasks/cephadm: learn to pull cephadm from github

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
2020-01-23 11:25:56 -06:00
Sage Weil
1ebe7950ed qa/tasks/cephadm: work around .git suffix on ceph_repo
githubusercontent.com doesn't like the .git suffix

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-23 08:25:34 -06:00
Neha
d6e720b29e qa/tasks/mgr/dashboard: set pg_num to 32
Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-01-22 16:38:38 +00:00
Patrick Donnelly
1a0258ed3c
Merge PR #32644 into master
* refs/pull/32644/head:
	qa: ignore trimmed cache items for dead cache drop
	qa: use unit test comparisons

Reviewed-by: Zheng Yan <zyan@redhat.com>
2020-01-22 08:21:04 -08:00
Sage Weil
317c78cf46 qa/tasks/cephadm: learn to pull cephadm from github
Fixes: https://tracker.ceph.com/issues/43755
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-22 08:47:03 -06:00
Laura Paduano
c60b9cf27d
Merge pull request #32653 from votdev/issue_43603_clone_role
mgr/dashboard: Clone an existing user role

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
2020-01-22 14:28:09 +01:00
Patrick Donnelly
6637200cac
Merge PR #31232 into master
* refs/pull/31232/head:
	test: test case for openfiletable MAX_ITEMS_PER_OBJ value verification
	mds/OpenFileTable: match MAX_ITEMS_PER_OBJ to osd_deep_scrub_large_omap_object_key_threshold

Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-21 20:00:43 -08:00
Patrick Donnelly
1dcfa5e29b
Merge PR #32739 into master
* refs/pull/32739/head:
	qa: log warning on scrub error

Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-01-21 13:28:34 -08:00
Volker Theile
944490f34f mgr/dashboard: Clone an existing user role
Fixes: https://tracker.ceph.com/issues/43603

Signed-off-by: Volker Theile <vtheile@suse.com>
2020-01-21 14:51:56 +01:00
Sage Weil
089e97c270 Merge PR #32725 into master
* refs/pull/32725/head:
	qa/tasks/ceph_manager: fix revive_osd path
	qa/tasks/ceph_manager: fix shell osd for ceph-objectstore-tool commands

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2020-01-20 22:20:25 -06:00
Sage Weil
e1dcfa6d3d Merge PR #32737 into master
* refs/pull/32737/head:
	qa/tasks/ceph_manager: fix post-osd-kill pg peered check

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2020-01-20 22:20:10 -06:00
Patrick Donnelly
590368e956
qa: ignore trimmed cache items for dead cache drop
Fixes: https://tracker.ceph.com/issues/42986
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-20 17:52:12 -08:00
Patrick Donnelly
a37eda7612
Merge PR #32642 into master
* refs/pull/32642/head:
	qa: save MDS epoch barrier
	qa: prefer rank_asok

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-20 17:29:57 -08:00
Patrick Donnelly
8d9caddca6
qa: save MDS epoch barrier
Rather than verify the latest OSDMap is the same as the rank's
osdmap_epoch_barrier, just use the rank's version. The OSDMap may change
out-of-band with the test startup and thus the epoch's would diverge.
The file system and rank is fresh for each test so there's no reason to
care if the MDS barrier is one epoch behind the latest.

Fixes: https://tracker.ceph.com/issues/43554
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-20 17:20:57 -08:00
Patrick Donnelly
b89f3ca941
qa: prefer rank_asok
This is a trivial refactor.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-20 17:20:57 -08:00
Patrick Donnelly
a8a19501b7
qa: use unit test comparisons
So they show values on failure.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-20 17:08:44 -08:00
Patrick Donnelly
458f383cf2
mds: track high water mark for purges
This makes the corresponding test not racy.

Fixes: https://tracker.ceph.com/issues/16881
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-20 17:06:19 -08:00
Patrick Donnelly
096a5cad38
qa: use correct variable for exception debug
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-20 17:06:19 -08:00
Patrick Donnelly
b7454e4236
qa: log warning on scrub error
Instead of printing the (useless) traceback, just print a warning about
ignoring the failure. The traceback makes it harder to search for the
real problem in the teuthology log.

Fixes: https://tracker.ceph.com/issues/43718
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-20 11:24:09 -08:00
Patrick Donnelly
f3f6f56cd5
Merge PR #32524 into master
* refs/pull/32524/head:
	qa/xfstests_dev: change deps for xfstests-dev on ubuntu
	qa/cephfs: change deps for xfstests-dev on centos8
	vstart_runnner: add sh method to LocalRemote

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-20 11:13:06 -08:00
Patrick Donnelly
721c959ab3
Merge PR #32696 into master
* refs/pull/32696/head:
	mgr/volumes: fail removing subvolume with snapshots

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-20 11:07:55 -08:00
Sage Weil
3005d24001 qa/tasks/ceph_manager: fix revive_osd path
This was broken since it was introduced in b02e2f6cf2
a year and a half ago...

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-20 11:23:13 -06:00
Sage Weil
9600152593 qa/tasks/ceph_manager: fix post-osd-kill pg peered check
This was asserting that all PGs are active or peered, but that assertion
could fail if the concurrent workload created a new pool.

Switch to a loop that checks several times for the condition to be true.

Fixes: https://tracker.ceph.com/issues/43656
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-20 09:47:36 -06:00
Sage Weil
0aee4e5f04 qa/tasks/ceph_manager: fix shell osd for ceph-objectstore-tool commands
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-19 15:32:25 -06:00
Mykola Golub
edfc6934e2
Merge pull request #32684 from dillaman/wip-rbd-el8
tests: corrected issues with RBD tests under EL8 distros

Reviewed-by: Mykola Golub <mgolub@suse.com>
2020-01-19 20:48:09 +02:00
Rishabh Dave
b9e006a4db qa/xfstests_dev: change deps for xfstests-dev on ubuntu
Rename python to python2 if Ubuntu distro release is 19 or later.

Fixes: https://tracker.ceph.com/issues/43522
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2020-01-18 11:45:13 +05:30
Vikhyat Umrao
e0abf8c13a test: test case for openfiletable MAX_ITEMS_PER_OBJ value verification
Signed-off-by: Vikhyat Umrao <vikhyat@redhat.com>
2020-01-17 19:35:46 -08:00
Sage Weil
2d90d5778d Merge PR #32713 into master
* refs/pull/32713/head:
	qa/tasks/cephadm: start watching initial daemons before bootstrap
	qa/tasks/cephadm: create /etc/ceph if it doesn't exist
	qa/tasks/cephadm: fix log whitelist when there is no whitelist

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2020-01-17 19:46:39 -06:00
Sage Weil
0bdaf4b953 qa/tasks/ceph_manager: fix ceph-objectstore-tool calls
Pass the correct paths based on whether this is the importing or exporting
OSD.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-17 17:08:00 -06:00
Sage Weil
878e27ee0d qa/tasks/ceph_manager: fix admin_socket remote when using cephadm
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-17 17:07:40 -06:00
Sage Weil
81c735fc9c qa/tasks/ceph_manager: --no-mon-config to ceph-objectstore-tool
The config is currently fetched at osd.admin, so the keyring is not
found.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-17 17:07:40 -06:00
Sage Weil
7fefcdb6d3 qa/tasks/ceph_manager: fix filestore split command
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-17 17:07:40 -06:00
Sage Weil
60c2b8e800 qa/tasks/ceph_manager: fix import line
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-17 17:07:39 -06:00
Sage Weil
299eb6aad8 qa/tasks/cephadm: start watching initial daemons before bootstrap
This lets us see output while bootstrap is happening.

(Depends on the teuthology change to use journalctl, see
teuthology commit 4fa83040b05b604280789459f095d6f2ad1b0d01.)

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-17 23:01:09 +00:00
Sage Weil
2cc9fffc8e qa/tasks/cephadm: create /etc/ceph if it doesn't exist
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-17 22:59:57 +00:00
Sage Weil
2681985983 qa/tasks/cephadm: fix log whitelist when there is no whitelist
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-17 22:59:43 +00:00
Kefu Chai
7b0973e33b
Merge pull request #32624 from alimaredia/wip-s3-tests-python-3
qa/suites: use s3-tests with python3 support

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-01-17 23:47:51 +08:00
Jason Dillaman
82a01d3d3b qa/tasks: use correct NFS service name for EL8 distros
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-01-17 08:44:43 -05:00
Venky Shankar
c158a13342 mgr/volumes: fail removing subvolume with snapshots
Fixes: http://tracker.ceph.com/issues/43645
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2020-01-17 05:00:29 -05:00
Rishabh Dave
00dad3304d qa/cephfs: change deps for xfstests-dev on centos8
btrfs-progs-devel is not available anymore on CentOS 8, update
dependency for xfstests-dev in xfstests_dev.py accordingly.

Also, let's make minor changes to improve readability since we are
around.

Fixes: https://tracker.ceph.com/issues/43486
Signed-off-by: Rishabh Dave <ridave@gmail.com>
2020-01-16 23:35:11 +05:30