]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
2 years agodoc/radosgw: s/s3select/S3 Select/ 52277/head
Zac Dover [Sat, 1 Jul 2023 11:14:30 +0000 (21:14 +1000)]
doc/radosgw: s/s3select/S3 Select/

Correct several misspelling of "S3 Select". Hat tip to Anthony D'Atri,
who caught this in an earlier PR.

Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #47595 from 5cs/fix-lc-head-marker
J. Eric Ivancich [Fri, 30 Jun 2023 15:33:15 +0000 (11:33 -0400)]
Merge pull request #47595 from 5cs/fix-lc-head-marker

rgwlc: fix lc head marker point to non-exist lc entry

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
2 years agoMerge pull request #50667 from ivancich/wip-add-reupload-testing
J. Eric Ivancich [Fri, 30 Jun 2023 15:30:27 +0000 (11:30 -0400)]
Merge pull request #50667 from ivancich/wip-add-reupload-testing

qa/rgw: test that multipart re-upload does not leave any orphans

Reviewed-by: Cory Snyder <csnyder@iland.com>
2 years agoMerge pull request #52252 from soumyakoduri/wip-skoduri-dbstore
Soumya Koduri [Fri, 30 Jun 2023 12:14:02 +0000 (17:44 +0530)]
Merge pull request #52252 from soumyakoduri/wip-skoduri-dbstore

rgw/dbstore: Update README

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #52217 from zhscn/fix-file-local-variable
Yingxin [Fri, 30 Jun 2023 02:32:24 +0000 (10:32 +0800)]
Merge pull request #52217 from zhscn/fix-file-local-variable

crimson/os/seastore/omap_manager: correct editor settings

Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agoMerge pull request #52250 from zdover23/wip-doc-2023-06-29-radosgw-s3select-basic...
zdover23 [Thu, 29 Jun 2023 16:00:13 +0000 (02:00 +1000)]
Merge pull request #52250 from zdover23/wip-doc-2023-06-29-radosgw-s3select-basic-workflow

doc/radosgw: edit "Basic Workflow" in s3select.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/radosgw: edit "Basic Workflow" in s3select.rst 52250/head
Zac Dover [Thu, 29 Jun 2023 08:48:00 +0000 (18:48 +1000)]
doc/radosgw: edit "Basic Workflow" in s3select.rst

Edit the "Basic Workflow" section in doc/radosgw/s3select.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agorgw/dbstore: Update README 52252/head
Soumya Koduri [Thu, 29 Jun 2023 10:30:43 +0000 (16:00 +0530)]
rgw/dbstore: Update README

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
2 years agoMerge pull request #52008 from rishabh-d-dave/improvements-authmon
Radoslaw Zarzynski [Thu, 29 Jun 2023 07:32:03 +0000 (09:32 +0200)]
Merge pull request #52008 from rishabh-d-dave/improvements-authmon

mon: improvements and cleanup for AuthMonitor

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agoMerge pull request #52157 from pkalever/log-improve
Ilya Dryomov [Wed, 28 Jun 2023 09:45:50 +0000 (11:45 +0200)]
Merge pull request #52157 from pkalever/log-improve

rbd-mirror: add some assorted logs

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2 years agoMerge pull request #52194 from zdover23/wip-doc-2023-06-26-radosgw-s3select-overview
zdover23 [Wed, 28 Jun 2023 06:43:08 +0000 (16:43 +1000)]
Merge pull request #52194 from zdover23/wip-doc-2023-06-26-radosgw-s3select-overview

doc/radosgw: edit "Overview" in s3select.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/radosgw: edit "Overview" in s3select.rst 52194/head
Zac Dover [Mon, 26 Jun 2023 11:45:43 +0000 (21:45 +1000)]
doc/radosgw: edit "Overview" in s3select.rst

Edit the "Overview" section in doc/radosgw/s3select.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge PR #49971 into main
Venky Shankar [Wed, 28 Jun 2023 04:53:54 +0000 (10:23 +0530)]
Merge PR #49971 into main

* refs/pull/49971/head:
doc/cephfs: document MDS_CLIENTS_LAGGY health warning
qa: ignore warnings
qa: add test cases to check client eviction if an OSD is laggy
mds,messages: enable beacon to report clients lagginess
mds: do not evict client on laggy osds
common: add new config option to defer client eviction
osd: add method to check for laggy osds

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge pull request #52090 from xxhdx1985126/wip-fixedkv-btree-merge-fix
Yingxin [Wed, 28 Jun 2023 04:53:06 +0000 (12:53 +0800)]
Merge pull request #52090 from xxhdx1985126/wip-fixedkv-btree-merge-fix

