]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agocrimson/common: specialize errorator<> for future<> 41941/head
Kefu Chai [Sat, 19 Jun 2021 11:13:17 +0000 (19:13 +0800)]
crimson/common: specialize errorator<> for future<>

otherwise it always needs a return value.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/common: extract parallel_for_each_state out
Kefu Chai [Sat, 19 Jun 2021 11:12:36 +0000 (19:12 +0800)]
crimson/common: extract parallel_for_each_state out

if `parallel_for_each_state` is defined as a nested class in errorator,
clang fails to compile it:

../src/crimson/common/errorator.h:716:47: error: no class named 'parallel_for_each_state' in 'errorator<AllowedErrors...>'
    friend class errorator<AllowedErrors...>::parallel_for_each_state;
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

and the forward declaration does not help. so we have to extract it
out of the errorator. to speed up the compilation, it is moved into
errorator-loop.h. its name mirrors `include/seastar/core/loop.h`.

we could extract the `errorator<>::parallel_for_each()` out as well,
as its return type can be deduced from the type of Iterator and Func.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #41900 into master
Patrick Donnelly [Sat, 19 Jun 2021 02:54:09 +0000 (19:54 -0700)]
Merge PR #41900 into master

* refs/pull/41900/head:
qa: use centos latest for fs:upgrade

Reviewed-by: Rishabh Dave <ridave@redhat.com>
4 years agoMerge PR #41899 into master
Patrick Donnelly [Sat, 19 Jun 2021 02:52:54 +0000 (19:52 -0700)]
Merge PR #41899 into master

* refs/pull/41899/head:
mon/MDSMonitor: check fscid exists for legacy case

Reviewed-by: Ramana Raja <rraja@redhat.com>
4 years agoMerge PR #41898 into master
Patrick Donnelly [Sat, 19 Jun 2021 02:52:24 +0000 (19:52 -0700)]
Merge PR #41898 into master

* refs/pull/41898/head:
mon/MDSMonitor: fix whitespace in debug message

Reviewed-by: Rishabh Dave <ridave@redhat.com>
4 years agoMerge PR #41892 into master
Patrick Donnelly [Sat, 19 Jun 2021 02:51:55 +0000 (19:51 -0700)]
Merge PR #41892 into master

* refs/pull/41892/head:
client: remove unused include from barrier.cc

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #41833 into master
Patrick Donnelly [Sat, 19 Jun 2021 02:51:05 +0000 (19:51 -0700)]
Merge PR #41833 into master

* refs/pull/41833/head:
cephfs-mirror: silence warnings when connecting via mon host

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #41723 into master
Patrick Donnelly [Sat, 19 Jun 2021 02:50:22 +0000 (19:50 -0700)]
Merge PR #41723 into master

* refs/pull/41723/head:
mds: to print the unknow type value

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
4 years agoMerge PR #40997 into master
Patrick Donnelly [Sat, 19 Jun 2021 02:49:15 +0000 (19:49 -0700)]
Merge PR #40997 into master

* refs/pull/40997/head:
test: add test to verify adding an active peer back to source
pybind/mirroring: disallow adding a active peer back to source
pybind/cephfs: interface to fetch file system id

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #36823 into master
Patrick Donnelly [Sat, 19 Jun 2021 02:47:53 +0000 (19:47 -0700)]
Merge PR #36823 into master

* refs/pull/36823/head:
qa : add a test for the cmd, dump cache
mds : add timeout to the command, dump cache, to prevent it from running too long and affecting the service

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #40506 from p-se/pse-update-grafana-deprecated-variables
Ernesto Puerta [Fri, 18 Jun 2021 18:08:11 +0000 (20:08 +0200)]
Merge pull request #40506 from p-se/pse-update-grafana-deprecated-variables

mgr/dashboard: deprecated variable usage in Grafana dashboards

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: p-se <NOT@FOUND>
4 years agoMerge pull request #41808 from rhcs-dashboard/51164-show-only-days-in-bucket-details
Ernesto Puerta [Fri, 18 Jun 2021 18:07:11 +0000 (20:07 +0200)]
Merge pull request #41808 from rhcs-dashboard/51164-show-only-days-in-bucket-details

