Commit Graph

2096 Commits

Author SHA1 Message Date
Sage Weil
bb126cf9ab qa/tasks/mgr/test_orchestrator_cli: fix test_ps* tests
The ps output names daemons like 'type.foo', e.g., 'mgr.x'.  Now that
the test_orchestrator impl is less bonkers this needs to be adjusted to
match reality.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-05 08:00:42 -06:00
Sage Weil
da19fd14db qa/tasks/radosbench: fix usage of -O
I tried to fix this in fb991fa5f6 but
was comparing an array to an int.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-05 07:27:24 -06:00
Thomas Bechtold
46e22c422b qa: Enable basic mypy support for qa/ directory
A first step to do more automatic code checks on the qa/
directory. This is useful while transitioning to python3.

Also use log_exc to top-level to not run into:

error: Argument 1 to "log_exc" has incompatible type
  "Callable[[OSDThrasher], Any]"; expected "OSDThrasher"

Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
2020-03-05 06:54:56 +01:00
Thomas Bechtold
f5e77561e9 qa: Fix problems detected by mypy
This is a first step to enable mypy on the qa/ directory.

Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
2020-03-05 06:53:31 +01:00
Kefu Chai
bd3dccd6fa
Merge pull request #33709 from tchaikov/wip-ceph-py-py3-rados
qa/tasks: py3 compat (tasks exercised by rados suites)

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-03-04 21:16:21 +08:00
Kefu Chai
00af2eddf5
Merge pull request #33690 from rhcs-dashboard/44237-remove-config-opt-read-from-system-roles
mgr/dashboard: remove 'config-opt: read' perm. from system roles.

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2020-03-04 20:54:42 +08:00
Kefu Chai
6ac4348712
Merge pull request #33701 from tchaikov/wip-mgr-orch-exception
mgr/orch: try harder when pickle fails to marshal an exception

Reviewed-by: Joshua Schmid <jschmid@suse.de>
2020-03-04 20:47:44 +08:00
Kyr Shatskyy
982ba399b3 qa/tasks/ceph_deploy: get rid of cStringIO for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
5f876961ef qa/tasks/manypools: get rid of itervalues for py3 compat
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
49592af400 qa/tasks/vstart_runner: use io.BytesIO for py3 compat
Use io.BytesIO instead of StringIO for py3 compatibility.

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
4c992baf25 qa/tasks/ceph_manager: ensure str for py3 compat
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
b502bc17d1 qa/tasks/ceph_objectstore_tool: get rid of cStringIO for py3
Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
b6eefbb028 qa/tasks/divergent_priors2: get rid of cStringIO for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
7ffcd00b65 qa/tasks/radosbenchsweep: get rid of cStringIO for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
fa16954df9 qa/tasks/reg11184: get rid of cStringIO for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
71ada20a0e qa/tasks: get rid of cStringIO for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
99e9e82d64 qa/tasks: get rid of cStringIO for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
fa3db2529f qa/tasks/netem: get rid of cStringIO for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
1d6c4228cd qa/tasks/scrub_test: get rid of cStringIO for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
a28d347305 qa/tasks/systemd: get rid of cStringIO for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
3eb341db27 qa/tasks/admin_socket: get rid of cStringIO for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
145ba3e100 qa/tasks/cephadm: get rid of cStringIO for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:17 +08:00
Kyr Shatskyy
1140b5f027 qa/tasks/omapbench: get rid of itervalues for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
eb10276c1c qa/tasks/mgr: get rid of itervalues for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
6e328edcbc qa/tasks/watch_notify_stress: get rid of itervalues for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
b2d52220e3 qa/tasks/osd_max_pg_per_osd: get rid of itervalues for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
3b21067bbb qa/tasks/radosbench.py: get rid of itervalues for py3 compat
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
dd8bacdb13 qa/tasks/rados: get rid of itervalues for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
8e1526d1d6 qa/tasks/daemonwatchdog: py3 compat
Address error:
        RuntimeError: dictionary changed size during iteration

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
ae6befb3be qa/tasks/workunit: py3 compat
Use six.ensure_str for `get_file()` output in order to
make code py3 compatible

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
1c81d3873d qa/tasks: fix import module path for py3 compat
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
c26ea687d4 qa/tasks/thrashosds: fix imports for py3
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
fc5662957b qa/tasks/ceph: py3 compatibility
Addresses:
  TypeError: 'dict_values' object is not subscriptable

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
e46eb8348e qa/tasks: fix imports for py3 compatibility
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
204ceee156 qa/tasks/ceph_manager: get rid of CStringIO for py3
Use io.BytesIO instead cStringIO.StringIO for py3 compatibility

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kyr Shatskyy
35cf5131e7 qa/tasks/ceph: get rid of cStringIO for py3 compat
Use io.BytesIO instead of cStringIO.StringIO
Use six.ensure_str whenever it needs to convert binary to str.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
2020-03-04 13:09:16 +08:00
Kefu Chai
e26a1cdee8 qa/tasks/test_orchestrator_cli: enable test_osd_create exception check
this reverts 9639acfefe, as the test does
make sense. what fails this test is the machinary to marshal/unmarshal
exception fails to handle un-picklable exceptions. the previous commit
is supposed to use a fallback to handle them.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-04 01:52:02 +08:00
Patrick Donnelly
416a26e733
Merge PR #33636 into master
* refs/pull/33636/head:
	qa: add upgrade test for volume upgrade from legacy

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
2020-03-03 08:17:43 -08:00
Alfonso Martínez
ad8dbefff8 mgr/dashboard: remove 'config-opt: read' perm. from system roles.
Fixes: https://tracker.ceph.com/issues/44237
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
2020-03-03 12:34:11 +01:00
Ramana Raja
8034044f94
Merge pull request #33120 from vshankar/wip-mgr-volumes-clone-sync-attrs
mgr/volumes: sync inode attributes for cloned subvolumes

