]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agomgr/cephadm: Disable external snapshots in grafana 46159/head
Aashish Sharma [Thu, 5 May 2022 08:22:33 +0000 (13:52 +0530)]
mgr/cephadm: Disable external snapshots in grafana

This PR intends to disable the external snapshots in grafana to reduce security threats

Signed-off-by: Aashish Sharma <aasharma@redhat.com>
3 years agoMerge pull request #46033 from iqbalredkhan/quota2
Ali Maredia [Thu, 5 May 2022 04:42:26 +0000 (00:42 -0400)]
Merge pull request #46033 from iqbalredkhan/quota2

rgw: Refactoring Quota Management

3 years agorgw: user_quota and bucket_quota are defined under RGWQuota 46033/head
Iqbal Khan [Thu, 28 Apr 2022 18:54:29 +0000 (00:24 +0530)]
rgw: user_quota and bucket_quota are defined under RGWQuota

struct RGWQuota {
      RGWQuotaInfo user_quota;
      RGWQuotaInfo bucket_quota;
};

Signed-off-by: Iqbal Khan <iqkhan@redhat.com>
3 years agoMerge pull request #46080 from cbodley/wip-55420
Casey Bodley [Wed, 4 May 2022 13:36:12 +0000 (09:36 -0400)]
Merge pull request #46080 from cbodley/wip-55420

cmake/rgw: add missing dependency on Arrow::Arrow

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Gal Salomon <gsalomon@redhat.com>
3 years agoMerge pull request #45341 from idryomov/wip-use-system-libpmem-on-c9s
Ilya Dryomov [Wed, 4 May 2022 12:49:37 +0000 (14:49 +0200)]
Merge pull request #45341 from idryomov/wip-use-system-libpmem-on-c9s

rpm: use system libpmem on Centos 9 Stream

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agoMerge pull request #46073 from idryomov/wip-rbd-mirror-exit-code
Ilya Dryomov [Wed, 4 May 2022 12:45:57 +0000 (14:45 +0200)]
Merge pull request #46073 from idryomov/wip-rbd-mirror-exit-code

rbd-mirror,immutable-object-cache: exit code is inverted

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agoMerge pull request #46103 from tchaikov/cmake-alloc-cleanup
Kefu Chai [Wed, 4 May 2022 11:28:48 +0000 (19:28 +0800)]
Merge pull request #46103 from tchaikov/cmake-alloc-cleanup

cmake: re-enable TCMalloc and allocator related cleanups

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #45845 from SUSE/wip-fix-55237
Ilya Dryomov [Wed, 4 May 2022 09:54:21 +0000 (11:54 +0200)]
Merge pull request #45845 from SUSE/wip-fix-55237

ceph.spec.in: openSUSE: require gcc11-c++, disable parquet

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #37655 from rishabh-d-dave/vr-run-multiple-cmds
Venky Shankar [Wed, 4 May 2022 09:33:30 +0000 (15:03 +0530)]
Merge pull request #37655 from rishabh-d-dave/vr-run-multiple-cmds

vstart_runner: accepts multiple commands as str too

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45473 from neesingh-rh/fix_50470
Venky Shankar [Wed, 4 May 2022 09:30:15 +0000 (15:00 +0530)]
Merge pull request #45473 from neesingh-rh/fix_50470

cephfs-top: Multiple filesystem support

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45776 from neesingh-rh/fix_48863
Venky Shankar [Wed, 4 May 2022 09:29:10 +0000 (14:59 +0530)]
Merge pull request #45776 from neesingh-rh/fix_48863

cephfs-shell: chmod should be allowed for changing all mode bits.

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45974 from rishabh-d-dave/shell-unrecognized-cmds
Venky Shankar [Wed, 4 May 2022 09:27:40 +0000 (14:57 +0530)]
Merge pull request #45974 from rishabh-d-dave/shell-unrecognized-cmds

cephfs-shell: exit with non-zero on getting unrecognized cmd

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #46135 from athanatos/sjust/wip-vstart-asok
Samuel Just [Wed, 4 May 2022 03:57:51 +0000 (20:57 -0700)]
Merge pull request #46135 from athanatos/sjust/wip-vstart-asok

vstart.sh: default CEPH_ASOK_DIR to out/

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #46137 from athanatos/sjust/wip-crimson-typos
Samuel Just [Wed, 4 May 2022 03:57:16 +0000 (20:57 -0700)]
Merge pull request #46137 from athanatos/sjust/wip-crimson-typos

crimson: misc typos

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #46134 from athanatos/sjust/wip-55326
Samuel Just [Wed, 4 May 2022 03:56:14 +0000 (20:56 -0700)]
Merge pull request #46134 from athanatos/sjust/wip-55326

