]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/log
ceph-ci.git
3 years agomgr/dashboard: use ListPaginator in rbd pagination
Pere Diaz Bou [Mon, 12 Sep 2022 08:21:41 +0000 (10:21 +0200)]
mgr/dashboard: use ListPaginator in rbd pagination

Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agomgr/dashboard: paginate services
Pere Diaz Bou [Thu, 8 Sep 2022 18:49:42 +0000 (20:49 +0200)]
mgr/dashboard: paginate services

Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #48282 from ljflores/wip-telemetry-perf-fix
Yuri Weinstein [Wed, 28 Sep 2022 22:37:11 +0000 (15:37 -0700)]
Merge pull request #48282 from ljflores/wip-telemetry-perf-fix

mgr/telemetry: handle daemons with complex ids

Reviewed-by: Yaarit Hatuka <yaarithatuka@gmail.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
3 years agomgr/telemetry: handle daemons with complex ids
Laura Flores [Wed, 28 Sep 2022 17:17:17 +0000 (17:17 +0000)]
mgr/telemetry: handle daemons with complex ids

Treating daemons as `<daemon_type>.x` caused a crash
in the Telemetry module since the current method does not cover a case
where a daemon id is more complex, i.e. `<daemon_type>.x.y`.

When we parse the daemon type and daemon id, we should
split it into a maximum of two pieces rather than splitting
it by every `.` character. Specifying `1` in the Python
.split() function will limit the split to a maximum of two items.

Fixes: https://tracker.ceph.com/issues/57700
Signed-off-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #45379 from tobias-urdin/bump-openstack-versions
Casey Bodley [Wed, 28 Sep 2022 14:51:38 +0000 (10:51 -0400)]
Merge pull request #45379 from tobias-urdin/bump-openstack-versions

qa/suites/rgw: fix and update tempest and barbican tests

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #48267 from rhcs-dashboard/nfs-exports-fs-permission-error
Pedro Gonzalez Gomez [Wed, 28 Sep 2022 07:26:17 +0000 (09:26 +0200)]
Merge pull request #48267 from rhcs-dashboard/nfs-exports-fs-permission-error

mgr/dashboard: handle the cephfs permission issue in nfs exports

Reviewed-by: Pedro González Gómez <pegonzal@redhat.com>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
3 years agoMerge pull request #48114 from athanatos/sjust/wip-crimson-multicore-for-review
Samuel Just [Tue, 27 Sep 2022 23:03:23 +0000 (16:03 -0700)]
Merge pull request #48114 from athanatos/sjust/wip-crimson-multicore-for-review

crimson: multicore support for pgs in crimson-osd

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agomgr/dashboard: handle the cephfs permission issue in nfs exports
Nizamudeen A [Tue, 27 Sep 2022 06:12:05 +0000 (11:42 +0530)]
mgr/dashboard: handle the cephfs permission issue in nfs exports

Fixes: https://tracker.ceph.com/issues/48686
Signed-off-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #48256 from dang/wip-dang-zipper-admin-api
Daniel Gryniewicz [Tue, 27 Sep 2022 16:48:11 +0000 (12:48 -0400)]
Merge pull request #48256 from dang/wip-dang-zipper-admin-api

RGW - Re-do admin API split

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #48092 from rosinL/fix-57537
Igor Fedotov [Tue, 27 Sep 2022 16:17:41 +0000 (19:17 +0300)]
Merge pull request #48092 from rosinL/fix-57537

os/bluestore: use direct write in BlueStore::_write_bdev_label

Reviewed-by: Igor Fedotov <ifedotov@croit.io>
3 years agoMerge pull request #47876 from torchiaf/fix/43116-2
Nizamudeen A [Tue, 27 Sep 2022 05:29:40 +0000 (10:59 +0530)]
Merge pull request #47876 from torchiaf/fix/43116-2

mgr/dashboard: Add text to empty life expectancy column

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
3 years agocrimson/osd/main: call OSD::stop()
Samuel Just [Thu, 22 Sep 2022 21:49:10 +0000 (14:49 -0700)]
crimson/osd/main: call OSD::stop()

