]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agotest/crimson: mark final class "final" 42700/head
Kefu Chai [Fri, 6 Aug 2021 11:48:19 +0000 (19:48 +0800)]
test/crimson: mark final class "final"

silences warning from Clang like:

../src/test/crimson/seastore/test_object_data_handler.cc:33:16: warning: class with destructor marked 'final' cannot be inherited from [-Wfinal-dtor-non-final-class]
  ~TestOnode() final = default;
               ^
../src/test/crimson/seastore/test_object_data_handler.cc:20:7: note: mark 'TestOnode' as 'final' to silence this warning
class TestOnode : public Onode {
      ^
1 warning generated.

Signed-off-by: Kefu Chai <kchai@redhat.com>
3 years agocrimson/os/seastore: do not capture unused variable
Kefu Chai [Fri, 6 Aug 2021 11:24:34 +0000 (19:24 +0800)]
crimson/os/seastore: do not capture unused variable

Signed-off-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #42602 from b-ranto/wip-lto
Kefu Chai [Fri, 6 Aug 2021 05:45:01 +0000 (13:45 +0800)]
Merge pull request #42602 from b-ranto/wip-lto

rados+rpm: Update symver defs and re-enable LTO

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #42564 from myoungwon/wip-fix-45423
Kefu Chai [Fri, 6 Aug 2021 04:26:32 +0000 (12:26 +0800)]
Merge pull request #42564 from myoungwon/wip-fix-45423

test: fix wrong alarm (HitSetWrite)

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #42277 from tchaikov/wip-vstart-runner-cleanups
Kefu Chai [Fri, 6 Aug 2021 02:33:19 +0000 (10:33 +0800)]
Merge pull request #42277 from tchaikov/wip-vstart-runner-cleanups

qa/tasks/vstart_runner: do not send SIGTERM if no matched pid

Reviewed-by: Rishabh Dave <ridave@redhat.com>
3 years agoMerge pull request #42663 from cyx1231st/wip-fix-lba-empty-delta
Kefu Chai [Fri, 6 Aug 2021 02:28:46 +0000 (10:28 +0800)]
Merge pull request #42663 from cyx1231st/wip-fix-lba-empty-delta

crimson/os/seastore/lba_manager: remove assert non-empty delta

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
3 years agoMerge pull request #42669 from tchaikov/wip-doc-ext-confval
Kefu Chai [Fri, 6 Aug 2021 01:16:30 +0000 (09:16 +0800)]
Merge pull request #42669 from tchaikov/wip-doc-ext-confval

doc/_ext: print out the module which fails the build

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #42681 from tchaikov/wip-fmt-a
Kefu Chai [Fri, 6 Aug 2021 01:14:13 +0000 (09:14 +0800)]
Merge pull request #42681 from tchaikov/wip-fmt-a

cmake: link bundled fmt statically

Reviewed-by: Boris Ranto <branto@redhat.com>
3 years agoMerge pull request #42593 from ceph/wip-yuriw-release-15.2.14-master
David Galloway [Thu, 5 Aug 2021 23:12:48 +0000 (19:12 -0400)]
Merge pull request #42593 from ceph/wip-yuriw-release-15.2.14-master

doc: 15.2.14 Release Notes

3 years agodoc/releases/octopus.rst: add notable changes for mgr and core 42593/head
Neha Ojha [Thu, 5 Aug 2021 16:47:56 +0000 (16:47 +0000)]
doc/releases/octopus.rst: add notable changes for mgr and core

Signed-off-by: Neha Ojha <nojha@redhat.com>
3 years agodoc: add note about mon trimming of old MDSMaps
Patrick Donnelly [Tue, 3 Aug 2021 17:57:28 +0000 (10:57 -0700)]
doc: add note about mon trimming of old MDSMaps

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agodoc: 15.2.14 Release Notes
Yuri Weinstein [Tue, 3 Aug 2021 16:25:39 +0000 (09:25 -0700)]
doc: 15.2.14 Release Notes

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agoMerge pull request #42505 from wzbxqt327/put_obj_rentention
Casey Bodley [Thu, 5 Aug 2021 19:22:29 +0000 (15:22 -0400)]
Merge pull request #42505 from wzbxqt327/put_obj_rentention

rgw: add the condition of lock mode conversion to PutObjRentention

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #42531 from ivancich/wip-user-utilized-stats
Casey Bodley [Thu, 5 Aug 2021 19:22:05 +0000 (15:22 -0400)]
Merge pull request #42531 from ivancich/wip-user-utilized-stats

rgw: user stats showing 0 value for "size_utilized" and "size_kb_utilized" fields

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #42597 from ivancich/wip-rename-f
Casey Bodley [Thu, 5 Aug 2021 19:21:45 +0000 (15:21 -0400)]
Merge pull request #42597 from ivancich/wip-rename-f

rgw: clean up some code

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
3 years agoMerge pull request #42125 from ivancich/wip-cls-empty-listing
Casey Bodley [Thu, 5 Aug 2021 19:21:22 +0000 (15:21 -0400)]
Merge pull request #42125 from ivancich/wip-cls-empty-listing

rgw: resolve empty ordered bucket listing results w/ CLS filtering

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #42182 from tengfWang/rgw-swift-check-container-name
Casey Bodley [Thu, 5 Aug 2021 19:21:00 +0000 (15:21 -0400)]
Merge pull request #42182 from tengfWang/rgw-swift-check-container-name

rgw: remove the three-character limit when creating a container with swift interface

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoMerge pull request #42397 from mkogan1/rgw-d3n-rem-ops-log
Casey Bodley [Thu, 5 Aug 2021 19:20:24 +0000 (15:20 -0400)]
Merge pull request #42397 from mkogan1/rgw-d3n-rem-ops-log

rgw: d3n: remove legacy requirement to enable rgw_enable_ops_log

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
3 years agoMerge pull request #42673 from guits/update_cephadm_doc
Kefu Chai [Thu, 5 Aug 2021 15:34:19 +0000 (23:34 +0800)]
Merge pull request #42673 from guits/update_cephadm_doc

doc/cephadm: update documentation

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #42664 from sebastian-philipp/cephadm-FakePipeWrapper
Sebastian Wagner [Thu, 5 Aug 2021 14:55:10 +0000 (16:55 +0200)]
Merge pull request #42664 from sebastian-philipp/cephadm-FakePipeWrapper

cephadm: fix unit tests

Reviewed-by: Sage Weil <sage@newdream.net>
3 years agoMerge pull request #42665 from sebastian-philipp/cephadm-doc-upgrade-offline
Sebastian Wagner [Thu, 5 Aug 2021 14:45:22 +0000 (16:45 +0200)]
Merge pull request #42665 from sebastian-philipp/cephadm-doc-upgrade-offline

doc/cephadm: Offline hosts will pause upgrades

Reviewed-by: Sage Weil <sage@newdream.net>
3 years agocmake: link bundled fmt statically 42681/head
Kefu Chai [Thu, 5 Aug 2021 13:52:50 +0000 (21:52 +0800)]
cmake: link bundled fmt statically

instead of building the bundled fmt library as shared library, built
static library. otherwise we'd have to link against libfmt.so.

Signed-off-by: Kefu Chai <kchai@redhat.com>
3 years agolibrados/librados_c: check for both symvers 42602/head
Boris Ranto [Thu, 5 Aug 2021 07:08:08 +0000 (09:08 +0200)]
librados/librados_c: check for both symvers

We should check if either asm symver or attribute symver is defined and
not assume that attribute symver implies asm symver.

Fixes: https://tracker.ceph.com/issues/40060
Signed-off-by: Boris Ranto <branto@redhat.com>
3 years agocmake: Check -flto flags
Boris Ranto [Thu, 5 Aug 2021 06:36:21 +0000 (08:36 +0200)]
cmake: Check -flto flags

We should check if -flto-partition=none is defined when the compiler
does not support symver attribute and fail the build if it is not.

Fixes: https://tracker.ceph.com/issues/40060
Co-authored-by: Kefu Chai <tchaikov@gmail.com>
Signed-off-by: Boris Ranto <branto@redhat.com>
3 years agolibrados/librados_c: Use symver attribute if available
Boris Ranto [Tue, 3 Aug 2021 18:44:47 +0000 (20:44 +0200)]
librados/librados_c: Use symver attribute if available

Fixes: https://tracker.ceph.com/issues/40060
Signed-off-by: Boris Ranto <branto@redhat.com>
3 years agorpm: Re-enable LTO on supported systems
Boris Ranto [Tue, 3 Aug 2021 08:11:58 +0000 (10:11 +0200)]
rpm: Re-enable LTO on supported systems

We can now use LTO when building ceph. The symver issue was fixed by
using the gcc __symver__ attribute. The systems that support it can now
re-enable LTO.

Fixes: https://tracker.ceph.com/issues/40060
Signed-off-by: Boris Ranto <branto@redhat.com>
3 years agodoc/cephadm: update documentation 42673/head
Guillaume Abrioux [Thu, 5 Aug 2021 10:02:19 +0000 (12:02 +0200)]
doc/cephadm: update documentation

This commit fixes a couple of typos in the cephadm documentation.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
3 years agodoc/_ext: print out the module which fails the build 42669/head
Kefu Chai [Thu, 5 Aug 2021 08:20:53 +0000 (16:20 +0800)]
doc/_ext: print out the module which fails the build

Signed-off-by: Kefu Chai <kchai@redhat.com>
3 years agorados: Update symver defs
Boris Ranto [Mon, 2 Aug 2021 19:32:15 +0000 (21:32 +0200)]
rados: Update symver defs

The gcc compiler now supports symver attribute. We should update the
symvers to be able to support LTO.

Fixes: https://tracker.ceph.com/issues/40060
Signed-off-by: Boris Ranto <branto@redhat.com>
3 years agorados: Fix function ordering
Boris Ranto [Tue, 3 Aug 2021 07:26:16 +0000 (09:26 +0200)]
rados: Fix function ordering

The build fails because the function definitions are out of order. This
also reuses the LIBRADOS_C_API_DEFAULT_F macro for function definitions.

Fixes: https://tracker.ceph.com/issues/40060
Signed-off-by: Boris Ranto <branto@redhat.com>
3 years agodoc/cephadm: Offline hosts will pause upgrades 42665/head
Sebastian Wagner [Thu, 5 Aug 2021 08:27:01 +0000 (10:27 +0200)]
doc/cephadm: Offline hosts will pause upgrades

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agocephadm: fix unit tests. 42664/head
Sebastian Wagner [Thu, 5 Aug 2021 07:53:09 +0000 (09:53 +0200)]
cephadm: fix unit tests.

Fixes AttributeError: 'FakePipeWrapper' object has no attribute 'readable'

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #42242 from sebastian-philipp/cephadm-container-name-dashes
Sebastian Wagner [Thu, 5 Aug 2021 07:47:00 +0000 (09:47 +0200)]
Merge pull request #42242 from sebastian-philipp/cephadm-container-name-dashes

cephadm: use dashes for container names

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agocrimson/os/seastore/lba_manager: remove assert non-empty delta 42663/head
Yingxin Cheng [Tue, 3 Aug 2021 06:36:36 +0000 (14:36 +0800)]
crimson/os/seastore/lba_manager: remove assert non-empty delta

Delta can be empty when measure the effort of invalidated transactions.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agoMerge pull request #42462 from sebastian-philipp/mon-ip-change
Sebastian Wagner [Thu, 5 Aug 2021 07:44:58 +0000 (09:44 +0200)]
Merge pull request #42462 from sebastian-philipp/mon-ip-change

doc/cephadm: Move MONs to a different network

Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agoMerge pull request #42619 from jdurgin/wip-release-notes-script
Josh Durgin [Wed, 4 Aug 2021 21:26:07 +0000 (14:26 -0700)]
Merge pull request #42619 from jdurgin/wip-release-notes-script

script/ceph-release-notes: improve output for markdown and limit verbosity

Reviewed-by: David Galloway <dgallowa@redhat.com>
3 years agoscript/ceph-release-notes: don't include PR body by default, just the title 42619/head
Josh Durgin [Wed, 4 Aug 2021 00:07:13 +0000 (20:07 -0400)]
script/ceph-release-notes: don't include PR body by default, just the title

This avoids overly long output for merges involving lots of PRs,
e.g. cephadm batch backports.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agoscript/ceph-release-notes: infer actual title from ptl-tool merges
Josh Durgin [Wed, 4 Aug 2021 00:05:50 +0000 (20:05 -0400)]
script/ceph-release-notes: infer actual title from ptl-tool merges

This helps the notes stay accurate when the commit title has changed,
but the PR title is out of date.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agoMerge pull request #42636 from zdover23/wip-doc-rados-config-storage-devices-bluestor...
Josh Durgin [Wed, 4 Aug 2021 15:34:21 +0000 (08:34 -0700)]
Merge pull request #42636 from zdover23/wip-doc-rados-config-storage-devices-bluestore-2021-08-03

doc/rados: rewrite BlueStore material

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
3 years agoMerge pull request #41897 from ivancich/wip-versioned-deletes
J. Eric Ivancich [Wed, 4 Aug 2021 14:15:28 +0000 (10:15 -0400)]
Merge pull request #41897 from ivancich/wip-versioned-deletes

rgw: when deleted obj removed in versioned bucket, extra del-marker added

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agocephadm: Introduce unit.stop 42242/head
Sebastian Wagner [Wed, 21 Jul 2021 12:13:52 +0000 (14:13 +0200)]
cephadm: Introduce unit.stop

Reason is we now have to stop two containers named differently. This is possible
with `bash -c ... echo %i | tr . -`. But we're not gainig anything readability
compared to putting it into a unit.stop script.

As not all daemons have this stop script, we still have to call podman for old daemons.

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agocephadm: don't log on exit.
Sebastian Wagner [Wed, 21 Jul 2021 09:46:16 +0000 (11:46 +0200)]
cephadm: don't log on exit.

At this point, the garbage collector already colleceted the `open` function

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agocephadm: `stats` might return `--` for containers
Sebastian Wagner [Mon, 19 Jul 2021 10:13:11 +0000 (12:13 +0200)]
cephadm: `stats` might return `--` for containers

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agocephadm: exec: also search for old cname
Sebastian Wagner [Wed, 14 Jul 2021 13:15:50 +0000 (15:15 +0200)]
cephadm: exec: also search for old cname

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agocephadm: dashes: use both cnames for `inspect`
Sebastian Wagner [Tue, 13 Jul 2021 14:56:06 +0000 (16:56 +0200)]
cephadm: dashes: use both cnames for `inspect`

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agocephadm: Add CephContainer.for_daemon()
Sebastian Wagner [Mon, 19 Jul 2021 09:45:54 +0000 (11:45 +0200)]
cephadm: Add CephContainer.for_daemon()

To avoid calling get_container()

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agocephadm: use dashes for container names
Sebastian Wagner [Thu, 8 Jul 2021 09:52:52 +0000 (11:52 +0200)]
cephadm: use dashes for container names

podman adds the current container name to the /etc/hosts
file. Turns out, python's `socket.getfqdn()` differs from
`hostname -f`, when we have the container names containing
dots in it.:

[root@sebastians-laptop /]# cat /etc/hosts
127.0.0.1   localhost
::1         localhost
127.0.1.1   sebastians-laptop foo.bar.baz.com
[root@sebastians-laptop /]# hostname -f
sebastians-laptop
[root@sebastians-laptop /]# python3 -c 'import socket; print(socket.getfqdn())'
foo.bar.baz.com

Fascinatingly, this doesn't happen when using dashes.

Fixes: https://tracker.ceph.com/issues/51590
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #42395 from sebastian-philipp/cephadm-improve-no-enigne-msg
Sebastian Wagner [Wed, 4 Aug 2021 12:49:41 +0000 (14:49 +0200)]
Merge pull request #42395 from sebastian-philipp/cephadm-improve-no-enigne-msg

cephadm: Clarify no container engine message

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Dimitri Savineau <dsavinea@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agodoc/cephadm: MON IP change 42462/head
Sebastian Wagner [Fri, 23 Jul 2021 08:09:08 +0000 (10:09 +0200)]
doc/cephadm: MON IP change

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #42587 from liewegas/rgw-mon-secure
Casey Bodley [Wed, 4 Aug 2021 12:31:40 +0000 (08:31 -0400)]
Merge pull request #42587 from liewegas/rgw-mon-secure

rgw: default ms_mon_client_mode = secure

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
3 years agoMerge pull request #42610 from rhcs-dashboard/52022-fix-rgw-perf-counters
Ernesto Puerta [Wed, 4 Aug 2021 11:55:48 +0000 (13:55 +0200)]
Merge pull request #42610 from rhcs-dashboard/52022-fix-rgw-perf-counters

mgr/dashboard: show perf. counters for rgw svc. on Cluster > Hosts

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #42554 from rhcs-dashboard/fix-rgw-ssl-cert-validation
Ernesto Puerta [Wed, 4 Aug 2021 11:37:33 +0000 (13:37 +0200)]
Merge pull request #42554 from rhcs-dashboard/fix-rgw-ssl-cert-validation

mgr/dashboard: fix ssl cert validation for rgw service creation

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #42575 from tchaikov/wip-venv
Kefu Chai [Wed, 4 Aug 2021 10:37:45 +0000 (18:37 +0800)]
Merge pull request #42575 from tchaikov/wip-venv

*: s/virtualenv/python -m venv/

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #42594 from sebastian-philipp/mypy-ini-disallow-untyped-root
Kefu Chai [Wed, 4 Aug 2021 10:35:38 +0000 (18:35 +0800)]
Merge pull request #42594 from sebastian-philipp/mypy-ini-disallow-untyped-root

mypy.ini: Globally enable `disallow_untyped_defs = True`

Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #42571 from tchaikov/wip-disable-kvs
Kefu Chai [Wed, 4 Aug 2021 10:31:40 +0000 (18:31 +0800)]
Merge pull request #42571 from tchaikov/wip-disable-kvs

cmake: disable kvs rados cls by default

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #42614 from soumyakoduri/wip-skoduri-sqlite3
Kefu Chai [Wed, 4 Aug 2021 09:56:18 +0000 (17:56 +0800)]
Merge pull request #42614 from soumyakoduri/wip-skoduri-sqlite3

cmake: Remove duplicate SQLITE module

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agomgr/dashboard: show perf. counters for rgw svc. on Cluster > Hosts 42610/head
Alfonso Martínez [Wed, 4 Aug 2021 09:11:50 +0000 (11:11 +0200)]
mgr/dashboard: show perf. counters for rgw svc. on Cluster > Hosts

- Use service_map_id to retrieve perf. counters for rgw services.
- Move logic from controller to CephService.

Fixes: https://tracker.ceph.com/issues/52022
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
3 years agorgw: allow ordered bucket listing to work when many filtered out entries 42125/head
J. Eric Ivancich [Mon, 19 Jul 2021 18:24:11 +0000 (14:24 -0400)]
rgw: allow ordered bucket listing to work when many filtered out entries

A previous PR moved the much of the filtering that's part of bucket
listing to the CLS layer. One unanticipated result was that it is now
possible for a call to return 0 entries. In such a case we want to
retry the call with the marker moved forward (i.e., advanced),
repeatedly if necessary, in order to either retrieve some entries or
to hit the end of the entries. This PR adds that functionality.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agorgw: allow CLSRGWConcurrentIO to handle "advancing" retries
J. Eric Ivancich [Mon, 19 Jul 2021 18:23:42 +0000 (14:23 -0400)]
rgw: allow CLSRGWConcurrentIO to handle "advancing" retries

When doing an asynchronous/concurrent bucket index operation against
multiple bucket index shards, a special error code is set aside to
indicate that an "advancing" retry of a/some shard(s) is necessary. In
that case another asynchronous call is made on the indicated shard(s)
from the client (i.e., CLSRGWConcurrentIO).  It is up to the subclass
of CLSRGWConcurrentIO to handle the retry such that it "advances" and
simply doesn't get stuck, looping forever.

The retry functionality only works when the "need_multiple_rounds"
functionality is not in use.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agorgw: de-conflate shard_id and request_id in CLSRGWConcurrentIO
J. Eric Ivancich [Fri, 16 Jul 2021 19:31:35 +0000 (15:31 -0400)]
rgw: de-conflate shard_id and request_id in CLSRGWConcurrentIO

When using asynchronous (concurrent) IO for bucket index requests,
there are two int ids that are used that need to be kept separate --
shard id and request id. In many cases they're the same -- shard 0
gets request 0, and so forth.

But in preparation for re-requests, those ids can diverge, where
request 13 maps to shard 2. The existing code maintained the OIDs that
went with each request. This PR also maintains the shard id as
well. Documentation has been beefed up to help future developers
navigate this.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agocmake: disable kvs rados cls by default 42571/head
Kefu Chai [Sat, 31 Jul 2021 03:36:37 +0000 (11:36 +0800)]
cmake: disable kvs rados cls by default

libcls_kvs was introduced back in
73d016fdb304ad19bba8aed3f2877b4bdb6ed32e, but we don't have an internal
user so far. to reduce the build time. let's disable the build of it by
default.

Signed-off-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #42567 from dsavineau/issue_51973
Kefu Chai [Wed, 4 Aug 2021 00:56:37 +0000 (08:56 +0800)]
Merge pull request #42567 from dsavineau/issue_51973

cephadm: set global default container for ingress

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #42559 from tchaikov/wip-rpm-dwz
Kefu Chai [Wed, 4 Aug 2021 00:33:38 +0000 (08:33 +0800)]
Merge pull request #42559 from tchaikov/wip-rpm-dwz

rpm: enable dwz

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
3 years agoscript/ceph-release-notes: sort PRs case-insensitively
Josh Durgin [Tue, 3 Aug 2021 21:22:06 +0000 (17:22 -0400)]
script/ceph-release-notes: sort PRs case-insensitively

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agomgr/dashboard: fix ssl cert validation for rgw service creation 42554/head
Avan Thakkar [Thu, 29 Jul 2021 22:53:43 +0000 (04:23 +0530)]
mgr/dashboard: fix ssl cert validation for rgw service creation

Fixes: https://tracker.ceph.com/issues/51965
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
3 years agoscript/ceph-release-notes: adapt markdown output for new website
Josh Durgin [Tue, 3 Aug 2021 17:25:48 +0000 (13:25 -0400)]
script/ceph-release-notes: adapt markdown output for new website

* escape underscores
* avoid automatic links from PR titles containing .

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
3 years agorgw: clean up some code 42597/head
J. Eric Ivancich [Mon, 2 Aug 2021 19:46:47 +0000 (15:46 -0400)]
rgw: clean up some code

In rgw_admin.cc a variable `f` is used frequently. However due to the
sheer size of the file and variable scopes involved, finding the
declaration of `f`, which is a common character, can be
challenging. So it has been renamed `stream_flusher`, which better
indicates its purpose and makes it easier to find the corresponding
declaration.

Additionally some unneeded variables in RGWBucket::check_object_index
were removed. rgw::sal::Bucket::ListParams initializes parameters as
one would hope/expect.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agocmake: Remove duplicate SQLite module 42614/head
Soumya Koduri [Tue, 3 Aug 2021 17:46:06 +0000 (23:16 +0530)]
cmake: Remove duplicate SQLite module

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agodoc/rados: rewrite BlueStore material 42636/head
Zac Dover [Tue, 3 Aug 2021 16:25:14 +0000 (02:25 +1000)]
doc/rados: rewrite BlueStore material

This PR improves the English text
explaining the BlueStore filesystem
backend.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #42605 from aaryanporwal/visual-tests
Ernesto Puerta [Tue, 3 Aug 2021 15:41:51 +0000 (17:41 +0200)]
Merge pull request #42605 from aaryanporwal/visual-tests

mgr/dashboard: Jenkins Applitools plugin: add batchId variable

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge PR #42463 into master
Sage Weil [Tue, 3 Aug 2021 14:46:42 +0000 (10:46 -0400)]
Merge PR #42463 into master

* refs/pull/42463/head:
src/pybind/mgr/test_orchestrator: remove nfs pool and namespace
src/vstart: update nfs-ganesha pool name

Reviewed-by: Sage Weil <sage@redhat.com>
3 years agoMerge PR #42518 into master
Sage Weil [Tue, 3 Aug 2021 14:45:01 +0000 (10:45 -0400)]
Merge PR #42518 into master

* refs/pull/42518/head:
doc/cephadm: update about disabling logging to journald for quincy
doc/cephadm: remove repeated section on disabling logging to stderr

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
3 years agoMerge pull request #42588 from liewegas/doc-foundation-didi
Sage Weil [Tue, 3 Aug 2021 14:40:53 +0000 (09:40 -0500)]
Merge pull request #42588 from liewegas/doc-foundation-didi

doc/foundation: drop didi

3 years agocephadm: Clarify no container engine message 42395/head
Sebastian Wagner [Mon, 19 Jul 2021 08:23:52 +0000 (10:23 +0200)]
cephadm: Clarify no container engine message

Multiple people didn't understand the message. Let's try to impove it.

(Also make mypy happy)

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agomgr/dashboard: Cluster > Hosts > Performance Counters: do not show context bar.
Alfonso Martínez [Tue, 3 Aug 2021 13:20:54 +0000 (15:20 +0200)]
mgr/dashboard: Cluster > Hosts > Performance Counters: do not show context bar.

Do not show the context bar (Object Gateway selection).

Fixes: https://tracker.ceph.com/issues/52022
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
3 years agocephadm: Add missing type annotations 42594/head
Sebastian Wagner [Tue, 3 Aug 2021 12:38:32 +0000 (14:38 +0200)]
cephadm: Add missing type annotations

Turnd out `command_maintenance` missing an if-branch that returned
None instead of a str

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agodoc/cephadm: update about disabling logging to journald for quincy 42518/head
Varsha Rao [Tue, 3 Aug 2021 11:51:45 +0000 (17:21 +0530)]
doc/cephadm: update about disabling logging to journald for quincy

Signed-off-by: Varsha Rao <varao@redhat.com>
3 years agomgr/dashboard: Jenkins Applitools plugin: add batchId variable 42605/head
Aaryan Porwal [Tue, 3 Aug 2021 11:54:43 +0000 (17:24 +0530)]
mgr/dashboard: Jenkins Applitools plugin: add batchId variable

batchId variable is mandatory for the applitools test runner to show up in jenkins build reports, for more details, check out: https://plugins.jenkins.io/applitools-eyes/

Signed-off-by: Aaryan Porwal <aaryanporwal2233@gmail.com>
3 years agoMerge pull request #42601 from idryomov/wip-rbd-qemu-iotests-8stream
Ilya Dryomov [Tue, 3 Aug 2021 11:58:57 +0000 (13:58 +0200)]
Merge pull request #42601 from idryomov/wip-rbd-qemu-iotests-8stream

qa/workunits/rbd: use xenial version of qemu-iotests for centos stream 8

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agoMerge pull request #42446 from zdover23/wip-doc-cephadm-troubleshooting-logs-2021...
zdover23 [Tue, 3 Aug 2021 11:19:22 +0000 (21:19 +1000)]
Merge pull request #42446 from zdover23/wip-doc-cephadm-troubleshooting-logs-2021-07-20

doc/cephadm: linking to log material

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
3 years agodoc/cephadm: remove repeated section on disabling logging to stderr
Varsha Rao [Wed, 28 Jul 2021 09:27:41 +0000 (14:57 +0530)]
doc/cephadm: remove repeated section on disabling logging to stderr

Signed-off-by: Varsha Rao <varao@redhat.com>
3 years agoMerge pull request #42328 from aaryanporwal/visual-tests
Ernesto Puerta [Tue, 3 Aug 2021 10:55:45 +0000 (12:55 +0200)]
Merge pull request #42328 from aaryanporwal/visual-tests

mgr/dashboard: Visual regression tests for ceph dashboard

Reviewed-by: Waad Alkhoury <walkhour@redhat.com>
Reviewed-by: aaryanporwal <NOT@FOUND>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #42514 from liu-chunmei/seastore-onode-interruptible-future
Yingxin [Tue, 3 Aug 2021 08:55:04 +0000 (16:55 +0800)]
Merge pull request #42514 from liu-chunmei/seastore-onode-interruptible-future

crimson/onode-staged-tree: integrate interruptible future

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agorgw: add the condition of lock mode conversion to PutObjRentention 42505/head
wangzhong [Tue, 27 Jul 2021 09:52:44 +0000 (02:52 -0700)]
rgw: add the condition of lock mode conversion to PutObjRentention

Signed-off-by: wangzhong <wangzhong@cmss.chinamobile.com>
3 years agoqa/workunits/rbd: use xenial version of qemu-iotests for centos stream 8 42601/head
Ilya Dryomov [Tue, 3 Aug 2021 07:44:18 +0000 (09:44 +0200)]
qa/workunits/rbd: use xenial version of qemu-iotests for centos stream 8

It is already used for centos 8(.3) and rhel 8(.4).

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agocrimson/onode-staged-tree: misc fixes to integrate interruptive-future 42514/head
Yingxin Cheng [Tue, 3 Aug 2021 03:52:41 +0000 (11:52 +0800)]
crimson/onode-staged-tree: misc fixes to integrate interruptive-future

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agodoc/cephadm: linking to log material 42446/head
Zac Dover [Tue, 20 Jul 2021 00:08:47 +0000 (10:08 +1000)]
doc/cephadm: linking to log material

This PR rewrites a section in the Troubleshooting
chapter of the Cephadm Guide. The material that this
section discusses has been covered already in the
Cephadm Guide in the Cephadm Operations chapter.
There's no reason to repeat this information twice,
unless adding technical debt to the documentation
is our goal (which of course it is not, and the
opposite of adding technical debt to the documentation
has been the aim that has guided my work these past
six months).

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #42471 from Dorthu/fix-pybind-rbd-mirror-image-get-status
Ilya Dryomov [Mon, 2 Aug 2021 20:04:04 +0000 (22:04 +0200)]
Merge pull request #42471 from Dorthu/fix-pybind-rbd-mirror-image-get-status

pybind/rbd: fix mirror_image_get_status

Reviewed-by: Mykola Golub <mgolub@suse.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
3 years agoMerge pull request #42570 from tchaikov/wip-libcryptsetup
Ilya Dryomov [Mon, 2 Aug 2021 19:35:16 +0000 (21:35 +0200)]
Merge pull request #42570 from tchaikov/wip-libcryptsetup

librbd/crypto/luks: require libcryptsetup v2.0.5

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
3 years agopybind/mgr: enable `disallow_untyped_defs` for mgr_module
Sebastian Wagner [Mon, 2 Aug 2021 17:58:21 +0000 (19:58 +0200)]
pybind/mgr: enable `disallow_untyped_defs` for mgr_module

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agomypy.ini: Globally enable `disallow_untyped_defs = True`
Sebastian Wagner [Mon, 2 Aug 2021 17:04:07 +0000 (19:04 +0200)]
mypy.ini: Globally enable `disallow_untyped_defs = True`

Plus introduce an ignorelist of all modules that are not compatible yet.

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agorgw: default ms_mon_client_mode = secure 42587/head
Sage Weil [Mon, 2 Aug 2021 15:31:32 +0000 (10:31 -0500)]
rgw: default ms_mon_client_mode = secure

Require a secure connection to the monitor.  This is important because
we may store SSL certs on the mon.

Note that secure mode was introduce before Nautilus, so this can be
backported at least to Pacific.

Fixes: https://tracker.ceph.com/issues/52000
Signed-off-by: Sage Weil <sage@newdream.net>
3 years agoMerge pull request #42551 from adk3798/maint-message
Sebastian Wagner [Mon, 2 Aug 2021 16:00:48 +0000 (18:00 +0200)]
Merge pull request #42551 from adk3798/maint-message

mgr/cephadm: make return message for entering maintenance mode more explicit

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agodoc/foundation: drop didi 42588/head
Sage Weil [Mon, 2 Aug 2021 15:45:32 +0000 (10:45 -0500)]
doc/foundation: drop didi

Signed-off-by: Sage Weil <sage@newdream.net>
3 years agoMerge pull request #42382 from xrmeng8756/master
Harish Munjulur [Mon, 2 Aug 2021 15:28:02 +0000 (08:28 -0700)]
Merge pull request #42382 from xrmeng8756/master

rgw: avoid occuring radosgw daemon crash when access a conditionally …

3 years agoMerge pull request #42387 from wzbxqt327/master
Harish Munjulur [Mon, 2 Aug 2021 15:27:53 +0000 (08:27 -0700)]
Merge pull request #42387 from wzbxqt327/master

rgw:add lock to copy object

3 years agoMerge pull request #42404 from ivancich/wip-broken-list-plain-entries
Harish Munjulur [Mon, 2 Aug 2021 15:27:37 +0000 (08:27 -0700)]
Merge pull request #42404 from ivancich/wip-broken-list-plain-entries

 rgw: bucket index list can produce I/O errors

3 years agoMerge pull request #42582 from tchaikov/wip-doc-health-report
Kefu Chai [Mon, 2 Aug 2021 13:40:48 +0000 (21:40 +0800)]
Merge pull request #42582 from tchaikov/wip-doc-health-report

doc/dev: add health-reports.rst

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoMerge pull request #42577 from tchaikov/wip-rtd
Kefu Chai [Mon, 2 Aug 2021 12:15:04 +0000 (20:15 +0800)]
Merge pull request #42577 from tchaikov/wip-rtd

.readthedocs.yml: use python3.8 and native ditaa

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agodoc/dev: add health-reports.rst 42582/head
Kefu Chai [Mon, 2 Aug 2021 10:59:30 +0000 (18:59 +0800)]
doc/dev: add health-reports.rst

to explain the data flow of health metrics.

Signed-off-by: Kefu Chai <kchai@redhat.com>