crimson/os/seastore/btree: should add left's size when merging levels…

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agorbd-mirror: add some logs 52157/head
Prasanna Kumar Kalever [Thu, 22 Jun 2023 14:38:36 +0000 (20:08 +0530)]
rbd-mirror: add some logs

Added some logs as their values where not very clear while parsing though the
log files.

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
2 years agocrimson/os/seastore/omap_manager: correct editor settings 52217/head
Zhang Song [Wed, 28 Jun 2023 02:01:21 +0000 (10:01 +0800)]
crimson/os/seastore/omap_manager: correct editor settings

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
2 years agoMerge PR #51858 into main
Patrick Donnelly [Tue, 27 Jun 2023 17:43:38 +0000 (13:43 -0400)]
Merge PR #51858 into main

* refs/pull/51858/head:
pybind/mgr/devicehealth: do not crash if db not ready

Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Yaarit Hatuka <yaarithatuka@gmail.com>
2 years agoMerge PR #52170 into main
Venky Shankar [Tue, 27 Jun 2023 12:21:31 +0000 (17:51 +0530)]
Merge PR #52170 into main

* refs/pull/52170/head:
qa: assign file system affinity for replaced MDS

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoMerge pull request #51283 from rhcs-dashboard/disable-delete
Aashish Sharma [Tue, 27 Jun 2023 11:58:12 +0000 (17:28 +0530)]
Merge pull request #51283 from rhcs-dashboard/disable-delete

mgr/dashboard: disable delete on multisite

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
2 years agoqa: assign file system affinity for replaced MDS 52170/head
Venky Shankar [Thu, 22 Jun 2023 10:08:44 +0000 (06:08 -0400)]
qa: assign file system affinity for replaced MDS

Otherwise, the MDS that just got replaced can transition to a rank
for another file system and the test cannot deterministically infer
which MDS needs to checked.

Fixes: http://tracker.ceph.com/issues/61764
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge pull request #51928 from samarahu/cmake-cleanup
Samarah Uriarte [Mon, 26 Jun 2023 14:30:40 +0000 (10:30 -0400)]
Merge pull request #51928 from samarahu/cmake-cleanup

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge PR #52149 into main
Venky Shankar [Mon, 26 Jun 2023 12:21:25 +0000 (17:51 +0530)]
Merge PR #52149 into main

* refs/pull/52149/head:
cephfs-journal-tool: disambiguate usage of all keyword (in tool help).

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
2 years agoMerge pull request #52155 from nbalacha/poolreplayer-logging
Ilya Dryomov [Mon, 26 Jun 2023 09:49:26 +0000 (11:49 +0200)]
Merge pull request #52155 from nbalacha/poolreplayer-logging

rbd-mirror: add additional logs to PoolReplayer

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2 years agoMerge PR #51417 into main
Venky Shankar [Mon, 26 Jun 2023 07:29:12 +0000 (12:59 +0530)]
Merge PR #51417 into main

* refs/pull/51417/head:
client: only wait for write MDS OPs when unmounting
client: flush the mdlog before waiting for unsafe requests

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agoMerge PR #50908 into main
Venky Shankar [Mon, 26 Jun 2023 07:27:43 +0000 (12:57 +0530)]
Merge PR #50908 into main

* refs/pull/50908/head:
mon/MDSMonitor: plug paxos when maybe manipulating the osdmap
mon/MDSMonitor: force immediate propose when evicting an MDS

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge PR #49295 into main
Venky Shankar [Mon, 26 Jun 2023 07:26:33 +0000 (12:56 +0530)]
Merge PR #49295 into main

* refs/pull/49295/head:
mgr/snap_schedule: catch all exceptions for cli

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge pull request #51845 from ssdohammer-sl/doc-update-deduplication
zdover23 [Mon, 26 Jun 2023 01:46:07 +0000 (11:46 +1000)]
Merge pull request #51845 from ssdohammer-sl/doc-update-deduplication

doc:dev update how to use deduplication

Reviewed-by: Zac Dover <zac.dover@proton.me>
2 years agodoc:dev update how to use deduplication 51845/head
Sungmin Lee [Fri, 26 May 2023 08:05:46 +0000 (17:05 +0900)]
doc:dev update how to use deduplication

Add prerequisite for deduplication, example outputs, and chunk-repair operation.