Reviewed-by: Ramana Raja <rraja@redhat.com>
2020-03-03 16:13:34 +05:30
Patrick Donnelly
0c8899c985
qa: add upgrade test for volume upgrade from legacy
This tests that volumes created using the ceph_volume_client.py library
continue to be accessible/function via the Nautilus/Octopus ceph-mgr
volumes plugin.

Fixes: https://tracker.ceph.com/issues/42723
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-03-02 20:27:15 -08:00
Patrick Donnelly
b58c14a2d8
Merge PR #33363 into master
* refs/pull/33363/head:
	mds: add perf counters for openfiletable

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-03-02 17:01:48 -08:00
Patrick Donnelly
61681cffd2
Merge PR #33506 into master
* refs/pull/33506/head:
	client: add client_fs mount option support

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-03-02 16:58:02 -08:00
Sage Weil
367c402dcc Merge PR #33601 into master
* refs/pull/33601/head:
	qa/tasks/thrashosds-health: disable osd_max_markdown behavior
	osd: derr on do_shutdown cases

Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-03-02 14:27:58 -06:00
Lenz Grimmer
04e2058c6a
Merge pull request #31922 from rhcs-dashboard/42094-bucket-mfa-delete
mgr/dashboard: enable/disable MFA Delete on RGW bucket

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
2020-03-02 13:55:52 +00:00
Kiefer Chang
55adeb93b3 mgr/dashboard: list services and daemons
- Display services and daemons in the cluster/services page.
- Display daemons in the cluster/hosts/host-detail page (Daemons tab).

This PR also partially addresses https://tracker.ceph.com/issues/43165:
The endpoint `/api/orchestrator/service` is removed.

Create new endpoints:
  - `/api/service`: listing all services in the Ceph cluster.
  - `/api/service/<service_name>/daemons`: listing daemons for a
    service. e.g. daemons of OSD.
  - `/api/host/<hostname>/daemons`: listing daemons of a host.

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

Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
2020-03-02 10:20:33 +08:00
Sage Weil
d3305e94d1 Merge PR #33541 into master
* refs/pull/33541/head:
	mgr/test_orchestrator: add daemon_action
	qa/tasksmgr/test_orchestrator_cli: fix test_service_action
	qa/tasks/test_orchestrator_cli: disable test_osd_create exception check
	mgr/test_orchestrator: update_foo -> apply_foo
	mgr/test_orchestrator: add force flag to remove_daemons
	qa/tasks/mgr/test_orchestrator_cli: update
	qa/tasks/mgr/test_orchestrator_cli: fix test_load_data
	mgr/test_orchestrator: fix list_daemons

Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-03-01 16:55:06 -06:00
Sage Weil
114ef48739 qa/tasksmgr/test_orchestrator_cli: fix test_service_action
Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-01 12:24:04 -06:00
Sage Weil
9639acfefe qa/tasks/test_orchestrator_cli: disable test_osd_create exception check
I'm not sure what behavior we want here...

Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-01 11:15:51 -06:00
Sage Weil
1428f54490 qa/tasks/mgr/test_orchestrator_cli: update
Most of these were broken due to CLI changes weeks ago.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-29 17:37:18 -06:00
Venky Shankar
e22d546beb test: add test for verifying inode attrbiutes sync on clone
Also, for existing tests, additionally verify inode attributes
for clones.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
2020-02-28 11:42:17 -05:00
Alfonso Martínez
5b6cf814b9 mgr/dashboard: enable/disable MFA Delete on RGW bucket
Fixes: https://tracker.ceph.com/issues/42094
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
2020-02-28 11:35:57 +01:00
Sage Weil
aa3970ad11 qa/tasks/thrashosds-health: disable osd_max_markdown behavior
When thrashing, we don't want this markdown behavior.  In
fact, the only teuthology test that expects this behavior is
qa/standalone/osd/osd-markdown.

