]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
2 years agodoc/rbd: refine rbd-snapshot.rst 49394/head
Zac Dover [Fri, 9 Dec 2022 17:42:14 +0000 (03:42 +1000)]
doc/rbd: refine rbd-snapshot.rst

Refine the text in rbd-snapshot.rst

https://tracker.ceph.com/issues/57001

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #49173 from rhcs-dashboard/fix-encryption-config
Aashish Sharma [Fri, 16 Dec 2022 11:35:13 +0000 (17:05 +0530)]
Merge pull request #49173 from rhcs-dashboard/fix-encryption-config

mgr/dashboard: fix server side encryption config error

2 years agoMerge pull request #49452 from tchaikov/wip-crimson-test-fmt-v9
Kefu Chai [Fri, 16 Dec 2022 07:46:59 +0000 (15:46 +0800)]
Merge pull request #49452 from tchaikov/wip-crimson-test-fmt-v9

test/crimson: fixes related to fmtlib v9

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agomgr/dashboard: fix server side encryption config error 49173/head
Aashish Sharma [Thu, 1 Dec 2022 10:32:14 +0000 (16:02 +0530)]
mgr/dashboard: fix server side encryption config error

Fixes: https://tracker.ceph.com/issues/58296
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
2 years agotest/crimson: include fmt/os.h 49452/head
Kefu Chai [Thu, 15 Dec 2022 10:23:43 +0000 (18:23 +0800)]
test/crimson: include fmt/os.h

so we can format std::error_code

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agotest/crimson: print conn instead of its address
Kefu Chai [Thu, 15 Dec 2022 09:38:07 +0000 (17:38 +0800)]
test/crimson: print conn instead of its address

now that crimson::net::Connection can be formatted using fmt::format(),
instead of printing the pointer, let's print its value.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agotest/crimson: trade operator<<() for fmt::format<>()
Kefu Chai [Thu, 15 Dec 2022 09:36:05 +0000 (17:36 +0800)]
test/crimson: trade operator<<() for fmt::format<>()

so we are able to format Payload using fmtlib v9. before fmtlib v9,
fmtlib is able to fall back to the operator<<() to format the the
types with the operator<<() defined. but after fmtlib v9, we need to
explicitly define them for accessing the specialized formatter.

now that we have specialized fmt::format<> for Payload, and the only
consumer of operator<<() is the fmtlib, we can safely drop the latter.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agotest/crimson: specialize fmt::formater<> for types to be formatted
Kefu Chai [Thu, 15 Dec 2022 09:32:55 +0000 (17:32 +0800)]
test/crimson: specialize fmt::formater<> for types to be formatted

since fmt v9, fmt::formatter<> is not specialized for the types with
operator<<(ostream&, ...) anymore. so we need to specialize it manually.
in this change, fmt::formatter<> is specialized for some types to be
formatted with fmtlib, so the tree can compile with fmt v9.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agomsg/msg_types.h: include fmt/format.h
Kefu Chai [Thu, 15 Dec 2022 08:20:50 +0000 (16:20 +0800)]
msg/msg_types.h: include fmt/format.h

for accessing the macro definition of FMT_VERSION, so we can have
definition of fmt::format<> if required.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agotest/crimson: print pointer using fmt::ptr()
Kefu Chai [Thu, 15 Dec 2022 07:26:46 +0000 (15:26 +0800)]
test/crimson: print pointer using fmt::ptr()

in fmtlib v9, it does not format typed pointers anymore, instead,
we need to print them using fmt::ptr().

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agotest/crimson: include system and 3rd-party headers first
Kefu Chai [Thu, 15 Dec 2022 05:34:16 +0000 (13:34 +0800)]
test/crimson: include system and 3rd-party headers first

see also https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #49467 from zdover23/wip-doc-2022-12-16-rados-ec-default-simplest
zdover23 [Fri, 16 Dec 2022 01:28:38 +0000 (11:28 +1000)]
Merge pull request #49467 from zdover23/wip-doc-2022-12-16-rados-ec-default-simplest

doc/rados: clarify default EC pool from simplest

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/rados: clarify default EC pool from simplest 49467/head
Zac Dover [Fri, 16 Dec 2022 01:07:51 +0000 (11:07 +1000)]
doc/rados: clarify default EC pool from simplest