Signed-off-by: Sungmin Lee <sung_min.lee@samsung.com>
2 years agocephfs-journal-tool: disambiguate usage of all keyword (in tool help). 52149/head
Manish M Yathnalli [Wed, 21 Jun 2023 07:59:41 +0000 (13:29 +0530)]
cephfs-journal-tool: disambiguate usage of all keyword (in tool help).

        The fs:all for rank option description was confusing. It seemd
like the fs was optional, but it is mandatory. This change modifies the
help message to reflect the correct way to use all in the --rank option.

Fixes: https://tracker.ceph.com/issues/61753
Signed-off-by: Manish M Yathnalli <myathnal@redhat.com>
2 years agoMerge pull request #52181 from zdover23/wip-doc-2023-06-25-radosgw-s3select-formatting
zdover23 [Sun, 25 Jun 2023 13:46:11 +0000 (23:46 +1000)]
Merge pull request #52181 from zdover23/wip-doc-2023-06-25-radosgw-s3select-formatting

doc/radosgw: remove pipes from s3select.rst

Reviewed-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
2 years agoMerge pull request #52110 from yuvalif/wip-yuval-fix-61639
Yuval Lifshitz [Sun, 25 Jun 2023 12:54:26 +0000 (15:54 +0300)]
Merge pull request #52110 from yuvalif/wip-yuval-fix-61639

rgw/amqp: remove possible race conditions with the amqp connections

2 years agodoc/radosgw: remove pipes from s3select.rst 52181/head
Zac Dover [Sun, 25 Jun 2023 09:03:07 +0000 (19:03 +1000)]
doc/radosgw: remove pipes from s3select.rst

Remove strange formatting introduced in
61d6813726fc08980903c6a6c50b0a5797ba7193.

Note to the documentation team: This is not a line-edit. This commit
includes nothing but the removal of pipes added to the left of much of
the text in this file. Several future commits will line-edit this file
and correct its formatting.

Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agorgw/amqp: use "fmt" for converting connection_id to string 52110/head
Yuval Lifshitz [Sun, 25 Jun 2023 08:56:26 +0000 (08:56 +0000)]
rgw/amqp: use "fmt" for converting connection_id to string

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2 years agoMerge pull request #51980 from aisakaki/wip-fix-check_node
Yingxin [Sun, 25 Jun 2023 05:46:17 +0000 (13:46 +0800)]
Merge pull request #51980 from aisakaki/wip-fix-check_node

crimson/os/seastore: fix in check_node

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
2 years agocrimson/os/seastore: fix bug in check_node 51980/head
Xinyu Huang [Fri, 9 Jun 2023 07:25:48 +0000 (15:25 +0800)]
crimson/os/seastore: fix bug in check_node

EXIST_CLEAN and EXIST_MUTATION_PENDING shuold not be treated as
CLEAN in check_node because they are transaction private and the
leafnode has been duplicated for write.

fix: https://tracker.ceph.com/issues/61626

Signed-off-by: Xinyu Huang <xinyu.huang@intel.com>
2 years agoMerge pull request #52167 from zdover23/wip-doc-2023-06-23-rados-operations-crush...
zdover23 [Sat, 24 Jun 2023 05:55:43 +0000 (15:55 +1000)]
Merge pull request #52167 from zdover23/wip-doc-2023-06-23-rados-operations-crush-map-edits-1-of-x

doc/rados: edit crush-map-edits.rst (1 of x)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
2 years agodoc/rados: edit crush-map-edits.rst (1 of x) 52167/head
Zac Dover [Fri, 23 Jun 2023 00:59:10 +0000 (10:59 +1000)]
doc/rados: edit crush-map-edits.rst (1 of x)

Edit doc/rados/operations/crush-map-edits.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Co-authored-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agorbd-mirror: add logs to PoolReplayer 52155/head
N Balachandran [Fri, 23 Jun 2023 13:13:13 +0000 (18:43 +0530)]
rbd-mirror: add logs to PoolReplayer

This commit adds logs to some PoolReplayer functions
in order to make debugging easier.

Signed-off-by: N Balachandran <nibalach@redhat.com>
2 years agoMerge PR #51974 into main
Venky Shankar [Fri, 23 Jun 2023 05:10:51 +0000 (10:40 +0530)]
Merge PR #51974 into main

* refs/pull/51974/head:
doc: fix grammar in cephfs/standby

