]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
2 years agocrimson/net: notify the new connection shard upon accept/connect
Yingxin Cheng [Fri, 2 Jun 2023 09:22:53 +0000 (17:22 +0800)]
crimson/net: notify the new connection shard upon accept/connect

Users may need to know the new connection shard prior to message
dispatching. Otherwise, there will be no chance for user to do any
related preparations.

This is still a placeholder before multi-core messegner is enabled.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: make io-handler in/out dispatching aware of being switched
Yingxin Cheng [Fri, 2 Jun 2023 08:22:21 +0000 (16:22 +0800)]
crimson/net: make io-handler in/out dispatching aware of being switched

To prevent the previous shard-states racing on the shared data
structures after switching to a new shard-states.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: allow io-handler to dispatch in/out independently based on ctx
Yingxin Cheng [Fri, 2 Jun 2023 08:06:33 +0000 (16:06 +0800)]
crimson/net: allow io-handler to dispatch in/out independently based on ctx

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: make send/keepalive keep trying until the shard is correct
Yingxin Cheng [Fri, 2 Jun 2023 07:55:10 +0000 (15:55 +0800)]
crimson/net: make send/keepalive keep trying until the shard is correct

It will be possible that during cross-core send/keepalive, the
connection shard is changed on-the-fly.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: factor out IOHandler::shard_states_t which will be switchable atomically
Yingxin Cheng [Fri, 2 Jun 2023 07:45:07 +0000 (15:45 +0800)]
crimson/net: factor out IOHandler::shard_states_t which will be switchable atomically

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: misc cleanups to io handler implementations
Yingxin Cheng [Thu, 1 Jun 2023 10:37:41 +0000 (18:37 +0800)]
crimson/net: misc cleanups to io handler implementations

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: misc cleanups to protocol v2 implementations
Yingxin Cheng [Thu, 1 Jun 2023 09:05:42 +0000 (17:05 +0800)]
crimson/net: misc cleanups to protocol v2 implementations

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: notify and update io_states from io_handler to protocol asynchronously
Yingxin Cheng [Wed, 31 May 2023 08:57:41 +0000 (16:57 +0800)]
crimson/net: notify and update io_states from io_handler to protocol asynchronously

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: introduce a simpler reset_peer_state() with cleanups
Yingxin Cheng [Wed, 31 May 2023 09:21:05 +0000 (17:21 +0800)]
crimson/net: introduce a simpler reset_peer_state() with cleanups

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: clear FrameAssemblerV2 at replace
Yingxin Cheng [Wed, 26 Apr 2023 09:37:16 +0000 (17:37 +0800)]
crimson/net: clear FrameAssemblerV2 at replace

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: adjust the IO path in FrameAssemblerV2 with the foreign socket
Yingxin Cheng [Wed, 26 Apr 2023 09:33:58 +0000 (17:33 +0800)]
crimson/net: adjust the IO path in FrameAssemblerV2 with the foreign socket

FrameAssemblerV2 and Socket may in different cores during handshake.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: allow FrameAssemblerV2 to check and shutdown a foreign socket
Yingxin Cheng [Wed, 26 Apr 2023 09:27:03 +0000 (17:27 +0800)]
crimson/net: allow FrameAssemblerV2 to check and shutdown a foreign socket

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: check that FrameAssemblerV2 is working in the expected core
Yingxin Cheng [Wed, 26 Apr 2023 09:14:06 +0000 (17:14 +0800)]
crimson/net: check that FrameAssemblerV2 is working in the expected core

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: use SocketFRef
Yingxin Cheng [Wed, 26 Apr 2023 09:06:06 +0000 (17:06 +0800)]
crimson/net: use SocketFRef

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: check that Socket only works in its core
Yingxin Cheng [Wed, 26 Apr 2023 08:45:42 +0000 (16:45 +0800)]
crimson/net: check that Socket only works in its core

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: wrap message with foreign-ptr in the send path
Yingxin Cheng [Wed, 26 Apr 2023 08:33:28 +0000 (16:33 +0800)]
crimson/net: wrap message with foreign-ptr in the send path

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: change the static IS_FIXED_CPU to runtime
Yingxin Cheng [Wed, 26 Apr 2023 08:13:48 +0000 (16:13 +0800)]
crimson/net: change the static IS_FIXED_CPU to runtime

