Commit Graph

120406 Commits

Author SHA1 Message Date
Sebastian Wagner
0f22f24a35 mgr/test_orchestrator: Refactor create_osds
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-03-01 16:50:42 +01:00
Sebastian Wagner
a455dff412 mgr/volumes: adapt to now orch interface
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-03-01 16:50:42 +01:00
Sebastian Wagner
d529f1db82 doc/mgr/orchestrator_modules: adapt to now orch interface
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-03-01 16:50:42 +01:00
Sebastian Wagner
828992d7fe mgr/selftest: adapt to now orch interface
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-03-01 16:50:42 +01:00
Sebastian Wagner
b92dc71205 mgr/dashboard: adapt to now orch interface
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-03-01 16:50:42 +01:00
Sebastian Wagner
bca36ab3cf mgr/mds_autoscaler: Add to tox.ini
Fixes: f69abe6291958a9ccfb85ce77c9b86e8af8ecf21
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-03-01 16:50:42 +01:00
Sebastian Wagner
1d40632826 mgr/mds_autoscaler: adapt to now orch interface
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-03-01 16:48:54 +01:00
Sebastian Wagner
1ecb93a470 mgr/test_orchestrator: adapt to now orch interface
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-03-01 16:48:54 +01:00
Sebastian Wagner
42d5c8991a mgr/rook: Adapt to new orch interface
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-03-01 16:48:54 +01:00
Sebastian Wagner
68030bec52 mgr/cephadm: Adapt cephadm to new orch interface
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-03-01 16:48:54 +01:00
Sebastian Wagner
b6c770a4cb mgr/orch: Remove old tests
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-03-01 16:48:54 +01:00
Radoslaw Zarzynski
3573c5d50e crimson/monc: drop misleading comment about Connection::reply.
Before the commit the `crimson::mon:Connection::reply`
was commented as being specific to the ProtocolV1.
However, the code suggests this member participates also
in V2-related paths like `Connection::renew_tickets()`
where `do_auth()` is called from. `do_auth()` generates
`MAuth` which causes a monitor to send `MAuthReply`.
The `Connection::reply` synchronizes sending the auth
request with response handling.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2021-03-01 15:14:25 +00:00
Radoslaw Zarzynski
3857bab837 mon: drop the unnecessary inclusion of MAuthReply.h.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2021-03-01 15:14:25 +00:00
Radoslaw Zarzynski
2f35f7e8f6 auth: drop unnecessary forward declaration from AuthClientHandler.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2021-03-01 15:14:25 +00:00
Radoslaw Zarzynski
4807e2a639 crimson/monc: fix debugs in Connection::do_auth_single().
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2021-03-01 15:14:25 +00:00
Radoslaw Zarzynski
b682a0c2d8 crimson/monc: drop the support for ProtocolV1.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2021-03-01 15:14:25 +00:00
Radoslaw Zarzynski
7f46b984be crimson/net: drop the implementation of ProtocolV1.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2021-03-01 15:14:25 +00:00
Radoslaw Zarzynski
b312794686 crimson/tests: drop the v1 support in unittest-seastar-messenger.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2021-03-01 15:14:25 +00:00
Radoslaw Zarzynski
7a7e869c0a crimson: do not use ProtocolV1 anymore.
At the moment crimson offers only a partial and buggy
support for ProtocolV1. When it enters the production,
V1 will be long obsolete, so spending time on improving
it doesn't seem to be a sound investment while offering
half-baked feature can be worse that lacking it entirely.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2021-03-01 15:14:25 +00:00
Casey Bodley
853e60f77e
Merge pull request #39521 from yuvalif/wip-yuval-fix-49322
rgw/notification: add exception handling for persistent notification thread

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2021-03-01 10:05:48 -05:00
YuanXin
49a63a5940 test/librbd: resolve compile error on centos
Signed-off-by: YuanXin <yuanxin@didiglobal.com>
2021-03-01 22:50:02 +08:00
Patrick Seidensal
0d556267f7 cephadm: remove unused imports
Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
2021-03-01 15:36:18 +01:00
Patrick Seidensal
3c222a8705 cephadm: cephadm ls broken for SUSE downstream alertmanager container
Fixes: https://tracker.ceph.com/issues/49506

Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
2021-03-01 15:35:53 +01:00
Sebastian Wagner
e4d7d7676f mgr/orch: adapt orchestrator CLI to new interface
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-03-01 13:41:55 +01:00
Sebastian Wagner
fcf7513663 mgr/orch: replace Completion with OrchResult(Generic[T])
Greatly simplify the orchestrator interface

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-03-01 13:38:10 +01:00
Kefu Chai
34dee80251
Merge pull request #39743 from tchaikov/wip-crimson-cleanup
crimson/osd: capturing this in a better way

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
2021-03-01 16:39:41 +08:00
Kefu Chai
f0635e34b9
Merge pull request #39652 from athanatos/sjust/wip-crimson-omap
crimson: btree omap_manager rework with other misc fixes

Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-03-01 15:48:40 +08:00
luo.runbing
c15e197ca0
mgr: create client messenger using ms_public_type
and fallback to ms_type if ms_public_type is not configured

