]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/log
ceph-ci.git
3 years agocrimson/os/FuturizedCollection: use thread_safe_counter
Samuel Just [Thu, 22 Sep 2022 20:15:29 +0000 (13:15 -0700)]
crimson/os/FuturizedCollection: use thread_safe_counter

This should work for now, long term we probably want to get
rid of FuturizedCollection entirely from the interface.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd/heartbeat: drop ownership of messenger instances
Samuel Just [Thu, 22 Sep 2022 04:08:24 +0000 (21:08 -0700)]
crimson/osd/heartbeat: drop ownership of messenger instances

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd/pg_shard_manager: add shard_id asserts
Samuel Just [Wed, 14 Sep 2022 02:06:35 +0000 (19:06 -0700)]
crimson/osd/pg_shard_manager: add shard_id asserts

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agosrc/vstart.sh: add vstart --crimson-smp option
Samuel Just [Fri, 9 Sep 2022 03:50:58 +0000 (03:50 +0000)]
src/vstart.sh: add vstart --crimson-smp option

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/net: Message::conn needs to be a foreign_ptr
Samuel Just [Thu, 8 Sep 2022 23:12:45 +0000 (23:12 +0000)]
crimson/net: Message::conn needs to be a foreign_ptr

There are two main consequences of this:
1. Messages can't be default copy constructed in crimson.  MMonCommand
   seems to be the only user, and we simply add a copy constructor that
   duplicates data portions of the message.
2. We can't casually copy-construct the conn into other structures.
   The main user here is watch/notify.  We use copy() explicitely
   to populate the object_context structures and avoid passing
   ConnectionFRef by value.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd/osd_operations/client_request: remove OSD reference
Samuel Just [Thu, 8 Sep 2022 19:43:42 +0000 (12:43 -0700)]
crimson/osd/osd_operations/client_request: remove OSD reference

Capture ShardServices reference for use in put_historic directly.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: move send_incremental_map to OSDSingletonState
Samuel Just [Fri, 9 Sep 2022 02:57:22 +0000 (19:57 -0700)]
crimson/osd: move send_incremental_map to OSDSingletonState

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/net/Connection: let send and keepalive be called from foreign cores
Samuel Just [Thu, 8 Sep 2022 18:40:43 +0000 (18:40 +0000)]
crimson/net/Connection: let send and keepalive be called from foreign cores

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd/shard_services: check core on each PerShardState method
Samuel Just [Thu, 8 Sep 2022 17:38:22 +0000 (10:38 -0700)]
crimson/osd/shard_services: check core on each PerShardState method

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd/osd_operations/client_request: fix whitespace on do_process
Samuel Just [Thu, 8 Sep 2022 17:37:18 +0000 (10:37 -0700)]
crimson/osd/osd_operations/client_request: fix whitespace on do_process

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: update_heartbeat_peers can iterate pgs syncronously
Samuel Just [Thu, 8 Sep 2022 17:36:20 +0000 (10:36 -0700)]
crimson/osd: update_heartbeat_peers can iterate pgs syncronously

OSDSingletonState has a local inventory of all pgids.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd/osd_operations: use foreign_ptr for conn
Samuel Just [Tue, 6 Sep 2022 23:45:32 +0000 (23:45 +0000)]
crimson/osd/osd_operations: use foreign_ptr for conn

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agovstart: echo osd arguments
Samuel Just [Tue, 6 Sep 2022 23:27:19 +0000 (16:27 -0700)]
vstart: echo osd arguments

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd/osd_operations/peering_event.cc: whitespace fix
Samuel Just [Tue, 6 Sep 2022 20:43:08 +0000 (13:43 -0700)]
crimson/osd/osd_operations/peering_event.cc: whitespace fix

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: remove compound_peering_request
Samuel Just [Fri, 2 Sep 2022 21:53:33 +0000 (21:53 +0000)]
crimson/osd: remove compound_peering_request