crimson/common/format: remove ceph::coarse_real_clock format speciali…

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agocrimson/common/format: remove ceph::coarse_real_clock format specialization 46134/head
Samuel Just [Wed, 13 Apr 2022 23:59:45 +0000 (23:59 +0000)]
crimson/common/format: remove ceph::coarse_real_clock format specialization

...
..., value=..., loc=...) at /usr/include/fmt/ostream.h:114
...

Introduced: e9784125241064709d25e9c64d16e1c72b4d7bed
Fixes: https://tracker.ceph.com/issues/55326
Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #46128 from vumrao/wip-vumrao-quincy-release-note-update
Vikhyat Umrao [Tue, 3 May 2022 17:59:35 +0000 (10:59 -0700)]
Merge pull request #46128 from vumrao/wip-vumrao-quincy-release-note-update

docs/releases: update quincy release notes tracker 55383 known issue

3 years agodocs/releases: update quincy release notes tracker 55383 known issue 46128/head
Vikhyat Umrao [Tue, 3 May 2022 16:38:21 +0000 (09:38 -0700)]
docs/releases: update quincy release notes tracker 55383 known issue

Signed-off-by: Vikhyat Umrao <vikhyat@redhat.com>
3 years agoMerge pull request #46079 from ronen-fr/wip-rf-log-mock
Samuel Just [Tue, 3 May 2022 15:02:34 +0000 (08:02 -0700)]
Merge pull request #46079 from ronen-fr/wip-rf-log-mock

common: make LogChannel mockable

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agocmake: link daemons against ${ALLOC_LIBS} 46103/head
Kefu Chai [Tue, 3 May 2022 04:22:05 +0000 (12:22 +0800)]
cmake: link daemons against ${ALLOC_LIBS}

to enable them to use the specified allocators

Fixes: https://tracker.ceph.com/issues/55519
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #46115 from dang/wip-dang-split-init
Daniel Gryniewicz [Tue, 3 May 2022 12:02:51 +0000 (08:02 -0400)]
Merge pull request #46115 from dang/wip-dang-split-init

RGW - Split RGWRados initialization

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Soumya Koduri <skaduri@redhat.com>
Reviewed-by: Mark Kogan <mkogan@redhat.com>
3 years agoMerge pull request #46066 from bluikko/patch-4
Anthony D'Atri [Tue, 3 May 2022 05:54:06 +0000 (22:54 -0700)]
Merge pull request #46066 from bluikko/patch-4

doc/cephadm/services: Add missing ceph command to orch apply commands

3 years agoMerge pull request #46109 from bluikko/pgcalc_links
zdover23 [Mon, 2 May 2022 22:39:12 +0000 (08:39 +1000)]
Merge pull request #46109 from bluikko/pgcalc_links

doc/rados: fix pgcalc links

Reviewed-by: Zac Dover <zac.dover@gmail.com>
3 years agovstart.sh: default CEPH_ASOK_DIR to out/ 46135/head
Samuel Just [Thu, 21 Apr 2022 02:23:44 +0000 (19:23 -0700)]
vstart.sh: default CEPH_ASOK_DIR to out/

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/common/interruptible_future: fix typo 46137/head
Samuel Just [Thu, 14 Apr 2022 22:00:02 +0000 (15:00 -0700)]
crimson/common/interruptible_future: fix typo

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/common/operation: fix comment formatting
Samuel Just [Mon, 25 Apr 2022 22:26:30 +0000 (15:26 -0700)]
crimson/common/operation: fix comment formatting

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/admin/osd_admin: fix comment spacing
Samuel Just [Wed, 20 Apr 2022 23:18:09 +0000 (16:18 -0700)]
crimson/admin/osd_admin: fix comment spacing

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #44494 from mdw-at-linuxbox/wip-master-mankey
Ali Maredia [Mon, 2 May 2022 20:57:55 +0000 (16:57 -0400)]
Merge pull request #44494 from mdw-at-linuxbox/wip-master-mankey

rgw/crypt: sse-s3 changes

Reviewed-by: Ali Maredia <amaredia@redhat.com>
3 years agoMerge pull request #45843 from ajarr/wip-mgr-nfs-output-message
Adam King [Mon, 2 May 2022 17:40:36 +0000 (13:40 -0400)]
Merge pull request #45843 from ajarr/wip-mgr-nfs-output-message

mgr/nfs: clarify in the output message

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
3 years agoMerge pull request #46095 from aclamk/wip-aclamk-unbounded-wholespace-iterator
Yuri Weinstein [Mon, 2 May 2022 17:14:33 +0000 (10:14 -0700)]
Merge pull request #46095 from aclamk/wip-aclamk-unbounded-wholespace-iterator