This bit of yaml is shared by all thrashing tests (although the name is
a bit unfortunate).

Fixes: https://tracker.ceph.com/issues/44348
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-28 03:05:45 -06:00
Xiubo Li
1a58e64299 client: add client_fs mount option support
"client_fs" is one alias for "client_mds_namespace=" and it will be
cleaner and be more user-friendly to use. "client_mds_namespace="
will be kept and backwards compatibility used.

Update the documents at the same time.

Fixes: https://tracker.ceph.com/issues/44212
Signed-off-by: Xiubo Li <xiubli@redhat.com>
2020-02-27 19:30:31 -05:00
Sage Weil
5cf9676199 qa/tasks/mgr/test_orchestrator_cli: fix test_load_data
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-27 17:15:28 -06:00
David Zafman
53158dbdd2
Merge pull request #32554 from dzafman/wip-dump-perf
Improve internal python to c++ interface

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2020-02-27 13:48:29 -08:00
David Zafman
4841100b4e test: Disable self-test of diskprediction_cloud since it isn't loaded
See qa/packages/packages.yaml

Signed-off-by: David Zafman <dzafman@redhat.com>
2020-02-27 13:12:45 -08:00
Sage Weil
f83f38a26e Merge PR #33552 into master
* refs/pull/33552/head:
	mgr/dashboard: Enhance user create CLI command to force password change

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2020-02-26 17:13:02 -06:00
Volker Theile
f1f7df3d33 mgr/dashboard: Enhance user create CLI command to force password change
Fixes: https://tracker.ceph.com/issues/44301

Signed-off-by: Volker Theile <vtheile@suse.com>
2020-02-26 15:50:53 +01:00
Patrick Donnelly
a7d273cef7
Merge PR #31200 into master
* refs/pull/31200/head:
	qa/cephfs: test case for auto reconnect after blacklisted

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-02-26 06:26:13 -08:00
Milind Changire
10fafc0ca6 mds: add perf counters for openfiletable
Add perf counters for:
* total omap objects
* total omap key-value pairs
* total omap updates
* total omap removes

Fixes: https://tracker.ceph.com/issues/43750
Signed-off-by: Milind Changire <mchangir@redhat.com>
2020-02-26 12:09:58 +05:30
Patrick Donnelly
e5841cefb4
Merge PR #33263 into master
* refs/pull/33263/head:
	qa/vstart_runner.py: make run()'s interface same as teuthology's run

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-02-25 14:45:49 -08:00
Patrick Donnelly
aebc88c31e
Merge PR #33427 into master
* refs/pull/33427/head:
	qa/cephfs: rewrite a bit of code xfstests_dev.py
	qa/cephfs: update xfstests-dev deps for RHEL 8

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-02-25 11:05:57 -08:00
Patrick Donnelly
1d3ed17dcb
Merge PR #32657 into master
* refs/pull/32657/head:
	test: query using mds id, not rank
	mgr: re-enable mds `scrub status` info in ceph status
	mon: filter out ceph normal ceph entity types when dumping service metadata
	mgr: filter out normal ceph services when processing service map
	mgr: helper function to check if a service is a normal ceph service

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-02-25 11:04:06 -08:00
Patrick Donnelly
c0c0b5a265
Merge PR #33078 into master
* refs/pull/33078/head:
	qa: avoid subtree rep in test_version_splitting

Reviewed-by: Rishabh Dave <ridave@redhat.com>
2020-02-25 09:14:37 -08:00
Patrick Donnelly
0908d4812d
Merge PR #33413 into master
* refs/pull/33413/head:
	test: verify purge queue w/ large number of subvolumes
	test: pass timeout argument to mount::wait_for_dir_empty()
	mgr/volumes: access volume in lockless mode when fetching async job

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-02-24 18:18:19 -08:00
Sage Weil
1cb0da0005 Merge PR #33496 into master
* refs/pull/33496/head:
	mgr/cephadm: combine get_daemons_by_daemon -> get_daemons_by_service
	mgr/cephadm: remove apply_mon support
	mgr/cephadm: use generics for add_mon
	mgr/cephadm: use _apply_service for mgrs
	mgr/cephadm: refactor most daemon add methods
	mgr/cephadm: refactor _update_service and all apply methods
	mgr/cephadm: fix get_unique_name when name in use

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-02-24 14:40:19 -06:00
Patrick Donnelly
a80921307e
qa: avoid subtree rep in test_version_splitting
Root subtree may be replicated which would open client sessions early.