otherwise rdma support breaks with ms_public_type set to async+rdma explicitly
and left ms_type & ms_cluster_type to their defaults.

Signed-off-by: luo.runbing <luo.runbing@zte.com.cn>
2021-03-01 14:06:28 +08:00
Sage Weil
f11ccd2d60 Merge PR #39631 into master
* refs/pull/39631/head:
	osd/OSDMap: don't warn on NEW osd ids
	mon/OSDMonitor: behave if inc map sets weight on not-yet-existing OSD
	mon/OSDMonitor: do not mark newly created OSDs OUT

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2021-02-28 19:00:29 -05:00
Sage Weil
aa5bd55b2d Merge PR #39696 into master
* refs/pull/39696/head:
	qa/suites/rados/monthrash: crank up client side debugging w/ mon thrashing

Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-02-28 19:00:16 -05:00
Sage Weil
7aba1840fb osd/OSDMap: don't warn on NEW osd ids
If we allocate a new OSD, don't raise a health alert about it.

Signed-off-by: Sage Weil <sage@newdream.net>
2021-02-28 11:29:53 -05:00
Kefu Chai
17fc145f90 crimson/osd: keep ClientRequest alive during seastar::repeat()
before this change, `this` is wrapped by a smart pointer which is
in turn captured by multiple continuations. the continuation with the
longest life cycle is the one passed to `seastar::repeat()`. where
the underlying `repeater` captures the continuation as its member variable.
and `repeater` is not destroyed before `seastar::repeat()` returns.

so, we only need to capture `opref` in the continuation passed to
`seastar::repeat()`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-02-28 14:06:05 +08:00
Kefu Chai
776a3ab14a crimson/osd: use finally for capturing this
* no need to capture this, it is already enclosed by `ref`
* use finally for capturing `ref`, and for printing out the "complete"
  logging message. we could use a different branch for printing out
  the failure message if any.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-02-28 14:06:05 +08:00