kv/RocksDBStore: Remove ability to bound WholeSpaceIterator

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Reviewed-by: Cory Snyder <csnyder@iland.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
3 years agoRGW - Split RGWRados initialization 46115/head
Daniel Gryniewicz [Mon, 2 May 2022 14:15:40 +0000 (10:15 -0400)]
RGW - Split RGWRados initialization

The inter-connectedness of RadosStore and RGWRados resulted in a
segfault during RGWRados::init_complete due to the rados pointer not
being set in RadosStore yet.

Split the calls to RGWRados::initialize and RGWRados::init_complete, so
that we can set up RadosStore between them, allowing the services
created in RGWRados::init_complete to access the RadosStore.

Fixes: https://tracker.ceph.com/issues/55512
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoqa/vstart_runner: add a helper method to run commands 37655/head
Rishabh Dave [Wed, 29 Sep 2021 09:40:12 +0000 (15:10 +0530)]
qa/vstart_runner: add a helper method to run commands

It's more convenient to not to pass stdout, stdin, and stderr every
single time.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoqa/vstart_runner: don't use os.kill for passing SIGKILL
Rishabh Dave [Sat, 25 Sep 2021 10:33:25 +0000 (16:03 +0530)]
qa/vstart_runner: don't use os.kill for passing SIGKILL

vstart_runner.py is written assuming that it can run commands with
superuser privileges whenever possible and vstart_runner.py is meant to
be executed without sudo.

So, it's better kill a process using "sudo kill -9 <PID>", instead of
using os.kill() because os.kill() can't kill process launched with
superuser privileges.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoqa/vstart_runner.py: add a note about omitting sudo
Rishabh Dave [Mon, 25 Apr 2022 07:48:47 +0000 (13:18 +0530)]
qa/vstart_runner.py: add a note about omitting sudo

About the commit date: this commit got dropped from the patch series
during some PR branch update but is added back now.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoqa/vstart_runner: get rid of "exec sudo" from "ceph -w" cmd args
Rishabh Dave [Sat, 25 Sep 2021 09:29:27 +0000 (14:59 +0530)]
qa/vstart_runner: get rid of "exec sudo" from "ceph -w" cmd args

Passing "exec sudo" to "ceph -w" caused "Ceph API test" CI job to fail.
Error was not related to this tracker issue but the code added for it
is reversed now in this commit. The tracker issue -
https://tracker.ceph.com/issues/49644.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoqa/vstart_runner: keep cmd args as passed by user as well
Rishabh Dave [Sat, 25 Sep 2021 05:47:04 +0000 (11:17 +0530)]
qa/vstart_runner: keep cmd args as passed by user as well

We convert all cmd args to str and pass bash functions along to override
certain arguments in those command arguments. Let's save cmd args
without those bash functions since they can be useful later (for
example, printing cmd args in logs, which is the case in this patch.)

Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoqa/vstart_runner: copy few more note points from dev guide
Rishabh Dave [Mon, 2 Aug 2021 17:54:52 +0000 (23:24 +0530)]
qa/vstart_runner: copy few more note points from dev guide

The intention behind copying these note points is to document the
behaviour of vstart_runner.py inside vstart_runner.py as well so that
developer don't miss it out while working on it.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoqa/vstart_runner: override adjust-ulimits, ceph-coverage & sudo
Rishabh Dave [Fri, 6 Aug 2021 08:14:28 +0000 (13:44 +0530)]
qa/vstart_runner: override adjust-ulimits, ceph-coverage & sudo

Overridding commands is much better than deleting these commands from
command argument string using Python since, unlike deleting, overridding
doesn't require parsing. A note has been added for this to
vstart_runner.py's module docstring and to Ceph Developer's Guide
document.

Since functions don't work with sh shell, to make overriding work
vstart_runner.py will use bash shell here onwards.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoqa/vstart_runner: accept multiple commands as str
Rishabh Dave [Tue, 13 Oct 2020 07:12:56 +0000 (12:42 +0530)]
qa/vstart_runner: accept multiple commands as str

Convert all command arguments to str from list, update checks and
adjustments performed on command arguments accordingly and update
documentation to include warnings about some critical parts of
vstart_runner.py and update tasks.cephfs.mount.MountCephFS.run_shell().

Fixes: https://tracker.ceph.com/issues/47849
Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoMerge pull request #45842 from yuvalif/wip-yuval-const-notifications
Yuval Lifshitz [Mon, 2 May 2022 14:01:52 +0000 (17:01 +0300)]
Merge pull request #45842 from yuvalif/wip-yuval-const-notifications

rgw/notifications: make the interfaces const when possible

3 years agoMerge pull request #46100 from ronen-fr/wip-rf-80cls-v1
Ronen Friedman [Mon, 2 May 2022 13:16:04 +0000 (16:16 +0300)]
Merge pull request #46100 from ronen-fr/wip-rf-80cls-v1