Fixes: https://tracker.ceph.com/issues/43796
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-02-24 12:28:15 -08:00
Sage Weil
3510e8eac6 Merge PR #33477 into master
* refs/pull/33477/head:
	qa/tasks/mgr/test_orchestrator_cli: fix test_host_ls

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-02-24 14:04:04 -06:00
Sage Weil
a29a78e4e9 mgr/cephadm: remove apply_mon support
Our apply method doesn't support removing mons at this point.  And using
it for adding mons is just an awkward version of 'daemon add'.

Update docs and cephadm.py task accordingly.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-24 10:46:10 -06:00
Venky Shankar
92b2008936 test: verify purge queue w/ large number of subvolumes
Fixes: http://tracker.ceph.com/issues/44207
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2020-02-24 04:27:02 -05:00
Venky Shankar
5ec09a228c test: pass timeout argument to mount::wait_for_dir_empty()
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2020-02-24 04:27:02 -05:00
Sage Weil
3e85a09ad2 Merge PR #33328 into master
* refs/pull/33328/head:
	osd/OSD: Log slow ops/types to cluster logs

Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-02-23 15:12:48 -06:00
Sage Weil
5afec0fbfb Merge PR #33091 into master
* refs/pull/33091/head:
	qa/suites/rados: disable device scraping
	qa/standalone/ceph-helpers: disable device monitoring
	qa/tasks/ceph.py: add pre-mgr-commands option for ceph task
	mgr/devicehealth: set default monitoring to 'on'

Reviewed-by: Sage Weil <sage@redhat.com>
2020-02-22 12:05:55 -06:00
Sage Weil
52bb5b84ac qa/tasks/mgr/test_orchestrator_cli: fix test_host_ls
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-21 19:16:06 -06:00
Sebastian Wagner
ada3a3468d
Merge pull request #33258 from sebastian-philipp/orchestrator-get_hosts-HostSpec
mgr/orchestrator: get_hosts return `HostSpec` instead of `InventoryDevice`

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2020-02-21 16:48:08 +01:00
Lenz Grimmer
fcfe1da315
Merge pull request #32552 from Devp00l/wip-42617-new-tree
mgr/dashboard: Reload all CephFS directories

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-02-21 15:46:40 +00:00
Lenz Grimmer
54d32ce144
Merge pull request #32680 from votdev/wip-force-pwd
mgr/dashboard: Enforce password change upon first login

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2020-02-21 15:45:35 +00:00
Sebastian Wagner
32295039d7 qa/tasks/cephadm: orch host ls now returns hostnames
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-02-21 10:24:31 +01:00
Sage Weil
24f4094b73 Merge PR #33426 into master
* refs/pull/33426/head:
	mgr/dashboard: fix tasks.mgr.dashboard.test_rgw suite

Reviewed-by: Sage Weil <sage@redhat.com>
2020-02-20 20:01:55 -06:00
Nathan Cutler
652243e71e qa/cephadm: "ls -l" cephadm after downloading it
For better debugging when the download goes awry.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2020-02-20 17:26:07 +01:00
Nathan Cutler
a0dd01bc5e qa/cephadm.py: better check for cephadm download success
When the URL passed to "curl --silent ..." does not exist, the
resulting file will be populated with the string:

    404: Not Found

If that (or something similar) happens, the file size will be
suspiciously low, like < 1000 bytes. Fail the test immediately in this
case.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2020-02-20 17:22:20 +01:00
Nathan Cutler
dcbdb28317 qa/tasks/cephadm.py: lop off .git more robustly
The line

    rest.replace('.git/', '/')

was added to accommodate weird folks who run teuthology-suite
with an option like this:

    --suite-repo https://github.com/ceph/ceph.git/

but they might just as well give the option like this:

    --suite-repo https://github.com/ceph/ceph.git

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2020-02-20 17:22:17 +01:00
Rishabh Dave
0c1dd0a51d qa/cephfs: rewrite a bit of code xfstests_dev.py
The variable storing the major version number plays an important role
while updating deps, therefore use a better name that is more
descriptive and makes spotting thereby easier.

Also, add an explanation for why we we have list of deps for fedora and
remove a redundant line of code.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2020-02-20 20:13:06 +05:30
Rishabh Dave
0f88a21267 qa/cephfs: update xfstests-dev deps for RHEL 8
btrfs-progs-devel is not availble on RHEL 8 anymore.