Signed-off-by: Samuel Just <sjust@redhat.com>
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 agoMerge PR #48147 into main
Ken Dreyer [Mon, 26 Sep 2022 18:44:51 +0000 (14:44 -0400)]
Merge PR #48147 into main

* refs/pull/48147/head:
win32: install wget when building on ubuntu
win32: install deps with DEBIAN_FRONTEND=noninteractive

Reviewed-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
Reviewed-by: Justin Caratzas <jcaratza@redhat.com>
3 years agoMerge PR #47153 into main
Ken Dreyer [Mon, 26 Sep 2022 17:44:36 +0000 (13:44 -0400)]
Merge PR #47153 into main

* refs/pull/47153/head:
build: fix atomic linking with LTO on s390x

Reviewed-by: Justin Caratzas <jcaratza@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agoRGW - Re-do admin API split
Daniel Gryniewicz [Mon, 26 Sep 2022 16:03:39 +0000 (12:03 -0400)]
RGW - Re-do admin API split

The mgr instantiation was re-added in the build re-org.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoMerge pull request #48197 from phlogistonjohn/jjm-cephadm-cov-podman
Adam King [Mon, 26 Sep 2022 15:43:47 +0000 (11:43 -0400)]
Merge pull request #48197 from phlogistonjohn/jjm-cephadm-cov-podman

cephadm: add test cases for container engine classes

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agoMerge pull request #47131 from aaryanporwal/vrt-doc-update
Ernesto Puerta [Mon, 26 Sep 2022 11:22:11 +0000 (13:22 +0200)]
Merge pull request #47131 from aaryanporwal/vrt-doc-update

doc/dev: mgr/dashboard: Replace broken link

Reviewed-by: Anthony D Atri <anthony.datri@gmail.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoqa/tasks/barbican: dont copy policy files
Tobias Urdin [Thu, 22 Sep 2022 19:26:14 +0000 (19:26 +0000)]
qa/tasks/barbican: dont copy policy files

In newer versions the policies is inside the code
so we don't need these files for default policy
anymore.

Signed-off-by: Tobias Urdin <tobias.urdin@binero.se>
3 years agoMerge pull request #48217 from cyx1231st/wip-crimson-buffer
Yingxin [Mon, 26 Sep 2022 01:23:35 +0000 (09:23 +0800)]
Merge pull request #48217 from cyx1231st/wip-crimson-buffer

crimson: create buffer from temporary_buffer with foreign-ptr by default

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #48235 from zdover23/wip-doc-2022-09-25-dev-guide-basic-workflow...
zdover23 [Sun, 25 Sep 2022 04:36:11 +0000 (14:36 +1000)]
Merge pull request #48235 from zdover23/wip-doc-2022-09-25-dev-guide-basic-workflow-fork-note-formatting

doc/dev: improve presentation of note (git remote)

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agodoc/dev: improve presentation of note (git remote)
Zac Dover [Sun, 25 Sep 2022 03:41:35 +0000 (13:41 +1000)]
doc/dev: improve presentation of note (git remote)

This commit corrects the formatting of a note that previously
did not make console output and commands as clear as this commit
makes them.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #47767 from batrick/i57249
Venky Shankar [Fri, 23 Sep 2022 10:30:25 +0000 (16:00 +0530)]
Merge pull request #47767 from batrick/i57249

mds: correct storage of multiple damaged dentries in DamageTable

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
3 years agoMerge pull request #48148 from ktdreyer/win-remove-curl
Lucian Petrut [Fri, 23 Sep 2022 07:43:44 +0000 (10:43 +0300)]
Merge pull request #48148 from ktdreyer/win-remove-curl

win32: remove libcurl

3 years agoMerge pull request #47080 from dparmar18/wip-dparmar-MDS-56522
Venky Shankar [Fri, 23 Sep 2022 07:15:40 +0000 (12:45 +0530)]
Merge pull request #47080 from dparmar18/wip-dparmar-MDS-56522