The state shared between sub events creates problems for multicore.  The
only user is MOSDPGCreate2, so the optimization isn't really worth
salvaging.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/common/operation: release pipeline stages on the core they are on
Samuel Just [Fri, 2 Sep 2022 21:10:40 +0000 (14:10 -0700)]
crimson/common/operation: release pipeline stages on the core they are on

Otherwise, tasks waiting on the stage will wake up on the wrong core.
Later, we may choose to statically enable this behavior only for stages
that can actually span cores, but this is ok for now.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: move perf counter ownership to OSDSingletonState
Samuel Just [Wed, 31 Aug 2022 22:20:25 +0000 (15:20 -0700)]
crimson/osd: move perf counter ownership to OSDSingletonState

Later, we'll want to create a properly sharded implentation that avoids
barriers.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: shard PerShardState across cores
Samuel Just [Wed, 14 Sep 2022 02:09:58 +0000 (19:09 -0700)]
crimson/osd: shard PerShardState across cores

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: move hb_stamps to PerShardState
Samuel Just [Tue, 30 Aug 2022 22:01:04 +0000 (22:01 +0000)]
crimson/osd: move hb_stamps to PerShardState

We may later need to syncronize this across cores, perhaps during tick.
This should work for now, however.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: replace global tid with unique core-local tids
Samuel Just [Tue, 30 Aug 2022 22:00:37 +0000 (15:00 -0700)]
crimson/osd: replace global tid with unique core-local tids

We don't really want a global counter here if we can avoid it.  Instead,
assign tids with core-local counters prefixed with the core id.  We
continue to ensure that tids are unique within an osd boot, but lose
the property that sucessive tids on different cores are ordered.  I
don't see anything relying on that property, however, so this should be
fine.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: remove explicit pg counter
Samuel Just [Tue, 30 Aug 2022 21:57:59 +0000 (14:57 -0700)]
crimson/osd: remove explicit pg counter

The main user of num_pgs was get_target_pg_log_entries(), but we
don't really want to be accessing a global counter there if we
can avoid it.  Instead, compute a core-local target and use the
core-local pg count.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: clean up PerShardState/OSDSingletonState ownership/access
Samuel Just [Thu, 25 Aug 2022 01:28:08 +0000 (01:28 +0000)]
crimson/osd: clean up PerShardState/OSDSingletonState ownership/access

- move heartbeat messenger ownership to OSD
- move OSDSingletonState/ShardServices initialization to
  PGShardManager::start() method
- add accessor OSD::get_shard_services(), remove OSD::shard_services
  reference
- accessor/forwarding cleanups within PGShardManager

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: move store responsiblity to PerShardState
Samuel Just [Wed, 24 Aug 2022 23:50:57 +0000 (23:50 +0000)]
crimson/osd: move store responsiblity to PerShardState

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/os: consolidate context handling in FuturizedStore
Samuel Just [Tue, 13 Sep 2022 05:14:16 +0000 (22:14 -0700)]
crimson/os: consolidate context handling in FuturizedStore

Context handling is pretty uniform accross all implementations,
may as well do it in the same place.

ShardedStoreProxy would need to handle it otherwise, since
callbacks need to be handled on the core do_transaction is
invoked on.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/os/futurized_store: create ShardedStoreProxy
Samuel Just [Wed, 24 Aug 2022 20:16:28 +0000 (13:16 -0700)]
crimson/os/futurized_store: create ShardedStoreProxy

For now, FuturizedStore implementations assume that methods are invoked
on core 0.  Later, we'll adapt each implementation to intelligently
support invocation on any pg core.  Until then, this wrapper converts
the existing implementations to a safe, if not particuarly performant,
proxy behavior.

AlienStore should be safe as is.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: adjust get_pg_stats() and for_each_pg() to return futures
Samuel Just [Tue, 23 Aug 2022 21:49:16 +0000 (21:49 +0000)]
crimson/osd: adjust get_pg_stats() and for_each_pg() to return futures

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: refactor pg management for multicore
Samuel Just [Thu, 1 Sep 2022 23:22:59 +0000 (23:22 +0000)]
crimson/osd: refactor pg management for multicore