osd/scrub: reformat scrub files to 80 cols

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
Reviewed-by: Aishwarya Mathuria <amathuri@redhat.com>
3 years agoMerge pull request #45889 from lxbsz/wip-mds-clienup
Venky Shankar [Mon, 2 May 2022 09:35:27 +0000 (15:05 +0530)]
Merge pull request #45889 from lxbsz/wip-mds-clienup

mds: remove duplicated code

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45983 from lxbsz/client_warning
Venky Shankar [Mon, 2 May 2022 09:35:02 +0000 (15:05 +0530)]
Merge pull request #45983 from lxbsz/client_warning

client: fix compile warning

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agodoc/radosgw: fix pgcalc link 46109/head
Ville Ojamo [Mon, 2 May 2022 09:01:51 +0000 (16:01 +0700)]
doc/radosgw: fix pgcalc link

The pgcalc tool has moved to the "old" ceph site so update
the link to avoid a 404.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
3 years agodoc/rados/operations: fix pgcalc link
Ville Ojamo [Mon, 2 May 2022 08:59:26 +0000 (15:59 +0700)]
doc/rados/operations: fix pgcalc link

The pgcalc tool has moved to the "old" ceph site so update
the link to avoid a 404.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
3 years agoMerge pull request #46051 from Matan-B/wip-matanb-ipv6-mount
Kefu Chai [Mon, 2 May 2022 08:33:58 +0000 (16:33 +0800)]
Merge pull request #46051 from Matan-B/wip-matanb-ipv6-mount

mount/conf: Fix IPv6 parsing

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoMerge pull request #46102 from bluikko/ioctx_get_stats_docs
Anthony D'Atri [Mon, 2 May 2022 07:11:14 +0000 (00:11 -0700)]
Merge pull request #46102 from bluikko/ioctx_get_stats_docs

doc/rados/api: fix invalid RST syntax and don't sudo for vim

3 years agoMerge pull request #44305 from kotreshhr/vstart-fixes
Venky Shankar [Mon, 2 May 2022 06:37:07 +0000 (12:07 +0530)]
Merge pull request #44305 from kotreshhr/vstart-fixes

qa: Fix a few tracebacks in vstart_runner

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agopybind/rados: fix typo in get_stats documentation 46102/head
Ville Ojamo [Mon, 2 May 2022 03:15:17 +0000 (10:15 +0700)]
pybind/rados: fix typo in get_stats documentation

Ioctx.get_stats() had a typo in return value documentation
block so add the "c" in "objects".

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
3 years agodoc/rados/api: fix invalid RST syntax and don't sudo for vim
Ville Ojamo [Mon, 2 May 2022 03:14:05 +0000 (10:14 +0700)]
doc/rados/api: fix invalid RST syntax and don't sudo for vim

Fix invalid syntax where "linenos:" was printed in the
final rendered documentation instead of being used as
formatting syntax.

There is no need to use sudo for editing a source file
so run vim without sudo.

Change the whole block to use bash prompt since it is
a command.

Also modify the preceding text to hopefully not bold it.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
3 years agocmake/modules/BuildFIO: specify the full path to alloc libraries
Kefu Chai [Mon, 2 May 2022 03:42:17 +0000 (11:42 +0800)]
cmake/modules/BuildFIO: specify the full path to alloc libraries

before this change, we assume that "ALLOCATOR" is the library name
which can be found by linker with "ld -l <namespec>". but ideally,
cmake can find a library in a more sophiscated way used by
its "find_library()" implementation. so, in this change, instead of
relying on the default paths looked up by "ld", use the path
found by cmake.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agocmake: restructure allocator related code
Kefu Chai [Mon, 2 May 2022 02:46:05 +0000 (10:46 +0800)]
cmake: restructure allocator related code

before this change, the ALLOCATOR cmake option are handled at two
difference places: one to handle ALLOCATOR option, another to add
compilation options based on ALLOCATOR. after this change:

* the ALLOCATOR option is handled in a single place
* dedup the branches handling different ALLOCATORS into a single
  condition: (NOT ALLOCATOR STREQUAL "libc")
* add_compile_options() calls are consolidated into a single one

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #45794 from Matan-B/wip-matanb-c-submit_txn
Samuel Just [Sun, 1 May 2022 20:02:47 +0000 (13:02 -0700)]
Merge pull request #45794 from Matan-B/wip-matanb-c-submit_txn