Distinguish between the default erasure-coded pool (k=2 m=2) and the
simplest erasure-coded pool (k=2 m=1).

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48991 from kamoltat/wip-ksirivad-fix-bz-2121452
Kamoltat Sirivadhna [Thu, 15 Dec 2022 22:07:38 +0000 (17:07 -0500)]
Merge pull request #48991 from kamoltat/wip-ksirivad-fix-bz-2121452

mon/Elector: Change how we handle removed_ranks and notify_rank_removed()
Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
2 years agoMerge pull request #49436 from Thingee/add-alex-to-board
Mike Perez [Thu, 15 Dec 2022 21:30:07 +0000 (13:30 -0800)]
Merge pull request #49436 from Thingee/add-alex-to-board

doc/foundation: Adding Alex Marangone to the board

2 years agoMerge pull request #49416 from ljflores/wip-telemetry-label
Laura Flores [Thu, 15 Dec 2022 17:04:27 +0000 (11:04 -0600)]
Merge pull request #49416 from ljflores/wip-telemetry-label

.github: automatically add telemetry label to relevant files

2 years agoMerge pull request #48641 from NitzanMordhai/wip-nitzan-valgrind-supp-adding-rocksdb...
Yuri Weinstein [Thu, 15 Dec 2022 16:14:03 +0000 (08:14 -0800)]
Merge pull request #48641 from NitzanMordhai/wip-nitzan-valgrind-supp-adding-rocksdb-dl-init

src/valgrind.supp: Adding know leaks unrelated to ceph

Reviewed-by: Laura Flores <lflores@redhat.com>
2 years agoMerge pull request #48416 from Rethan/wip-bluestore-discard-thread
Yuri Weinstein [Thu, 15 Dec 2022 16:13:33 +0000 (08:13 -0800)]
Merge pull request #48416 from Rethan/wip-bluestore-discard-thread

blk/KernelDevice: don't start discard thread if device not support_di…

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
2 years agoMerge pull request #40066 from ideepika/wip-mempool-buffers
Yuri Weinstein [Thu, 15 Dec 2022 16:13:06 +0000 (08:13 -0800)]
Merge pull request #40066 from ideepika/wip-mempool-buffers

os/bluestore: improve cache_onode and cache_buffer mempool accounting

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agoMerge pull request #49435 from dang/wip-dang-motr-build
Daniel Gryniewicz [Thu, 15 Dec 2022 14:57:51 +0000 (09:57 -0500)]
Merge pull request #49435 from dang/wip-dang-motr-build

RGW - Fix DAOS and MOTR stores to not use rgw_obj_key::to_str()

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge PR #49021 into main
Venky Shankar [Thu, 15 Dec 2022 11:21:23 +0000 (16:51 +0530)]
Merge PR #49021 into main

* refs/pull/49021/head:
qa: switch to https protocol for repos' server

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoMerge pull request #48707 from guits/guits-tracker-57918
Guillaume Abrioux [Thu, 15 Dec 2022 06:59:11 +0000 (07:59 +0100)]
Merge pull request #48707 from guits/guits-tracker-57918

ceph-volume: fix a bug in get_all_devices_vgs()

2 years agoMerge pull request #49445 from zdover23/wip-doc-2022-12-15-cephfs-posix-eg-fix
colemitchell [Thu, 15 Dec 2022 04:36:30 +0000 (23:36 -0500)]
Merge pull request #49445 from zdover23/wip-doc-2022-12-15-cephfs-posix-eg-fix

doc/cephfs: fix "e.g." in posix.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/cephfs: fix "e.g." in posix.rst 49445/head
Zac Dover [Thu, 15 Dec 2022 04:08:20 +0000 (14:08 +1000)]
doc/cephfs: fix "e.g." in posix.rst

Remove "e.g." and replace it with "for example".

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #49441 from zdover23/wip-doc-2022-12-15-cephfs-homophone-error
colemitchell [Thu, 15 Dec 2022 04:06:11 +0000 (23:06 -0500)]
Merge pull request #49441 from zdover23/wip-doc-2022-12-15-cephfs-homophone-error

doc/cephfs - s/yet to here/yet to hear/ posix.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agoMerge pull request #49442 from zdover23/wip-doc-2022-12-15-cephfs-homophone-error-2
colemitchell [Thu, 15 Dec 2022 04:05:48 +0000 (23:05 -0500)]
Merge pull request #49442 from zdover23/wip-doc-2022-12-15-cephfs-homophone-error-2