Reviewed-by: Anthony D Atri <anthony.datri@gmail.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2 years agoMerge pull request #52164 from ljflores/wip-balancer-documentation-fix
Laura Flores [Thu, 22 Jun 2023 22:39:16 +0000 (17:39 -0500)]
Merge pull request #52164 from ljflores/wip-balancer-documentation-fix

doc/rados/operations: change file back to original name

2 years agodoc/rados/operations: change file back to original name 52164/head
Laura Flores [Thu, 22 Jun 2023 22:09:33 +0000 (17:09 -0500)]
doc/rados/operations: change file back to original name

The name of this file was changed in
4fcab2e7fc9f7ac170ede21cb07912b79926ccb9,
but on second thought, this could cause 404 situations.
Reverting the file name back to the original name.

Signed-off-by: Laura Flores <lflores@redhat.com>
2 years agoMerge pull request #52156 from cbodley/wip-qa-rgw-s3tests-extra-attrs
Ali Maredia [Thu, 22 Jun 2023 20:15:02 +0000 (16:15 -0400)]
Merge pull request #52156 from cbodley/wip-qa-rgw-s3tests-extra-attrs

qa/rgw/s3tests: make extra_attrs additive

2 years agoMerge pull request #52085 from alimaredia/wip-rgw-tempest-keystone-fix
Casey Bodley [Thu, 22 Jun 2023 17:46:46 +0000 (13:46 -0400)]
Merge pull request #52085 from alimaredia/wip-rgw-tempest-keystone-fix

Tempest tests Keystone Fix

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoqa: rgw/tempest suite only runs on ubuntu latest 52085/head
Ali Maredia [Tue, 13 Jun 2023 17:21:14 +0000 (13:21 -0400)]
qa: rgw/tempest suite only runs on ubuntu latest

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2 years agoqa: update rgw openstack versions
Tobias Urdin [Fri, 31 Mar 2023 07:10:20 +0000 (07:10 +0000)]
qa: update rgw openstack versions

Signed-off-by: Ali Maredia <amaredia@redhat.com>
2 years agoMerge pull request #51738 from phlogistonjohn/jjm-cephadm-new-deploy
Adam King [Thu, 22 Jun 2023 15:39:49 +0000 (11:39 -0400)]
Merge pull request #51738 from phlogistonjohn/jjm-cephadm-new-deploy

cephadm: create a new version of the deploy command

Reviewed-by: Adam King <adking@redhat.com>
2 years agoMerge pull request #51499 from ljflores/wip-balancer-documentation
Laura Flores [Thu, 22 Jun 2023 15:32:38 +0000 (10:32 -0500)]
Merge pull request #51499 from ljflores/wip-balancer-documentation

doc/man/8: add documentation about read balancer

2 years agodoc/man/8: add documentation about read balancer 51499/head
Laura Flores [Fri, 10 Mar 2023 23:39:51 +0000 (23:39 +0000)]
doc/man/8: add documentation about read balancer

Signed-off-by: Laura Flores <lflores@redhat.com>
Co-authored-by: Josh Salomon <josh.salomon@gmail.com>
2 years agoMerge pull request #51819 from mkogan1/wip-d3n-obj-w-slash
Mark Kogan [Thu, 22 Jun 2023 14:28:12 +0000 (17:28 +0300)]
Merge pull request #51819 from mkogan1/wip-d3n-obj-w-slash

rgw: D3N: cache objects which oid contains slash

2 years agoqa/s3tests: remove stale comment about rfc2616 52156/head
Casey Bodley [Thu, 22 Jun 2023 12:50:03 +0000 (08:50 -0400)]
qa/s3tests: remove stale comment about rfc2616

this comment was about the old fails_strict_rfc2616 attr that was
removed in 6238eaaf0bcbcaac3c8628f68c088481f96c199a

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoqa/s3tests: clean up extra_attrs and extra_args logic
Casey Bodley [Thu, 22 Jun 2023 12:48:47 +0000 (08:48 -0400)]
qa/s3tests: clean up extra_attrs and extra_args logic

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoqa/s3tests: make extra_attrs additive
Casey Bodley [Thu, 22 Jun 2023 12:47:06 +0000 (08:47 -0400)]
qa/s3tests: make extra_attrs additive

the s3tests.py task is filtering out several attrs by default. but
when dbstore uses `extra_attrs` to add 'not fails_on_dbstore', it
overwrites those other filters

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #52129 from yuvalif/wip-yuval-kafka-memleak
Yuval Lifshitz [Thu, 22 Jun 2023 08:09:45 +0000 (11:09 +0300)]
Merge pull request #52129 from yuvalif/wip-yuval-kafka-memleak