OSDSingletonState will now only be responsible for the spg_t->core
mapping for pgs, the individual PerShardState's will hold local
PGMap's.  PG management operations are now proxied from PGShardManager
to PerShardState.  Subsequent patches will shard PerShardState.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: modify start_pg_operation to return op_id
Samuel Just [Mon, 1 Aug 2022 23:20:02 +0000 (23:20 +0000)]
crimson/osd: modify start_pg_operation to return op_id

The op will actually be run generally on a different core, so we don't
want to be returning a reference to it.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd/pg_map: add PGShardMapping
Samuel Just [Tue, 26 Jul 2022 02:05:28 +0000 (19:05 -0700)]
crimson/osd/pg_map: add PGShardMapping

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: rework OSDMap handling for multicore
Samuel Just [Thu, 4 Aug 2022 07:17:50 +0000 (00:17 -0700)]
crimson/osd: rework OSDMap handling for multicore

OSDMaps can occupy significant space in memory.  Duplicating OSDMaps
across cores would multiply that memory usage as well as complicate
the internal structure sharing we do when applying OSDMap incrementals.

Because PeeringState and other interfaces expect efficient copying of
OSDMapRef objects we don't want to use foreign_ptr directly.

Instead, maintain a single cache and distribute local_shared_foreign_ptrs
to other cores.  ShardServices becomes the only OSDMapService.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/common: introduce local_shared_foreign_ptr
Samuel Just [Thu, 4 Aug 2022 07:13:04 +0000 (07:13 +0000)]
crimson/common: introduce local_shared_foreign_ptr

Introduces a foreign_ptr wrapper to allow core-local refcounting.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/common/operation: generalized for multiple reactors
Samuel Just [Thu, 1 Sep 2022 23:08:08 +0000 (16:08 -0700)]
crimson/common/operation: generalized for multiple reactors

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: make mkfs static
Samuel Just [Wed, 31 Aug 2022 18:34:30 +0000 (18:34 +0000)]
crimson/osd: make mkfs static

Can't access pg_shard_manager state here without invoking
start().  Instead, let's just be explicit about meta_coll
etc.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd/main: need to actually invoke ConfigProxy::start()
Samuel Just [Wed, 31 Aug 2022 22:57:14 +0000 (15:57 -0700)]
crimson/osd/main: need to actually invoke ConfigProxy::start()

sharded_proxy()::start() is a sharded<> method.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd/main: don't shard OSD
Samuel Just [Tue, 19 Jul 2022 06:11:29 +0000 (23:11 -0700)]
crimson/osd/main: don't shard OSD

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd: rename CoreState to OSDSingletonState
Samuel Just [Tue, 26 Jul 2022 02:21:30 +0000 (02:21 +0000)]
crimson/osd: rename CoreState to OSDSingletonState

CoreState was a bad name -- "core" is going to be used
to refer to seastar reactors/cores as well.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/osd/shard_services: formatting fixes
Samuel Just [Thu, 14 Jul 2022 05:08:45 +0000 (22:08 -0700)]
crimson/osd/shard_services: formatting fixes

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/common: introduce smp_helpers.h, crimson::submit_to
Samuel Just [Wed, 24 Aug 2022 22:42:33 +0000 (15:42 -0700)]
crimson/common: introduce smp_helpers.h, crimson::submit_to

Introduce crimson::submit_to wrapper to transparently deal with
vanilla and errorated futures, adds helpers to errorator.h.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/.../client_request: use intrusive_ptr for instance_handle
Samuel Just [Mon, 12 Sep 2022 20:50:05 +0000 (20:50 +0000)]
crimson/.../client_request: use intrusive_ptr for instance_handle

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #48121 from rzarzynski/wip-crimson-pgadvmap-critical-from
Samuel Just [Tue, 20 Sep 2022 22:00:45 +0000 (15:00 -0700)]
Merge pull request #48121 from rzarzynski/wip-crimson-pgadvmap-critical-from

crimson/osd: initialize PGAdvanceMap::from inside critical section

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #48131 from adamemerson/wip-no-fno-new-ttp-matching
Casey Bodley [Tue, 20 Sep 2022 15:23:17 +0000 (11:23 -0400)]
Merge pull request #48131 from adamemerson/wip-no-fno-new-ttp-matching