Kefu Chai
c1a8ad1213 crimson/osd: reduce the indent
instead of using a lambda, use a future variable for reducing the indent
level.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-02-28 14:06:05 +08:00
YuanXin
72c04a9d31 rbd: use portable zero-ing memory function
Signed-off-by: YuanXin <yuanxin@didiglobal.com>
2021-02-27 23:51:38 +08:00
Sage Weil
5e197a21e6 Merge PR #39455 into master
* refs/pull/39455/head:
	doc/man/8/ceph: document --max option
	src/test/osd/safe-to-destroy: adjust test
	ceph: print command output to stdout even on error
	mgr/DaemonServer: include details in 'osd ok-to-stop' output
	mgr: add --max <n> to 'osd ok-to-stop' command
	mgr: relax osd ok-to-stop condition on degraded pgs

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-02-27 10:15:27 -05:00
Sage Weil
fd850030ad Merge PR #39629 into master
* refs/pull/39629/head:
	crush/CrushWrapper: rebuild shadow tree on 'osd crush reweight-subtree'
	crush/CrushWrapper: update shadow trees on update_item()

Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2021-02-27 10:13:43 -05:00
Sage Weil
db9255e734 Merge PR #39674 into master
* refs/pull/39674/head:
	mon/OSDMonitor: fix safety/idempotency of {set,rm}-device-class

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: João Eduardo Luís <joao@suse.de>
2021-02-27 10:12:08 -05:00
Sage Weil
9abdf95816 Merge PR #39728 into master
* refs/pull/39728/head:
	mon/PGMap: include the per-pool usage breakdown in pg dump

Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-02-27 10:10:18 -05:00
Nathan Cutler
5cbf93287f
Merge pull request #39705 from smithfarm/wip-fix-s390x-build-regression
rpm: re-disable SUSE lttng build on z390x

Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-02-27 15:35:34 +01:00
Ilya Dryomov
37d56e1354 qa/suites/krbd: bump scratch image size to 15G
Allow generic/038 and generic/048 to run.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2021-02-27 15:25:39 +01:00
Ilya Dryomov
d2bdf0ac43 qa/suites/krbd: exclude ext4/002
ext4/002 exercises obsolete EXT4_EOFBLOCKS_FL feature that was removed
in kernel 5.7 and therefore always fails.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2021-02-27 15:25:39 +01:00
Ilya Dryomov
88f1087f9c qa/run_xfstests.sh: mount ext4 with dioread_nolock
dioread_nolock was made default in kernel 5.6, changing the expected
output of ext4/001: for dioread_nolock we want 001.out.nozero instead
of 001.out.default.  Add dioread_nolock to EXT_MOUNT_OPTIONS so that
_link_out_file() selects 001.out.nozero.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2021-02-27 15:25:39 +01:00
Ilya Dryomov
ec36d501ed qa/tasks/rbd: fix xfstests_branch/url example
- don't mention xfstests_branch together with xfstests_url as
  xfstests_branch gets superseded by xfstests_url
- make xfstests_url example more clear

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2021-02-27 15:25:39 +01:00
Sebastian Wagner
2e21d9ba1c
Merge pull request #39733 from mgfritch/cephadm-test-multiple-digest
cephadm: add multi-digest test

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-02-27 11:00:12 +01:00
Michael Fritch
22f9712aaa
cephadm: add multi-digest test
quick unit test for inspect of a container with multiple digests

Signed-off-by: Michael Fritch <mfritch@suse.com>
2021-02-26 22:16:41 -07:00
Sebastian Wagner
6434723283
Merge pull request #39648 from liewegas/cephadm-spec-config
mgr/cephadm: add config section to ServiceSpec

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2021-02-26 23:06:35 +01:00
Sage Weil
98f1be85d9 doc/man/8/ceph: document --max option
Signed-off-by: Sage Weil <sage@newdream.net>
2021-02-26 13:11:43 -06:00
Sage Weil
2e156079c8 src/test/osd/safe-to-destroy: adjust test
Signed-off-by: Sage Weil <sage@newdream.net>
2021-02-26 13:11:43 -06:00
Sage Weil
9425eee579 ceph: print command output to stdout even on error
Currently in the case where the mon returns a command error code, we print
the error stream and Error ... message but not the command output.  Usually
there isn't any, so we haven't noticed until now, but there is not reason
why shouldn't return both an error code and some output.

Restructure the code so that the error message goes *after* the JSON output,
where it will be a bit more obvious to the user (if the stdout scrolled
the terminal, for instance).  (This is not a change in behavior since
previously we weren't seeing the stdout at all.)

Signed-off-by: Sage Weil <sage@newdream.net>
2021-02-26 13:11:43 -06:00