rgw/kafka: fix potential memory leak when push to queue fails

2 years agoMerge pull request #51961 from Matan-B/wip-matanb-crimson-single-mosdmap-handling
Matan [Thu, 22 Jun 2023 07:17:47 +0000 (10:17 +0300)]
Merge pull request #51961 from Matan-B/wip-matanb-crimson-single-mosdmap-handling

Crimson/osd: Disable concurrent MOSDMap handling

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radosław Zarzyński <rzarzyns@redhat.com>
2 years agoMerge pull request #52072 from NitzanMordhai/wip-nitzan-add-ec-clay-teuthology-tests
Yuri Weinstein [Wed, 21 Jun 2023 21:16:00 +0000 (17:16 -0400)]
Merge pull request #52072 from NitzanMordhai/wip-nitzan-add-ec-clay-teuthology-tests

qa: adding clay test to thrash erasure code big

Reviewed-by: Neha Ojha <nojha@redhat.com>
2 years agoMerge pull request #51667 from Matan-B/wip-matanb-share-osdmap
Yuri Weinstein [Wed, 21 Jun 2023 21:12:38 +0000 (17:12 -0400)]
Merge pull request #51667 from Matan-B/wip-matanb-share-osdmap

osd/OSD: cleanup OSDService::maybe_share_map()

Reviewed-by: Samuel Just <sjust@redhat.com>
2 years agoMerge pull request #51450 from batrick/i59716
Yuri Weinstein [Wed, 21 Jun 2023 21:12:08 +0000 (17:12 -0400)]
Merge pull request #51450 from batrick/i59716

pybind/rados: keep byte representation if decode fails

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
2 years agoMerge pull request #50206 from TRYTOBE8TME/wip-rgw-yield-work
Casey Bodley [Wed, 21 Jun 2023 18:52:20 +0000 (14:52 -0400)]
Merge pull request #50206 from TRYTOBE8TME/wip-rgw-yield-work

rgw: replace null_yields with optional ones

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoqa/workunits/cephadm: update script use use cephadm _orch deploy 51738/head
John Mulligan [Tue, 20 Jun 2023 20:58:07 +0000 (16:58 -0400)]
qa/workunits/cephadm: update script use use cephadm _orch deploy

cephadm _orch deploy will eventually be the only deploy method so
we need to update the test script.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agocephadm: dont set ctx.image if json deploy image is unset
John Mulligan [Mon, 19 Jun 2023 16:54:24 +0000 (12:54 -0400)]
cephadm: dont set ctx.image if json deploy image is unset

If no image has been provided in the "deploy from" json do not set
ctx.image to it (empty-string or None) as we may have had a valid
value passed on the --image CLI option.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2 years agoMerge pull request #52123 from zdover23/wip-doc-2023-06-20-rados-operations-control...
zdover23 [Wed, 21 Jun 2023 13:34:55 +0000 (23:34 +1000)]
Merge pull request #52123 from zdover23/wip-doc-2023-06-20-rados-operations-control-1-of-x

doc/rados: edit control.rst (1 of x)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/rados: edit control.rst (1 of x) 52123/head
Zac Dover [Tue, 20 Jun 2023 02:12:44 +0000 (12:12 +1000)]
doc/rados: edit control.rst (1 of x)

Edit doc/rados/operations/control.rst.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #52109 from idryomov/wip-61616
Ilya Dryomov [Wed, 21 Jun 2023 09:43:26 +0000 (11:43 +0200)]
Merge pull request #52109 from idryomov/wip-61616

librbd: avoid object map corruption in snapshots taken under I/O

Reviewed-by: Mykola Golub <mgolub@suse.com>
2 years agorgw/amqp: remove possible race conditions with the amqp connections
Yuval Lifshitz [Fri, 16 Jun 2023 15:10:19 +0000 (15:10 +0000)]
rgw/amqp: remove possible race conditions with the amqp connections

* simplify memory management of the connection by not using a unique_ptr
* simplify the logic by handling all issues inside the amqp manager
* fix iterator invalidation issue with miltiple n/acks
* allow different connections with different exchanges
* modify the unit tests according to the new behavior

Fixes:
* https://tracker.ceph.com/issues/61639
* https://tracker.ceph.com/issues/46127

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2 years agoqa/workunits/rbd: make continuous export-diff test actually work 52109/head
Ilya Dryomov [Fri, 16 Jun 2023 12:01:52 +0000 (14:01 +0200)]
qa/workunits/rbd: make continuous export-diff test actually work