Fixes: https://tracker.ceph.com/issues/43964
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2020-02-20 20:10:11 +05:30
Rishabh Dave
061d972278 qa/vstart_runner.py: make run()'s interface same as teuthology's run
Arguments accepted by method run in teuthology should be exactly same as
that of arguments accepted by vstart_runner.py's method run to prevent
test failure with teuthology due to silly argument mismatch.
Teuthology's entry method run expects **kwargs, therefore so should
vstart_runner.py's run.

Fixes: https://tracker.ceph.com/issues/44117
Signed-off-by: Rishabh Dave <ridave@redhat.com>
2020-02-20 16:01:39 +05:30
Alfonso Martínez
7cbee4d725 mgr/dashboard: fix tasks.mgr.dashboard.test_rgw suite
Fixes: https://tracker.ceph.com/issues/44201
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
2020-02-20 10:47:38 +01:00
Sage Weil
3a10b54a6a qa/tasks/ceph.py: add pre-mgr-commands option for ceph task
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-19 15:31:26 -06:00
Sage Weil
5db4bddfaf Merge PR #33123 into master
* refs/pull/33123/head:
	qa/tasks/cephadm: deploy node-exporter
	mgr/orch: deploy node-exporter

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-02-19 14:50:20 -06:00
Sage Weil
7c9efa6bdf mgr/test_orchestrator: describe_service -> list_daemons
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-19 11:01:13 -06:00
Sage Weil
93d53c05b0 qa/tasks/mgr/dashboard/test_orchestrator: disable services test
We need to either fill out the list_daemons APIs in the dashboard and test
that, or redesign and reimplement the services abstractions in the
orchestration layer.  Until then, disable this test.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-19 11:01:13 -06:00
Volker Theile
b37079a6fc mgr/dashboard: Enforce password change upon first login - Part 2
Introduce the following:
- A new layout component for the login pages.
- A new route called /login-change-password.
- A guard that checks if a user must change the password (ChangePasswordGuardService). If this is true, redirect to /login-change-password.
- Added LoginPasswordFormComponent (extends UserPasswordFormComponent) for the password form but (looks similar the login page).

Fixes: tracker.ceph.com/issues/24655

Signed-off-by: Volker Theile <vtheile@suse.com>
2020-02-19 15:54:42 +01:00
Tatjana Dehler
310f787687 mgr/dashboard: Enforce password change upon first login
Fixes: https://tracker.ceph.com/issues/24655
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2020-02-19 15:54:42 +01:00
Sage Weil
e8520eba52 qa/tasks/cephadm: deploy node-exporter
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-19 15:24:52 +01:00
Sridhar Seshasayee
d20f57000b osd/OSD: Log slow ops/types to cluster logs
In addition to logging slow ops in mon and osd specific log files,
re-introduce logging the same information along with slow op type
details to cluster logs as well. The objective is to make debugging
slow ops easier.

Modify the log whitelisting string to "slow request" within qa suites in
order to make the search for the new warning log message within the
cluster log successful. This should not cause any issue as it's a
substring of the earlier string.

Fixes: https://tracker.ceph.com/issues/43975
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
2020-02-19 14:31:48 +05:30
Sebastian Wagner
b473a84989
Merge pull request #33360 from liewegas/fix-prom
qa/suites/rados/cephadm/smoke: disable rgw role for now

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-02-18 15:14:03 +01:00
Sebastian Wagner
ae5d2c6ab2
Merge pull request #32817 from sebastian-philipp/rename-orchestrator_cli-orchestrator
pybind/mgr: Rename orchestrator_cli to orchestrator

Reviewed-by: Sage Weil <sage@redhat.com>
2020-02-18 10:05:30 +01:00
Venky Shankar
fb4cd42cbc test: query using mds id, not rank
Fixes: http://tracker.ceph.com/issues/42835
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2020-02-18 02:23:13 -05:00
Stephan Müller
e753d987e5 mgr/dashboard: Reload all CephFS directories
Now angular tree is used instead of ng2-tree, as it provides a better
way to dynamically load children and it provides a way to update all
children without losing all track of everything.

The loading icon will rotate now on any fetch.

The tree will detect new directories and removed directories.

It's also now possible to select the root directory of a CephFS in order
to create snapshots of the whole FS.

Fixes: https://tracker.ceph.com/issues/42617
Signed-off-by: Stephan Müller <smueller@suse.com>
2020-02-17 16:35:29 +01:00
Lenz Grimmer
9269f550b3
Merge pull request #33013 from s0nea/wip-dashboard-43912
mgr/dashboard: wait for PG unknown state to be cleared

Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
2020-02-17 15:34:11 +00:00
Sebastian Wagner
f2c5472286 mgr/orchestrator_cli: rename to mgr/orchestrator
* Move `mgr/orchestrator.py` to `orchestrator/_interface.py`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-02-17 10:24:01 +01:00
Sage Weil
d329dc85e1 qa/tasks/cephadm: fix prometheus shutdown
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-16 20:23:27 -06:00
Sage Weil
b650e75838 Merge PR #33289 into master
* refs/pull/33289/head:
	qa/tasks/cephadm: deploy rgw daemons too