crimson/osd: submit_transaction() refactoring

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: submit_transaction() refactoring 45794/head
Matan Breizman [Mon, 4 Apr 2022 12:24:54 +0000 (12:24 +0000)]
crimson/osd: submit_transaction() refactoring

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
3 years agoMerge pull request #45810 from zenomri/wip-rgw-lua-bucketname
Yuval Lifshitz [Sun, 1 May 2022 10:10:39 +0000 (13:10 +0300)]
Merge pull request #45810 from zenomri/wip-rgw-lua-bucketname

rgw: support bucket name in lua pre request execution

3 years agomount/conf: Fix IPv6 parsing 46051/head
Matan Breizman [Wed, 27 Apr 2022 10:06:13 +0000 (10:06 +0000)]
mount/conf: Fix IPv6 parsing

Fixes: https://tracker.ceph.com/issues/47300
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
3 years agorgw: support bucket name in pre request context 45810/head
Omri Zeneva [Sun, 27 Mar 2022 17:10:33 +0000 (20:10 +0300)]
rgw: support bucket name in pre request context

because bucket object is created only after authentication,
if bucket object is null upon accessing Request.Bucket.Name, we return req_state->init_state.url_bucket

Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
3 years agodoc/cephadm/services: Add missing ceph command to orch apply 46066/head
bluikko [Thu, 28 Apr 2022 06:42:31 +0000 (13:42 +0700)]
doc/cephadm/services: Add missing ceph command to orch apply

In cephadm service management documentation several of the
ceph orch commands are missing the ceph part, mostly in
ceph orch apply commands but not all of them.

Add ceph in the front of the command to make them consistent
with all other commands.

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
3 years agoMerge pull request #46030 from ivancich/wip-fix-bucket-index-new
J. Eric Ivancich [Sat, 30 Apr 2022 23:29:19 +0000 (19:29 -0400)]
Merge pull request #46030 from ivancich/wip-fix-bucket-index-new

rgw: remove entries from bucket index shards directly in limited cases

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #45990 from cbodley/wip-55339
J. Eric Ivancich [Sat, 30 Apr 2022 21:32:52 +0000 (17:32 -0400)]
Merge pull request #45990 from cbodley/wip-55339

rgw: RGWPutLC does not require Content-MD5

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
3 years agoMerge pull request #46098 from anthonyeleven/anthonyeleven/submitting_patches_improvement
Anthony D'Atri [Sat, 30 Apr 2022 18:01:28 +0000 (11:01 -0700)]
Merge pull request #46098 from anthonyeleven/anthonyeleven/submitting_patches_improvement

SubmittingPatches: Improve SubmittingPatches example

3 years agoMerge pull request #45873 from BenoitKnecht/rgw-opa-segv
J. Eric Ivancich [Sat, 30 Apr 2022 15:27:29 +0000 (11:27 -0400)]
Merge pull request #45873 from BenoitKnecht/rgw-opa-segv

rgw: Avoid segfault when OPA authz is enabled

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoMerge pull request #45882 from ivancich/wip-index-completion-mgr-crash
J. Eric Ivancich [Sat, 30 Apr 2022 15:26:15 +0000 (11:26 -0400)]
Merge pull request #45882 from ivancich/wip-index-completion-mgr-crash

rgw: address crash and race in RGWIndexCompletionManager

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
3 years agocommon: make LogChannel mockable 46079/head
Ronen Friedman [Thu, 28 Apr 2022 07:35:58 +0000 (07:35 +0000)]
common: make LogChannel mockable

Adding LoggerSinkSet, an abstract API that enables unit-testing
of OSD components that emit cluster-log messages, and trapping the
logs.