The current version is pretty useless:

- "rbd bench" writes the same byte (0xff) over and over again, so
  almost all checksumming is in vain
- snapshots are taken in a steady state (i.e. not under I/O), so no
  race conditions can get exposed
- even with these caveats, it's not wired up into the suite

Redo this workunit to be a reliable reproducer for the issue fixed
in the previous commit and wire it up for both krbd and rbd-nbd.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2 years agocrimson/osd/osd_operations/pg_advance_map: 'from' epoch may vary between PGS explanation 51961/head
Matan Breizman [Tue, 20 Jun 2023 17:51:52 +0000 (17:51 +0000)]
crimson/osd/osd_operations/pg_advance_map: 'from' epoch may vary between PGS explanation

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2 years agocrimson/osd/osdmap_gate: got_map() assert increase of current epoch
Matan Breizman [Sun, 28 May 2023 10:31:37 +0000 (10:31 +0000)]
crimson/osd/osdmap_gate: got_map() assert increase of current epoch

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2 years agoMerge pull request #51827 from liu-chunmei/get_assert
Samuel Just [Tue, 20 Jun 2023 18:06:31 +0000 (11:06 -0700)]
Merge pull request #51827 from liu-chunmei/get_assert

crimson:  fix RefCountedObject::_get() assert

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/osd/shard_services: get_or_create_pg() remove unused variable
Matan Breizman [Wed, 24 May 2023 15:36:10 +0000 (15:36 +0000)]
crimson/osd/shard_services: get_or_create_pg() remove unused variable

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2 years agocrimson/osd/shard_services: Refactor OSDSingletonState::load_map
Matan Breizman [Wed, 10 May 2023 13:54:17 +0000 (13:54 +0000)]
crimson/osd/shard_services: Refactor OSDSingletonState::load_map

Added logs
If case reconstructed - epoch is unsigned.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2 years agocrimson/osd/osd_meta: Abort instead of throwing runtime_error
Matan Breizman [Wed, 10 May 2023 13:53:18 +0000 (13:53 +0000)]
crimson/osd/osd_meta: Abort instead of throwing runtime_error

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2 years agocrimson/osd: Add logs around handling of osdmaps
Matan Breizman [Wed, 10 May 2023 13:52:23 +0000 (13:52 +0000)]
crimson/osd: Add logs around handling of osdmaps

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2 years agocrimson/osd/pg: Fix assert of osd_debug_verify_cached_snaps
Matan Breizman [Wed, 24 May 2023 12:52:40 +0000 (12:52 +0000)]
crimson/osd/pg: Fix assert of osd_debug_verify_cached_snaps

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2 years agoMerge pull request #52104 from anthonyeleven/anthonyeleven/fixfft
Anthony D'Atri [Tue, 20 Jun 2023 12:38:04 +0000 (08:38 -0400)]
Merge pull request #52104 from anthonyeleven/anthonyeleven/fixfft

doc/rados/operations: Improve formatting in crush-map.rst

2 years agodoc/rados/operations: Improve formatting in crush-map.rst 52104/head
Anthony D'Atri [Sat, 17 Jun 2023 10:37:58 +0000 (06:37 -0400)]
doc/rados/operations: Improve formatting in crush-map.rst

Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
2 years agorgw/kafka: fix potential memory leak when push to queue fails 52129/head
Yuval Lifshitz [Tue, 20 Jun 2023 10:21:33 +0000 (10:21 +0000)]
rgw/kafka: fix potential memory leak when push to queue fails

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2 years agoMerge PR #51500 into main
Venky Shankar [Tue, 20 Jun 2023 10:04:30 +0000 (15:34 +0530)]
Merge PR #51500 into main

* refs/pull/51500/head:
test/libcephfs: add test case for revoking caps
client: issue a cap release immediately if no cap exists
mds: add the revoking caps back to _revokes list
mds: move confirm_receipt() to Capability.cc

Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agoMerge PR #51655 into main
Venky Shankar [Tue, 20 Jun 2023 04:35:31 +0000 (10:05 +0530)]
Merge PR #51655 into main

* refs/pull/51655/head:
mds: display sane hex value (0x0) for empty feature bit

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
2 years agosrc/rgw: Additional changes based on comments 50206/head
Kalpesh Pandya [Thu, 23 Feb 2023 11:09:25 +0000 (16:39 +0530)]
src/rgw: Additional changes based on comments

Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
2 years agosrc/rgw: Changing null_yield to optional_yield
Kalpesh Pandya [Tue, 21 Feb 2023 11:56:41 +0000 (17:26 +0530)]
src/rgw: Changing null_yield to optional_yield