Reviewed-by: Michael Fritch <mfritch@suse.com>
2020-02-15 08:42:10 -06:00
Kefu Chai
1d22ff29fb
Merge pull request #33347 from tchaikov/wip-orch-addr
mgr/orchestrator: "addr" is optional for constructing InventoryNode

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-02-15 22:16:50 +08:00
Kefu Chai
e470481d71
Merge pull request #33325 from tchaikov/wip-super-setup
qa/tasks: call super class's setUp()

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-02-15 18:46:51 +08:00
Kefu Chai
9000afb24b qa/tasks/mgr/orch: s/service ls/ps/
to fix the broken test of "test_load_data". it's a regression introduced
by aacc9a650f

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-02-15 18:41:18 +08:00
Kefu Chai
7d262db114 qa/tasks: call super class's setUp()
to address the regression introduced by
8729281121

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-02-15 12:39:08 +08:00
Kefu Chai
87172bcf63 mgr/dashboard: s/fsid/mirror_uuid/
to fix the broken rbd-mirror test. it's a regression introduced by
7b07e3c9dc

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-02-15 12:29:09 +08:00
Sage Weil
32b2ded8dc qa/tasks/cephadm: deploy rgw daemons too
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-14 19:52:34 -06:00
Sage Weil
f24b90c78c qa/tasks/cephadm: improve shell subcommand
- pass teuth job params through environment
- run commands via bash -c

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-14 21:10:36 +00:00
Sage Weil
e8ab248229 Merge PR #33073 into master
* refs/pull/33073/head:
	qa/suites/rados/cephadm: deploy prometheus.a
	mgr/cephadm: implement prometheus add/update
	mgr/cephadm: teach _create_daemon how to provision prometheus
	mgr/orch: add prom hooks

Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
2020-02-14 12:52:26 -06:00
Patrick Donnelly
5c98a5fd7b
Merge PR #33194 into master
* refs/pull/33194/head:
	qa: add tests for mds_join_fs cluster affinity
	qa: update cluster warning message for removed MDS
	doc: add section on new mds_join_fs behavior
	mon/MDSMonitor: enforce mds_join_fs cluster affinity
	mon/MDSMonitor: use type of info.rank or mds_rank_t
	qa: accept operation on current fs status
	qa: add method to enable multifs
	qa: fix nested generator use
	qa: manage config changes through mons

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-02-13 15:21:30 -08:00
Sage Weil
29c5cce968 qa/suites/rados/cephadm: deploy prometheus.a
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-13 13:59:36 -06:00
Patrick Donnelly
2c9642131f
qa: add tests for mds_join_fs cluster affinity
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-02-13 07:51:10 -08:00
Patrick Donnelly
e5dbe0b366
qa: accept operation on current fs status
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-02-13 07:51:10 -08:00
Patrick Donnelly
d21b651352
qa: add method to enable multifs
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-02-13 07:51:09 -08:00
Patrick Donnelly
92e5b7b15b
qa: fix nested generator use
Apparently Python doesn't allow nested generator calls. Hurray.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-02-13 07:51:09 -08:00
Patrick Donnelly
8729281121
qa: manage config changes through mons
This provides a generic framework for modifying Ceph configuration
changes in tests through the monitors rather than the asok interface or
local ceph.conf changes. Any changes are reverted during test teardown.

A future patch will convert existing tests manipulating the local
ceph.conf or admin socket.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2020-02-13 07:51:09 -08:00
Sage Weil
0d689250d1 qa/tasks/cephadm: adapt to new cli
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-13 09:43:38 -06:00
Sage Weil
aacc9a650f mgr/orch: service ls -> ps, add DaemonDescription
- We keep ServiceDescription around unmodified (although it will need some
  cleanup later)
- We add DaemonDescription, and clean out the service-related ambiguities
- Add a new list_daemons() method for Orchestrator
- Add a new 'ceph orch ps' command
- In cephadm, drop get_services(), and implement list_daemons()
  - a million changes to make this work
- Adjust health alert and option names

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-12 11:14:17 -06:00
Sage Weil
95ecaad0d5 mgr/orch: split out daemon_action from service_action
Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-12 11:14:17 -06:00
Kiefer Chang
9fd1743e1d
qa/tasks/mgr/dashboard/test_orchestrator: support addr attribute in inventory
The missing attribute `addr` causes error when loading dummy data.