Otherwise the messenger implementation needs to be templated.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: decouple tests from SocketConnection class
Yingxin Cheng [Mon, 24 Apr 2023 05:47:22 +0000 (13:47 +0800)]
crimson/net: decouple tests from SocketConnection class

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: hide seastar packet and temporary_buffer inside Socket
Yingxin Cheng [Fri, 21 Apr 2023 03:47:36 +0000 (11:47 +0800)]
crimson/net: hide seastar packet and temporary_buffer inside Socket

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: introduce IOHandler::sid and the related assertions
Yingxin Cheng [Mon, 27 Mar 2023 09:00:13 +0000 (17:00 +0800)]
crimson/net: introduce IOHandler::sid and the related assertions

Note that Connection and Messenger may be destructed in any order, so
keep a copy of msgr_sid in SocketConnection.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: move socket ownership from SocketConnection to FrameAssemblerV2
Yingxin Cheng [Mon, 27 Mar 2023 08:58:16 +0000 (16:58 +0800)]
crimson/net: move socket ownership from SocketConnection to FrameAssemblerV2

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: make sure Messenger is always called in the same shard
Yingxin Cheng [Mon, 13 Mar 2023 08:29:12 +0000 (16:29 +0800)]
crimson/net: make sure Messenger is always called in the same shard

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net/socket: extend the sockets to multiple shards
Yingxin Cheng [Fri, 10 Mar 2023 02:22:56 +0000 (10:22 +0800)]
crimson/net/socket: extend the sockets to multiple shards

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agotest/crimson/test_socket: fix unaligned memory access
Yingxin Cheng [Fri, 10 Mar 2023 01:55:44 +0000 (09:55 +0800)]
test/crimson/test_socket: fix unaligned memory access

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agotest/crimson: cleanup test_socket.cc
Yingxin Cheng [Mon, 20 Feb 2023 06:37:11 +0000 (14:37 +0800)]
test/crimson: cleanup test_socket.cc

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: cleanups to Socket.h/cc
Yingxin Cheng [Mon, 20 Feb 2023 01:41:58 +0000 (09:41 +0800)]
crimson/net: cleanups to Socket.h/cc

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
2 years agocrimson/net: drop the template from FixedCPUServerSocket::accept()
Yingxin Cheng [Fri, 17 Feb 2023 09:03:02 +0000 (17:03 +0800)]
crimson/net: drop the template from FixedCPUServerSocket::accept()

Signed-off-by: Yingxin Cheng <yingxin.cheng@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 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 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 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 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 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

2 years agodoc/mgr/dashboard: fix a typo 52105/head
gsantella [Sat, 17 Jun 2023 13:49:15 +0000 (09:49 -0400)]
doc/mgr/dashboard: fix a typo

Signed-off-by: Guido Santella <gsantella@southhills.edu>
2 years agoMerge pull request #52100 from zdover23/wip-doc-2023-06-17-rados-operations-crush...
zdover23 [Sat, 17 Jun 2023 09:54:40 +0000 (19:54 +1000)]
Merge pull request #52100 from zdover23/wip-doc-2023-06-17-rados-operations-crush-map-firefly-tunables

doc/rados: edit firefly tunables section

Reviewed-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
2 years agodoc/rados: edit firefly tunables section 52100/head
Zac Dover [Sat, 17 Jun 2023 00:51:51 +0000 (10:51 +1000)]
doc/rados: edit firefly tunables section

