Commit Graph

6204 Commits

Author SHA1 Message Date
Sage Weil
223d5d4f9f qa/suites/upgrade/mimic-x: disable TOO_FEW_PGS warning
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-23 17:12:34 -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
Ali Maredia
1a950cd5ec
Merge pull request #32791 from liewegas/fix-rgw-website
qa/suites/rgw/website: run test on ubuntu
2020-01-23 09:01:28 -05:00
Patrick Donnelly
5d8e1d0949
Merge PR #32741 into master
* refs/pull/32741/head:
	qa/cephfs: make filelock_interrupt.py work with python3

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-22 14:41:40 -08:00
Sage Weil
acd0e31177 qa/suites/rgw/website: run test on ubuntu
The dnsmasq package on centos 8.0 is broken, see
https://tracker.ceph.com/issues/43744

For now, run this test on ubuntu.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-22 15:17:57 -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
Sage Weil
e81054c640 Merge PR #32726 into master
* refs/pull/32726/head:
	mon/ConfigMonitor: clean out bad config records
	mon/ConfigMonitor: make 'config get' on fsid work
	common/options: remove NO_MON_UPDATE from mon_dns_srv_name
	mon/ConfigMonitor: do not 'config get' on NO_MON_UPDATE options
	mon/ConfigMonitor: do not set NO_MON_UPDATE values

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2020-01-22 08:23:36 -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
Varsha Rao
d4b6a5c2d4 cephfs-shell: Instead of assert use stat for tests in rmdir
Using assert causes the tests to fail on teuthology due to this test being run
separately from the ceph cluster. Instead use stat for testing.

Signed-off-by: Varsha Rao <varao@redhat.com>
2020-01-22 16:30:11 +05:30
Varsha Rao
d21df7560e cephfs-shell: Add function for common rmdir test code
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-01-22 16:30:11 +05:30
Varsha Rao
c512b94127 cephfs-shell: Add rmdir test for non empty directory
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-01-22 16:30:11 +05:30
Varsha Rao
0ef7c6e849 cephfs-shell: Add rmdir -p test for non empty directory
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-01-22 16:30:11 +05:30
Varsha Rao
32be18e239 cephfs-shell: Add rmdir -p test for non existing dir
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-01-22 16:30:11 +05:30
Varsha Rao
dec171dddb cephfs-shell: Add rmdir -p test to delete all dirs in given path
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-01-22 16:30:11 +05:30
Varsha Rao
31710d037c cephfs-shell: Add rmdir -p test for root directory with empty directories
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-01-22 16:30:11 +05:30
Varsha Rao
5236f76a19 cephfs-shell: Add rmdir test for valid file
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-01-22 16:30:11 +05:30
Varsha Rao
b93d91b171 cephfs-shell: Add rmdir test for invalid directory
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-01-22 16:30:11 +05:30
Varsha Rao
00c052fec5 cephfs-shell: Add rmdir test for valid directory
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-01-22 16:30:11 +05:30
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
b8fb667120
Merge PR #32763 into master
* refs/pull/32763/head:
	qa: build v5.4 kernel

Reviewed-by: Jeff Layton <jlayton@redhat.com>
2020-01-21 15:08:49 -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
Patrick Donnelly
bc63a6581c
qa: build v5.4 kernel
CentOS8 userspace cannot build v4.17 kernel anymore. See also [1].

[1] https://lkml.org/lkml/2019/4/23/517