mgr/dashboard: bucket details: show lock retention period only in days

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #41758 from rhcs-dashboard/support-multiple-crush-trees
Ernesto Puerta [Fri, 18 Jun 2021 18:04:16 +0000 (20:04 +0200)]
Merge pull request #41758 from rhcs-dashboard/support-multiple-crush-trees

mgr/dashboard: crushmap tree doesn't display crush type other than root

Reviewed-by: Waad Alkhoury <walkhour@redhat.com>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
4 years agoMerge pull request #35903 from agayev/fix-deployment-guide
Kefu Chai [Fri, 18 Jun 2021 08:26:09 +0000 (16:26 +0800)]
Merge pull request #35903 from agayev/fix-deployment-guide

doc: Add a missing instruction to manual deployment guide.

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agodoc: Add a missing instruction to manual deployment guide. 35903/head
Abutalib Aghayev [Thu, 2 Jul 2020 15:35:10 +0000 (11:35 -0400)]
doc: Add a missing instruction to manual deployment guide.

Following the instructions as is results in the following error at step 15:

$ sudo -u ceph ceph-mon --mkfs -i node1 --monmap /tmp/monmap --keyring /tmp/ceph.mon.keyring
global_init: error reading config file.

Signed-off-by: Abutalib Aghayev <agayev@cs.cmu.edu>
4 years agoMerge pull request #41911 from tchaikov/wip-crimson-nbd-cleanup
Kefu Chai [Fri, 18 Jun 2021 02:22:21 +0000 (10:22 +0800)]
Merge pull request #41911 from tchaikov/wip-crimson-nbd-cleanup

crimson/tools/store_nbd: better cleanup

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/tools/store_nbd: replace wait_pending with seastar::gate 41911/head
Kefu Chai [Thu, 17 Jun 2021 07:08:32 +0000 (15:08 +0800)]
crimson/tools/store_nbd: replace wait_pending with seastar::gate

the inc_pending + promise<> solution is pratically identical to
seastar::gate, so let's use the prepackaged solution instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/tools/store_nbd: drop unnecessary seastar::now()
Kefu Chai [Thu, 17 Jun 2021 05:26:14 +0000 (13:26 +0800)]
crimson/tools/store_nbd: drop unnecessary seastar::now()

the body of handle_exception() is a synchronous operation, there is no
need to return seastar::now() here.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/tools/store_nbd: better cleanup
Kefu Chai [Thu, 17 Jun 2021 01:35:40 +0000 (09:35 +0800)]
crimson/tools/store_nbd: better cleanup

* remove unix domain socket file when cleanup
  so we don't need to remove it manually after each run.
* shutdown input and output streams when cleanup
  so reactor does not watch them anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/tools/store_nbd: s/socket/server_socket/
Kefu Chai [Thu, 17 Jun 2021 02:53:34 +0000 (10:53 +0800)]
crimson/tools/store_nbd: s/socket/server_socket/

to prepare for the next commit, which will keep track of the
connected_socket as another member variable.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #41916 from AmnonHanuhov/wip-Refactor_test_messenger
Amnon Hanuhov [Thu, 17 Jun 2021 21:04:40 +0000 (00:04 +0300)]
Merge pull request #41916 from AmnonHanuhov/wip-Refactor_test_messenger

test/crimson: Use crimson's make_message in test_messenger

4 years agotest/crimson: Use crimson's make_message in test_messenger 41916/head
Amnon Hanuhov [Thu, 17 Jun 2021 12:18:57 +0000 (15:18 +0300)]
test/crimson: Use crimson's make_message in test_messenger

Signed-off-by: Amnon Hanuhov <ahanukov@redhat.com>
4 years agoMerge pull request #41905 from ivancich/wip-improve-cls-rgw-tracing
J. Eric Ivancich [Thu, 17 Jun 2021 19:37:30 +0000 (15:37 -0400)]
Merge pull request #41905 from ivancich/wip-improve-cls-rgw-tracing

rgw: clean-up logging of function entering to make thorough and consistent

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Ali Maredia <amaredia@redhat.com>
4 years agorgw: clean-up logging of function entering to make thorough and consistent 41905/head
J. Eric Ivancich [Mon, 10 May 2021 21:36:49 +0000 (17:36 -0400)]
rgw: clean-up logging of function entering to make thorough and consistent