mds/Server: Do not abort MDS on unknown messages

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
3 years agoqa/suites/rgw: blocklist object expiry tempest tests
Tobias Urdin [Wed, 21 Sep 2022 20:00:51 +0000 (20:00 +0000)]
qa/suites/rgw: blocklist object expiry tempest tests

Signed-off-by: Tobias Urdin <tobias.urdin@binero.se>
3 years agoqa/tasks/barbican: sync barbican db and secret stores
Tobias Urdin [Wed, 21 Sep 2022 09:24:34 +0000 (09:24 +0000)]
qa/tasks/barbican: sync barbican db and secret stores

Signed-off-by: Tobias Urdin <tobias.urdin@binero.se>
3 years agoqa/tasks/barbican: copy barbican policy json or yaml
Tobias Urdin [Tue, 20 Sep 2022 15:32:48 +0000 (15:32 +0000)]
qa/tasks/barbican: copy barbican policy json or yaml

Signed-off-by: Tobias Urdin <tobias.urdin@binero.se>
3 years agoqa/suites/rgw/tempest: bump openstack versions
Tobias Urdin [Mon, 14 Mar 2022 15:05:08 +0000 (15:05 +0000)]
qa/suites/rgw/tempest: bump openstack versions

Update the versions used for OpenStack Keystone,
Barbican and Tempest projects.

Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
3 years agocrimson: create buffer from temporary_buffer with foreign-ptr by default
Yingxin Cheng [Fri, 23 Sep 2022 05:59:01 +0000 (13:59 +0800)]
crimson: create buffer from temporary_buffer with foreign-ptr by default

temporary_buffer is internally shareable with a thread-unsafe
ref-counter, we need to make sure it is released in the same core where
it is constructed.

Users that need the extra efficiency can swap to create_local as needed.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agoMerge pull request #47265 from s0nea/wip-dashboard-redirect-fqdn
Nizamudeen A [Fri, 23 Sep 2022 05:29:24 +0000 (10:59 +0530)]
Merge pull request #47265 from s0nea/wip-dashboard-redirect-fqdn

mgr/dashboard: add option to resolve ip addr

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: Anthony D Atri <anthony.datri@gmail.com>
Reviewed-by: Ernesto Puerta <epuertat@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 agoMerge pull request #48198 from mgfritch/cephadm-pytest-patch-logger
Adam King [Thu, 22 Sep 2022 14:43:44 +0000 (10:43 -0400)]
Merge pull request #48198 from mgfritch/cephadm-pytest-patch-logger

cephadm: patch the cephadm.logger class

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
3 years agoMerge pull request #48095 from ivancich/wip-unify-logic
Ali Maredia [Thu, 22 Sep 2022 14:03:45 +0000 (10:03 -0400)]
Merge pull request #48095 from ivancich/wip-unify-logic

rgw: fix bool/int logic error when calling get_obj_head_ioctx

3 years agoMerge pull request #47756 from dparmar18/wip-dparmar-cephadm-after-revert
Adam King [Thu, 22 Sep 2022 13:54:06 +0000 (09:54 -0400)]
Merge pull request #47756 from dparmar18/wip-dparmar-cephadm-after-revert

pybind/mgr/cephadm/upgrade: allow upgrades without reducing max_mds

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoMerge pull request #48118 from s0nea/container-version-fix
Adam King [Thu, 22 Sep 2022 13:50:31 +0000 (09:50 -0400)]
Merge pull request #48118 from s0nea/container-version-fix

cephadm: consider stdout to get container version

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agoMerge pull request #48120 from mgfritch/cephadm-haproxy-nonlocal-bind
Adam King [Thu, 22 Sep 2022 13:47:29 +0000 (09:47 -0400)]
Merge pull request #48120 from mgfritch/cephadm-haproxy-nonlocal-bind

cephadm: add `ip_nonlocal_bind` to haproxy deployment

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #48184 from SUSE/wip-fix-57609
Adam King [Thu, 22 Sep 2022 13:46:11 +0000 (09:46 -0400)]
Merge pull request #48184 from SUSE/wip-fix-57609