doc/cephfs: s/all of there are/all of these are/

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agoMerge pull request #48089 from aisakaki/wip-omap-rmkeyrange
Yingxin [Thu, 15 Dec 2022 02:37:50 +0000 (10:37 +0800)]
Merge pull request #48089 from aisakaki/wip-omap-rmkeyrange

crimson/os/seastore: introduce omap range remove

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agoMerge pull request #49427 from tchaikov/wip-crimson-fmt
Yingxin [Thu, 15 Dec 2022 02:24:17 +0000 (10:24 +0800)]
Merge pull request #49427 from tchaikov/wip-crimson-fmt

crimson: fmtlib v9 related changes

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agoMerge pull request #49408 from tchaikov/wip-crimson-device_spec_t
Yingxin [Thu, 15 Dec 2022 02:21:22 +0000 (10:21 +0800)]
Merge pull request #49408 from tchaikov/wip-crimson-device_spec_t

crimson/os: define device_spec_t as packed

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agodoc/cephfs: s/all of there are/all of these are/ 49442/head
Zac Dover [Wed, 14 Dec 2022 21:07:44 +0000 (07:07 +1000)]
doc/cephfs: s/all of there are/all of these are/

s/all of there are/all of these are/ in posix.rst.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agodoc/cephfs - s/yet to here/yet to hear/ posix.rst 49441/head
Zac Dover [Wed, 14 Dec 2022 20:51:29 +0000 (06:51 +1000)]
doc/cephfs - s/yet to here/yet to hear/ posix.rst

Correct "yet to here" to "yet to hear" in posix.rst.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agoMerge pull request #48710 from cbodley/wip-rgw-process-env
Casey Bodley [Wed, 14 Dec 2022 20:15:46 +0000 (15:15 -0500)]
Merge pull request #48710 from cbodley/wip-rgw-process-env

rgw: pass RGWProcessEnv into process_request()

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
2 years agoMerge pull request #49395 from adamemerson/wip-policy-useful-error-messages
Adam C. Emerson [Wed, 14 Dec 2022 20:13:51 +0000 (15:13 -0500)]
Merge pull request #49395 from adamemerson/wip-policy-useful-error-messages

rgw: Give useful errors when policies fail to parse

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agomon/Monitor.cc: notify_new_monmap() skips removal of non-exist rank 48991/head
Kamoltat [Wed, 14 Dec 2022 19:54:00 +0000 (19:54 +0000)]
mon/Monitor.cc: notify_new_monmap() skips removal of non-exist rank

Problem:
In RHCS the user can choose to manually remove a monitor rank
before shutting the monitor down. Causing inconsistency in monmap.
for example we remove mon.a from the monmap, there is a short period
where mon.a is still operational and will try to remove itself from
monmap but we will run into an assertion in
ConnectionTracker::notify_ranks_removed().

Solution:
In Monitor::notify_new_monmap() we prevent the func
from going into removing our own rank, or
ranks that doesn't exists in monmap.

FYI: this is an RHCS problem only, in ODF,
we never remove a monitor from monmap
before shutting it down.

Fixes: https://tracker.ceph.com/issues/58049
Signed-off-by: Kamoltat <ksirivad@redhat.com>
2 years agoMerge pull request #49141 from cbodley/wip-58111
Casey Bodley [Wed, 14 Dec 2022 19:59:58 +0000 (14:59 -0500)]
Merge pull request #49141 from cbodley/wip-58111

rgw: rgw_parse_url_bucket() rejects empty bucket names after 'tenant:'

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@cern.ch>
2 years agoMerge pull request #48226 from sseshasa/wip-fix-recovery-backfill-limits-for-mclock
Neha Ojha [Wed, 14 Dec 2022 18:59:15 +0000 (10:59 -0800)]
Merge pull request #48226 from sseshasa/wip-fix-recovery-backfill-limits-for-mclock

osd: Reduce backfill/recovery default limits for mClock and other optimizations

Reviewed-by: Vikhyat Umrao <vikhyat@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2 years agodoc/foundation: Adding Alex Marangone to the board 49436/head
Mike Perez [Wed, 14 Dec 2022 18:57:50 +0000 (10:57 -0800)]
doc/foundation: Adding Alex Marangone to the board