build: Remove -fno-new-ttp-matchingg flag

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #48172 from mchangir/doc-add-note-about-cephfs-mirroring-paths v18.0.0
Venky Shankar [Tue, 20 Sep 2022 11:53:38 +0000 (17:23 +0530)]
Merge pull request #48172 from mchangir/doc-add-note-about-cephfs-mirroring-paths

doc/cephfs: add note about cephfs-mirroring paths

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agodoc/cephfs: add note about cephfs-mirroring paths
Milind Changire [Tue, 20 Sep 2022 08:17:08 +0000 (13:47 +0530)]
doc/cephfs: add note about cephfs-mirroring paths

Signed-off-by: Milind Changire <mchangir@redhat.com>
3 years agoMerge pull request #48149 from batrick/i57586
Venky Shankar [Tue, 20 Sep 2022 04:06:38 +0000 (09:36 +0530)]
Merge pull request #48149 from batrick/i57586

tools: allow spaces in dentries for first-damage.sh

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #48057 from athanatos/sjust/wip-io-hang
Samuel Just [Tue, 20 Sep 2022 00:52:36 +0000 (17:52 -0700)]
Merge pull request #48057 from athanatos/sjust/wip-io-hang

crimson/osd/client_request: use fresh tracking_events/handle instances on requeue

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agocrimson/osd/client_request: use fresh tracking_events/handle instances on requeue
Samuel Just [Mon, 12 Sep 2022 19:17:16 +0000 (19:17 +0000)]
crimson/osd/client_request: use fresh tracking_events/handle instances on requeue

See instance_handle_t explanation in client_request.h

Fixes: https://tracker.ceph.com/issues/57494
Fixes: https://tracker.ceph.com/issues/57495
Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #48059 from athanatos/sjust/wip-57506
Samuel Just [Mon, 19 Sep 2022 20:40:41 +0000 (13:40 -0700)]
Merge pull request #48059 from athanatos/sjust/wip-57506

crimson: fix for pgs stuck in +wait along with some debug improvements

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoMerge pull request #48091 from rzarzynski/wip-crimson-pgadvmap-complete-in-order
Samuel Just [Mon, 19 Sep 2022 20:30:52 +0000 (13:30 -0700)]
Merge pull request #48091 from rzarzynski/wip-crimson-pgadvmap-complete-in-order

crimson/osd: PGAdvanceMap ops complete in order

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #48134 from rhcs-dashboard/silence-fix
Nizamudeen A [Mon, 19 Sep 2022 19:23:55 +0000 (00:53 +0530)]
Merge pull request #48134 from rhcs-dashboard/silence-fix

mgr/dashboard: use service call instead of form component

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agotools: allow spaces in dentries for first-damage.sh
Patrick Donnelly [Fri, 16 Sep 2022 19:00:38 +0000 (15:00 -0400)]
tools: allow spaces in dentries for first-damage.sh

Fixes: https://tracker.ceph.com/issues/57586
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoqa: test first damage with dentry containing spaces
Patrick Donnelly [Fri, 16 Sep 2022 19:02:11 +0000 (15:02 -0400)]
qa: test first damage with dentry containing spaces

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoMerge pull request #45369 from jyha200/wip-samplededup
Samuel Just [Mon, 19 Sep 2022 17:32:19 +0000 (10:32 -0700)]
Merge pull request #45369 from jyha200/wip-samplededup

ceph_dedup_tool: adding sample-dedup

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Myoungwon Oh <myoungwon.oh@samsung.com>
3 years agoMerge pull request #41855 from p-se/compile-cephadm-1
Adam King [Mon, 19 Sep 2022 15:48:51 +0000 (11:48 -0400)]
Merge pull request #41855 from p-se/compile-cephadm-1

cephadm: compile cephadm

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
3 years agoMerge pull request #47873 from pdvian/wip-log-last
Yuri Weinstein [Mon, 19 Sep 2022 15:36:45 +0000 (08:36 -0700)]
Merge pull request #47873 from pdvian/wip-log-last