First usage example is in the Scrubber backend unit-tests.
The log "implementation" there (note the error counter that
can be used to determine tests success):

 class MockLog : public LoggerSinkSet {
 public:
  void warn(std::stringstream& s) override
  {
    std::cout << "\n<<warn>> " << s.str() << std::endl;
  }
  void error(std::stringstream& s) override
  {
    err_count++;
    std::cout << "\n<<error>> " << s.str() << std::endl;
  }
  ...

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
3 years agoosd/scrub: reformat scrub files to 80 cols 46100/head
Ronen Friedman [Sat, 30 Apr 2022 13:43:58 +0000 (13:43 +0000)]
osd/scrub: reformat scrub files to 80 cols

Reformatting the OSD scrub code files to match styleguide.
Specifically:
- force 80-cols lines; and
- (sadly) force 'use tabs' (replacing each 8 indentation
  blanks with a tab.

clang-format version used: 13
Configuration file used is detailed in PR comment.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
3 years agoSubmittingPatches: Improve SubmittingPatches example 46098/head
Anthony D'Atri [Sat, 30 Apr 2022 07:56:21 +0000 (00:56 -0700)]
SubmittingPatches: Improve SubmittingPatches example

The example commit didn't show the convention of prefixing the message with
the relative directory path where the file lives, which has led new
contributors to innocently submit changes that aren't formatted ideally.
This adds a path to the example.

Signed-off-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agoMerge pull request #46011 from liu-chunmei/seastore_omap_set/get_header
Liu-Chunmei [Sat, 30 Apr 2022 05:05:58 +0000 (22:05 -0700)]
Merge pull request #46011 from liu-chunmei/seastore_omap_set/get_header

crimson/seastore: add OMAP_GET/SET_HEADER

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agokv/RocksDBStore: Remove feature to make WholeSpaceIterator based on bounded iterator 46095/head
Adam Kupczyk [Fri, 29 Apr 2022 21:32:43 +0000 (23:32 +0200)]
kv/RocksDBStore: Remove feature to make WholeSpaceIterator based on bounded iterator

Iterator-bounding feature is introduced to make RocksDB iterators limited, so they
would less likely traverse over tombstones.
This is used when listing keys in fixed range, for example OMAPS for specific object.

It is problematic when extending this logic to WholeSpaceIterator,
since prefix must be taken into account.

Fixes: https://tracker.ceph.com/issues/55444
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
3 years agocrimson/seastore: add OMAP_GET/SET_HEADER 46011/head
chunmei-liu [Tue, 26 Apr 2022 08:53:46 +0000 (01:53 -0700)]
crimson/seastore: add OMAP_GET/SET_HEADER

Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
3 years agoMerge pull request #45993 from markhpc/wip-crimson-argparse
Mark Nelson [Fri, 29 Apr 2022 18:42:28 +0000 (13:42 -0500)]
Merge pull request #45993 from markhpc/wip-crimson-argparse

crimson/osd: fix argument parsing after seastar changes

3 years agoMerge pull request #45987 from dang/wip-dang-zipper-standalone
Daniel Gryniewicz [Fri, 29 Apr 2022 15:58:02 +0000 (11:58 -0400)]
Merge pull request #45987 from dang/wip-dang-zipper-standalone

RGW - Allow starting RGW/dbstore without connecting to Mons

3 years agoceph.spec.in: openSUSE: require gcc11-c++, disable parquet 45845/head
Tim Serong [Fri, 8 Apr 2022 06:24:49 +0000 (16:24 +1000)]
ceph.spec.in: openSUSE: require gcc11-c++, disable parquet

This commit also explicilty sets the toolset when calling
boost's bootstrap.sh, because the latter is only capable
of autodetecting gcc if you have an unversioned `g++` in
the path, which may not be the case if only gcc11-c++ is
installed (the unversioned gcc-c++ package includes the
/usr/bin/g++ symlink, but depending on which version of
openSUSE we build on, that might point to a different gcc
version, so we don't want to use that).

Fixes: https://tracker.ceph.com/issues/55237
Signed-off-by: Tim Serong <tserong@suse.com>
3 years agoMerge pull request #46044 from zdover23/wip-doc-2022-04-27-reef-PendingReleaseNotes...
zdover23 [Thu, 28 Apr 2022 21:39:43 +0000 (07:39 +1000)]
Merge pull request #46044 from zdover23/wip-doc-2022-04-27-reef-PendingReleaseNotes-cleanup

doc: clean up PendingReleaseNotes for reef

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agorgw: address technical debt in RGWBucket::check_bad_index_multipart 46030/head
J. Eric Ivancich [Tue, 26 Apr 2022 16:11:54 +0000 (12:11 -0400)]
rgw: address technical debt in RGWBucket::check_bad_index_multipart

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agoMerge pull request #43371 from liavt/master
Yuval Lifshitz [Thu, 28 Apr 2022 16:12:55 +0000 (19:12 +0300)]
Merge pull request #43371 from liavt/master

rgw: notifications on object replication

3 years agocmake/rgw: add missing dependency on Arrow::Arrow 46080/head
Casey Bodley [Thu, 28 Apr 2022 15:43:15 +0000 (11:43 -0400)]
cmake/rgw: add missing dependency on Arrow::Arrow

when WITH_SYSTEM_ARROW is disabled, BuildArrow.cmake creates an
Arrow::Parquet target that depends on Arrow::Arrow:

  target_link_libraries(Arrow::Parquet INTERFACE Arrow::Arrow)

but when WITH_SYSTEM_ARROW is enabled, the targets we get from
find_package() do not carry this dependency. so rgw's cmake needs to
depend on both targets

Fixes: https://tracker.ceph.com/issues/55420
Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #46023 from linuxbox2/wip-dbstore-shutdown
Matt Benjamin [Thu, 28 Apr 2022 14:14:35 +0000 (10:14 -0400)]
Merge pull request #46023 from linuxbox2/wip-dbstore-shutdown

rgw: dbstore: add mechanism to signal gc_worker to exit

3 years agorbd-mirror,immutable-object-cache: exit code is inverted 46073/head
Ilya Dryomov [Thu, 28 Apr 2022 09:29:29 +0000 (11:29 +0200)]
rbd-mirror,immutable-object-cache: exit code is inverted

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agoMerge pull request #46053 from guits/cv-quick-change-log-level
Guillaume Abrioux [Thu, 28 Apr 2022 08:13:14 +0000 (10:13 +0200)]
Merge pull request #46053 from guits/cv-quick-change-log-level

ceph-volume: only warn when config file isn't found

3 years agoqa/rgw - run sse-s3 test cases only if configured or requested 44494/head
Marcus Watts [Wed, 27 Apr 2022 22:50:56 +0000 (18:50 -0400)]
qa/rgw - run sse-s3 test cases only if configured or requested

This commit adds logic to automatically detect when sse-s3 is
available and if not, disables sse-s3 tests by default.
Configuration opions are provided to override the default either way.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
3 years agoMerge pull request #46009 from ljflores/wip-link-submitting-backports
Laura Flores [Wed, 27 Apr 2022 23:01:30 +0000 (18:01 -0500)]
Merge pull request #46009 from ljflores/wip-link-submitting-backports

3 years agoRGW - Allow radosgw-admin to work on other stores 45987/head
Daniel Gryniewicz [Wed, 27 Apr 2022 18:02:30 +0000 (14:02 -0400)]
RGW - Allow radosgw-admin to work on other stores

For debugging purposes, allow radosgw-admin to run with stores other
than RadosStore.  Many operations will still fail (by crashing), so care
must be taken when running this way.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoRGW - Allow starting RGW/dbstore without connecting to Mons
Daniel Gryniewicz [Thu, 21 Apr 2022 15:45:44 +0000 (11:45 -0400)]
RGW - Allow starting RGW/dbstore without connecting to Mons

DBStore, and some other Stores like Motr, don't need to connect to the
Mons to work.  However, startup automatically connects to the mons.
There's provision to not connect, but the split isn't quite right.  We
need to call global_pre_init() to get config from the file, to determine
which store to start, but we then need to decide before calling
global_init() whether the configured store needs to connect to the mons.

This requires a slight change to global_init() to set no_mon_config from
the new flags.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoMerge pull request #46025 from CongMinYin/fix-endianness-issue-encoding
Ilya Dryomov [Wed, 27 Apr 2022 16:22:43 +0000 (18:22 +0200)]
Merge pull request #46025 from CongMinYin/fix-endianness-issue-encoding

librbd/cache/pwl: fix bit field endianness issue

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
3 years agodoc/mgr/nfs: Add commands to check the statuses 45843/head
Ramana Raja [Sun, 10 Apr 2022 18:21:24 +0000 (14:21 -0400)]
doc/mgr/nfs: Add commands to check the statuses

.. of NFS and ingress services after creating/deleting a NFS cluster.
The `nfs cluster info` command is not sufficient to show that the
NFS cluster is created/deleted as expected.

Signed-off-by: Ramana Raja <rraja@redhat.com>
3 years agorgw: "bucket check --fix" should delete damaged multipart uploads from bi
J. Eric Ivancich [Tue, 26 Apr 2022 16:46:08 +0000 (12:46 -0400)]
rgw: "bucket check --fix" should delete damaged multipart uploads from bi

As one of the steps in `radosgw-admin bucket check --fix ...` it looks
for bucket index entries for incomplete multipart uploads that do not
have a corresponding ".meta" entry in the same bucket index. It then
intends to delete those entries, however the function that it calls
to perform the bucket index deletions was flawed and did not direct
the removals to the appropriate shard(s), but instead a non-existant
oid.

This commit determines the appropriate shard for each of the entries
to be removed and asynchronously issues a librados call to
omap_rm_keys.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agorgw: dbstore: add mechanism to signal gc_worker to exit 46023/head
Matt Benjamin [Mon, 25 Apr 2022 15:22:32 +0000 (11:22 -0400)]
rgw: dbstore: add mechanism to signal gc_worker to exit

This addresses a trivial hang on shutdown.

Fixes: https://tracker.ceph.com/issues/55431
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
3 years agoMerge pull request #46022 from linuxbox2/wip-dbstore-nfs
Matt Benjamin [Wed, 27 Apr 2022 13:43:36 +0000 (09:43 -0400)]
Merge pull request #46022 from linuxbox2/wip-dbstore-nfs

librgw: teach librgw about rgw_backend_store

3 years agoMerge pull request #45954 from Matan-B/wip-matanb-c-cyanlog
Radoslaw Zarzynski [Wed, 27 Apr 2022 13:13:15 +0000 (15:13 +0200)]
Merge pull request #45954 from Matan-B/wip-matanb-c-cyanlog

crimson/os: CyanStore debug subsystem

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoceph-volume: only warn when config file isn't found 46053/head
Guillaume Abrioux [Wed, 27 Apr 2022 12:12:23 +0000 (14:12 +0200)]
ceph-volume: only warn when config file isn't found

According to [1], this should only be a warning.

[1] https://github.com/ceph/ceph/commit/0487a9ac60c5ba289b7dd7c730b014a298c5998f

Fixes: https://tracker.ceph.com/issues/47633
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
3 years agoMerge pull request #45811 from rhcs-dashboard/grafana-e2e
Ernesto Puerta [Wed, 27 Apr 2022 12:09:29 +0000 (14:09 +0200)]
Merge pull request #45811 from rhcs-dashboard/grafana-e2e

mgr/dashboard: introduce grafana frontend e2e testing

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoqa/cephfs: don't remove sudo from the command arguments 44305/head
Rishabh Dave [Mon, 24 Jan 2022 18:33:05 +0000 (00:03 +0530)]
qa/cephfs: don't remove sudo from the command arguments

run_shell() in qa.tasks.cephfs.mount.CephFSMount prepends "sudo" to its
command arguments but it doesn't specify to the underlying method that
"sudo" shouldn't be deleted from the command arguments.

Fixes: https://tracker.ceph.com/issues/53601
Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoqa/vstart_runner: set LocalCephManager.cluster
Rishabh Dave [Mon, 24 Jan 2022 18:46:32 +0000 (00:16 +0530)]
qa/vstart_runner: set LocalCephManager.cluster

Use LocalContext instance to set LocalCephManager.cluster.

Fixes: https://tracker.ceph.com/issues/53601
Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoqa: Fix a few tracebacks in vstart_runner
Kotresh HR [Tue, 14 Dec 2021 10:13:41 +0000 (15:43 +0530)]
qa: Fix a few tracebacks in vstart_runner

1. CommandFailedError: Command failed with status 127: \
['None/archive/coverage', 'rados' ...]
2. TypeError: a bytes-like object is required, not '_io.BytesIO'

Fixes: https://tracker.ceph.com/issues/53601
Signed-off-by: Kotresh HR <khiremat@redhat.com>
3 years agomgr/dashboard: prometheus rules internal server error 45811/head
Nizamudeen A [Tue, 26 Apr 2022 10:19:09 +0000 (15:49 +0530)]
mgr/dashboard: prometheus rules internal server error

After we increase/decrease the count of the node-exporter, we get a 500
- Internal server error from api/prometheus/rules endpoint. On further
  debugging its caused by the jsonDecodder, because I guess the expected
input for the json.loads() is not a json formatted input. So to fix
that issue I can either do an error handling on the json.loads() or I
can move the json.loads() on the already existing try block. I went for
the second approach here.

Fixes: https://tracker.ceph.com/issues/54356
Signed-off-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #46012 from liu-chunmei/crimson-osd_op.rval
Samuel Just [Tue, 26 Apr 2022 23:22:38 +0000 (16:22 -0700)]
Merge pull request #46012 from liu-chunmei/crimson-osd_op.rval

crimson/osd: still need set error code value in osd_op.rval

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agorgw: address crash and race in RGWIndexCompletionManager 45882/head
J. Eric Ivancich [Tue, 12 Apr 2022 18:47:45 +0000 (14:47 -0400)]
rgw: address crash and race in RGWIndexCompletionManager

An atomic int was used in a modulo operator to distribute contention
among a set of locks and to track completions. Because it was an int,
enough increments would cause it to go negative (due to
twos-complement encoding and overflow) thereby causing a
crash. Additionally, even though it was atomic, the read and increment
were separate operations, leading to a race.

This commit addresses both of these issues.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agoMerge pull request #45598 from rkachach/fix_issue_55008
Adam King [Tue, 26 Apr 2022 19:48:03 +0000 (15:48 -0400)]
Merge pull request #45598 from rkachach/fix_issue_55008

mgr/cephadm: Adding image tag and date to cephadm startup messages

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
3 years agoMerge pull request #45855 from rkachach/fix_issue_55265
Adam King [Tue, 26 Apr 2022 19:11:34 +0000 (15:11 -0400)]
Merge pull request #45855 from rkachach/fix_issue_55265

mgr/cephadm: fixing call method timeout handling

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #45877 from rkachach/fix_issue_55185
Adam King [Tue, 26 Apr 2022 19:10:26 +0000 (15:10 -0400)]
Merge pull request #45877 from rkachach/fix_issue_55185

mgr/cephadm: Adding support to store ceph conf per cluster fsid

Reviewed-by: Adam King <adking@redhat.com>