Fixes: https://tracker.ceph.com/issues/44054
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
2020-02-11 23:08:29 +08:00
Sage Weil
20205e70c4 mgr/orch: 'ceph orchestrator ...' -> 'ceph orch ...'
Less typing for all!

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-09 15:39:57 -06:00
Sage Weil
52cb75acf3 qa/tasks/workunit: accept coverage_and_limits: false
Allow workunits without teuthology tools (normally installed by ceph.py,
IIRC).

Signed-off-by: Sage Weil <sage@redhat.com>
2020-02-07 17:57:45 -06:00
Tatjana Dehler
4515ab32fa
Merge pull request #32546 from votdev/issue_43089_passwd_cmplx_config
mgr/dashboard: Make password policy check configurable

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2020-02-06 09:44:48 +01:00
Kefu Chai
edca34ea67 qa/tasks/cephadm: test "orchestrator host ls"
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-02-06 09:53:17 +08:00
Kefu Chai
062e0365ea qa/tasks: drop test_cephadm_orchestrator.py
this test will end with a failure like

```
2020-01-30T18:15:15.870 INFO:tasks.ceph.mgr.x.smithi042.stderr:Warning: Permanently added 'smithi042.front.sepia.ceph.com,172.21.15.42' (ECDSA) to the list of known hosts.
2020-01-30T18:15:15.925 INFO:tasks.ceph.mgr.x.smithi042.stderr:Permission denied, please try again.
2020-01-30T18:15:15.932 INFO:tasks.ceph.mgr.x.smithi042.stderr:Permission denied, please try again.
2020-01-30T18:15:15.939 INFO:tasks.ceph.mgr.x.smithi042.stderr:root@smithi042.front.sepia.ceph.com: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
```

because mgr is not able to establish an ssh connection to that host with "root".
please note, the teuthology worker is acting using the "ubuntu" account on the
test node, and by default, "root" does not have its pubkey. and actually
`qa/tasks/cephadm.py` does push the pubkey to all the managed hosts before
testing cephadm.

since `qa/tasks/cephadm.py` is a better test for cephadm, let's just
drop this one.

as suites/rados/cephadm already covers cephadm

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-02-06 09:53:17 +08:00
Sage Weil
2611a73d57 Merge PR #33055 into master
* refs/pull/33055/head:
	qa/tasks/mgr/test_orchestrator_cli: support multiple DriveGroups

Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
2020-02-05 16:09:12 -06:00
Abhishek L
7c1a690560
Merge pull request #30684 from theanalyst/rgw/qa/rgw-admin-user-stats
qa: radosgw_admin: validate a simple user stats output

Reviewed-By: Casey Bodley <cbodley@redhat.com>
2020-02-04 17:21:25 +01:00
Kiefer Chang
c9b12e2b66
qa/tasks/mgr/test_orchestrator_cli: support multiple DriveGroups
create_osds interface in Orchestrator supports multiple named DriveGroups
since https://github.com/ceph/ceph/pull/32972. Adapt the changes in
the test.

Fixes: https://tracker.ceph.com/issues/43945
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
2020-02-04 14:31:21 +08:00
Tatjana Dehler
6ffb3e4097 mgr/dashboard: wait for PG unknown state to be cleared
Give the cluster some time to recover from the unknown
PG state before checking if the OSD is safe to destroy.

Fixes: https://tracker.ceph.com/issues/43912
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2020-02-03 11:58:10 +01:00
Patrick Donnelly
29d850fb7e
Merge PR #32570 into master
* refs/pull/32570/head:
	cephfs-shell: Add tests for setxattr, getxattr and listxattr
	cephfs-shell: Add listxattr command
	cephfs-shell: Add getxattr command
	cephfs-shell: Add setxattr command
	doc: Update about extended attributes

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-02-02 06:56:50 -08:00
Patrick Donnelly
3a6f107331
Merge PR #31633 into master
* refs/pull/31633/head:
	cephfs-shell: Instead of assert use stat for tests in rmdir
	cephfs-shell: Add function for common rmdir test code
	cephfs-shell: Add rmdir test for non empty directory
	cephfs-shell: Add rmdir -p test for non empty directory
	cephfs-shell: Add rmdir -p test for non existing dir
	cephfs-shell: Add rmdir -p test to delete all dirs in given path
	cephfs-shell: Add rmdir -p test for root directory with empty directories
	cephfs-shell: Add rmdir test for valid file
	cephfs-shell: Add rmdir test for invalid directory
	cephfs-shell: Add rmdir test for valid directory
	cephfs-shell: Fix rmdir '-p' issues

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2020-02-02 06:52:23 -08:00
Sage Weil
b66f5df514 Merge PR #32986 into master
* refs/pull/32986/head:
	qa/tasks/ceph_manager: fix movement of cot exports with cephadm

Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-02-01 10:47:56 -06:00
Ramana Raja
b7768eca2a
Merge pull request #32030 from vshankar/wip-mgr-volumes-clone
mgr/volumes: clone from snapshot
2020-02-01 13:17:51 +05:30
Sage Weil
d8a7c73a48 Merge PR #32987 into master
* refs/pull/32987/head:
	qa/tasks/ceph_manager: make fix_pgp_num behave when no pool is found

Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-01-31 17:40:23 -06:00
Sage Weil
a5d848d206 Merge PR #32989 into master
* refs/pull/32989/head:
	qa/tasks/ceph_manager: add --log-early to raw_cluster_cmd

