]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
2 years agocrimson/osd: inform in logs that TMAP is not supported 47558/head
Radoslaw Zarzynski [Thu, 11 Aug 2022 10:53:38 +0000 (10:53 +0000)]
crimson/osd: inform in logs that TMAP is not supported

Simpler this way than to investigate for `EOPNOTSUPP`.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agocrimson/net: add debug on SocketMessenger's destruction
Radoslaw Zarzynski [Thu, 11 Aug 2022 10:52:14 +0000 (10:52 +0000)]
crimson/net: add debug on SocketMessenger's destruction

The `logic_name` will hopefully help if the assertion in the dtor
fails (which actually started happing).

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agoMerge pull request #47334 from s0nea/wip-osd-objectstore-types-fix
Nizamudeen A [Mon, 1 Aug 2022 08:17:03 +0000 (13:47 +0530)]
Merge pull request #47334 from s0nea/wip-osd-objectstore-types-fix

monitoring/ceph-mixin: OSD overview typo fix

Reviewed-by: MrFreezeex <NOT@FOUND>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge pull request #45602 from soumyakoduri/wip-skoduri-dbstore-obj-versioning
Soumya Koduri [Mon, 1 Aug 2022 04:05:43 +0000 (09:35 +0530)]
Merge pull request #45602 from soumyakoduri/wip-skoduri-dbstore-obj-versioning

rgw/dbstore: Object versioning feature support

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #47345 from cyx1231st/wip-seastore-log-improvements
Yingxin [Mon, 1 Aug 2022 01:15:27 +0000 (09:15 +0800)]
Merge pull request #47345 from cyx1231st/wip-seastore-log-improvements

crimson/os/seastore: misc fixes and log improvements

Reviewed-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2 years agoMerge pull request #47280 from adk3798/remove-error-upgrade-unpause
Adam King [Sun, 31 Jul 2022 18:11:09 +0000 (14:11 -0400)]
Merge pull request #47280 from adk3798/remove-error-upgrade-unpause

mgr/cephadm: clear error message when resuming upgrade

Reviewed-by: John Mulligan <jmulligan@redhat.com>
2 years agoMerge pull request #47318 from adk3798/rescan-parser-name
Adam King [Sun, 31 Jul 2022 18:10:31 +0000 (14:10 -0400)]
Merge pull request #47318 from adk3798/rescan-parser-name

cephadm: give disk rescan its own parser object

Reviewed-by: Paul Cuzner <pcuzner@redhat.com>
2 years agoMerge pull request #47338 from ksperis/master
Adam King [Sun, 31 Jul 2022 18:09:01 +0000 (14:09 -0400)]
Merge pull request #47338 from ksperis/master

cephadm: Fix repo_gpgkey should return 2 vars

Reviewed-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #47361 from guits/fix-simple-scan
Adam King [Sun, 31 Jul 2022 18:07:57 +0000 (14:07 -0400)]
Merge pull request #47361 from guits/fix-simple-scan

ceph-volume: fix simple scan

Reviewed-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #47367 from tchaikov/wip-osd-capture-this
Kefu Chai [Sat, 30 Jul 2022 13:56:02 +0000 (21:56 +0800)]
Merge pull request #47367 from tchaikov/wip-osd-capture-this

osd/PG: capture this explicitly

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
2 years agoosd/PG: capture variables explicitly 47367/head
Kefu Chai [Sat, 30 Jul 2022 11:18:40 +0000 (19:18 +0800)]
osd/PG: capture variables explicitly

to silence warning if compiled with -std=c++20:

src/osd/PG.h:571:7: warning: implicit capture of ‘this’ via ‘[=]’ is
deprecated in C++20 [-Wdeprecated]
  571 |       [=](auto &history, auto &stats) {
      |       ^

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47300 from kotreshhr/fips-md5-issue
Ramana Raja [Sat, 30 Jul 2022 11:40:41 +0000 (07:40 -0400)]
Merge pull request #47300 from kotreshhr/fips-md5-issue

mgr/volumes: Fix subvolume creation in FIPS enabled system.

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agoMerge pull request #47202 from SUSE/wip-fix-56658
Kefu Chai [Sat, 30 Jul 2022 11:30:01 +0000 (19:30 +0800)]
Merge pull request #47202 from SUSE/wip-fix-56658

cephfs-shell: move source to separate subdirectory

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Nikhilkumar Shelke <nshelke@redhat.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47246 from liu-chunmei/crimson-test-case
Kefu Chai [Sat, 30 Jul 2022 06:44:35 +0000 (14:44 +0800)]
Merge pull request #47246 from liu-chunmei/crimson-test-case

crimson/test: comment out EC test cases and some cases not supported now

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2 years agocrimson/test: skip EC class SetUp 47246/head
chunmei-liu [Fri, 29 Jul 2022 10:33:17 +0000 (03:33 -0700)]
crimson/test: skip EC class SetUp

otherwise crimson will hang

Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
2 years agoqa: Fix use of 'sudo' args 47300/head
Kotresh HR [Sat, 30 Jul 2022 00:02:27 +0000 (05:32 +0530)]
qa: Fix use of 'sudo' args

https://tracker.ceph.com/issues/56727
Signed-off-by: Kotresh HR <khiremat@redhat.com>
2 years agomgr/cephadm: clear error message when resuming upgrade 47280/head
Adam King [Tue, 26 Jul 2022 13:55:05 +0000 (09:55 -0400)]
mgr/cephadm: clear error message when resuming upgrade

the message field in the output of "ceph orch upgrade status"
will first take the value of the error field of the UpgradeState,
and if only if it blank/None, display an info string we periodically
update throughout the upgrade with useful info such as that
we're upgrading a daemon of a particular type or pulling an image
on a certain host. When an upgrade fails, we set the error field
of the UpgradeState, pause the upgrade and raise a health warning.
Sometimes, the user is able to resolve the issue and simply resume
the upgrade. The issue here is, in that case, the error field of
the UpgradeState is still set, so instead of seeing the useful info
messages, it will continue to display an error message that may
no longer be relevant. By emptying the error field of the UpgradeState
when upgrades are resumed, we return to normal behavior of
displaying the info string, and will only show another error message
if another error actually occurs.

Fixes: https://tracker.ceph.com/issues/56714
Signed-off-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #46248 from linuxbox2/wip-rgwlc-tryharder
J. Eric Ivancich [Fri, 29 Jul 2022 19:12:39 +0000 (15:12 -0400)]
Merge pull request #46248 from linuxbox2/wip-rgwlc-tryharder

rgwlc: try hard to get lc locks when saving policy

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Adam Emerson <aemerson@redhat.com>
2 years agoMerge pull request #47363 from tchaikov/boost-phoenix
Kefu Chai [Fri, 29 Jul 2022 17:33:40 +0000 (01:33 +0800)]
Merge pull request #47363 from tchaikov/boost-phoenix

mgr/MgrCap: include <boost/phoenix.hpp>

Reviewed-by: Neha Ojha <nojha@redhat.com>
2 years agomgr/volumes: Fix subvolume creation in FIPS enabled system.
Kotresh HR [Wed, 27 Jul 2022 11:09:08 +0000 (16:39 +0530)]
mgr/volumes: Fix subvolume creation in FIPS enabled system.

The md5 checksum is used in the construction of legacy
subvolume config filename. It's not used for security reason.
Hence marking the 'usedforsecurity' flag to false to
make it FIPs compliant.

The usage of md5 was always in there. The commit 373a04cf734
made it to get exercised in 'open_subvol' which is pre-requisite
for all the subvolume operations and hence subvolume
creation has failed.

Fixes: https://tracker.ceph.com/issues/56727
Signed-off-by: Kotresh HR <khiremat@redhat.com>
2 years agorgwlc: define RGWLC::thr_name() and use it to name lc lock cookies 46248/head
Matt Benjamin [Wed, 25 May 2022 19:37:36 +0000 (15:37 -0400)]
rgwlc:  define RGWLC::thr_name() and use it to name lc lock cookies

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agoMerge pull request #47336 from tchaikov/wip-ceph-dencoder-for-dev
Kefu Chai [Fri, 29 Jul 2022 16:33:08 +0000 (00:33 +0800)]
Merge pull request #47336 from tchaikov/wip-ceph-dencoder-for-dev

tools/ceph-dencoder: register dencoders in "lib" in dev env

Reviewed-by: Xiubo Li <xiubli@redhat.com>
2 years agorgwlc: try hard to get lc locks when saving policy
Matt Benjamin [Thu, 12 May 2022 16:38:59 +0000 (12:38 -0400)]
rgwlc: try hard to get lc locks when saving policy

During active lifecycle processing, there can be high contention for
lifecycle shard locks.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agoMerge pull request #47187 from cfsnyder/wip-cfsnyder-56646
J. Eric Ivancich [Fri, 29 Jul 2022 16:16:22 +0000 (12:16 -0400)]
Merge pull request #47187 from cfsnyder/wip-cfsnyder-56646

rgw: optimizations for handling ECANCELED errors from within get_obj_state

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #47343 from ceph/ljflores-patch-1
David Galloway [Fri, 29 Jul 2022 16:04:13 +0000 (12:04 -0400)]
Merge pull request #47343 from ceph/ljflores-patch-1

doc/releases: write a note about the "invalid regex" mgr bug

2 years agodoc/releases: add release note about "invalid regex" bug in mgr 47343/head
Laura Flores [Thu, 28 Jul 2022 23:04:03 +0000 (23:04 +0000)]
doc/releases: add release note about "invalid regex" bug in mgr

Signed-off-by: Laura Flores <lflores@redhat.com>
2 years agomgr/MgrCap: include <boost/phoenix.hpp> 47363/head
Kefu Chai [Fri, 29 Jul 2022 14:35:19 +0000 (22:35 +0800)]
mgr/MgrCap: include <boost/phoenix.hpp>

instead of include `spirit/include/phoenix.hpp`, include
`<boost/phoenix.hpp>` to silence the warning from boost, like:

/opt/ceph/include/boost/spirit/include/phoenix.hpp:12:1: note: ‘#pragma
message: This header is deprecated. Use <boost/phoenix.hpp> instead.’
   12 | BOOST_HEADER_DEPRECATED("<boost/phoenix.hpp>")
      | ^~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoceph-volume: fix simple scan 47361/head
Guillaume Abrioux [Fri, 29 Jul 2022 13:58:05 +0000 (15:58 +0200)]
ceph-volume: fix simple scan

When the class `Device` is instantiated with a path instead of a
block device, it fails like following.

```
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.6/site-packages/ceph_volume/util/device.py", line 130, in __init__
    self._parse()
  File "/usr/lib/python3.6/site-packages/ceph_volume/util/device.py", line 233, in _parse
    self.ceph_device = disk.has_bluestore_label(self.path)
  File "/usr/lib/python3.6/site-packages/ceph_volume/util/disk.py", line 906, in has_bluestore_label
    with open(device_path, "rb") as fd:
IsADirectoryError: [Errno 21] Is a directory: '/var/lib/ceph/osd/ceph-0/'
```

passing a path instead of a block device is valid, `simple scan` needs it.

Fixes: https://tracker.ceph.com/issues/56969
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2 years agoMerge pull request #47190 from dang/wip-dang-zipper-filter
Daniel Gryniewicz [Fri, 29 Jul 2022 14:01:04 +0000 (10:01 -0400)]
Merge pull request #47190 from dang/wip-dang-zipper-filter

RGW - Zipper - Base filter implementation

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #47347 from anthonyeleven/anthonyeleven/essthree
zdover23 [Fri, 29 Jul 2022 09:03:37 +0000 (19:03 +1000)]
Merge pull request #47347 from anthonyeleven/anthonyeleven/essthree

doc/radosgw: Uppercase s3

Reviewed-by: Zac Dover <zac.dover@gmail.com>
2 years agocrimson/os/seastore: misc fixes and log adjustments 47345/head
Yingxin Cheng [Fri, 29 Jul 2022 06:24:03 +0000 (14:24 +0800)]
crimson/os/seastore: misc fixes and log adjustments

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/os/seastore: unify segment info formatting
Yingxin Cheng [Fri, 29 Jul 2022 06:23:19 +0000 (14:23 +0800)]
crimson/os/seastore: unify segment info formatting

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/os/seastore: collect stats during replay
Yingxin Cheng [Fri, 29 Jul 2022 06:06:47 +0000 (14:06 +0800)]
crimson/os/seastore: collect stats during replay

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocephadm: ceph.manual.gpg cleanup 47338/head
Laurent Barbe [Fri, 29 Jul 2022 07:33:36 +0000 (09:33 +0200)]
cephadm: ceph.manual.gpg cleanup

Cleanup file /etc/apt/trusted.gpg.d/ceph.manual.gpg when repo is removed

Signed-off-by: Laurent Barbe <laurent@ksperis.com>
2 years agodoc/radosgw: Uppercase s3 47347/head
Anthony D'Atri [Fri, 29 Jul 2022 07:11:22 +0000 (00:11 -0700)]
doc/radosgw: Uppercase s3

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
2 years agoMerge pull request #47260 from rhcs-dashboard/fix-frontend-monitor-port-fields
Nizamudeen A [Fri, 29 Jul 2022 07:07:01 +0000 (12:37 +0530)]
Merge pull request #47260 from rhcs-dashboard/fix-frontend-monitor-port-fields

mgr/dashboard: add required validation for frontend and monitor port

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge pull request #47284 from anthonyeleven/anthonyeleven/prom-localrules-tweaks
Anthony D'Atri [Fri, 29 Jul 2022 07:06:06 +0000 (00:06 -0700)]
Merge pull request #47284 from anthonyeleven/anthonyeleven/prom-localrules-tweaks

monitoring/ceph-mixin: clean up prometheus_alerts.yml

2 years agocrimson/os/seastore/async_cleaner: improve log gc status
Yingxin Cheng [Fri, 29 Jul 2022 05:31:08 +0000 (13:31 +0800)]
crimson/os/seastore/async_cleaner: improve log gc status

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agotest/crimson/seastore/transaction_manager_test_state: improve logs
Yingxin Cheng [Fri, 29 Jul 2022 04:56:31 +0000 (12:56 +0800)]
test/crimson/seastore/transaction_manager_test_state: improve logs

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agoMerge pull request #47328 from liu-chunmei/crimson-cmpext
Liu-Chunmei [Fri, 29 Jul 2022 03:06:47 +0000 (20:06 -0700)]
Merge pull request #47328 from liu-chunmei/crimson-cmpext

crimson: for cmp_fail error, return -MAX_ERRNO-index

Reviewed-by: Samuel Just <sjust@redhat.com>
2 years agocrimson/test: check env variable "CRIMSON_COMPAT"
chunmei-liu [Wed, 27 Jul 2022 00:40:13 +0000 (17:40 -0700)]
crimson/test: check env variable "CRIMSON_COMPAT"

when "CRIMSON_COMPAT" is set, to skip EC and some test cases.

Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
2 years agomonitoring/ceph-mixin: clean up prometheus_alerts.yml 47284/head
Anthony D'Atri [Tue, 26 Jul 2022 16:06:27 +0000 (09:06 -0700)]
monitoring/ceph-mixin: clean up prometheus_alerts.yml

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
2 years agoMerge pull request #47291 from cyx1231st/wip-seastore-journal-head
Yingxin [Fri, 29 Jul 2022 01:31:19 +0000 (09:31 +0800)]
Merge pull request #47291 from cyx1231st/wip-seastore-journal-head

crimson/os/seastore: fixes to trimming

Reviewed-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2 years agoMerge pull request #47275 from myoungwon/wip-rbm-cleanup
Kefu Chai [Fri, 29 Jul 2022 00:10:22 +0000 (08:10 +0800)]
Merge pull request #47275 from myoungwon/wip-rbm-cleanup

seastore: RBM clean-ups

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson: for cmp_fail error, return -MAX_ERRNO-index 47328/head
chunmei-liu [Thu, 28 Jul 2022 06:44:47 +0000 (23:44 -0700)]
crimson: for cmp_fail error, return -MAX_ERRNO-index

instead of cmp_fail error code.

Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
2 years agoMerge pull request #47308 from mdw-at-linuxbox/wip-master-implanon
Casey Bodley [Thu, 28 Jul 2022 21:38:28 +0000 (17:38 -0400)]
Merge pull request #47308 from mdw-at-linuxbox/wip-master-implanon

rgw: better tenant id from the uri on anonymous access

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #47170 from guits/dep-dev-inventory
Guillaume Abrioux [Thu, 28 Jul 2022 20:19:31 +0000 (22:19 +0200)]
Merge pull request #47170 from guits/dep-dev-inventory

ceph-volume: report slave devices in inventory

2 years agoceph-volume/tests: migrate to pyfakefs 47170/head
Guillaume Abrioux [Wed, 27 Jul 2022 11:41:41 +0000 (13:41 +0200)]
ceph-volume/tests: migrate to pyfakefs

ceph-volume unit tests shouldn't actually create contents on the
filesystem from where it runs (even though they are written in a tmp
dir), let's use pyfakefs.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2 years agoceph-volume/tests: fix test_path_is_valid()
Guillaume Abrioux [Wed, 27 Jul 2022 12:28:10 +0000 (14:28 +0200)]
ceph-volume/tests: fix test_path_is_valid()

When ceph-volume tests are run from a host where there's no `/dev/sda`
device, this test fails.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2 years agoceph-volume: report slave devices in inventory
Guillaume Abrioux [Tue, 19 Jul 2022 12:06:10 +0000 (12:06 +0000)]
ceph-volume: report slave devices in inventory

`ceph-volume inventory` currently reports the following:

```

Device Path               Size        rotates available Model name
/dev/mapper/mpatha        50.00 GB    True    True
/dev/mapper/mpathaa       6.00 GB     True    True
/dev/mapper/mpathab       6.00 GB     True    True
/dev/mapper/mpathac       6.00 GB     True    True
/dev/mapper/mpathad       6.00 GB     True    True
/dev/mapper/mpathae       6.00 GB     True    True
```

whereas something like following would be useful:

```

Device Path               Size         Device nodes    rotates available Model name
/dev/mapper/mpatha        50.00 GB     sdf,sde         True    True
/dev/mapper/mpathaa       6.00 GB      sdbe,sdat       True    True
/dev/mapper/mpathab       6.00 GB      sdav,sdbf       True    True
/dev/mapper/mpathac       6.00 GB      sdbb,sdbl       True    True
/dev/mapper/mpathad       6.00 GB      sdas,sdbc       True    True
/dev/mapper/mpathae       6.00 GB      sdax,sdbh       True    True
```

Fixes: https://tracker.ceph.com/issues/56624
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2 years agoMerge pull request #47169 from guits/improve-mpath-reporting
Guillaume Abrioux [Thu, 28 Jul 2022 18:11:30 +0000 (20:11 +0200)]
Merge pull request #47169 from guits/improve-mpath-reporting

ceph-volume: improve mpath devices reporting

2 years agoMerge pull request #46893 from guits/ceph-volume-symlinks-guits
Guillaume Abrioux [Thu, 28 Jul 2022 18:11:03 +0000 (20:11 +0200)]
Merge pull request #46893 from guits/ceph-volume-symlinks-guits

ceph-volume: allow symlinks as devices

2 years agocephadm: Fix repo_gpgkey should return 2 vars
Laurent Barbe [Thu, 28 Jul 2022 07:30:59 +0000 (09:30 +0200)]
cephadm: Fix repo_gpgkey should return 2 vars

when option --gpg-url is specified, the name used for the gpg filename is missing and throws an exception
this adds the string "manual" to the gpg key : /etc/apt/trusted.gpg.d/ceph.manual.gpg

Fixes: https://tracker.ceph.com/issues/56950
Signed-off-by: Laurent Barbe <laurent@ksperis.com>
2 years agotools/ceph-dencoder: register dencoders in "lib" in dev env 47336/head
Kefu Chai [Thu, 28 Jul 2022 15:11:08 +0000 (23:11 +0800)]
tools/ceph-dencoder: register dencoders in "lib" in dev env

if "CMakeCache.txt" is found in current directory, try to load
dencoder shared libraries  from ./lib. this heuristics is used by
`ceph.in` also for relaunching itself to get access to python
bindings.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47310 from tchaikov/ceph-context-formatting
Kefu Chai [Thu, 28 Jul 2022 14:39:33 +0000 (22:39 +0800)]
Merge pull request #47310 from tchaikov/ceph-context-formatting

common/ceph_context: fix the formatting

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
2 years agomonitoring/ceph-mixin: OSD overview typo fix 47334/head
Tatjana Dehler [Thu, 28 Jul 2022 13:15:32 +0000 (15:15 +0200)]
monitoring/ceph-mixin: OSD overview typo fix

Correct a wrongly set bracket on ceph-dashboard -> OSD Overview ->
OSD Objectstore Types resulting in a parser error.

Fixes: https://tracker.ceph.com/issues/56948
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2 years agoMerge pull request #46996 from rhcs-dashboard/html-injection-bug
Pere Diaz Bou [Thu, 28 Jul 2022 07:38:41 +0000 (09:38 +0200)]
Merge pull request #46996 from rhcs-dashboard/html-injection-bug

mgr/dashboard: added pattern validaton for form input

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2 years agoMerge pull request #46970 from ronen-fr/wip-rf-unlocked-logs
Ronen Friedman [Thu, 28 Jul 2022 05:48:37 +0000 (08:48 +0300)]
Merge pull request #46970 from ronen-fr/wip-rf-unlocked-logs

osd/scrub: pre-prepare the description text of the current state

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
2 years agoMerge pull request #46024 from sirtoobii/patch-2
zdover23 [Thu, 28 Jul 2022 04:38:28 +0000 (14:38 +1000)]
Merge pull request #46024 from sirtoobii/patch-2

doc/radosgw/STS: sts_key and user capabilities

Reviewed-by: Zac Dover <zac.dover@gmail.com>
2 years agoseastore/rbm: rename nvme_device to random_block_device 47275/head
myoungwon oh [Wed, 27 Jul 2022 13:06:14 +0000 (22:06 +0900)]
seastore/rbm: rename nvme_device to random_block_device

rename nvme_device namespace to random_block_device, and
introduce random_block_device::nvme

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2 years agoMerge pull request #44039 from richael02/update-isal-crypto-source
Kefu Chai [Thu, 28 Jul 2022 02:29:28 +0000 (10:29 +0800)]
Merge pull request #44039 from richael02/update-isal-crypto-source

.gitmodules: update isa-l_crypto source address

Reviewed-by: Yibo Cai <yibo.cai@arm.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2 years agocephadm: give disk rescan its own parser object 47318/head
Adam King [Thu, 28 Jul 2022 00:27:54 +0000 (20:27 -0400)]
cephadm: give disk rescan its own parser object

It was using the same name as the agent. Missed this
in https://github.com/ceph/ceph/pull/46420/commits/6584c49bdf254e8750d23ed529478e6a9289e12f

Signed-off-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #46420 from pcuzner/add-disk-rescan
Adam King [Wed, 27 Jul 2022 23:50:59 +0000 (19:50 -0400)]
Merge pull request #46420 from pcuzner/add-disk-rescan

mgr/cephadm: Add disk rescan feature to the orchestrator

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
2 years agoMerge pull request #47286 from tchaikov/wip-fmt-ranges
Kefu Chai [Wed, 27 Jul 2022 23:50:43 +0000 (07:50 +0800)]
Merge pull request #47286 from tchaikov/wip-fmt-ranges

osd: use fmt/ranges.h for printing ranges

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agoMerge pull request #46883 from adk3798/custom-config
Adam King [Wed, 27 Jul 2022 23:49:44 +0000 (19:49 -0400)]
Merge pull request #46883 from adk3798/custom-config

mgr/cephadm: support for miscellaneous config files for daemons

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
2 years agoMerge pull request #46955 from hookak/monitoring-stack
Adam King [Wed, 27 Jul 2022 23:48:09 +0000 (19:48 -0400)]
Merge pull request #46955 from hookak/monitoring-stack

cephadm: Add promtail and loki when bootstrap

Reviewed-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #47088 from adk3798/cephadm-logging
Adam King [Wed, 27 Jul 2022 23:47:16 +0000 (19:47 -0400)]
Merge pull request #47088 from adk3798/cephadm-logging

cephadm: reduce spam to cephadm.log

Reviewed-by: John Mulligan <jmulligan@redhat.com>
2 years agocommon/ceph_context: fix the formatting 47310/head
Kefu Chai [Wed, 27 Jul 2022 23:46:55 +0000 (07:46 +0800)]
common/ceph_context: fix the formatting

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47178 from adk3798/logrotate-owner
Adam King [Wed, 27 Jul 2022 23:46:04 +0000 (19:46 -0400)]
Merge pull request #47178 from adk3798/logrotate-owner

cephadm: add "su root root" to cephadm.log logrotate config

Reviewed-by: Guillaume Abrioux gabrioux@redhat.com
2 years agoMerge pull request #46618 from aclamk/wip-dout-for-alien
Kefu Chai [Wed, 27 Jul 2022 23:45:39 +0000 (07:45 +0800)]
Merge pull request #46618 from aclamk/wip-dout-for-alien

crimson/alienstore: Add douts

Reviewed-by: Samuel Just <sjust@redhat.com>
2 years agoMerge pull request #47269 from adk3798/fix-repo-test
Adam King [Wed, 27 Jul 2022 23:45:11 +0000 (19:45 -0400)]
Merge pull request #47269 from adk3798/fix-repo-test

qa/workunits/cephadm: update test_repos master -> main

Reviewed-by: Guillaume Abrioux gabrioux@redhat.com
2 years ago.gitmodules: update isa-l_crypto source address 44039/head
Richael Zhuang [Mon, 22 Nov 2021 02:37:48 +0000 (10:37 +0800)]
.gitmodules: update isa-l_crypto source address

Update address to https://github.com/intel/isa-l_crypto for it's
moved under intel repo.

Signed-off-by: Richael Zhuang <richael.zhuang@arm.com>
2 years agoMerge pull request #44499 from SMIL-Infra/fix-missed-lease-ack
Kefu Chai [Wed, 27 Jul 2022 23:40:09 +0000 (07:40 +0800)]
Merge pull request #44499 from SMIL-Infra/fix-missed-lease-ack

osd/PeeringState: fix missed recheck_readable from laggy

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #45135 from lmlg/fix-32-bit
Kefu Chai [Wed, 27 Jul 2022 23:39:00 +0000 (07:39 +0800)]
Merge pull request #45135 from lmlg/fix-32-bit

rgw,test: Fix build errors in 32 bit platforms

Reviewed-by: Soumya Koduri <skoduri@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2 years agoMerge pull request #43005 from wxypro/timeout_conn_msg_opt
Kefu Chai [Wed, 27 Jul 2022 23:38:14 +0000 (07:38 +0800)]
Merge pull request #43005 from wxypro/timeout_conn_msg_opt

msg: Add target_addr to log when connections timed out

Reviewed-by: Kefu Chai <kchai@redhat.com>
2 years agoMerge pull request #44040 from richael02/update-isal-crypto-version
Kefu Chai [Wed, 27 Jul 2022 23:34:59 +0000 (07:34 +0800)]
Merge pull request #44040 from richael02/update-isal-crypto-version

crypto: update isa-l_crypto version

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #44762 from Zhiwei-Dai/wip-zlib-compressor-isal-for-aarch64
Kefu Chai [Wed, 27 Jul 2022 23:34:04 +0000 (07:34 +0800)]
Merge pull request #44762 from Zhiwei-Dai/wip-zlib-compressor-isal-for-aarch64

compressor/zlib: isa-l optimization for zlib algorithm on aarch64

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2 years agorgw: better tenant id from the uri on anonymous access 47308/head
Marcus Watts [Thu, 7 Jul 2022 07:33:31 +0000 (03:33 -0400)]
rgw: better tenant id from the uri on anonymous access

When anonymous tries access public bucket, it gets 404,
because rgw doesn't check tenant correctly.

A previous fix for this broke legacy implicit tenants,
because it didn't check for anonymous access.  This version
restricts its behavior to the anonymous user.

Fixes: https://tracker.ceph.com/issues/48001 https://tracker.ceph.com/issues/48382
Original fix by
Author: Rafał Wądołowski <rafal@rafal.net.pl>
Signed-off-by: Rafał Wądołowski <rwadolowski@cloudferro.com>
This fix
Signed-off-by: Marcus Watts <mwatts@redhat.com>
2 years agoRGW - Zipper - Add temporary Filter testing 47190/head
Daniel Gryniewicz [Tue, 19 Jul 2022 17:06:29 +0000 (13:06 -0400)]
RGW - Zipper - Add temporary Filter testing

In order to test filters, we need to be able to instantiate one and
stack it over a store.  Add a temporary config option to specify a
filter that can be used for testing.  This will be replaced with a
better system once the loadable module work is done.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoRGW - Zipper - Filter base implementation
Daniel Gryniewicz [Fri, 1 Jul 2022 15:54:06 +0000 (11:54 -0400)]
RGW - Zipper - Filter base implementation

This is the base implementation for filters.  It passes each call on
each object through to the next layer down.  This allows filters to
subclass these, and only implement the bits they care about, leaving the
rest as pass-through.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoRGW - Zipper - make Serializer use unique_ptr
Daniel Gryniewicz [Fri, 8 Jul 2022 17:50:42 +0000 (13:50 -0400)]
RGW - Zipper - make Serializer use unique_ptr

Serializer needs to use a unique_ptr like the rest of the SAL API.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoceph-volume: support symlinks as devices 46893/head
Jan Sobczak [Fri, 20 Nov 2020 13:33:13 +0000 (14:33 +0100)]
ceph-volume: support symlinks as devices

This makes ceph-volume support passing symlinks as devices.

Fixes: https://tracker.ceph.com/issues/49103
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2 years agoceph-volume: drop self.abspath in Device()
Guillaume Abrioux [Fri, 8 Jul 2022 11:47:00 +0000 (13:47 +0200)]
ceph-volume: drop self.abspath in Device()

seems useless to have both self.path and self.abspath attributes.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2 years agoMerge pull request #47167 from guits/drop-bs-tool-call
Guillaume Abrioux [Wed, 27 Jul 2022 14:34:08 +0000 (16:34 +0200)]
Merge pull request #47167 from guits/drop-bs-tool-call

ceph-volume: drop `ceph-bluestore-tool` call in Device._parse()

2 years agoseastore/rbm: rename works
myoungwon oh [Tue, 26 Jul 2022 08:14:58 +0000 (17:14 +0900)]
seastore/rbm: rename works

1. rename NVMeBlockDevice to RBMDevice
2. rename PosixNVMeDevice to NVMeBlockDevice

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2 years agoMerge pull request #47290 from aisakaki/wip-omap-clear
Yingxin [Wed, 27 Jul 2022 09:54:30 +0000 (17:54 +0800)]
Merge pull request #47290 from aisakaki/wip-omap-clear

crimson/os/seastore/omap: remove unnecessary extent loads when clearing

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
2 years agocrimson/os/seastore: set tail to the last-known journal head under the full trim 47291/head
Yingxin Cheng [Wed, 27 Jul 2022 06:05:46 +0000 (14:05 +0800)]
crimson/os/seastore: set tail to the last-known journal head under the full trim

Rather than setting to the start_seq of the current record during replay
time.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/os/seastore/async_cleaner: abort when the alloc_tail goes backwards
Yingxin Cheng [Wed, 27 Jul 2022 06:04:34 +0000 (14:04 +0800)]
crimson/os/seastore/async_cleaner: abort when the alloc_tail goes backwards

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/os/seastore: distinguish from commit-time and submit-time sequences
Yingxin Cheng [Wed, 27 Jul 2022 03:50:40 +0000 (11:50 +0800)]
crimson/os/seastore: distinguish from commit-time and submit-time sequences

Also, the committed journal head should be updated atomically with the
rest of the complete-commit logics.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agoceph-volume: fix is_ceph_disk_member() 47167/head
Guillaume Abrioux [Tue, 26 Jul 2022 14:24:31 +0000 (16:24 +0200)]
ceph-volume: fix is_ceph_disk_member()

`dev['NAME']` can't match `part` given that it's the name of the
parent device being compared to the partition name.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
2 years agoosd/scrub: pre-prepare the description text of the current state 46970/head
Ronen Friedman [Tue, 5 Jul 2022 13:42:33 +0000 (13:42 +0000)]
osd/scrub: pre-prepare the description text of the current state

The existing code accesses the states of the scrub FSM via the
standard "state iterator", which is definitely not thread-safe.
It is also a bit time consuming.

As it happened, new code that tried to create the state string
while not holding the PG lock - crashed the OSD.
This PR changes the relevant lines to allow for safe and fast
access to the state description text.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
2 years agoseastore/rbm: rename NVMeManager to BlockRBManager
myoungwon oh [Tue, 26 Jul 2022 05:25:27 +0000 (14:25 +0900)]
seastore/rbm: rename NVMeManager to BlockRBManager

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2 years agoMerge pull request #46755 from aravind-wdc/zns
Samuel Just [Wed, 27 Jul 2022 05:08:18 +0000 (22:08 -0700)]
Merge pull request #46755 from aravind-wdc/zns

Crimson: Update zns support

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2 years agoseastore/rbm: use DEBUG instead of logger().debug()
myoungwon oh [Tue, 26 Jul 2022 04:22:08 +0000 (13:22 +0900)]
seastore/rbm: use DEBUG instead of logger().debug()

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2 years agocrimson/os/seastore/omap: remove unnecessary extent loads when clearing. 47290/head
Xinyu Huang [Tue, 26 Jul 2022 23:53:41 +0000 (23:53 +0000)]
crimson/os/seastore/omap: remove unnecessary extent loads when clearing.

Signed-off-by: Xinyu Huang <xinyu.huang@intel.com>
2 years agoMerge pull request #47285 from rzarzynski/wip-crimson-monc-discard_result
Kefu Chai [Wed, 27 Jul 2022 00:58:42 +0000 (08:58 +0800)]
Merge pull request #47285 from rzarzynski/wip-crimson-monc-discard_result

crimson/monc: replace then_unpack() with discard_result() if possible

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2 years agorgw,test: Fix build errors in 32 bit platforms 45135/head
Luciano Lo Giudice [Wed, 23 Feb 2022 19:01:58 +0000 (16:01 -0300)]
rgw,test: Fix build errors in 32 bit platforms

When building on 32 bit platforms (tested on armhf), 2 errors were detected:
The first involves the compiler being unable to disambiguate a call to
deserialize an integer (apparently because there isn't a specialization for it).
The second involves invalid usage of the builtin reinterpret_cast.

Signed-off-by: Luciano Lo Giudice <luciano.logiudice@canonical.com>
2 years agoosd: use fmt/ranges.h for printing ranges 47286/head
Kefu Chai [Tue, 26 Jul 2022 16:38:31 +0000 (00:38 +0800)]
osd: use fmt/ranges.h for printing ranges

now that fmt/ranges.h provides a generic mechinary for printing
ranges. let's just use it.

the output format is changed a little bit when it comes to
set and map, but as long as it makes sense, and we don't use
a tool to parse the logging messages for extracting information
from the messages printed by fmt::format(), we should be safe.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2 years agoMerge pull request #47287 from tchaikov/wip-crimson-cleanup
Samuel Just [Tue, 26 Jul 2022 19:33:00 +0000 (12:33 -0700)]
Merge pull request #47287 from tchaikov/wip-crimson-cleanup

crimson/osd: remove unused variable

Reviewed-by: Samuel Just <sjust@redhat.com>
2 years agocrimson/osd: remove unused variable 47287/head
Kefu Chai [Tue, 26 Jul 2022 16:41:24 +0000 (00:41 +0800)]
crimson/osd: remove unused variable

Signed-off-by: Kefu Chai <tchaikov@gmail.com>