python-common: Add 'KB' to supported suffixes in SizeMatcher

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
3 years agoMerge pull request #48200 from guits/fix-57627
Guillaume Abrioux [Thu, 22 Sep 2022 13:28:35 +0000 (15:28 +0200)]
Merge pull request #48200 from guits/fix-57627

ceph-volume: fix regression in activate

3 years agoMerge pull request #48185 from zhscn/wip-dtype
Yingxin [Thu, 22 Sep 2022 07:03:12 +0000 (15:03 +0800)]
Merge pull request #48185 from zhscn/wip-dtype

crimson/os/seastore: introduce backend_type_t

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore: make device according to device type
Zhang Song [Tue, 20 Sep 2022 06:09:57 +0000 (14:09 +0800)]
crimson/os/seastore: make device according to device type

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
3 years agocrimson/os/seastore: introduce get_backend_type to Device
Zhang Song [Mon, 19 Sep 2022 08:33:10 +0000 (16:33 +0800)]
crimson/os/seastore: introduce get_backend_type to Device

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
3 years agocrimson/os/seastore: make can_delay_allocation always return true
Zhang Song [Thu, 22 Sep 2022 05:42:30 +0000 (13:42 +0800)]
crimson/os/seastore: make can_delay_allocation always return true

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
3 years agocrimson/os/seastore: rename about device_type_t and journal_type_t
Zhang Song [Mon, 19 Sep 2022 08:09:48 +0000 (16:09 +0800)]
crimson/os/seastore: rename about device_type_t and journal_type_t

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
3 years agocrimson/os/seastore: introduce backend_type_t
Zhang Song [Mon, 19 Sep 2022 07:43:53 +0000 (15:43 +0800)]
crimson/os/seastore: introduce backend_type_t

Signed-off-by: Zhang Song <zhangsong325@gmail.com>
3 years agoMerge pull request #48012 from Huber-ming/slave_requestPayment
J. Eric Ivancich [Thu, 22 Sep 2022 01:28:33 +0000 (21:28 -0400)]
Merge pull request #48012 from Huber-ming/slave_requestPayment

rgw: set requestPayment in slave zone

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #48021 from soumyakoduri/wip-multisite-crash
J. Eric Ivancich [Wed, 21 Sep 2022 22:37:30 +0000 (18:37 -0400)]
Merge pull request #48021 from soumyakoduri/wip-multisite-crash

rgw: Drain async_processor request queue during shutdown

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
3 years agoceph-volume: fix regression in activate
Guillaume Abrioux [Wed, 21 Sep 2022 20:25:04 +0000 (22:25 +0200)]
ceph-volume: fix regression in activate

bea9f4b643c introduced a regression that makes the activate process
take a very long time to complete.
`_get_bluestore_info()` which calls `ceph-bluestore-tool` binary via
subprocess is called in an exponential way while this is not needed.

Fixes: https://tracker.ceph.com/issues/57627
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
3 years agocephadm: add test cases for container engine classes
John Mulligan [Tue, 20 Sep 2022 19:53:08 +0000 (15:53 -0400)]
cephadm: add test cases for container engine classes

Fixes: https://tracker.ceph.com/issues/57621
Signed-off-by: John Mulligan <jmulligan@redhat.com>
3 years agocephadm: denote any mocked params as internal
Michael Fritch [Tue, 20 Sep 2022 23:29:07 +0000 (17:29 -0600)]
cephadm: denote any mocked params as internal

prefix the mock patch params with a `_` char for consistancy with other
tests cases within the suite

Fixes: Fixes: https://tracker.ceph.com/issues/57621
Signed-off-by: Michael Fritch <mfritch@suse.com>
3 years agocephadm: patch the `cephadm.logger` class
Michael Fritch [Tue, 20 Sep 2022 22:20:15 +0000 (16:20 -0600)]
cephadm: patch the `cephadm.logger` class