mon/LogMonitor: Fix log last

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoMerge pull request #47852 from Matan-B/wip-matanb-radosmodel
Yuri Weinstein [Mon, 19 Sep 2022 15:36:15 +0000 (08:36 -0700)]
Merge pull request #47852 from Matan-B/wip-matanb-radosmodel

test/osd/RadosModel: Improve error debugging

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #47841 from Matan-B/wip-matanb-rados-striper
Yuri Weinstein [Mon, 19 Sep 2022 15:35:31 +0000 (08:35 -0700)]
Merge pull request #47841 from Matan-B/wip-matanb-rados-striper

SimpleRADOSStriper: Avoid moving bufferlists by using deque in read()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
3 years agoMerge pull request #47774 from vumrao/wip-vumrao-57271
Yuri Weinstein [Mon, 19 Sep 2022 15:33:54 +0000 (08:33 -0700)]
Merge pull request #47774 from vumrao/wip-vumrao-57271

blk/KernelDevice: Modify the rotational and discard check log message

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
3 years agoMerge pull request #48156 from cbodley/wip-rgw-unused-throttles
Casey Bodley [Mon, 19 Sep 2022 15:31:25 +0000 (11:31 -0400)]
Merge pull request #48156 from cbodley/wip-rgw-unused-throttles

rgw: remove unused AioThrottles in rgw_op.cc

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoMerge pull request #46321 from jmolmo/issue_55605
Adam King [Mon, 19 Sep 2022 15:04:58 +0000 (11:04 -0400)]
Merge pull request #46321 from jmolmo/issue_55605

mgr/rook: fix error when trying to get the list of nfs services

Reviewed-by: John Mulligan <jmulligan@redhat.com>
3 years agoMerge pull request #46961 from tcoldrick-bb/balancer-weekday
Yuri Weinstein [Mon, 19 Sep 2022 14:15:29 +0000 (07:15 -0700)]
Merge pull request #46961 from tcoldrick-bb/balancer-weekday

mgr/balancer: Disallow 7 as {begin,end}_weekday and 2400 as {begin,end}_time

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #46091 from pdvian/wip-bluestore-error
Yuri Weinstein [Mon, 19 Sep 2022 14:15:01 +0000 (07:15 -0700)]
Merge pull request #46091 from pdvian/wip-bluestore-error

os/bluestore: Log error to stderr if fail to decode label

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
3 years agoMerge pull request #43791 from rzarzynski/wip-net-perfctrs-for-encrypted-traffic
Yuri Weinstein [Mon, 19 Sep 2022 14:14:02 +0000 (07:14 -0700)]
Merge pull request #43791 from rzarzynski/wip-net-perfctrs-for-encrypted-traffic

auth, msg/async: add perf counters for encrypted traffic

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
3 years agoMerge pull request #48166 from rhcs-dashboard/fix-empty-pid-path-case
Avan [Mon, 19 Sep 2022 13:17:15 +0000 (18:47 +0530)]
Merge pull request #48166 from rhcs-dashboard/fix-empty-pid-path-case

exporter: don't skip loop if pid path is empty

Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoexporter: don't skip loop if pid path is empty
Avan Thakkar [Mon, 19 Sep 2022 10:30:20 +0000 (16:00 +0530)]
exporter: don't skip loop if pid path is empty

Signed-off-by: Avan Thakkar <athakkar@redhat.com>
Fixes issue when pid file config comes empty from config dump which prevents to add metrics. Also get process metrics only if
pid_path isn't empty.

3 years agoMerge pull request #47986 from lmgdlmgd/patch-3
Igor Fedotov [Mon, 19 Sep 2022 08:54:30 +0000 (11:54 +0300)]
Merge pull request #47986 from lmgdlmgd/patch-3

osd: set per_pool_stats true when OSD has no PG

Reviewed-by: Igor Fedotov <ifedotov@croit.io>
3 years agoMerge pull request #48139 from ktdreyer/win-simplify-openssl
Lucian Petrut [Mon, 19 Sep 2022 07:59:33 +0000 (10:59 +0300)]
Merge pull request #48139 from ktdreyer/win-simplify-openssl