This provides more thorough and consistent function tracing in CLS/RGW
when logging is set to 10 or higher.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
4 years agoMerge pull request #41903 from liewegas/update-rook-client
Sebastian Wagner [Thu, 17 Jun 2021 14:53:56 +0000 (16:53 +0200)]
Merge pull request #41903 from liewegas/update-rook-client

rook-client-python: update to update-june-21

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
4 years agoMerge pull request #41835 from TRYTOBE8TME/wip-rgw-keycloak-failure-fix
Ali Maredia [Thu, 17 Jun 2021 14:30:28 +0000 (10:30 -0400)]
Merge pull request #41835 from TRYTOBE8TME/wip-rgw-keycloak-failure-fix

qa/tasks: Keycloak failure fix

Reviewed-by: Ali Maredia <amaredia@redhat.com>
4 years agomgr/rook: comment out osd creation functions 41871/head 41903/head
Joseph Sawaya [Wed, 16 Jun 2021 16:49:53 +0000 (12:49 -0400)]
mgr/rook: comment out osd creation functions

This commit comments out the OSD creation functions in rook_cluster.py
and module.py, since the submodule update has broken them.

Signed-off-by: Joseph Sawaya <jsawaya@redhat.com>
4 years agomgr/rook: fix some mypy typing errors in rook_cluster.py
Joseph Sawaya [Tue, 15 Jun 2021 22:07:51 +0000 (18:07 -0400)]
mgr/rook: fix some mypy typing errors in rook_cluster.py

This commit fixes some errors caught by mypy in rook_cluster.py. Most of the
errors were caused by the update of the rook-client-python submodule in a previous
commit.

Signed-off-by: Joseph Sawaya <jsawaya@redhat.com>
4 years agomgr/rook: pass zone attribute to CephObjectStore CR when creating rgw
Joseph Sawaya [Tue, 15 Jun 2021 18:14:40 +0000 (14:14 -0400)]
mgr/rook: pass zone attribute to CephObjectStore CR when creating rgw

This commit passes the zone attribute to the CephObjectStore CR when
creating a RGW instance using the Rook Orchestrator backend:
`ceph orch apply rgw <rgw-name> --realm=<realm-name> --zone=<zone-name>`

Signed-off-by: Joseph Sawaya <jsawaya@redhat.com>
4 years agoMerge pull request #41856 from rhcs-dashboard/maintenance-bug-fix
Ernesto Puerta [Thu, 17 Jun 2021 10:44:57 +0000 (12:44 +0200)]
Merge pull request #41856 from rhcs-dashboard/maintenance-bug-fix

mgr/dashboard: Fix 500 error while exiting out of maintenance

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: sebastian-philipp <NOT@FOUND>
4 years agoMerge pull request #41694 from jmolmo/kcli_cephadm_doc
Sebastian Wagner [Thu, 17 Jun 2021 09:37:26 +0000 (11:37 +0200)]
Merge pull request #41694 from jmolmo/kcli_cephadm_doc

doc: Add kcli utilization for development environments

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
4 years agoMerge pull request #41848 from xxhdx1985126/wip-errorator-parallel_for_each
Kefu Chai [Thu, 17 Jun 2021 04:23:29 +0000 (12:23 +0800)]
Merge pull request #41848 from xxhdx1985126/wip-errorator-parallel_for_each

crimson: errorator parallel_for_each

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #41894 from tchaikov/wip-crimson-sigint
Kefu Chai [Thu, 17 Jun 2021 02:31:27 +0000 (10:31 +0800)]
Merge pull request #41894 from tchaikov/wip-crimson-sigint

crimson/{osd,store_nbd}: handle SIGINT

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agoMerge pull request #41895 from ceph/wip-cacephcom
Kefu Chai [Thu, 17 Jun 2021 00:13:49 +0000 (08:13 +0800)]
Merge pull request #41895 from ceph/wip-cacephcom

MIRRORS: Add ca.ceph.com

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agomgr/dashboard: Fix 500 error while exiting out of maintenance 41856/head
Nizamudeen A [Tue, 15 Jun 2021 08:47:58 +0000 (14:17 +0530)]
mgr/dashboard: Fix 500 error while exiting out of maintenance

When you add a host in maintenance mode and then exit the maintenance
mode, a 500 server error will popup which will interrupt the whole
exit maintenance process and leave the host in an unknown/offline state.
It happened when I was setting the status of the host through the
HostSpec(). With this change, I am using the enter_maintenance api of
the orch to enable the maintenance.