Patch the logger class instead of globally mocking the class from within
the loaded source file. This was inadvertently allowing for the entire
test run to succeed, while a single run of a test case would fail due to
the missing mock.

For example:
    `tox -e py3 tests/test_cephadm.py::TestShell::test_fsid`

Fixes: Fixes: https://tracker.ceph.com/issues/57621
Signed-off-by: Michael Fritch <mfritch@suse.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 agoMerge pull request #47766 from cbodley/wip-qa-rgw-tempest-meta
Casey Bodley [Wed, 21 Sep 2022 16:45:32 +0000 (12:45 -0400)]
Merge pull request #47766 from cbodley/wip-qa-rgw-tempest-meta

qa/rgw/tempest: blocklist failing tests for removal of container metadata

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoMerge pull request #48193 from rhcs-dashboard/fix-stoi
Avan [Wed, 21 Sep 2022 16:19:18 +0000 (21:49 +0530)]
Merge pull request #48193 from rhcs-dashboard/fix-stoi

exporter: avoid stoi for empty pid_str

Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #47900 from Matan-B/wip-matanb-librados-20
Laura Flores [Wed, 21 Sep 2022 15:06:12 +0000 (10:06 -0500)]
Merge pull request #47900 from Matan-B/wip-matanb-librados-20

examples/librados: Compile with c++20 on Ubuntu

3 years agocephadm: add `ip_nonlocal_bind` to haproxy deployment
Michael Fritch [Thu, 15 Sep 2022 04:22:04 +0000 (22:22 -0600)]
cephadm: add `ip_nonlocal_bind` to haproxy deployment

standalone haproxy deployments require the
`net.ipv4.ip_nonlocal_bind` sysctl setting

Fixes: https://tracker.ceph.com/issues/57563
Signed-off-by: Michael Fritch <mfritch@suse.com>
3 years agoMerge pull request #48191 from phlogistonjohn/jjm-cephadm-tox-coverage
Adam King [Wed, 21 Sep 2022 12:41:55 +0000 (08:41 -0400)]
Merge pull request #48191 from phlogistonjohn/jjm-cephadm-tox-coverage

cephadm: add a tox env for generating a coverage report

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agomgr/dashboard: Add text to empty life expectancy column
Francesco Torchia [Tue, 30 Aug 2022 14:46:03 +0000 (16:46 +0200)]
mgr/dashboard: Add text to empty life expectancy column

- Add life_expectancy_enabled field to /api/osd/{svc_id}/devices
- Add new value 'n/a' for 'Life Expectancy' column

Fixes: https://tracker.ceph.com/issues/43116
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
3 years agoMerge pull request #47494 from rhcs-dashboard/pgs-repaired
Pedro Gonzalez Gomez [Wed, 21 Sep 2022 12:10:13 +0000 (14:10 +0200)]
Merge pull request #47494 from rhcs-dashboard/pgs-repaired

mgr/prometheus: expose repaired pgs metrics

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #48190 from ronen-fr/wip-rf-replica-init
Ronen Friedman [Wed, 21 Sep 2022 10:38:39 +0000 (13:38 +0300)]
Merge pull request #48190 from ronen-fr/wip-rf-replica-init

osd/scrub: make on_replica_init() idempotent again

Reviewed-by: Aishwarya Mathuria <amathuri@redhat.com>
3 years agoexporter: avoid stoi for empty pid_str
Avan Thakkar [Tue, 20 Sep 2022 20:30:31 +0000 (02:00 +0530)]
exporter: avoid stoi for empty pid_str

Fixes: https://tracker.ceph.com/issues/57619
Signed-off-by: Avan Thakkar <athakkar@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 agocephadm: add a tox env for generating a coverage report
John Mulligan [Mon, 19 Sep 2022 19:11:27 +0000 (15:11 -0400)]
cephadm: add a tox env for generating a coverage report

This "dormant" target is here for developers to run locally and generate
a HTML coverage report to review.

Signed-off-by: John Mulligan <jmulligan@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>