Edit the firefly tunables section in
/doc/rados/operations/crush-map.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #52092 from zdover23/wip-doc-2023-06-16-rados-operations-crush...
zdover23 [Fri, 16 Jun 2023 22:17:41 +0000 (08:17 +1000)]
Merge pull request #52092 from zdover23/wip-doc-2023-06-16-rados-operations-crush-map-4-of-x

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

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodoc/rados: edit crush-map.rst (4 of x) 52092/head
Zac Dover [Fri, 16 Jun 2023 08:49:09 +0000 (18:49 +1000)]
doc/rados: edit crush-map.rst (4 of x)

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

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

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
2 years agoMerge pull request #50874 from rishabh-d-dave/mds-log-variable
Rishabh Dave [Fri, 16 Jun 2023 17:27:02 +0000 (22:57 +0530)]
Merge pull request #50874 from rishabh-d-dave/mds-log-variable

mds: use variable g_ceph_context directly in MDSAuthCaps

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2 years agoMerge pull request #52095 from rhcs-dashboard/jsonschema-fix
Ernesto Puerta [Fri, 16 Jun 2023 15:23:07 +0000 (17:23 +0200)]
Merge pull request #52095 from rhcs-dashboard/jsonschema-fix

mgr/dashboard: fix the jsonschema issue in install-deps

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2 years agoMerge pull request #51549 from vedanshbhartia/coverity_1517658
Yuval Lifshitz [Fri, 16 Jun 2023 15:15:56 +0000 (18:15 +0300)]
Merge pull request #51549 from vedanshbhartia/coverity_1517658

rgw: modify RGWRados::cls_bucket_list_ordered to store dirent key before move

2 years agoMerge pull request #51719 from vedanshbhartia/coverity_1510555
Yuval Lifshitz [Fri, 16 Jun 2023 15:15:28 +0000 (18:15 +0300)]
Merge pull request #51719 from vedanshbhartia/coverity_1510555

rgw: Use a unique_ptr when creating a D3nCacheAioWriteRequest instance

2 years agoMerge pull request #52076 from rhcs-dashboard/cephfs-no-mds-clients
Nizamudeen A [Fri, 16 Jun 2023 14:48:12 +0000 (20:18 +0530)]
Merge pull request #52076 from rhcs-dashboard/cephfs-no-mds-clients

mgr/dashboard: empty list of fs clients with no mds

Reviewed-by: Nizamudeen A <nia@redhat.com>
2 years agoMerge pull request #52089 from samarahu/d4n-cmake-fix
Daniel Gryniewicz [Fri, 16 Jun 2023 14:20:59 +0000 (10:20 -0400)]
Merge pull request #52089 from samarahu/d4n-cmake-fix

RGW: Place D4N files under cmake conditional

2 years agomds: use variable g_ceph_context directly in MDSAuthCaps 50874/head
Rishabh Dave [Tue, 28 Feb 2023 16:39:44 +0000 (22:09 +0530)]
mds: use variable g_ceph_context directly in MDSAuthCaps

Variable g_ceph_context is global, therefore use it directly instead of
passing it as a parameter to method.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
2 years agoMerge pull request #52010 from pkalever/fix-ImageMap
Ilya Dryomov [Fri, 16 Jun 2023 12:43:45 +0000 (14:43 +0200)]
Merge pull request #52010 from pkalever/fix-ImageMap

rbd-mirror: don't refer to (remote) mirror_uuid as peer_uuid

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2 years agoMerge pull request #51132 from lxbsz/wip-59349
Rishabh Dave [Fri, 16 Jun 2023 12:22:00 +0000 (17:52 +0530)]
Merge pull request #51132 from lxbsz/wip-59349

qa: wait for 100 seconds to make sure the quota to be enforced

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
2 years agomgr/dashboard: fix the jsonschema issue in install-deps 52095/head
Nizamudeen A [Fri, 16 Jun 2023 09:08:52 +0000 (14:38 +0530)]
mgr/dashboard: fix the jsonschema issue in install-deps

Fixes: https://tracker.ceph.com/issues/61690
Signed-off-by: Nizamudeen A <nia@redhat.com>