Fixes: https://tracker.ceph.com/issues/51218
Signed-off-by: Nizamudeen A <nia@redhat.com>
4 years agorook-client-python: update to update-june-21
Sage Weil [Wed, 16 Jun 2021 20:11:34 +0000 (16:11 -0400)]
rook-client-python: update to update-june-21

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa: use centos latest for fs:upgrade 41900/head
Patrick Donnelly [Wed, 16 Jun 2021 19:16:36 +0000 (12:16 -0700)]
qa: use centos latest for fs:upgrade

Fixes: https://tracker.ceph.com/issues/51250
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agomon/MDSMonitor: check fscid exists for legacy case 41899/head
Patrick Donnelly [Wed, 16 Jun 2021 16:30:41 +0000 (09:30 -0700)]
mon/MDSMonitor: check fscid exists for legacy case

If a client does not have permission to see the legacy fs, the monitor
will throw an exception when looking up the mdsmap later in the code.
We need to check existence for both code paths.

Fixes: https://tracker.ceph.com/issues/51077
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agomon/MDSMonitor: fix whitespace in debug message 41898/head
Patrick Donnelly [Wed, 16 Jun 2021 16:30:01 +0000 (09:30 -0700)]
mon/MDSMonitor: fix whitespace in debug message

So it doesn't look like:

    2021-06-16T14:37:52.953+0000 7fec41d7c700 10 mon.a@0(leader).mds e10 check_sub: is_mds=0, fscid= 1

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #41890 into master
Sage Weil [Wed, 16 Jun 2021 18:01:26 +0000 (14:01 -0400)]
Merge PR #41890 into master

* refs/pull/41890/head:
doc/cephadm: removing "Octopus" from procedure

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agoMIRRORS: Add ca.ceph.com 41895/head
David Galloway [Wed, 16 Jun 2021 16:30:22 +0000 (12:30 -0400)]
MIRRORS: Add ca.ceph.com

Signed-off-by: David Galloway <dgallowa@redhat.com>
4 years agocrimson/osd: use stop_signal from seastar 41894/head
Kefu Chai [Wed, 16 Jun 2021 16:04:37 +0000 (00:04 +0800)]
crimson/osd: use stop_signal from seastar

and disable app_cfg.auto_handle_sigint_sigterm, otherwise app template
handles SIGINT and SIGTERM by itself, and calls app.stop(). but we don't
use this mechinary at all. we use seastar::defer() instead of
seastar::at_exit() for doing graceful shutdown and cleanup.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/tools/store_nbd: update example usage in comment
Kefu Chai [Wed, 16 Jun 2021 13:59:59 +0000 (21:59 +0800)]
crimson/tools/store_nbd: update example usage in comment

--total-device-size is not supported any more.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/tools/store_nbd: add graceful shutdown support
Kefu Chai [Wed, 16 Jun 2021 13:51:57 +0000 (21:51 +0800)]
crimson/tools/store_nbd: add graceful shutdown support

we could have more sophisticate mechinary for interrupting fio job,
but so far it is able to stop itself if it idle by handling ctrl-C.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/seastore/nbd: destruct the store before create
Yingxin Cheng [Wed, 16 Jun 2021 08:00:44 +0000 (16:00 +0800)]
crimson/seastore/nbd: destruct the store before create

Otherwise the store will register the conflicting metrics and result in
double_registration.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agodoc/cephadm: removing "Octopus" from procedure 41890/head
Zac Dover [Wed, 16 Jun 2021 14:34:10 +0000 (00:34 +1000)]
doc/cephadm: removing "Octopus" from procedure

This PR removes "Octopus" from the curl-based installation
procedure.

After we moved on to Pacific, referring to Octopus looks wrong.
It looks wrong because it now is wrong.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
4 years agoMerge pull request #41882 from tchaikov/wip-crimson-int-safty
Kefu Chai [Wed, 16 Jun 2021 14:09:28 +0000 (22:09 +0800)]
Merge pull request #41882 from tchaikov/wip-crimson-int-safty

crimson/osd: guard non-pg-op handling with with_sequencer()

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #41885 from tchaikov/wip-crimson-os-cleanups
Kefu Chai [Wed, 16 Jun 2021 12:36:32 +0000 (20:36 +0800)]
Merge pull request #41885 from tchaikov/wip-crimson-os-cleanups