Reviewed-by: Neha Ojha <nojha@redhat.com>
2020-01-31 17:40:13 -06:00
Sage Weil
42768600d4 qa/tasks/ceph_manager: fix movement of cot exports with cephadm
I think this will finally work...

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-31 17:26:10 -06:00
Volker Theile
3684d24a43 mgr/dashboard: Make password policy check configurable
Fixes: https://tracker.ceph.com/issues/43089

Signed-off-by: Volker Theile <vtheile@suse.com>
2020-01-31 11:28:17 +01:00
Venky Shankar
b5970ff80d test: add subvolume clone tests
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2020-01-31 05:09:14 -05:00
Sage Weil
8c87110b54 qa/tasks/ceph_manager: add --log-early to raw_cluster_cmd
This is harmless if logging is low, but adds useful info when it is turned
up.

Hunting bug https://tracker.ceph.com/issues/43914

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-30 10:36:28 -06:00
Sage Weil
1dc2a8a09e qa/tasks/ceph: only re-request scrub on unscrubbed pgs
If we haven't scrubbed everything, we occasinoally re-request scrub in case
the request was missed by the OSD (this can happen).  But we were
re-requesting scrub on ALL pgs, and if they are done in a
semi-deterministic order and are slow, then we may never get to the final
ones.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-30 10:22:49 -06:00
Sage Weil
7d0a789b1b qa/tasks/ceph_manager: make fix_pgp_num behave when no pool is found
Fixes:

2020-01-30T04:41:24.697 INFO:tasks.thrashosds.thrasher:fixing pg num pool None
2020-01-30T04:41:24.698 INFO:tasks.thrashosds.thrasher:Traceback (most recent call last):
  File "/home/teuthworker/src/git.ceph.com_ceph-c_wip-sage-testing-2020-01-29-1034/qa/tasks/ceph_manager.py", line 1070, in wrapper
    return func(self)
  File "/home/teuthworker/src/git.ceph.com_ceph-c_wip-sage-testing-2020-01-29-1034/qa/tasks/ceph_manager.py", line 1200, in _do_thrash
    self.choose_action()()
  File "/home/teuthworker/src/git.ceph.com_ceph-c_wip-sage-testing-2020-01-29-1034/qa/tasks/ceph_manager.py", line 768, in fix_pgp_num
    if self.ceph_manager.set_pool_pgpnum(pool, force):
  File "/home/teuthworker/src/git.ceph.com_ceph-c_wip-sage-testing-2020-01-29-1034/qa/tasks/ceph_manager.py", line 2088, in set_pool_pgpnum
    assert isinstance(pool_name, six.string_types)
AssertionError

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-30 08:32:56 -06:00
Sage Weil
68d3c86106 Merge PR #32972 into master
* refs/pull/32972/head:
	python-common/ceph/deployment/translate: use 'prepare' instead of 'batch' for trivial case
	qa/tasks/cephadm: pass short dev name to osd prepare
	mgr/cephadm: fix detection of just-created OSDs
	mgr/cephadm: properly indent raise conditions
	mgr/cephadm: add warning to other orchestrators
	mgr/cephadm: separate acceptance criterias for Devices
	mgr/cephadm: fix typos
	mgr/cephadm: move utils in test/utils.py
	mgr/ssh: increase disk size to 20G
	drivegroups: add support for drivegroups + tests
	mgr/orch_cli: allow multiple drivegroups
	drivegroups: translate disk spec to ceph-volume call

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Joshua Schmid <jschmid@suse.de>
2020-01-30 07:01:47 -06:00
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
f026a1c9f6 qa/tasks/cephadm: pass short dev name to osd prepare
Zap needs a full path, but create/prepare needs the VG/LV
only if it is an existing LV.

We'll make c-v more friendly later.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-01-28 14:21:53 -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
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
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