Changing null_yield in rgw_sal_rados.cc

Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
2 years agosrc/rgw: Changing null_yield to optional_yield
Kalpesh Pandya [Mon, 20 Feb 2023 20:22:16 +0000 (01:52 +0530)]
src/rgw: Changing null_yield to optional_yield

Changing null_yield in rgw_reshard.cc

Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
2 years agosrc/rgw: Changing null_yield to optional_yield
Kalpesh Pandya [Thu, 16 Feb 2023 22:30:30 +0000 (04:00 +0530)]
src/rgw: Changing null_yield to optional_yield

Passing optional_yield to rgw_rados.cc

Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
2 years agosrc/rados: Changing null_yield to optional_yield
Kalpesh Pandya [Thu, 16 Feb 2023 07:55:39 +0000 (13:25 +0530)]
src/rados: Changing null_yield to optional_yield

Passing optional_yield at all places in rgw_bucket.cc

Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
2 years agosrc/rgw: Changing null_yield to optional_yield
Kalpesh Pandya [Thu, 16 Feb 2023 07:31:30 +0000 (13:01 +0530)]
src/rgw: Changing null_yield to optional_yield

Focused on rgw_rados_operate() and passing null_yield in
rgw_lc.cc, rgw_gc.cc, rgw_object_expirer_core.cc

Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
2 years agorgw: pubsub: pass yield context
Yehuda Sadeh [Wed, 1 Dec 2021 19:35:27 +0000 (11:35 -0800)]
rgw: pubsub: pass yield context

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2 years agorgw: rados: pass yield context in a few places
Yehuda Sadeh [Wed, 1 Dec 2021 21:26:27 +0000 (13:26 -0800)]
rgw: rados: pass yield context in a few places

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2 years agoMerge pull request #51681 from cbodley/wip-61349
Casey Bodley [Mon, 19 Jun 2023 18:10:19 +0000 (14:10 -0400)]
Merge pull request #51681 from cbodley/wip-61349

librados: aio operate functions can set mtimes

Reviewed-by: Radosław Zarzyński <rzarzyns@redhat.com>
2 years agoMerge pull request #51737 from cbodley/wip-rocksdb-44
Yuri Weinstein [Mon, 19 Jun 2023 17:31:23 +0000 (13:31 -0400)]
Merge pull request #51737 from cbodley/wip-rocksdb-44

bump rocksdb submodule to latest ceph-reef-v7.9.2

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agoMerge pull request #51669 from ronen-fr/wip-rf-max-scrub-3
Ronen Friedman [Mon, 19 Jun 2023 17:29:50 +0000 (20:29 +0300)]
Merge pull request #51669 from ronen-fr/wip-rf-max-scrub-3

osd/scrub: increasing max_osd_scrubs to 3

Reviewed-by: Neha Ojha <nojha@redhat.com>
2 years agoMerge pull request #48209 from kamoltat/wip-ksirivad-fix-tracker-57570
Yuri Weinstein [Mon, 19 Jun 2023 17:29:21 +0000 (13:29 -0400)]
Merge pull request #48209 from kamoltat/wip-ksirivad-fix-tracker-57570

osd/OSDMap: Check for uneven weights & != 2 buckets post stretch mode

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2 years agorgw: D3N cache objects which oid contains slash 51819/head
Mark Kogan [Mon, 29 May 2023 17:36:56 +0000 (17:36 +0000)]
rgw: D3N cache objects which oid contains slash

Fixes: https://tracker.ceph.com/issues/59739
Signed-off-by: Mark Kogan <mkogan@redhat.com>
2 years agoAuthMonitor: refactor valid_caps() 52008/head
Rishabh Dave [Fri, 16 Jun 2023 19:19:39 +0000 (00:49 +0530)]
AuthMonitor: refactor valid_caps()

Since PR #50874 has been merged, this method can do the exact same job
in much lesser code.

Also since we are here, let's rename variable "type" to "entity".

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2 years agoAuthMonitor: make code for updating caps reusable
Rishabh Dave [Wed, 9 Jun 2021 07:55:02 +0000 (13:25 +0530)]
AuthMonitor: make code for updating caps reusable

Move the code for "ceph auth caps" command to a separate function so
that the code can be reused to update caps.