Fixes: https://tracker.ceph.com/issues/43719
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-21 13:03:03 -08:00
Ali Maredia
2552974fe7 qa: pin rgw/verify to 8.0
Signed-off-by: Ali Maredia <amaredia@redhat.com>
2020-01-21 13:02:42 -05:00
Sage Weil
ff41594ade Merge PR #32738 into master
* refs/pull/32738/head:
	qa/standalone/misc/ok-to-stop: improve test
	qa/standalone/ceph-helpers: add wait_for_peered

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2020-01-21 09:18:49 -06: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
Yan, Zheng
8c4fdbdf81 qa/cephfs: make filelock_interrupt.py work with python3
Fixes: https://tracker.ceph.com/issues/43513
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2020-01-21 10:47:51 +08: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
Sage Weil
76ea774c10 qa/standalone/misc/ok-to-stop: improve test
Make sure PGs peer (simply flushing state to mon isn't enough).

Fixes: https://tracker.ceph.com/issues/43721
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-20 13:24:30 -06: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
Sage Weil
78ec6aec90 qa/standalone/ceph-helpers: add wait_for_peered
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-20 13:23:56 -06: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
Sage Weil
02a745f8c9 mon/ConfigMonitor: do not set NO_MON_UPDATE values
These options are special.  Since we can't get the values from the mon,
we also shouldn't store them there.  Most of them are not options that
can be changed anyway.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-20 13:12:04 -06:00
Patrick Donnelly
6109e67d93
Merge PR #32639 into master
* refs/pull/32639/head:
	qa: rename kcephfs distro overrides

Reviewed-by: Rishabh Dave <ridave@redhat.com>
2020-01-20 11:08:47 -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
Ali Maredia
14981cb168
Merge pull request #32727 from liewegas/fix-rgw-os
qa/suite/rgw/verify: valgrind on centos again!
2020-01-20 12:35:41 -05:00
Sage Weil
3005d24001 qa/tasks/ceph_manager: fix revive_osd path
This was broken since it was introduced in b02e2f6cf2feb2711d4c867bf08c914b85715bb6
a year and a half ago...

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-20 11:23:13 -06:00
Patrick Donnelly
476e1a85f1
Merge PR #32668 into master
* refs/pull/32668/head:
	qa: ignore slow ops for ffsb workunit

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-20 09:15:32 -08: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
5c1e0e5f1f qa/suite/rgw/verify: valgrind on centos again!
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-19 18:47:13 -06:00
Sage Weil
ce16d20b2b Merge PR #32724 into master
* refs/pull/32724/head:
	qa/workunits/rados/test_crash.sh: suppress core files

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-01-19 18:13:43 -06:00
Sage Weil
290992e519 qa/workunits/rados/test_crash.sh: suppress core files
The cores will make teuthology fail the job--and we don't want them for
this test, where we are deliberately causing crashes.

Fixes: https://tracker.ceph.com/issues/43653
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-19 17:12:09 -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
Kefu Chai
a048784937
Merge pull request #32719 from liewegas/wip-o-upgrades
qa/suites/upgrade: fix mimic-x-singleton

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-01-19 11:39:01 +08:00
Sage Weil
c5710bc8fb Merge PR #32628 into master
* refs/pull/32628/head:
	test: Fix wait_for_state() to wait for a PG to get into a state

Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-01-18 14:39:19 -06:00
Sage Weil
65c89b93ae Merge PR #32711 into master
* refs/pull/32711/head:
	qa/standalone/mon/osd-create-pool: fix utf-8 grep LANG

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2020-01-18 12:53:24 -06: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
5ef77e1165 qa/releases/octopus: disable autoscale warnings
Existing pools might have too many/few PGs and produce a warning that
prevents us from getting to HEALTH_OK.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-17 17:52:40 -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
Sage Weil
5673ff2e00 qa/suites/upgrade/mimix-x-singleton: upgrading to octopus, not n
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-17 15:06:54 -06:00
Sage Weil
65fbc620b6 qa/standalone/mon/osd-create-pool: fix utf-8 grep LANG
This needs en_US.UTF-8... en_US does not work.

Fixes: https://tracker.ceph.com/issues/43422
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-17 14:19:53 -06: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
cefaa78186 qa/workunits/rbd: use more recent qemu-iotests that support EL8
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-01-17 08:44:44 -05: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
Sebastian Wagner
bbd18f1986
Merge pull request #32049 from mgfritch/wip-cd-timeout
cephadm: add ability to specify a timeout

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-01-17 08:32:06 +01: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
Patrick Donnelly
d4b5a9ec60
qa: ignore slow ops for ffsb workunit
EC pools typically cause this.

Fixes: https://tracker.ceph.com/issues/42637
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-15 16:12:13 -08:00
Sage Weil
4b7f5de235 Merge PR #32411 into master
* refs/pull/32411/head:
	qa/tasks/ceph_manager: enable ceph-objectstore-tool via cephadm
	qa/tasks/cephadm: support crush_tunables config option

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2020-01-15 08:39:48 -06:00
Sage Weil
2739ac4a60 qa/tasks/ceph_manager: enable ceph-objectstore-tool via cephadm
- drop support for keyvaluestore
- leave a few paths non-cephadm specific (filestore, upgrade workaround)

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-15 07:53:01 -06:00
Kefu Chai
d8a3c605cb
Merge pull request #32625 from mgfritch/cephadm-workunit-test-cleanup
qa/workunits/cephadm/test_cephadm: workunit test cleanup

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-01-15 12:33:52 +08:00
Patrick Donnelly
dc018d8b79
Merge PR #31763 into master
* refs/pull/31763/head:
	test: auto-upgrade subvolume test
	mgr/volumes: tie everything together to implement versioned subvolumes
	mgr/volumes: provide subvolume create/remove/open APIs
	mgr/volumes: implement subvolume based on subvolume template
	mgr/volumes: implement subvolume group based on group template
	mgr/volumes: implement trash as a subvolume group
	mgr/volumes: snapshot util module
	mgr/volumes: template for implementing groups and subvolumes
	mgr/volumes: implement filesystem volume module
	mgr/volumes: lock module to serialize volume operations
	mgr/volumes: introduce volume specification module
	mgr/volumes: add fs_util helper module

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-14 20:32:44 -08:00
Patrick Donnelly
059c7a2925
qa: rename kcephfs distro overrides
This is just a naming refactor.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-14 14:15:56 -08:00
Patrick Donnelly
167563c59e
Merge PR #32582 into master
* refs/pull/32582/head:
	qa/cephfs: don't run kclient tests on latest RHEL
	qa/cephfs: don't test kclient on RHEL 7

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-14 12:43:28 -08:00
Casey Bodley
6a6d4a4ffa
Merge pull request #32620 from cbodley/wip-qa-rgw-hadoop-versions
qa/rgw: s3a-hadoop task defaults to maven-version 3.6.3

Reviewed-by: Ali Maredia <amaredia@redhat.com>
2020-01-14 13:36:29 -05:00
Sage Weil
ef91c1e70b Merge PR #32622 into master
* refs/pull/32622/head:
	qa/workunits/cephadm/test_cephadm: drop stray 'exit 0'

Reviewed-by: Michael Fritch <mfritch@suse.com>
2020-01-14 08:45:30 -06:00
Casey Bodley
b10873142e qa/rgw: remove test against hadoop v2.8.5
the hadoop branch rel/release-2.8.5 fails to build with:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:37 min
[INFO] Finished at: 2020-01-14T13:09:02Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (create-parallel-tests-dirs) on project hadoop-aws: An Ant BuildException has occured: Unable to create javax script engine for javascript

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2020-01-14 09:42:54 -05:00
Casey Bodley
5bb03f143e qa/rgw: remove test against hadoop trunk
hadoop's trunk fails to build with many 'package does not exist' errors:

[INFO] 100 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  48.792 s
[INFO] Finished at: 2020-01-14T13:07:36Z
[INFO] ------------------------------------------------------------------------

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2020-01-14 09:39:33 -05:00
Laura Paduano
f22247fd28
Merge pull request #32032 from votdev/issue_43088_passwd_async_validator
mgr/dashboard: Process password complexity checks immediately

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2020-01-14 11:15:10 +01:00
David Zafman
9f7aabbe9f test: Fix wait_for_state() to wait for a PG to get into a state
To avoid confusion fix function names in osd-backfill-space.sh for how
they actually work.

Fixes: https://tracker.ceph.com/issues/43592

Signed-off-by: David Zafman <dzafman@redhat.com>
2020-01-13 18:39:38 -08:00
Sage Weil
eba385b715 qa/tasks/cephadm: support crush_tunables config option
Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-13 19:49:57 -06:00
Michael Fritch
19e20c2e89
qa/workunits/cephadm/test_cephadm: add SUDO to vgchange
2020-01-13T10:48:14.235 INFO:tasks.workunit.client.0.smithi177.stderr:+ vgchange -an test_cephadm
2020-01-13T10:48:14.239 INFO:tasks.workunit.client.0.smithi177.stderr:  WARNING: Running as a non-root user. Functionality may be unavailable.
2020-01-13T10:48:14.239 INFO:tasks.workunit.client.0.smithi177.stderr:  /run/lvm/lvmetad.socket: access failed: Permission denied
2020-01-13T10:48:14.240 INFO:tasks.workunit.client.0.smithi177.stderr:  WARNING: Failed to connect to lvmetad. Falling back to device scanning.
2020-01-13T10:48:14.260 INFO:tasks.workunit.client.0.smithi177.stderr:  /dev/mapper/control: open failed: Permission denied
2020-01-13T10:48:14.261 INFO:tasks.workunit.client.0.smithi177.stderr:  Failure to communicate with kernel device-mapper driver.
2020-01-13T10:48:14.261 INFO:tasks.workunit.client.0.smithi177.stderr:  Incompatible libdevmapper 1.02.145 (2017-11-03) and kernel driver (unknown version).
2020-01-13T10:48:14.301 INFO:tasks.workunit.client.0.smithi177.stderr:  /run/lock/lvm/V_test_cephadm:aux: open failed: Permission denied
2020-01-13T10:48:14.301 INFO:tasks.workunit.client.0.smithi177.stderr:  Can't get lock for test_cephadm
2020-01-13T10:48:14.301 INFO:tasks.workunit.client.0.smithi177.stderr:  Cannot process volume group test_cephadm

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-01-13 15:18:24 -07:00
Michael Fritch
57f3dc87b1
qa/workunits/cephadm/test_cephadm: need to add quotes for PYTHONS var
2020-01-13T10:48:13.374 INFO:tasks.workunit.client.0.smithi177.stderr:/home/ubuntu/cephtest/clone.client.0/qa/workunits/cephadm/test_cephadm.sh: line 46: [: python3: binary operator expected

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-01-13 15:18:24 -07:00
Ali Maredia
0ed77d1c1a qa: remove s3readwrite & s3roundtrip tasks
As a result of the s3-tests python3 port, the
s3readwrite & s3roundtrip testing files were
deleted

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2020-01-13 15:46:31 -05:00
Ali Maredia
07a8ac5778 qa: s3tests/s3tests-website tasks no longer only use ubunutu
Signed-off-by: Ali Maredia <amaredia@redhat.com>
2020-01-13 15:46:28 -05:00
Sage Weil
fe8f423345 qa/workunits/cephadm/test_cephadm: drop stray 'exit 0'
Introduced in 40b70c632d22dbd4cf68f8ad0df1b30ee28b9f19

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-13 14:40:51 -06:00
Casey Bodley
abe5277269
Merge pull request #32188 from cbodley/wip-qa-rgw-obj-manifest
qa/rgw: add rgw_obj and throttle tests to rgw verify suite

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2020-01-13 14:45:19 -05:00
Casey Bodley
9d4d273af7
Merge pull request #32550 from cbodley/wip-qa-rgw-multisite-admin-rest
qa/rgw: remove failing radosgw_admin_rest from multisite suite

Reviewed-by: Shilpa Jagannath <smanjara@redhat.com>
2020-01-13 14:43:37 -05:00
Casey Bodley
82351b9874 qa/rgw: s3a-hadoop task defaults to maven-version 3.6.3
binaries for v3.6.2 are no longer available under
http://www-us.apache.org/dist/maven/maven-3/

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2020-01-13 14:15:03 -05:00
Rishabh Dave
853504bf8e qa/cephfs: don't run kclient tests on latest RHEL
Fixes: https://tracker.ceph.com/issues/43541
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2020-01-13 10:27:02 +05:30
Rishabh Dave
e0335ee6e9 qa/cephfs: don't test kclient on RHEL 7
https://tracker.ceph.com/issues/43539
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2020-01-13 10:27:02 +05:30
Rishabh Dave
b7d740ede7 vstart_runnner: add sh method to LocalRemote
The method is a wrapper of teuthology.misc.sh

Fixes: https://tracker.ceph.com/issues/43496
Signed-off-by: Rishabh Dave <ridave@gmail.com>
2020-01-13 10:22:56 +05:30
Kefu Chai
62a79c08bd
Merge pull request #32588 from tchaikov/wip-qa-mgr-setup-with-force
qa/tasks/mgr: set mgr module option with --force

Reviewed-by: Laura Paduano <lpaduano@suse.com>
2020-01-10 22:58:42 +08:00
Kefu Chai
14a138e676
Merge pull request #32519 from tchaikov/wip-qa-skip-if-no-pool
qa/tasks/ceph_manager: do not pick a pool is there is no pools

Reviewed-By: Neha Ojha <nojha@redhat.com>
2020-01-10 21:33:32 +08:00
Kefu Chai
ba98e06c61
Merge pull request #32549 from tchaikov/wip-qa-rados-whitelist-health-warning
qa: whitelist FS_DEGRADED

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-01-10 21:28:33 +08:00
Kefu Chai
492b41bb2a
Merge pull request #32512 from tchaikov/wip-cbt-py3
Revert "qa/tasks/cbt: include py2 deps on ubuntu for now"

Reviewed-By: Neha Ojha <nojha@redhat.com>
2020-01-10 21:26:49 +08:00
Kefu Chai
7210d7f951 qa/tasks/mgr: set mgr module option with --force
if mgr is not active, monitor will refuse to set any option consumed by
mgr modules.

the reason the tests pass somtimes is that, we have a racing here:

1. stop all mgr daemons
2. MgrMonitor gets updated and updates its mgr_module_options
accordingly.
3. in TestDashboard.setUp(), we reset the port number for dashboard
using "ceph config set mgr mgr/dashboard/y/ssl_server_port 7789"
4. restart all mgr daemons

but the 2nd step and 3rd step could race with each other, if the 2nd
step happens after 3rd step, the test passes. otherwise it fails.

in this change, "--force" is passed to the "ceph config set" command,
so ConfigMonitor can bypass the sanity test for the option, and just
set this option.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-01-10 13:28:34 +08:00
Kefu Chai
1bd1328ad7
Merge pull request #32571 from tchaikov/wip-qa-test-runner-run-testcase
qa/tasks/cephfs_test_runner: setattr to class not instance

Reviewed-by: Laura Paduano <lpaduano@suse.com>
2020-01-10 11:28:52 +08:00
Casey Bodley
cfa5922fd8 qa/rgw: add rgw_obj and throttle tests to rgw verify suite
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2020-01-09 16:51:37 -05:00
Patrick Donnelly
cf2d411251
Merge PR #32532 into master
* refs/pull/32532/head:
	qa: only restart MDS between tests

Reviewed-by: Jos Collin <jcollin@redhat.com>
2020-01-09 12:24:28 -08:00
Casey Bodley
c0a1b533f9
Merge pull request #32462 from alimaredia/wip-s3-tests-branch-override-remove
qa: remove force-branch from overrides of s3-tests

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2020-01-09 14:48:44 -05:00
Patrick Donnelly
bae0c67395
Merge PR #32533 into master
* refs/pull/32533/head:
	qa: fix various py3 cephfs qa bugs x2

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Thomas Bechtold <tbechtold@suse.com>
2020-01-09 11:13:53 -08:00
Patrick Donnelly
148e99be09
Merge PR #32507 into master
* refs/pull/32507/head:
	qa: detect RHEL8 for yum package installation

Reviewed-by: Rishabh Dave <ridave@redhat.com>
2020-01-09 11:12:32 -08:00
Kefu Chai
2fe9771842
Merge pull request #32575 from tchaikov/wip-43227
qa/tasks/mgr/dashboard: set pg_num to 16

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
2020-01-09 23:23:15 +08:00
Michael Fritch
906bfb3251
cephadm: add timeout for run, shell, enter, logs
Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-01-09 07:59:40 -07:00
Kefu Chai
15a5ebdce2 qa/tasks/mgr/dashboard: set pg_num to 16
as the default pg_num is now 16 since 78bf9244, and the minimum pg_num
is also 16 in autoscaler since 78bf9244.

Fixes: https://tracker.ceph.com/issues/43227
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-01-09 20:54:56 +08:00
Kefu Chai
204263b829 qa/tasks/cephfs_test_runner: setattr to class not instance
before this change, `setattr()` sets the instance specialized with a certain method
of test case, so in `MgrTestCase.setUpClass()`

assert cls.mgr_cluster is not None

fails,

after this change, instead of test case, the class of test suite is updated with the
specified params, even if we pass a certain test to test runner.
so we can

./run-backend-api-tests.sh tasks.mgr.test_dashboard.TestDashboard.test_standby

now. before this change, we can only:

./run-backend-api-tests.sh tasks.mgr.test_dashboard.TestDashboard

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-01-09 20:48:23 +08:00
Tatjana Dehler
1c18ca31fd
Merge pull request #32234 from votdev/better_orch_exception
mgr/dashboard: Throw a more meaningful exception

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2020-01-09 13:41:43 +01:00
Venky Shankar
03ee966b6c test: auto-upgrade subvolume test
Fixes: https://tracker.ceph.com/issues/43349
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2020-01-09 06:33:31 -05:00
Kefu Chai
e67034b95a qa/tasks/ceph_manager: do not pick a pool is there is no pools
random.choice(seq) raises IndexError if seq is empty. we cannot ensure
there is always one or more pools in the cluster while using pool
related thrasher. so skip the thrasher action if there is no pools at
that moment.

Fixes: https://tracker.ceph.com/issues/43412
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-01-09 10:26:32 +08:00
Casey Bodley
f51a7cae7d qa/rgw: remove failing radosgw_admin_rest from multisite suite
this was added to test that admin apis forward relevent requests to the
master zone, but radosgw_admin_rest.py tries to create an admin user
with 'radosgw-admin user create'. this fails with:

Please run the command on master zone. Performing this operation on
non-master zone leads to inconsistent metadata between zones
Are you sure you want to go ahead? (requires --yes-i-really-mean-it)

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2020-01-08 10:27:33 -05:00
Patrick Donnelly
1d727267e5
Merge PR #32535 into master
* refs/pull/32535/head:
	qa: define centos version for fs:verify

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-01-08 07:27:06 -08:00
Kefu Chai
44fb077978 qa: whitelist FS_DEGRADED
`admin_socket_output --all` sends "respawn" to mds, so when the mds
restarts, FS_DEGRADED.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-01-08 22:20:35 +08:00
Kefu Chai
93fd11dd47
Merge pull request #32461 from s0nea/wip-dashboard-fix-user-test
mgr/dashboard: fix failing user test

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-01-08 11:40:42 +08:00
Patrick Donnelly
423dcb4c54
qa: only restart MDS between tests
"fs fail" will only fail the MDS that are part of the file system which
will generally allow us to avoid spurious MDS_INSUFFICIENT_STANDBY
warnings. Further, only restart the MDS, there's no reason to leave them
offline.

Fixes: https://tracker.ceph.com/issues/43514
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-07 18:47:23 -08:00
Patrick Donnelly
6adcace694
Merge PR #30802 into master
* refs/pull/30802/head:
	cephfs-shell: Modify Quota Test
	cephfs-shell: Fix permission errors on quota tests
	cephfs-shell: Add tests for quota
	cephfs-shell: Print max_bytes and max_files as string on get Quota
	cephfs-shell: Remove extra length argument passed to setxattr()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
2020-01-07 14:11:16 -08:00
Patrick Donnelly
e83aa733b9
Merge PR #32459 into master
* refs/pull/32459/head:
	qa/tasks: Nothing to clean up if the volume was not created
	mgr/volumes: drop obsolete comment in _cmd_fs_volume_create
	mgr/volumes: cleanup on fs create error

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-07 14:08:41 -08:00
Patrick Donnelly
593d3b1779
qa: detect RHEL8 for yum package installation
Fixes: https://tracker.ceph.com/issues/43487
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-07 13:54:17 -08:00
Patrick Donnelly
8f8d03dd3c
Merge PR #32510 into master
* refs/pull/32510/head:
	mon: use non-obsolete mon scrub cmd

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-01-07 13:52:36 -08:00
Patrick Donnelly
2cdb2972cd
qa: define centos version for fs:verify
Otherwise it uses the teuthology default of 7.6.

Fixes: https://tracker.ceph.com/issues/43516
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-07 13:20:00 -08:00
Patrick Donnelly
ae28ed11d7
qa: fix various py3 cephfs qa bugs x2
Fixes: https://tracker.ceph.com/issues/43515
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-07 13:06:11 -08:00
David Zafman
3869ee3d7c
Merge pull request #32247 from dzafman/wip-43307
Remove use of rules batching for upmap balancer and default for upmap_max_deviation to 5

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-01-07 10:41:37 -08:00
Tatjana Dehler
b9094f1e17 mgr/dashboard: fix failing user tests
Choose another future_date_1 date (9 days instead of 10) to
make sure the expiration date will be between future_date_1
and future_date_2. Otherwise the expiration date might be
equal to future_date_1.
Also wait for 10 seconds before the password refresh in
test_pwd_expiration_date_update to prevent date equality.

Fixes: https://tracker.ceph.com/issues/43431
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2020-01-07 11:56:52 +01:00
Ilya Dryomov
39fdbe1b81
Merge pull request #32376 from idryomov/wip-krbd-fsx-object-map
qa/suites/krbd: fsx with object-map and fast-diff

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2020-01-07 11:32:26 +01:00
Kefu Chai
0150ac9daa
Merge pull request #32518 from tchaikov/wip-orchestrator-service-action-tests
qa/tasks/mgr/test_orchestrator_cli: fix service action tests

Reviewed-by: Thomas Bechtold <tbechtold@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-01-07 17:44:10 +08:00
Kefu Chai
ccfaf40491
Merge pull request #32428 from tchaikov/wip-qa-mgr-mon-update
qa/tasks/mgr/test_orchestrator_cli: fix "mon update" test

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-01-07 16:29:34 +08:00
Kefu Chai
4c98b3224e qa/tasks/mgr/test_orchestrator_cli: fix service action tests
in b77f0c74a5213ee57de19d21c930b2f3c872a1c4, "reload"
service[-instance] action was dropped. so replace "reload" with
"restart" in the related tests.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-01-07 16:00:04 +08:00
David Zafman
c65d5c8d14 test: Sort pool list because the order isn't guaranteed from "balancer pool ls"
Signed-off-by: David Zafman <dzafman@redhat.com>
2020-01-06 21:35:19 -08:00
David Zafman
b0a1b758d0 mgr: Change default upmap_max_deviation to 5
Fixes: https://tracker.ceph.com/issues/43312

Signed-off-by: David Zafman <dzafman@redhat.com>
2020-01-06 21:35:19 -08:00
David Zafman
8e46bbbf36 test: Fix test case for pool based balancing instead of rule batched
Signed-off-by: David Zafman <dzafman@redhat.com>
2020-01-06 21:35:19 -08:00
Kefu Chai
8f9e8cce03 Revert "qa/tasks/cbt: include py2 deps on ubuntu for now"
This reverts commit 3f2270a1c4f7ce93304ca9228771254944c4b15c.

since https://github.com/ceph/cbt/pull/208 got merged, there is no need
to install python2 for cbt anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-01-07 09:35:20 +08:00
Ilya Dryomov
53066d09ab
Merge pull request #32358 from idryomov/wip-krbd-py3-fixup
qa: krbd_exclusive_option.sh: fixup for json.tool ordering change

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2020-01-06 21:54:43 +01:00
Patrick Donnelly
e389d9016c
Merge PR #32480 into master
* refs/pull/32480/head:
	qa: use -D_GNU_SOURCE when compiling fsync-tester.c
	qa: add comment about fsync-tester distribution

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-01-06 12:34:37 -08:00
Patrick Donnelly
87755902ad
Merge PR #31494 into master
* refs/pull/31494/head:
	qa: force creation of fs with EC default data pool
	qa: add tests for adding EC data pools
	mon/MDSMonitor: warn when creating fs with default EC data pool

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2020-01-06 12:30:59 -08:00
Patrick Donnelly
c755740376
Merge PR #32467 into master
* refs/pull/32467/head:
	qa: fix various py3 cephfs qa bugs

Reviewed-by: Thomas Bechtold <tbechtold@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-01-06 12:25:34 -08:00
Patrick Donnelly
02b3883dd0
Merge PR #32363 into master
* refs/pull/32363/head:
	qa: add .qa link

Reviewed-by: Sage Weil <sage@redhat.com>
2020-01-06 12:18:12 -08:00
Patrick Donnelly
1710acdc6b
mon: use non-obsolete mon scrub cmd
Fixes: e9a5ce0897efc6126caeebea9900bf05ec3d2174
Fixes: https://tracker.ceph.com/issues/43488
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-01-06 12:06:10 -08:00
Kefu Chai
f05696ebeb qa: enable CRB repo for RHEL8
instead of enabling PowerTools repo, we need to enable CodeReady Builder
repo for RHEL8

also, since we are moving to RHEL8, there is no need to install cmake3
specifically for CentOS. CentOS 8 comes with cmake3.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-01-06 23:41:23 +08:00
Ilya Dryomov
b2b7610d1a qa: krbd_exclusive_option.sh: fixup for json.tool ordering change
In Python 3.5 json.tool was changed to produce unsorted output and
--sort-keys option was added to compensate.  This wasn't caught by
4fe245cc2f2d ("qa: update krbd tests for python3") because it raced
with 50933b863a1d ("qa: krbd_exclusive_option.sh: update for recent
kernel changes").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2020-01-06 15:12:25 +01:00
Ilya Dryomov
cff2e49ff0 qa/suites/krbd: fsx with object-map and fast-diff
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2020-01-06 14:52:52 +01:00