Signed-off-by: Mike Perez <thingee@gmail.com>
2 years agoRGW - Fix DAOS and MOTR stores to not use rgw_obj_key::to_str() 49435/head
Daniel Gryniewicz [Wed, 14 Dec 2022 18:45:31 +0000 (13:45 -0500)]
RGW - Fix DAOS and MOTR stores to not use rgw_obj_key::to_str()

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoceph-volume: fix a bug in get_all_devices_vgs() 48707/head
Guillaume Abrioux [Wed, 2 Nov 2022 15:03:17 +0000 (16:03 +0100)]
ceph-volume: fix a bug in get_all_devices_vgs()

When a physical volume isn't a member of any volume group,
the function `get_all_devices_vgs()` in `ceph_volume.api.lvm`
shouldn't try to return an `VolumeGroup()` object against this
device.

Fixes: https://tracker.ceph.com/issues/57918
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2 years ago.github: automatically add telemetry label to relevant files 49416/head
Laura Flores [Tue, 13 Dec 2022 20:01:11 +0000 (20:01 +0000)]
.github: automatically add telemetry label to relevant files

Signed-off-by: Laura Flores <ljflores@redhat.com>
2 years agoMerge pull request #49178 from JoshSalomon/chg-primary
Laura Flores [Wed, 14 Dec 2022 15:52:55 +0000 (09:52 -0600)]
Merge pull request #49178 from JoshSalomon/chg-primary

osd: Add cli upmap command to change the primary OSD of a pg

2 years agoMerge pull request #48742 from rhcs-dashboard/add-tooltip
Pere Diaz Bou [Wed, 14 Dec 2022 14:06:09 +0000 (15:06 +0100)]
Merge pull request #48742 from rhcs-dashboard/add-tooltip

mgr/dashboard: add tooltip mirroring pools table

Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2 years agoMerge pull request #49418 from tchaikov/wip-cls-fifo-fmt
Kefu Chai [Wed, 14 Dec 2022 13:51:56 +0000 (21:51 +0800)]
Merge pull request #49418 from tchaikov/wip-cls-fifo-fmt

cls/fifo: specialize fmt::formater<> for rados::cls::fifo::info

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoosd, mon: Add 'osd pg-upmap-primary' and 'osd rm-pg-upmap-primary' commands. 49178/head
Josh Salomon [Wed, 2 Nov 2022 14:23:28 +0000 (16:23 +0200)]
osd, mon: Add 'osd pg-upmap-primary' and 'osd rm-pg-upmap-primary' commands.

Changed OSDMap to keep upmap-primary records
The upmap-primary records are visible in json/xml and in dump commands.

Signed-off-by: Josh Salomon <jsalomon@redhat.com>
2 years agocrimson/osd: include fmt/ranges.h 49427/head
Kefu Chai [Wed, 14 Dec 2022 11:10:54 +0000 (19:10 +0800)]
crimson/osd: include fmt/ranges.h

so we are able to format ss.clone_snaps, which is a
std::map<snapid_t, std::vector<snapid_t>>. before fmtlib v9,
fmtlib is able to fall back to the operator<<() to format the the types
with the operator<<() defined. but after fmtlib v9, we need to
explicitly define them for accessing the specialized formatter.

in this change, fmt/ranges.h is included so we can access the formatter
for std::map and std::vector.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agocrimson/os: specialize fmt::formater<> for lba_pin_list_t
Kefu Chai [Wed, 14 Dec 2022 11:09:49 +0000 (19:09 +0800)]
crimson/os: specialize fmt::formater<> for lba_pin_list_t

since fmt v9, fmt::formatter<> is not specialized for the types with
operator<<(ostream&, ...) anymore. so we need to specialize it manually.
in this change, fmt::formatter<lba_pin_list_t> is defined so
the tree can compile with fmt v9.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agocrimson/osd: print oid of missing clone
Kefu Chai [Wed, 14 Dec 2022 10:00:42 +0000 (18:00 +0800)]
crimson/osd: print oid of missing clone

instead of printing the empty optional<>, print the oid of missing
clone. the oid is more interesting in this context.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #49419 from tchaikov/wip-seastar
Kefu Chai [Wed, 14 Dec 2022 10:23:14 +0000 (18:23 +0800)]
Merge pull request #49419 from tchaikov/wip-seastar

seastar: bump up seastar submodule to recent master

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/os: specialize fmt::formater<> for types 49419/head
Kefu Chai [Wed, 14 Dec 2022 07:17:33 +0000 (15:17 +0800)]
crimson/os: specialize fmt::formater<> for types