win32: skip installing openssl man pages

3 years agomgr/dashboard: use service call instead of form component
Nizamudeen A [Fri, 16 Sep 2022 07:20:26 +0000 (12:50 +0530)]
mgr/dashboard: use service call instead of form component

For creating the silence from the notification sidebar, instead of using
the silence form which will require initializing the whole component on
the landing page, we can just call the prometheus service and pass on
the required data to the service call. This will fix showing the
`Prometheus not configured` error everytime we visit the landing page when
the prometheus is not configured

Fixes: https://tracker.ceph.com/issues/57576
Signed-off-by: Nizamudeen A <nia@redhat.com>
3 years agoceph_dedup_tool: fix threshold comparison
myoungwon oh [Sat, 17 Sep 2022 07:11:49 +0000 (16:11 +0900)]
ceph_dedup_tool: fix threshold comparison

If threadhold count is 2, existing code always returns true
even though reference count is 1 actually  because it additionally
adds one via ++.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
3 years agoceph_dedup_tool: make SampleDedupWorkerThread::chunk_size const
Samuel Just [Sat, 17 Sep 2022 03:15:39 +0000 (20:15 -0700)]
ceph_dedup_tool: make SampleDedupWorkerThread::chunk_size const

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoceph_dedup_tool: remove unused SampleDedupWorkerThread::duplicable_chunks
Samuel Just [Sat, 17 Sep 2022 03:15:15 +0000 (20:15 -0700)]
ceph_dedup_tool: remove unused SampleDedupWorkerThread::duplicable_chunks

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoceph_dedup_tool: minor code simplifications
Samuel Just [Sat, 17 Sep 2022 03:00:24 +0000 (03:00 +0000)]
ceph_dedup_tool: minor code simplifications

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoceph_dedup_tool: remove unimplemented mark_non_dedup method signature
Samuel Just [Sat, 17 Sep 2022 03:11:53 +0000 (20:11 -0700)]
ceph_dedup_tool: remove unimplemented mark_non_dedup method signature

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoceph_dedup_tool: fix log lines to use std::endl, update object skip message
Samuel Just [Sat, 17 Sep 2022 03:08:54 +0000 (20:08 -0700)]
ceph_dedup_tool: fix log lines to use std::endl, update object skip message

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoceph_dedup_tool: remove unused SampleDedupWorkerThread::do_object_dedup
Samuel Just [Sat, 17 Sep 2022 03:08:09 +0000 (20:08 -0700)]
ceph_dedup_tool: remove unused SampleDedupWorkerThread::do_object_dedup

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoceph_dedup_tool: make SampleDedupGlobal::sampling_rate const
Samuel Just [Sat, 17 Sep 2022 02:57:07 +0000 (02:57 +0000)]
ceph_dedup_tool: make SampleDedupGlobal::sampling_rate const

Clarifies why it doesn't need to be protected by a lock.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoceph_dedup_tool: remove unused SampleDedupGlobal::object_dedup_threshold
Samuel Just [Sat, 17 Sep 2022 02:56:21 +0000 (02:56 +0000)]
ceph_dedup_tool: remove unused SampleDedupGlobal::object_dedup_threshold

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoceph_dedup_tool: fix unnecessarily complicated bool returns
Samuel Just [Sat, 17 Sep 2022 02:47:23 +0000 (02:47 +0000)]
ceph_dedup_tool: fix unnecessarily complicated bool returns

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoceph_dedup_tool: SampleDedupWorkerThread can simply inherit from Thread
Samuel Just [Sat, 17 Sep 2022 02:42:49 +0000 (02:42 +0000)]
ceph_dedup_tool: SampleDedupWorkerThread can simply inherit from Thread

SampleDedupWorkerThread didn't actually use any of the facilities on
CrawlerThread and indeed left several of them uninitialized.