Most of the code here is same as the code for creating new entity, so
let's modify this method to also create an entity. Also, create helper
methods to update and create an entity.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2 years agomds: display sane hex value (0x0) for empty feature bit 51655/head
Jos Collin [Mon, 22 May 2023 04:31:39 +0000 (10:01 +0530)]
mds: display sane hex value (0x0) for empty feature bit

Print a valid hex (0x0) during empty feature bit, so that the clients could recognize it.
When the _vec size becomes 0, print() function creates an invalid hex (0x) and 'perf stats'
crashes with the below error:
"
File "/opt/ceph/src/pybind/mgr/stats/fs/perf_stats.py", line 177, in notify_cmd
metric_features = int(metadata[CLIENT_METADATA_KEY]["metric_spec"]["metric_flags"]["feature_bits"], 16)
ValueError: invalid literal for int() with base 16: '0x'
"
This patch creates  a valid hex (0x0), when _vec size is 0.

Fixes: https://tracker.ceph.com/issues/59551
Signed-off-by: Jos Collin <jcollin@redhat.com>
2 years agomgr/dashboard: disable delete on multisite 51283/head
Pedro Gonzalez Gomez [Tue, 16 May 2023 11:11:41 +0000 (13:11 +0200)]
mgr/dashboard: disable delete on multisite

Fixes: https://tracker.ceph.com/issues/59441
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
2 years agolibrbd: stop passing IOContext to image dispatch write methods
Ilya Dryomov [Tue, 13 Jun 2023 11:36:02 +0000 (13:36 +0200)]
librbd: stop passing IOContext to image dispatch write methods

This is a major footgun since any value passed e.g. at the API layer
may be stale by the time we get to object dispatch.  All callers are
passing the IOContext returned by get_data_io_context() for their
ImageCtx anyway, highlighting that the parameter is fictitious.

Only the read method can meaningfully take IOContext.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2 years agolibrbd: use an up-to-date snap context when owning the exclusive lock
Ilya Dryomov [Mon, 12 Jun 2023 19:45:03 +0000 (21:45 +0200)]
librbd: use an up-to-date snap context when owning the exclusive lock

By effectively moving capturing of the snap context to the API layer,
commit 1d0a3b17f590 ("librbd: pass IOContext to image-extent IO
dispatch methods") introduced a nasty regression.  The snap context can
be captured only after exclusive lock is safely held for the duration
of dealing with the image request and even then must be refreshed if
a snapshot creation request is accepted from a peer.  This is needed to
ensure correctness of the object map in general and fast-diff states in
particular (OBJECT_EXISTS vs OBJECT_EXISTS_CLEAN) and object deltas
computed based off of them.  Otherwise the object map that is forked
for the snapshot isn't guaranteed to accurately reflect the contents of
the snapshot when the snapshot is taken under I/O (as in disabling the
object map may lead to different results being returned for reads).

The regression affects mainly differential backup and snapshot-based
mirroring use cases with object-map and/or fast-diff enabled: since
some object deltas may be incomplete, the destination image may get
corrupted.

This commit represents a reasonable minimal fix: IOContext passed
through to ImageDispatch is effected only for reads and just gets
ignored for writes.  The next commit cleans up further by undoing the
passing of IOContext through the image dispatch layers for writes.

Fixes: https://tracker.ceph.com/issues/61616
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2 years agoAuthMonitor: add helper method _check_and_encode_caps()
Rishabh Dave [Fri, 9 Jun 2023 11:14:34 +0000 (16:44 +0530)]
AuthMonitor: add helper method _check_and_encode_caps()

Instead of rewriting, code to check if caps are valid & to encode caps,
let's create a new helper method and use it instead.

Also, the name "new_caps" is used to store encoded caps. Let's rename
such variables to "encoded_caps".

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2 years agoAuthMonitor: use map, not vector, for caps
Rishabh Dave [Fri, 9 Jun 2023 11:10:35 +0000 (16:40 +0530)]
AuthMonitor: use map, not vector, for caps

Although the variable "caps_vec" is defined as a vector (with following
as its members: {"mon", <moncap>, "osd", <osdcap>, "mgr", <mgrcap>,
"mds", <mdscap>}) it actually is used and iterated as a map. Simplify
the code by using a map instead of vector for storing caps.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2 years agoMerge pull request #52105 from gsantella/patch-update-typo-on-dashboard
Anthony D'Atri [Sat, 17 Jun 2023 16:50:03 +0000 (12:50 -0400)]
Merge pull request #52105 from gsantella/patch-update-typo-on-dashboard

doc/mgr/dashboard: fix a typo