since fmt v9, fmt::formatter<> is not specialized for the types with
operator<<(ostream&, ...) anymore. so we need to specialize it manually.
in this change, fmt::formatter<> is specialized for tree_stats_t and
test_item_t so the tree can compile with fmt v9.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agocrimson/os: print pointer using fmt::ptr()
Kefu Chai [Wed, 14 Dec 2022 04:45:20 +0000 (12:45 +0800)]
crimson/os: print pointer using fmt::ptr()

in fmtlib v9, it does not format typed pointers anymore, instead,
we need to print them using fmt::ptr().

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoseastar: bump up seastar submodule to recent master
Kefu Chai [Wed, 14 Dec 2022 00:32:44 +0000 (08:32 +0800)]
seastar: bump up seastar submodule to recent master

to address the fmtlib v9 compatibility issues.

please note, the submodule is bump up to a commit which includes

* a revert commit on top of upstream master HEAD. the revert is to
  work around the a recent change which adds a constraint on the parameter
  type of handle_exception(). we are using errorator along with
  handle_exception(), but errorator cannot fulfill the requirement of
  seastar::Future(), so we need to drop the change before we have a
  better solution.
* a commit which defines __NR_pidfd_open if it is not defined.
  this should address the FTBFS on CentOS8 where glibc does not have
  this macro defined.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #49421 from zdover23/wip-doc-2022-12-14-glossary-fqdn
colemitchell [Wed, 14 Dec 2022 07:08:00 +0000 (02:08 -0500)]
Merge pull request #49421 from zdover23/wip-doc-2022-12-14-glossary-fqdn

doc/glossary: add "FQDN" entry

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agodoc/glossary: add "FQDN" entry 49421/head
Zac Dover [Wed, 14 Dec 2022 05:59:51 +0000 (15:59 +1000)]
doc/glossary: add "FQDN" entry

Add "FQDN" definition to doc/glossary.rst.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agocrimson/os/seastore: Seastore::omap_list cleanup 48089/head
Xinyu Huang [Wed, 14 Dec 2022 06:01:02 +0000 (06:01 +0000)]
crimson/os/seastore: Seastore::omap_list cleanup

Signed-off-by: Xinyu Huang <xinyu.huang@intel.com>
2 years agotest/cls_fio: specialize fmt::formater<> for bpo::options_description 49418/head
Kefu Chai [Wed, 14 Dec 2022 00:27:13 +0000 (08:27 +0800)]
test/cls_fio: specialize fmt::formater<> for bpo::options_description

since fmt v9, fmt::formatter<> is not specialized for the types with
operator<<(ostream&, ...) anymore. so we need to specialize it manually.
in this change, fmt::formatter<bpo::options_description> is defined so
the tree can compile with fmt v9.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agocls/fifo: specialize fmt::formater<> for rados::cls::fifo::info
Kefu Chai [Wed, 14 Dec 2022 00:20:42 +0000 (08:20 +0800)]
cls/fifo: specialize fmt::formater<> for rados::cls::fifo::info

since fmt v9, fmt::formatter<> is not specialized for the types with
operator<<(ostream&, ...) anymore. so we need to specialize it manually.
in this change, fmt::formatter<rados::cls::fifo::info> is defined so
the tree can compile with fmt v9.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #49242 from myoungwon/wip-enable-rbm-test-seastore
Yingxin [Wed, 14 Dec 2022 02:05:57 +0000 (10:05 +0800)]
Merge pull request #49242 from myoungwon/wip-enable-rbm-test-seastore

test/crimson/seastore: enable RBM-based unittest-seastore

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agoMerge pull request #49407 from tchaikov/cmake-find-boost
Kefu Chai [Wed, 14 Dec 2022 00:42:16 +0000 (08:42 +0800)]
Merge pull request #49407 from tchaikov/cmake-find-boost

cmake: add 1.79 and 1.80 to known versions

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agorgw: added rgw-policy-check 49395/head
Marcus Watts [Wed, 30 Nov 2022 23:22:30 +0000 (18:22 -0500)]
rgw: added rgw-policy-check

rgw-policy-check - a program to do syntax checking on bucket policy.
This program just reads the policy into memory, so it is not
checking anything except syntax.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
rgw: Fix return value of `rgw-policy-check`

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
rgw: Use ceph initialization in `rgw-policy-check`

Specifically so we can pull in the options from `ceph.conf` and similar.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2 years agorgw: Put useful policy error messages in error document
Adam C. Emerson [Tue, 13 Dec 2022 21:15:24 +0000 (16:15 -0500)]
rgw: Put useful policy error messages in error document