Also allows us to remove the CrawlerThread constructor which left
several members uninitialized.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoqa: remove unused values in deduplication.py
myoungwon oh [Sat, 17 Sep 2022 02:22:56 +0000 (11:22 +0900)]
qa: remove unused values in deduplication.py

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
3 years agoqa: add validation stage for deduplication.py
Sungmin Lee [Tue, 23 Aug 2022 04:51:31 +0000 (13:51 +0900)]
qa: add validation stage for deduplication.py

To validate sample-dedup actually works, validate() runs
separated thread from sample-dedup and verifies
two following things.
1. check sample-dedup starts properly.
2. check references of all the chunk objects' in chunk tier
   exists in designated base pool.
This routune repeats for max_valication_cnt times while
sample-dedup is running. If it doesn't raise any fail while the loop,
we can pretend sample-dedup works accurately.
If not, assert() will stop this test.

In case that a reference of chunk object doesn't exist in base pool,
validate() gives a second chance after repairing it (chunk-repair op)
to deal with false-positive reference inconsistency.

Signed-off-by: Sungmin Lee <sung_min.lee@samsung.com>
3 years agosrc/tools/ceph_dedup_tool: fixes to daemonize the process correctly
myoungwon oh [Thu, 25 Aug 2022 05:51:36 +0000 (14:51 +0900)]
src/tools/ceph_dedup_tool: fixes to daemonize the process correctly

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
3 years agoqa: add deduplication test under RGW workload (s3)
myoungwon oh [Wed, 11 May 2022 12:21:05 +0000 (21:21 +0900)]
qa: add deduplication test under RGW workload (s3)

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
3 years agoMerge pull request #48157 from zdover23/wip-doc-2022-09-18-rados-network-config-promp...
zdover23 [Sat, 17 Sep 2022 22:11:48 +0000 (08:11 +1000)]
Merge pull request #48157 from zdover23/wip-doc-2022-09-18-rados-network-config-prompt-correction

doc/rados: update prompts in network-config-ref

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agodoc/rados: update prompts in network-config-ref
Zac Dover [Sat, 17 Sep 2022 20:59:47 +0000 (06:59 +1000)]
doc/rados: update prompts in network-config-ref

This PR adds unselectable prompts to network-config-
ref.rst.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agorgw: remove unused AioThrottles in rgw_op.cc
Casey Bodley [Sat, 17 Sep 2022 15:42:09 +0000 (11:42 -0400)]
rgw: remove unused AioThrottles in rgw_op.cc

throttle creation was moved to RadosStore::get_atomic_writer(),
RadosStore::get_append_writer(), and RadosMultipartUpload::get_writer()

these instances in rgw_op.cc were unused

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #47849 from torchiaf/fix/37327
Nizamudeen A [Fri, 16 Sep 2022 15:19:48 +0000 (20:49 +0530)]
Merge pull request #47849 from torchiaf/fix/37327

mgr/dashboard: Add details to the modal which displays the `safe-to-d…

Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
3 years agoMerge pull request #47958 from rhcs-dashboard/edit-host-labels-fix
Nizamudeen A [Fri, 16 Sep 2022 15:17:50 +0000 (20:47 +0530)]
Merge pull request #47958 from rhcs-dashboard/edit-host-labels-fix

mgr/dashboard: fix Expected to find element: `cd-modal .badge but never found it

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
3 years agowin32: skip installing openssl man pages
Ken Dreyer [Fri, 9 Sep 2022 17:38:29 +0000 (17:38 +0000)]
win32: skip installing openssl man pages

This speeds up the build a bit and makes the logs easier to read.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
3 years agoMerge pull request #45148 from guits/revert-ceph-crash-changes
Adam King [Fri, 16 Sep 2022 14:27:10 +0000 (10:27 -0400)]
Merge pull request #45148 from guits/revert-ceph-crash-changes

Revert "src/ceph-crash.in: remove unused frame in handler()"

Reviewed-by: Teoman ONAY <tonay@redhat.com>
3 years agoMerge pull request #47965 from cbodley/wip-rgw-drain-cb-capture-error
Casey Bodley [Fri, 16 Sep 2022 14:02:14 +0000 (10:02 -0400)]
Merge pull request #47965 from cbodley/wip-rgw-drain-cb-capture-error