crimson/os: cleanups and reformat

Reviewed-by: Myoungwon Oh <myoungwon.oh@samsung.com>
4 years agocrimson/osd: reindent 41882/head
Kefu Chai [Wed, 16 Jun 2021 10:27:07 +0000 (18:27 +0800)]
crimson/osd: reindent

for less indent, hence better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: wrap line at 80
Kefu Chai [Wed, 16 Jun 2021 10:26:15 +0000 (18:26 +0800)]
crimson/osd: wrap line at 80

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: guard non-pg-op handling with with_sequencer()
Kefu Chai [Wed, 16 Jun 2021 10:25:55 +0000 (18:25 +0800)]
crimson/osd: guard non-pg-op handling with with_sequencer()

because we should only ensure the ordering of the requests touching
the objects, the other requests like pgls should not be ordered along
with them. so as the second step, guard the non-pg-op handling with
with_sequencer().

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os: use reference for loop variable 41885/head
Kefu Chai [Wed, 16 Jun 2021 11:58:42 +0000 (19:58 +0800)]
crimson/os: use reference for loop variable

for better performance, also silences the warning like:

../src/crimson/os/seastore/random_block_manager/nvme_manager.cc:444:23: warning: loop variable ‘b’ creates a copy from type ‘const crimson::os::seastore::rbm_alloc_delta_t’ [-Wrange-loop-construct]
  444 |       for (const auto b : alloc_blocks) {
      |                       ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #41859 from sebastian-philipp/mypy-constrains.txt
Sebastian Wagner [Wed, 16 Jun 2021 11:54:31 +0000 (13:54 +0200)]
Merge pull request #41859 from sebastian-philipp/mypy-constrains.txt

global,tox.ini: add mypy-constrains.txt

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
4 years agocrimson/os: return seastar::now() in "finally()" block
Kefu Chai [Wed, 16 Jun 2021 11:05:53 +0000 (19:05 +0800)]
crimson/os: return seastar::now() in "finally()" block

so finally() is able to identify the return is a future, and discard it
manually.
otherwise the return value will be discarded even the future is marked
[[nodiscard]], hence the C++ compiler warns.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os: remove unnecessary now()
Kefu Chai [Wed, 16 Jun 2021 11:00:00 +0000 (19:00 +0800)]
crimson/os: remove unnecessary now()

the previous continuation in the chain already returns a future, no need
to hook up another now().

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os: remove unnecessary parentheses
Kefu Chai [Wed, 16 Jun 2021 10:38:22 +0000 (18:38 +0800)]
crimson/os: remove unnecessary parentheses

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os: fix the indent
Kefu Chai [Wed, 16 Jun 2021 10:37:52 +0000 (18:37 +0800)]
crimson/os: fix the indent

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os: do not capture unused variables
Kefu Chai [Wed, 16 Jun 2021 10:34:36 +0000 (18:34 +0800)]
crimson/os: do not capture unused variables

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoglobal,tox.ini: add mypy-constrains.txt 41859/head
Sebastian Wagner [Tue, 15 Jun 2021 10:10:36 +0000 (12:10 +0200)]
global,tox.ini: add mypy-constrains.txt

let's avoid getting new versions of those packages by accident.
Unfortunately this means we have to manually update those
packages regurarly.

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
4 years agocrimson/osd: extract with_sequencer() method out
Kefu Chai [Wed, 16 Jun 2021 09:46:06 +0000 (17:46 +0800)]
crimson/osd: extract with_sequencer() method out

because we should only ensure the ordering of the requests touching
the objects, the other requests like pgls should not be ordered along
with them, so as the first step, let's extract with_sequencer() method
out, so we can differentiate these two cases with minimal repeatings.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #41881 from tchaikov/wip-crimson-alien
Kefu Chai [Wed, 16 Jun 2021 10:28:33 +0000 (18:28 +0800)]
Merge pull request #41881 from tchaikov/wip-crimson-alien

crimson: adapt to the new alien API

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson: adapt to the new alien API 41881/head
Kefu Chai [Wed, 16 Jun 2021 09:11:50 +0000 (17:11 +0800)]
crimson: adapt to the new alien API

since seastar now deprecates the old alien::submit_to() API, and
replaced it with a variant which requires a new parameter of "alien"
instance, let's pick it up, to amortize the cost to catch up with
the seastar master HEAD.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agotest/crimson: add test case for errorator parallel_for_each 41848/head
Xuehan Xu [Thu, 10 Jun 2021 06:21:01 +0000 (14:21 +0800)]
test/crimson: add test case for errorator parallel_for_each

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agocrimson: add parallel_for_each to errorator
Xuehan Xu [Thu, 10 Jun 2021 06:21:01 +0000 (14:21 +0800)]
crimson: add parallel_for_each to errorator

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agoMerge pull request #41825 from tchaikov/wip-avl-cleanup
Igor Fedotov [Wed, 16 Jun 2021 09:02:38 +0000 (12:02 +0300)]
Merge pull request #41825 from tchaikov/wip-avl-cleanup

os/bluestore/AvlAllocator: specialize _block_picker() and cleanups

Reviewed-by: Igor Fedotov <ifedotov@suse,com>
4 years agoMerge pull request #41346 from adk3798/enough-mds-upgrade
Sebastian Wagner [Wed, 16 Jun 2021 08:53:33 +0000 (10:53 +0200)]
Merge pull request #41346 from adk3798/enough-mds-upgrade

mgr/cephadm: skip ok-to-stop for mds in upgrade if not enough mds daemons

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
4 years agoMerge pull request #41813 from adk3798/repo
Sebastian Wagner [Wed, 16 Jun 2021 08:51:53 +0000 (10:51 +0200)]
Merge pull request #41813 from adk3798/repo

cephadm: Use gpg rather than asc key for add-repo

Reviewed-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #41820 from mgfritch/cephadm-not-a-mon-ip
Sebastian Wagner [Wed, 16 Jun 2021 08:51:38 +0000 (10:51 +0200)]
Merge pull request #41820 from mgfritch/cephadm-not-a-mon-ip

cephadm: raise Error() when unable to bind to an ip

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
4 years agoMerge pull request #41041 from myoungwon/wip-randomblockmanager-part1
Samuel Just [Wed, 16 Jun 2021 07:29:18 +0000 (00:29 -0700)]
Merge pull request #41041 from myoungwon/wip-randomblockmanager-part1

seastore: RandomBlockManager part1

Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #27465 from tchaikov/wip-38219
Kefu Chai [Wed, 16 Jun 2021 01:38:45 +0000 (09:38 +0800)]
Merge pull request #27465 from tchaikov/wip-38219

ceph-monstore-tool: use a large enough paxos/{first,last}_committed

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #41873 from bobbyphilip/patch-1
Kefu Chai [Tue, 15 Jun 2021 23:44:00 +0000 (07:44 +0800)]
Merge pull request #41873 from bobbyphilip/patch-1

doc/start/hardware-recommendations.rst: Corrected typo

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #40972 into master
Patrick Donnelly [Tue, 15 Jun 2021 21:57:44 +0000 (14:57 -0700)]
Merge PR #40972 into master

* refs/pull/40972/head:
doc: add missing note about restoring allow_standby_replay
doc: clarify distributed ephemeral pins new mechanism
doc: update mds_autoscaler documentation to reflect recent changes

Reviewed-by: Venky Shankar <vshankar@redhat.com>
4 years agodoc/start/hardware-recommendations.rst: Corrected typo 41873/head
Bobby Alex Philip [Tue, 15 Jun 2021 20:32:23 +0000 (22:32 +0200)]
doc/start/hardware-recommendations.rst: Corrected typo

129GB - >128GB
Signed-off-by: Bobby Philip bobbyphilip@gmail.com
4 years agoMerge PR #41844 into master
Sage Weil [Tue, 15 Jun 2021 19:42:26 +0000 (15:42 -0400)]
Merge PR #41844 into master

* refs/pull/41844/head:
qa/suites/orch/cephadm/dashboard: remove remaining bits

Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge PR #41840 into master
Patrick Donnelly [Tue, 15 Jun 2021 17:34:18 +0000 (10:34 -0700)]
Merge PR #41840 into master

* refs/pull/41840/head:
qa: update cli syntax to conventional

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
4 years agoMerge PR #41821 into master
Patrick Donnelly [Tue, 15 Jun 2021 17:33:38 +0000 (10:33 -0700)]
Merge PR #41821 into master

* refs/pull/41821/head:
qa: specify distro for fs:bugs

Reviewed-by: Rishabh Dave <ridave@redhat.com>
4 years agoMerge PR #41773 into master
Patrick Donnelly [Tue, 15 Jun 2021 17:32:49 +0000 (10:32 -0700)]
Merge PR #41773 into master

* refs/pull/41773/head:
test/pybind/test_ceph_argparse: add a test where args contains comma
cmake: run nose test using "python3 -m nose"
test/pybind/test_ceph_argparse: check for expected argument
test/pybind/test_ceph_argparse: decorate helper method with @nottest
test/pybind: do not test obsoleted command
test/pybind: drop forward and readforward from test
test/pybind: do not use tab for indent
pybind/ceph_argparse: validate csv if desc.N
test/pybind: pep8 cleanups

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
4 years agoMerge PR #41771 into master
Patrick Donnelly [Tue, 15 Jun 2021 17:32:06 +0000 (10:32 -0700)]
Merge PR #41771 into master

* refs/pull/41771/head:
qa: update scrub start code to use comma sep scrubopts

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoseastore/rbm: remove changes related to transaction/cache 41041/head
myoungwon oh [Tue, 15 Jun 2021 15:43:34 +0000 (00:43 +0900)]
seastore/rbm: remove changes related to transaction/cache

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
4 years agoMerge pull request #41864 from rzarzynski/wip-crimson-iointrcond-fix-debug
Kefu Chai [Tue, 15 Jun 2021 15:34:01 +0000 (23:34 +0800)]
Merge pull request #41864 from rzarzynski/wip-crimson-iointrcond-fix-debug

crimson/osd: fix debug in IOInterruptCondition::new_interval_created().

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #41865 from rzarzynski/wip-crimson-opseq-fix-dropped-abort
Kefu Chai [Tue, 15 Jun 2021 15:05:11 +0000 (23:05 +0800)]
Merge pull request #41865 from rzarzynski/wip-crimson-opseq-fix-dropped-abort

crimson/osd: fix missed OpSequencer::abort() on primary change.

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: fix missed OpSequencer::abort() on primary change. 41865/head
Radoslaw Zarzynski [Tue, 15 Jun 2021 00:05:20 +0000 (00:05 +0000)]
crimson/osd: fix missed OpSequencer::abort() on primary change.

Commit b5efdc6f1c9563357d7dfd33a8f379053592a215 has unified
the interruption handling among `InternalClientRequest` and
`ClientRequest`. Unfortunately, a call to `abort()` of
`OpSequencer` has been overlooked and dropped. This was causing
crashes at Sepia after after fixing the ordering issues in
`ClientRequest`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/osd: fix debug in IOInterruptCondition::new_interval_created(). 41864/head
Radoslaw Zarzynski [Mon, 14 Jun 2021 22:32:07 +0000 (22:32 +0000)]
crimson/osd: fix debug in IOInterruptCondition::new_interval_created().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #41801 from liu-chunmei/seastore-fix-get-retired-extent
Samuel Just [Tue, 15 Jun 2021 14:01:07 +0000 (07:01 -0700)]
Merge pull request #41801 from liu-chunmei/seastore-fix-get-retired-extent

crimson/seastore: fix cache::get_extent got retired extent

Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #41854 from sebastian-philipp/fix-mypy-yaml-representation
Sebastian Wagner [Tue, 15 Jun 2021 11:59:54 +0000 (13:59 +0200)]
Merge pull request #41854 from sebastian-philipp/fix-mypy-yaml-representation

mgr/orch: fix mypy errors

Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
4 years agoMerge pull request #41846 from batrick/i51214
Sebastian Wagner [Tue, 15 Jun 2021 09:39:37 +0000 (11:39 +0200)]
Merge pull request #41846 from batrick/i51214

doc: fix typo in option

Reviewed-by: Daniel Pivonka <dpivonka@redhat.com>
4 years agopyhton-common: fix mypy errors 41854/head
Sebastian Wagner [Tue, 15 Jun 2021 09:24:34 +0000 (11:24 +0200)]
pyhton-common: fix mypy errors

Fixes:

```
py3 run-test: commands[2] | mypy --config-file=../mypy.ini -p ceph
ceph/deployment/service_spec.py: note: In member "yaml_representer" of class "ServiceSpec":
ceph/deployment/service_spec.py:659: error: Argument 1 to "represent_dict" of "SafeRepresenter" has incompatible type "_OrderedDictItemsView[str, Any]"; expected "Mapping[Any, Any]"
```

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
4 years agomgr/orch: fix mypy errors
Sebastian Wagner [Tue, 15 Jun 2021 08:19:40 +0000 (10:19 +0200)]
mgr/orch: fix mypy errors

Fixes:

```
orchestrator/__init__.py:6: note: In module imported here:
orchestrator/_interface.py: note: In member "yaml_representer" of class "DaemonDescription":
orchestrator/_interface.py:1039: error: Argument 1 to "represent_dict" of "SafeRepresenter" has incompatible type "ItemsView[Any, Any]"; expected "Mapping[Any, Any]"
orchestrator/_interface.py: note: In member "yaml_representer" of class "ServiceDescription":
orchestrator/_interface.py:1178: error: Argument 1 to "represent_dict" of "SafeRepresenter" has incompatible type "ItemsView[Any, Any]"; expected "Mapping[Any, Any]"
orchestrator/_interface.py: note: At top level:
orchestrator/_interface.py:1181: error: Argument 2 to "add_representer" has incompatible type "Callable[[SafeDumper, DaemonDescription], Any]"; expected "Callable[[SafeDumper, ServiceDescription], Node]"
Found 3 errors in 1 file (checked 29 source files)
```

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
4 years agoMerge pull request #41841 from ljflores/patch-1
Kefu Chai [Tue, 15 Jun 2021 06:26:05 +0000 (14:26 +0800)]
Merge pull request #41841 from ljflores/patch-1

doc: update testing.rst and build-integration test to say ./run-make-check.sh

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoseastore: add protected_read interface to nvmedevice
Jinyong Ha [Fri, 11 Jun 2021 09:21:59 +0000 (18:21 +0900)]
seastore: add protected_read interface to nvmedevice

Signed-off-by: Jinyong Ha <jy200.ha@samsung.com>
4 years agoseastore/rbm: use const
myoungwon oh [Fri, 11 Jun 2021 13:59:13 +0000 (22:59 +0900)]
seastore/rbm: use const

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
4 years agoseastore/rbm: return std::list in get_data_health()
myoungwon oh [Fri, 11 Jun 2021 13:57:17 +0000 (22:57 +0900)]
seastore/rbm: return std::list in get_data_health()

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
4 years agoseastore/rbm: remove unused bits in nvmedevice.h
myoungwon oh [Fri, 11 Jun 2021 13:35:05 +0000 (22:35 +0900)]
seastore/rbm: remove unused bits in nvmedevice.h

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
4 years agoseastore/rbm: replace blk_paddr_t with size_t in free_extent()
myoungwon oh [Fri, 11 Jun 2021 13:17:23 +0000 (22:17 +0900)]
seastore/rbm: replace blk_paddr_t with size_t in free_extent()

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
4 years agoseastore/rbm: relocate file layout like SegmentManager
myoungwon oh [Fri, 11 Jun 2021 12:00:16 +0000 (21:00 +0900)]
seastore/rbm: relocate file layout like SegmentManager

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
4 years agoseastore/rbm: fix wrong loop condition
myoungwon oh [Thu, 10 Jun 2021 08:47:56 +0000 (17:47 +0900)]
seastore/rbm: fix wrong loop condition

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
4 years agoseastore/rbm: fix wrong statement
myoungwon oh [Thu, 10 Jun 2021 07:09:06 +0000 (16:09 +0900)]
seastore/rbm: fix wrong statement

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
4 years agoseastore/rbm: remove newline before function name
myoungwon oh [Wed, 26 May 2021 11:41:18 +0000 (20:41 +0900)]
seastore/rbm: remove newline before function name

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
4 years agoseastore/rbm: add check_bitmap_blocks when open()
myoungwon oh [Wed, 26 May 2021 07:19:47 +0000 (16:19 +0900)]
seastore/rbm: add check_bitmap_blocks when open()

This commits adds check_bitmap_blocks to check free_block_count
is correct whenever open() is called

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
4 years agoseastore/rbm: fix wrong statement
myoungwon oh [Tue, 25 May 2021 07:55:34 +0000 (16:55 +0900)]
seastore/rbm: fix wrong statement

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>