This affects the various create/put operations that take a policy document.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2 years agorgw: Add `rgw_policy_reject_invalid_principals` and messages
Adam C. Emerson [Tue, 13 Dec 2022 01:40:33 +0000 (20:40 -0500)]
rgw: Add `rgw_policy_reject_invalid_principals` and messages

Reject policies with invalid principals by default and provide more
useful error messages while doing so.

(Log them but do *not* reject the policy if it's set to false.)

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2 years agorgw: Provide useful error messages from policy parser
Adam C. Emerson [Tue, 13 Dec 2022 00:10:07 +0000 (19:10 -0500)]
rgw: Provide useful error messages from policy parser

It would be much nicer to give people an idea why their policies are
failing rather than just telling them where they're failing.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2 years agoMerge pull request #48214 from ljflores/wip-telemetry-bluestore-compression-mode
yaarith [Tue, 13 Dec 2022 19:34:45 +0000 (14:34 -0500)]
Merge pull request #48214 from ljflores/wip-telemetry-bluestore-compression-mode

mgr/telemetry: add `basic_pool_options_bluestore` collection

Reviewed-by: Yaarit Hatuka <yaarit@redhat.com>
2 years agorgw/lua: pass luarocks_path directly, remove from sal 48710/head
Casey Bodley [Mon, 14 Nov 2022 21:22:00 +0000 (16:22 -0500)]
rgw/lua: pass luarocks_path directly, remove from sal

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agorgw/lua: split out a struct RGWLuaProcessEnv
Casey Bodley [Tue, 15 Nov 2022 13:51:44 +0000 (08:51 -0500)]
rgw/lua: split out a struct RGWLuaProcessEnv

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #49190 from tchaikov/wip-fmt
Kefu Chai [Tue, 13 Dec 2022 16:40:48 +0000 (00:40 +0800)]
Merge pull request #49190 from tchaikov/wip-fmt

fmt: pickup v9.1.0

Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #49410 from ronen-fr/wip-rf-cinode-tm
Ronen Friedman [Tue, 13 Dec 2022 14:02:24 +0000 (16:02 +0200)]
Merge pull request #49410 from ronen-fr/wip-rf-cinode-tm

mds: remove unused declaration

Reviewed-by: Matan Breizman <mbreizma@redhat.com>
2 years agomds: remove unused declaraion 49410/head
Ronen Friedman [Tue, 13 Dec 2022 12:24:08 +0000 (14:24 +0200)]
mds: remove unused declaraion

as some Jenkins builds are set to treat warnings as errors, and
complain.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
2 years agocrimson/os: define device_spec_t as packed 49408/head
Kefu Chai [Tue, 13 Dec 2022 10:23:43 +0000 (18:23 +0800)]
crimson/os: define device_spec_t as packed

per C++ standard 20, alignas cannot be applied to scoped enum. despite
that there is a resolution to address this, see
https://cplusplus.github.io/CWG/issues/2354.html, it's not included in
C++20. so we have to use a different way to address

> runtime error: reference binding to misaligned address 0x610000008395
> for type 'device_type_t', which requires 4 byte alignment

otherwise the code would fail to compile with Clang-15, like:

> <source>:3:13: error: 'alignas' attribute cannot be applied to an enumeration

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agocmake: adapt FindBoost.cmake to our needs 49407/head
Kefu Chai [Tue, 13 Dec 2022 10:08:08 +0000 (18:08 +0800)]
cmake: adapt FindBoost.cmake to our needs

the vanilla FindBoost.cmake pulled from cmake has couple assumptions
which do not hold in our environment. so address them case by case.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agocmake: add 1.79 and 1.80 to known versions
Kefu Chai [Tue, 13 Dec 2022 10:05:57 +0000 (18:05 +0800)]
cmake: add 1.79 and 1.80 to known versions

sync with
https://github.com/Kitware/CMake/blob/468a995346271c02f2248adf3539fbb34edaef2e/Modules/FindBoost.cmake

for v1.79 and v1.80 support

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agocrimson/os/seastore/omap: adjust omap_list_config_t
Xinyu Huang [Thu, 1 Dec 2022 00:17:42 +0000 (00:17 +0000)]
crimson/os/seastore/omap: adjust omap_list_config_t

Add inclusive behavior for both first and last in omap_list_config_t,
and optimize the usage.
Set first closed last open for range for omap range remove.

Signed-off-by: Xinyu Huang <xinyu.huang@intel.com>
2 years agocrimson/os/seastore: introduce omap range remove
Xinyu Huang [Wed, 14 Sep 2022 09:14:15 +0000 (09:14 +0000)]
crimson/os/seastore: introduce omap range remove

Signed-off-by: Xinyu Huang <xinyu.huang@intel.com>
2 years agocrimson/os/seastore/omap: add tests for range remove
Xinyu Huang [Wed, 14 Sep 2022 09:13:07 +0000 (09:13 +0000)]
crimson/os/seastore/omap: add tests for range remove

Signed-off-by: Xinyu Huang <xinyu.huang@intel.com>
2 years agocrimson/os/seastore/omap: introduce omap range remove
Xinyu Huang [Wed, 14 Sep 2022 09:11:54 +0000 (09:11 +0000)]
crimson/os/seastore/omap: introduce omap range remove

Signed-off-by: Xinyu Huang <xinyu.huang@intel.com>
2 years agocrimson/os/seastore/omap: add tests to range list
Xinyu Huang [Fri, 9 Sep 2022 15:46:15 +0000 (15:46 +0000)]
crimson/os/seastore/omap: add tests to range list

Signed-off-by: Xinyu Huang <xinyu.huang@intel.com>
2 years agocrimson/os/seastore/omap: support two borders list method
Xinyu Huang [Thu, 8 Sep 2022 01:16:15 +0000 (01:16 +0000)]
crimson/os/seastore/omap: support two borders list method

Signed-off-by: Xinyu Huang <xinyu.huang@intel.com>
2 years agoMerge pull request #49250 from Matan-B/wip-matanb-debug-subsys-doc
Matan [Tue, 13 Dec 2022 08:54:48 +0000 (10:54 +0200)]
Merge pull request #49250 from Matan-B/wip-matanb-debug-subsys-doc

doc/rados/troubleshooting/log-and-debug: Update according to subsys.h

Reviewed-by: Laura Flores <lflores@redhat.com>
2 years agoMerge pull request #48449 from batrick/i57851
Venky Shankar [Tue, 13 Dec 2022 08:48:34 +0000 (14:18 +0530)]
Merge pull request #48449 from batrick/i57851

pybind/mgr: use memory temp_store

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
2 years agoMerge pull request #49329 from rhcs-dashboard/fix-cors
Avan [Tue, 13 Dec 2022 07:11:59 +0000 (12:41 +0530)]
Merge pull request #49329 from rhcs-dashboard/fix-cors

mgr/dashboard: allow Origin url for CORS if present in config

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2 years agoMerge pull request #49396 from zdover23/wip-doc-2022-12-13-glossary-secrets
colemitchell [Tue, 13 Dec 2022 04:47:41 +0000 (23:47 -0500)]
Merge pull request #49396 from zdover23/wip-doc-2022-12-13-glossary-secrets

doc/glossary - add "secrets"

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agodoc/glossary - add "secrets" 49396/head
Zac Dover [Tue, 13 Dec 2022 04:39:35 +0000 (14:39 +1000)]
doc/glossary - add "secrets"

Add "secrets" to doc/glossary.rst.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
2 years agotest/crimson/seastore: enable RBM-based unittest-seastore 49242/head
myoungwon oh [Mon, 5 Dec 2022 02:33:10 +0000 (11:33 +0900)]
test/crimson/seastore: enable RBM-based unittest-seastore

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2 years agorgw: Minor cleanups in `rgw_iam_policy.cc`
Adam C. Emerson [Mon, 12 Dec 2022 21:47:18 +0000 (16:47 -0500)]
rgw: Minor cleanups in `rgw_iam_policy.cc`

Unused using, confusing indentation, bracing.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2 years agoMerge pull request #49391 from ceph/wip-yuri-crontab-main
Yuri Weinstein [Mon, 12 Dec 2022 21:35:26 +0000 (13:35 -0800)]
Merge pull request #49391 from ceph/wip-yuri-crontab-main

qa/tests: added quincy-p2p tp the mix

Reviewed-by: Laura Flores <lflores@redhat.com>
2 years agoqa/tests: added quincy-p2p tp the mix 49391/head
Yuri Weinstein [Mon, 12 Dec 2022 19:31:52 +0000 (11:31 -0800)]
qa/tests: added quincy-p2p tp the mix

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2 years agoMerge pull request #49251 from shreyanshjain7174/cppool_space
Yuri Weinstein [Mon, 12 Dec 2022 19:01:15 +0000 (11:01 -0800)]
Merge pull request #49251 from shreyanshjain7174/cppool_space

rados: fix extra tabs on warning for pool copy

Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agoMerge pull request #47596 from YiteGu/dump-slow-ops-count
Yuri Weinstein [Mon, 12 Dec 2022 19:00:19 +0000 (11:00 -0800)]
Merge pull request #47596 from YiteGu/dump-slow-ops-count

osd: add dump slow ops count

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agoMerge pull request #48711 from cfsnyder/wip-cfsnyder-del-perf-iops
Casey Bodley [Mon, 12 Dec 2022 17:20:52 +0000 (12:20 -0500)]
Merge pull request #48711 from cfsnyder/wip-cfsnyder-del-perf-iops

rgw: add 'inline_data' zone placement info option

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #49278 from Matan-B/wip-matanb-EIO-flag-fix
Laura Flores [Mon, 12 Dec 2022 17:11:44 +0000 (11:11 -0600)]
Merge pull request #49278 from Matan-B/wip-matanb-EIO-flag-fix

test/librados/aio_cxx: Fix Pool EIO flag tests

2 years agoMerge pull request #49180 from anthonyeleven/anthonyeleven/rework-pool-create-pg...
Laura Flores [Mon, 12 Dec 2022 17:11:02 +0000 (11:11 -0600)]
Merge pull request #49180 from anthonyeleven/anthonyeleven/rework-pool-create-pg-error-message

src/mon: clarify message for pool creation failure due to max_pgs_per_osd

2 years agoMerge PR #45192 into main
Venky Shankar [Mon, 12 Dec 2022 14:13:54 +0000 (19:43 +0530)]
Merge PR #45192 into main

* refs/pull/45192/head:
mds: use the whole string as the snapshot long name

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Nikhilkumar Shelke <nshelke@redhat.com>
2 years agoMerge PR #45312 into main
Venky Shankar [Mon, 12 Dec 2022 14:12:55 +0000 (19:42 +0530)]
Merge PR #45312 into main

* refs/pull/45312/head:
qa: new snapshot test for snapshot naming limits
mds: limit the snapshot names to 240 characters

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com>
2 years agoMerge PR #48450 into main
Venky Shankar [Mon, 12 Dec 2022 14:12:22 +0000 (19:42 +0530)]
Merge PR #48450 into main

* refs/pull/48450/head:
qa: add test_mdsdir_scrub_backtrace
mds: avoid ~mdsdir's scrubbing and reporting damage health status

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoMerge PR #48642 into main
Venky Shankar [Mon, 12 Dec 2022 14:11:47 +0000 (19:41 +0530)]
Merge PR #48642 into main

* refs/pull/48642/head:
qa: Fix test_subvolume_snapshot_info_if_orphan_clone

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoMerge PR #48786 into main
Venky Shankar [Mon, 12 Dec 2022 14:08:10 +0000 (19:38 +0530)]
Merge PR #48786 into main

* refs/pull/48786/head:
mds/PurgeQueue: don't consider filer_max_purge_ops when _calculate_ops

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge PR #48873 into main
Venky Shankar [Mon, 12 Dec 2022 14:07:31 +0000 (19:37 +0530)]
Merge PR #48873 into main

* refs/pull/48873/head:
mount: fix mount failure with old kernels

Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge PR #49117 into main
Venky Shankar [Mon, 12 Dec 2022 14:06:11 +0000 (19:36 +0530)]
Merge PR #49117 into main

* refs/pull/49117/head:
mds: remove redundant frag check in MDBalancer::maybe_fragment()

Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agoMerge pull request #48258 from adk3798/upgrade-mgr-loop
Adam King [Mon, 12 Dec 2022 13:44:34 +0000 (08:44 -0500)]
Merge pull request #48258 from adk3798/upgrade-mgr-loop

mgr/cephadm: fix handling of mgr upgrades with 3 or more mgrs

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
2 years agoMerge pull request #48550 from rkachach/fix_issue_57894
Adam King [Mon, 12 Dec 2022 13:43:25 +0000 (08:43 -0500)]
Merge pull request #48550 from rkachach/fix_issue_57894

mgr/cephadm: moving Prometheus spec check to service_spec module

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