Revert "rgw: add coroutine drain callback capture_error()"

Reviewed-by: Soumya Koduri <skoduri@redhat.com>
Reviewed-by: Shilpa Jagannath <smanjara@redhat.com>
3 years agomgr/dashboard: Add details to the modal which displays the `safe-to-destroy` result
Francesco Torchia [Fri, 26 Aug 2022 15:39:43 +0000 (17:39 +0200)]
mgr/dashboard: Add details to the modal which displays the `safe-to-destroy` result

- Add warnings type information in the case of the OSDs are not safe to destroy
- Add info type information in the case of the OSDs are safe to destroy

Fixes: https://tracker.ceph.com/issues/37327
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
3 years agoMerge pull request #47878 from xxhdx1985126/wip-pin_set-cpu
Yingxin [Fri, 16 Sep 2022 01:41:20 +0000 (09:41 +0800)]
Merge pull request #47878 from xxhdx1985126/wip-pin_set-cpu

crimson/os/seastore/btree: reduce the avg number of queries of pin sets' parent/child lookup

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agobuild: Remove -fno-new-ttp-matchingg flag
Adam C. Emerson [Fri, 16 Sep 2022 00:05:57 +0000 (20:05 -0400)]
build: Remove -fno-new-ttp-matchingg flag

This was added in the upgrade to C++17. It's no longer needed since
fixing Clang compatibility got rid of non-conforming templates.

It's no longer needed and getting rid of it is a (minor) quality of
life enhancement since it gets rid of a spurious error when using
Clang based build tools (language server, etc.) while compiling with
GCC.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
3 years agoMerge pull request #47090 from lxbsz/wip-56553
Venky Shankar [Thu, 15 Sep 2022 16:15:00 +0000 (21:45 +0530)]
Merge pull request #47090 from lxbsz/wip-56553

client: do not uninline data for read

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
3 years agoMerge pull request #48037 from guits/fix_57085
Guillaume Abrioux [Thu, 15 Sep 2022 14:58:14 +0000 (16:58 +0200)]
Merge pull request #48037 from guits/fix_57085

ceph-volume: fix inventory with device arg

3 years agocrimson/osd: initialize PGAdvanceMap::from inside critical section
Radoslaw Zarzynski [Thu, 15 Sep 2022 14:42:05 +0000 (14:42 +0000)]
crimson/osd: initialize PGAdvanceMap::from inside critical section

Fixes: https://tracker.ceph.com/issues/57542
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoMerge pull request #48117 from guits/fix-cv-func-test-filestore-create
Guillaume Abrioux [Thu, 15 Sep 2022 14:43:11 +0000 (16:43 +0200)]
Merge pull request #48117 from guits/fix-cv-func-test-filestore-create

ceph-volume/tests: fix lvm centos8-filestore-create job

3 years agoMerge pull request #48054 from yuvalif/wip-yuval-fix-56572
Casey Bodley [Thu, 15 Sep 2022 14:04:39 +0000 (10:04 -0400)]
Merge pull request #48054 from yuvalif/wip-yuval-fix-56572

tests: remove pubsub tests from multisite

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kalpesh Pandya <kapandya@redhat.com>
3 years agoMerge pull request #47516 from nmshelke/fix-56632
Venky Shankar [Thu, 15 Sep 2022 09:25:26 +0000 (14:55 +0530)]
Merge pull request #47516 from nmshelke/fix-56632

qa: ignore disk quota exceeded failure in test

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
3 years agoceph-volume/tests: fix lvm centos8-filestore-create job
Guillaume Abrioux [Thu, 15 Sep 2022 09:07:33 +0000 (11:07 +0200)]
ceph-volume/tests: fix lvm centos8-filestore-create job

/dev/vdc1 can't be zapped if it still holds an lv mapper.
let's use --destroy in the lvm zap command in order to remove
the held lv mapper before zapping the partition and recreate the partition after.

Fixes: https://tracker.ceph.com/issues/57553
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>