]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
16 months agoclient: check mds down status bofore getting mds_gid_t from mdsmap 52258/head
yite.gu [Mon, 29 Jan 2024 10:26:20 +0000 (18:26 +0800)]
client: check mds down status bofore getting mds_gid_t from mdsmap

Get mds_gid_t from up of MDSMap, will cause to core dump if target
mds_rank_t does not exist up map:

from: src/mds/MDSMap.h
  const auto& get_info(mds_rank_t m) const {
    return mds_info.at(up.at(m));
  }

reproduct:
1. ceph fs fail <fs_name>
2. curl -X GET "example.com:8080/api/cephfs/1/clients" ...
up.at(m) will cause to core dump.

Fixes: https://tracker.ceph.com/issues/61844
Signed-off-by: Yite Gu <yitegu0@gmail.com>
17 months agomgr/dashboard: allow sending back error status code fetching clients fails
Dhairya Parmar [Wed, 17 Jan 2024 12:42:50 +0000 (18:12 +0530)]
mgr/dashboard: allow sending back error status code fetching clients fails

Fixes: https://tracker.ceph.com/issues/64089
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit 564dba38c49864e71958ddcd970856b834e9c6b7)

17 months agoMerge pull request #55330 from baum/centos9-install-build-deps
baum [Fri, 2 Feb 2024 07:54:28 +0000 (09:54 +0200)]
Merge pull request #55330 from baum/centos9-install-build-deps

🧹build dependencies: centos9

17 months agoMerge PR #55233 into main
Venky Shankar [Fri, 2 Feb 2024 05:05:00 +0000 (10:35 +0530)]
Merge PR #55233 into main

* refs/pull/55233/head:
qa: use centos 9.stream for cephfs stock kernel testing

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
17 months agoMerge pull request #53901 from cbodley/wip-qa-container-distros-s
Casey Bodley [Thu, 1 Feb 2024 19:40:57 +0000 (19:40 +0000)]
Merge pull request #53901 from cbodley/wip-qa-container-distros-s

qa/distros: bump container host distros from centos 8->9

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
17 months agoMerge pull request #55413 from petrutlucian94/flipped_tid
Ilya Dryomov [Thu, 1 Feb 2024 19:29:58 +0000 (20:29 +0100)]
Merge pull request #55413 from petrutlucian94/flipped_tid

msg: update MOSDOp() to use ceph_tid_t instead of long

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
17 months agomsg: update MOSDOp() to use ceph_tid_t instead of long 55413/head
Lucian Petrut [Thu, 1 Feb 2024 14:40:03 +0000 (14:40 +0000)]
msg: update MOSDOp() to use ceph_tid_t instead of long

The MOSDOp constructor receives the the transaction ID as a long
instead of ceph_tid_t.

The issue is that "long" uses 32b on Windows instead of 64 bits,
so it flips after about 2 billion requests. At that point, the OSD
replies are dropped because of transaction ID mismatches.

We'll solve the issue by using the correct type for the transaction
id, specifically ceph_tid_t.

Fixes: https://tracker.ceph.com/issues/64291
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
17 months agoMerge pull request #55373 from ivoalmeida/snapshot-schedule-form-directory-typeahead
Ivo Almeida [Thu, 1 Feb 2024 13:48:17 +0000 (10:48 -0300)]
Merge pull request #55373 from ivoalmeida/snapshot-schedule-form-directory-typeahead

Snapshot schedule form directory typeahead

Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agoMerge pull request #55393 from rkachach/fix_issue_64266
Redouane Kachach [Thu, 1 Feb 2024 11:35:39 +0000 (12:35 +0100)]
Merge pull request #55393 from rkachach/fix_issue_64266

mgr/rook: adding deployment to ceph image built for rook e2e testing

17 months agomgr/rook: adding deployment to ceph image built for rook e2e testing 55393/head
Redouane Kachach [Wed, 31 Jan 2024 09:48:35 +0000 (10:48 +0100)]
mgr/rook: adding deployment to ceph image built for rook e2e testing
Fixes: https://tracker.ceph.com/issues/64266
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
17 months agoMerge pull request #47723 from mdw-at-linuxbox/wip-master-tempurl
Casey Bodley [Wed, 31 Jan 2024 22:15:33 +0000 (22:15 +0000)]
Merge pull request #47723 from mdw-at-linuxbox/wip-master-tempurl

rgw: swift: tempurl fixes for ceph

Reviewed-by: Casey Bodley <cbodley@redhat.com>
17 months agoMerge pull request #55403 from cbodley/wip-doc-rgw-topic-attrs
Anthony D'Atri [Wed, 31 Jan 2024 20:08:26 +0000 (15:08 -0500)]
Merge pull request #55403 from cbodley/wip-doc-rgw-topic-attrs

doc/rgw: fix Attributes index in CreateTopic example

17 months agoMerge pull request #54742 from guits/node-proxy
Adam King [Wed, 31 Jan 2024 18:28:50 +0000 (13:28 -0500)]
Merge pull request #54742 from guits/node-proxy

orch: implement hardware monitoring

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
17 months agoMerge pull request #55397 from jagombar/fixInvalidSnapId2
Ilya Dryomov [Wed, 31 Jan 2024 17:32:54 +0000 (18:32 +0100)]
Merge pull request #55397 from jagombar/fixInvalidSnapId2

librbd: return ENOENT from Snapshot::get_timestamp for nonexistent snap_id

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
17 months agodoc/rgw: fix Attributes index in CreateTopic example 55403/head
Casey Bodley [Wed, 31 Jan 2024 17:31:02 +0000 (12:31 -0500)]
doc/rgw: fix Attributes index in CreateTopic example

Signed-off-by: Casey Bodley <cbodley@redhat.com>
17 months agomgr/dashboard: added dir search to snap schdl form 55373/head
Ivo Almeida [Mon, 29 Jan 2024 10:58:43 +0000 (10:58 +0000)]
mgr/dashboard: added dir search to snap schdl form

Fixes: https://tracker.ceph.com/issues/64246
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
17 months agoMerge pull request #54781 from rhcs-dashboard/nvmeof-integration
Nizamudeen A [Wed, 31 Jan 2024 16:30:59 +0000 (22:00 +0530)]
Merge pull request #54781 from rhcs-dashboard/nvmeof-integration

mgr/dashboard: implement APIs for nvmeof management

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
17 months agoMerge pull request #54900 from ivoalmeida/snapshot-schedule-create
Nizamudeen A [Wed, 31 Jan 2024 15:57:22 +0000 (21:27 +0530)]
Merge pull request #54900 from ivoalmeida/snapshot-schedule-create

added snap schedule form

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agoMerge pull request #55340 from ronen-fr/wip-rf-reserver2
Ronen Friedman [Wed, 31 Jan 2024 15:56:43 +0000 (17:56 +0200)]
Merge pull request #55340 from ronen-fr/wip-rf-reserver2

osd/scrub: use an AsyncReserver to handle scrub reservations on the replica side

Reviewed-by: Samuel Just <sjust@redhat.com>-
17 months agoMerge pull request #55198 from JoshSalomon/balancer-perf
Josh Salomon [Wed, 31 Jan 2024 15:26:48 +0000 (17:26 +0200)]
Merge pull request #55198 from JoshSalomon/balancer-perf

osd: Read balancer for devices with different sizes (performance)

17 months agodoc: add node-proxy documentation 54742/head
Guillaume Abrioux [Wed, 31 Jan 2024 14:23:44 +0000 (15:23 +0100)]
doc: add node-proxy documentation

This commit adds some documentation about the
'hardware inventory / monitoring' feature (node-proxy agent).

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
17 months agoMerge pull request #55396 from zdover23/wip-doc-2024-01-31-arch-monitors
Anthony D'Atri [Wed, 31 Jan 2024 13:49:55 +0000 (08:49 -0500)]
Merge pull request #55396 from zdover23/wip-doc-2024-01-31-arch-monitors

doc/architecture: improve some paragraphs

17 months agoMerge pull request #55383 from ceph/cpp-redis-cxx-standard
Ali Maredia [Wed, 31 Jan 2024 13:36:42 +0000 (08:36 -0500)]
Merge pull request #55383 from ceph/cpp-redis-cxx-standard

cpp_redis: update to a version with the CMAKE_CXX_STANDARD fixed

Reviewed-by: Ali Maredia <amaredia@redhat.com>
17 months agolibrbd: return ENOENT from Snapshot::get_timestamp for nonexistent snap_id 55397/head
jagombar [Tue, 30 Jan 2024 18:25:53 +0000 (18:25 +0000)]
librbd: return ENOENT from Snapshot::get_timestamp for nonexistent snap_id

Fixes: https://tracker.ceph.com/issues/47287
Signed-off-by: John Agombar <agombar@uk.ibm.com>
17 months agodoc/architecture: improve some paragraphs 55396/head
Zac Dover [Tue, 30 Jan 2024 09:51:53 +0000 (19:51 +1000)]
doc/architecture: improve some paragraphs

Improve paragraphs under the heading "The Ceph Storage Cluster". Remove
a sentence that was pleonastic in its context in the paragraph.

Signed-off-by: Zac Dover <zac.dover@proton.me>
17 months agomgr/dashboard: added snap schedule form 54900/head
Ivo Almeida [Wed, 13 Dec 2023 01:08:52 +0000 (01:08 +0000)]
mgr/dashboard: added snap schedule form

Fixes: https://tracker.ceph.com/issues/63827
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
17 months agoMerge pull request #55305 from Matan-B/wip-matanb-crimson-do_delete_work
Matan Breizman [Wed, 31 Jan 2024 09:14:02 +0000 (11:14 +0200)]
Merge pull request #55305 from Matan-B/wip-matanb-crimson-do_delete_work

crimson/osd/pg: do_delete_work use claim_and_reset

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Xuehan Xu <xuxuehan@qianxin.com>
17 months agocpp_redis: update to a version with the CMAKE_CXX_STANDARD fixed 55383/head
Leonid Usov [Tue, 30 Jan 2024 22:55:45 +0000 (00:55 +0200)]
cpp_redis: update to a version with the CMAKE_CXX_STANDARD fixed

This updates the cpp_redis submodule to a version
which contains https://github.com/ceph/cpp_redis/pull/5

Signed-off-by: Leonid Usov <leonid.usov@ibm.com>
17 months agotest: fix test_scrub_sched following recent scrub changes 55340/head
Ronen Friedman [Sun, 28 Jan 2024 16:48:18 +0000 (10:48 -0600)]
test: fix test_scrub_sched following recent scrub changes

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
17 months agoosd/scrub: restore 'dump_scrub_reservations' functionality
Ronen Friedman [Sun, 28 Jan 2024 15:35:07 +0000 (09:35 -0600)]
osd/scrub: restore 'dump_scrub_reservations' functionality

As ScrubResources is no longer involved in remote reservations, some
of the data listed by 'dump_scrub_reservations' is now collected by
OsdScrub itself (prior to this change, OsdScrub just forwarded the
request to ScrubResources).

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
17 months agoosd/scrub: control reservation queueing using a config option
Ronen Friedman [Sun, 28 Jan 2024 11:45:50 +0000 (05:45 -0600)]
osd/scrub: control reservation queueing using a config option

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
17 months agoosd/scrub: directly manage remote reservations in the FSM
Ronen Friedman [Thu, 25 Jan 2024 19:05:01 +0000 (13:05 -0600)]
osd/scrub: directly manage remote reservations in the FSM

The FSM now interacts with the scrub_reserver directly.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
17 months agovstart: add nvmeof_gw to the vstart script 54781/head
Nizamudeen A [Thu, 25 Jan 2024 07:43:41 +0000 (13:13 +0530)]
vstart: add nvmeof_gw to the vstart script

so that it can be later used by the dashboard to configure the nvmeof
through UI

and create rbd pool in UI

Fixes: https://tracker.ceph.com/issues/64201
Signed-off-by: Nizamudeen A <nia@redhat.com>
17 months agoMerge pull request #55379 from ljflores/wip-revert-labler-changes
Laura Flores [Wed, 31 Jan 2024 03:43:35 +0000 (21:43 -0600)]
Merge pull request #55379 from ljflores/wip-revert-labler-changes

17 months agotools: add 'osd-size-aware' mode to osdmaptool 55198/head
Laura Flores [Tue, 30 Jan 2024 22:06:03 +0000 (22:06 +0000)]
tools: add 'osd-size-aware' mode to osdmaptool

Sample command:
`osdmaptool om --read out.txt --read-pool cephfs.a.data --osd-size-aware`

Signed-off-by: Laura Flores <lflores@ibm.com>
17 months agomgr/balancer: add new keys to balancer mgr module
Laura Flores [Tue, 30 Jan 2024 20:38:40 +0000 (20:38 +0000)]
mgr/balancer: add new keys to balancer mgr module

Signed-off-by: Laura Flores <lflores@ibm.com>
17 months agoMerge pull request #55372 from zdover23/wip-doc-2024-01-30-architecture-typo
zdover23 [Wed, 31 Jan 2024 00:48:35 +0000 (10:48 +1000)]
Merge pull request #55372 from zdover23/wip-doc-2024-01-30-architecture-typo

doc/architecture.rst - fix typo

Reviewed-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
17 months agoosd: unit tests for read balance osd size aware score
Josh Salomon [Wed, 24 Jan 2024 12:46:07 +0000 (14:46 +0200)]
osd: unit tests for read balance osd size aware score

Signed-off-by: Josh Salomon <41079547+JoshSalomon@users.noreply.github.com>
17 months agoosd: Add score for read balance osd size aware policy
Josh Salomon [Wed, 24 Jan 2024 12:40:53 +0000 (14:40 +0200)]
osd: Add score for read balance osd size aware policy

This score works for pools in which the read_ratio
value is set.
Current limitations:
- This mechanism ignores osd read affinty
  - There is a plan adding support for read affinity 0
    in the next version.
- This mechanism works only when all PGs are full
- If read_ration is not set - the existing mechanism (named
  fair score) is used.

Signed-off-by: Josh Salomon <41079547+JoshSalomon@users.noreply.github.com>
Signed-off-by: Josh Salomon <41079547+JoshSalomon@users.noreply.github.com>
17 months agoosd: Unit tests for read balancer on OSDs with different sizes
Josh Salomon [Tue, 16 Jan 2024 18:45:32 +0000 (20:45 +0200)]
osd: Unit tests for read balancer on OSDs with different sizes

Test cases for the read balancer which takes osd sizes into account.
Some balancing code refactoring and reorg for code that is used in
multiple tests

Signed-off-by: Josh Salomon <41079547+JoshSalomon@users.noreply.github.com>
17 months agoosd: Read balancer for OSDs with different sizes
Josh Salomon [Tue, 16 Jan 2024 18:33:47 +0000 (20:33 +0200)]
osd: Read balancer for OSDs with different sizes

This commit adds calculation for desired primary distribution which
takes into account the osd size. This way smaller OSDs can take more
read operations (by adding more primaries) and the larger OSDs take less
primaries and the load of the cluater can increase. (This feature offset
a bit the weakest link in the chain effect under some conditions). In
order to calculate the loads correctly there is a need to know the
read/write ratio for the pool, and this commit assumes the read_ratio
parameter is available for the pool.

Signed-off-by: Josh Salomon <41079547+JoshSalomon@users.noreply.github.com>
17 months agoosd: Add 'read_ratio' pool parameterr
Josh Salomon [Tue, 26 Dec 2023 08:41:18 +0000 (10:41 +0200)]
osd: Add 'read_ratio' pool parameterr

This parameter is used for better read balancing with non identical
devices.
- This parameter is controlled using the commands 'ceph osd pool set/get'
- This parameter is applicable only for replicated pools
- Valid values are integers in the range [0..100] and represent the
  percentage of read IOs out of all IOs in the pool
  - Value of 0 unsets this parameter and the value will be the default
    value (this is the generic behavior of the command 'ceph osd pool
    set'
  - default value can be set by config parameter
    `osd_pool_default_read_ratio`

Signed-off-by: Josh Salomon <41079547+JoshSalomon@users.noreply.github.com>
17 months ago.github/workflows: revert version bump to labler action 55379/head
Laura Flores [Tue, 30 Jan 2024 17:32:20 +0000 (11:32 -0600)]
.github/workflows: revert version bump to labler action

Signed-off-by: Laura Flores <lflores@ibm.com>
17 months agoMerge pull request #55364 from ljflores/wip-pr-triage
Laura Flores [Tue, 30 Jan 2024 17:13:30 +0000 (11:13 -0600)]
Merge pull request #55364 from ljflores/wip-pr-triage

.github/workflows: disable sync-labels in pr-triage

17 months agoagent/node-proxy: fix wrong host name used in data endpoint
Guillaume Abrioux [Tue, 30 Jan 2024 16:38:31 +0000 (16:38 +0000)]
agent/node-proxy: fix wrong host name used in data endpoint

data['cephx']['name'] will return something like:

node-proxy.hostname123

the prefix "node-proxy." has the be removed otherwise there will be
a mismatch between what is actually expected.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
17 months agomgr/cephadm: update node-proxy unit tests
Guillaume Abrioux [Thu, 25 Jan 2024 14:34:26 +0000 (14:34 +0000)]
mgr/cephadm: update node-proxy unit tests

The recent migration to a separate daemon implied
some changes which have broken these tests.
This commit fixes them.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
17 months agomgr/cephadm: add a new config option 'oob_default_addr'
Guillaume Abrioux [Wed, 24 Jan 2024 15:08:14 +0000 (15:08 +0000)]
mgr/cephadm: add a new config option 'oob_default_addr'

So there's a default value (169.254.1.1) which is the default
address for the 'OS to iDrac pass-through' interface.
Given that node-proxy will reach the RedFish API through this interface,
we can make users avoid to pass that addr when providing the host spec
at bootstrap time.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
17 months agoqa/distros: add supported-container-hosts for cephadm and upgrade suites 53901/head
Casey Bodley [Thu, 25 Jan 2024 17:41:39 +0000 (12:41 -0500)]
qa/distros: add supported-container-hosts for cephadm and upgrade suites

Signed-off-by: Casey Bodley <cbodley@redhat.com>
17 months agoMerge pull request #53610 from Patty8122/documentation-update-fsck-flagdeep
Adam Kupczyk [Tue, 30 Jan 2024 14:43:49 +0000 (15:43 +0100)]
Merge pull request #53610 from Patty8122/documentation-update-fsck-flagdeep

doc/man/8: Add valid options in ceph-bluestore-tool.rst

17 months agoMerge PR #54515 into main
Venky Shankar [Tue, 30 Jan 2024 14:10:35 +0000 (19:40 +0530)]
Merge PR #54515 into main

* refs/pull/54515/head:
qa: get_global_id() returns a string (global_id)
qa: correct usage of DEBUGFS_META_DIR in dedent

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
17 months agoMerge pull request #55313 from rkachach/fix_issue_64183
Redouane Kachach [Tue, 30 Jan 2024 13:30:56 +0000 (14:30 +0100)]
Merge pull request #55313 from rkachach/fix_issue_64183

mgr/rook: adding metrics monitoring e2e testing

17 months agodoc/architecture.rst - fix typo 55372/head
Zac Dover [Tue, 30 Jan 2024 12:24:11 +0000 (22:24 +1000)]
doc/architecture.rst - fix typo

s/requies/requires

Signed-off-by: Zac Dover <zac.dover@proton.me>
17 months agoMerge pull request #55284 from rhcs-dashboard/cephfs-clone-create
Ivo Almeida [Tue, 30 Jan 2024 11:30:51 +0000 (08:30 -0300)]
Merge pull request #55284 from rhcs-dashboard/cephfs-clone-create

mgr/dashboard: create cephfs snapshot clone

17 months agomgr/dashboard: adapt to new nvmeof APIs
Nizamudeen A [Fri, 12 Jan 2024 08:41:18 +0000 (14:11 +0530)]
mgr/dashboard: adapt to new nvmeof APIs

Fixes: https://tracker.ceph.com/issues/64201
Signed-off-by: Nizamudeen A <nia@redhat.com>
17 months agomgr/dashboard: introduce APIs for NvmeOf management
avanthakkar [Mon, 11 Dec 2023 13:20:54 +0000 (18:50 +0530)]
mgr/dashboard: introduce APIs for NvmeOf management

Fixes: https://tracker.ceph.com/issues/64201
Signed-off-by: avanthakkar <avanjohn@gmail.com>
17 months agomgr/dashboard: gRPC client for nvmeof communication
Nizamudeen A [Tue, 5 Dec 2023 10:16:12 +0000 (15:46 +0530)]
mgr/dashboard: gRPC client for nvmeof communication

Created a gRPC client by utilising the protobuf file available in nvmeof
repo

Copied the file to this repo and generated its output.

Fixes: https://tracker.ceph.com/issues/64201
Signed-off-by: Nizamudeen A <nia@redhat.com>
17 months agomgr/cephadm: configure the dashboard gateways
Nizamudeen A [Tue, 5 Dec 2023 10:11:01 +0000 (15:41 +0530)]
mgr/cephadm: configure the dashboard gateways

cephadm configures the nvmeof gateways and add the gateways to a config
store which dashboard will later on fetch to make the grpc calls.

Fixes: https://tracker.ceph.com/issues/64201
Signed-off-by: Nizamudeen A <nia@redhat.com>
17 months agoMerge pull request #55351 from rosinL/wip-fix-64122
Rongqi Sun [Tue, 30 Jan 2024 09:31:52 +0000 (17:31 +0800)]
Merge pull request #55351 from rosinL/wip-fix-64122

script/run-make: install lvm2 for make check cephadm test

17 months agoMerge pull request #55228 from rhcs-dashboard/fix-64081-main
Nizamudeen A [Tue, 30 Jan 2024 09:09:02 +0000 (14:39 +0530)]
Merge pull request #55228 from rhcs-dashboard/fix-64081-main

mgr/dashboard: Export rgw multisite status via the API

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agoosd/scrub: remove remote reservation code from ScrubResources
Ronen Friedman [Sun, 28 Jan 2024 11:02:31 +0000 (05:02 -0600)]
osd/scrub: remove remote reservation code from ScrubResources

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
17 months agocommon: allow AsyncReserver requests with no callbacks
Ronen Friedman [Tue, 30 Jan 2024 08:55:13 +0000 (02:55 -0600)]
common: allow AsyncReserver requests with no callbacks

As no callbacks are needed for request_reservation_or_fail(),
the synchronous request API.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
17 months agoosd/scrub: add a general data-carrying event type to the FSM
Ronen Friedman [Sun, 28 Jan 2024 07:25:38 +0000 (01:25 -0600)]
osd/scrub: add a general data-carrying event type to the FSM

Based on Sam's Crimson FSM's 'value-event'.

Co-authored-by: Sam Just <sjust@redhat.com>
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
17 months agoosd/scrub: define the scrub_reserver to track remote reservations
Ronen Friedman [Sun, 28 Jan 2024 07:42:09 +0000 (01:42 -0600)]
osd/scrub: define the scrub_reserver to track remote reservations

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
17 months agoMerge PR #52652 into main
Venky Shankar [Tue, 30 Jan 2024 07:40:19 +0000 (13:10 +0530)]
Merge PR #52652 into main

* refs/pull/52652/head:
PendingReleaseNotes: add note about new mdlog trimming configurations
mds: drive mdlog trimming via a separate thread
mds: allow runtime modification of mdlog trimming configuration
mds: remove a bunch of heuristics from MDLog::trim()
mds: add mdlog trimming threshold and decay counter

Reviewed-by: Leonid Usov <leonid.usov@ibm.com>
17 months agoMerge PR #55184 into main
Venky Shankar [Tue, 30 Jan 2024 07:28:48 +0000 (12:58 +0530)]
Merge PR #55184 into main

* refs/pull/55184/head:
qa: remove redundant test test_volumes.TestRenameCmd.test_rename_when_fs_is_online

Reviewed-by: Christopher Hoffman <choffman@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
17 months agoMerge PR #55346 into main
Venky Shankar [Tue, 30 Jan 2024 06:56:32 +0000 (12:26 +0530)]
Merge PR #55346 into main

* refs/pull/55346/head:
qa: remove error string checks and check w/ return value

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
17 months agoMerge pull request #55349 from afreen23/fix-64112
Nizamudeen A [Tue, 30 Jan 2024 05:48:39 +0000 (11:18 +0530)]
Merge pull request #55349 from afreen23/fix-64112

mgr/dashboard: Create subvol of same name in different group

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agoPendingReleaseNotes: add note about new mdlog trimming configurations 52652/head
Venky Shankar [Tue, 26 Sep 2023 12:22:03 +0000 (08:22 -0400)]
PendingReleaseNotes: add note about new mdlog trimming configurations

Signed-off-by: Venky Shankar <vshankar@redhat.com>
17 months agomds: drive mdlog trimming via a separate thread
Venky Shankar [Tue, 8 Aug 2023 05:48:45 +0000 (01:48 -0400)]
mds: drive mdlog trimming via a separate thread

Signed-off-by: Venky Shankar <vshankar@redhat.com>
17 months agomds: allow runtime modification of mdlog trimming configuration
Venky Shankar [Mon, 24 Jul 2023 04:34:47 +0000 (00:34 -0400)]
mds: allow runtime modification of mdlog trimming configuration

Signed-off-by: Venky Shankar <vshankar@redhat.com>
17 months agomds: remove a bunch of heuristics from MDLog::trim()
Venky Shankar [Mon, 31 Jul 2023 05:59:24 +0000 (01:59 -0400)]
mds: remove a bunch of heuristics from MDLog::trim()

These were probbaly introduced to workaround some sort of
resource overusage by the MDS during trimming, but now it
looks like they are not really neeeded, especially if we
introduce a dedicated thread for log trimming.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
17 months agomds: add mdlog trimming threshold and decay counter
Venky Shankar [Mon, 24 Jul 2023 04:33:47 +0000 (00:33 -0400)]
mds: add mdlog trimming threshold and decay counter

Fixes: http://tracker.ceph.com/issues/61908
Signed-off-by: Venky Shankar <vshankar@redhat.com>
17 months agoqa: remove error string checks and check w/ return value 55346/head
Venky Shankar [Thu, 25 Jan 2024 09:32:33 +0000 (15:02 +0530)]
qa: remove error string checks and check w/ return value

I ran into this failure once #54972 was merged. The test is validating
the error string returned due to the failed mount. There aren't any
return value checks - which is a _more_ important check. Generic error
string checks will fail once a (error) string is changed (typo, etc..).

Signed-off-by: Venky Shankar <vshankar@redhat.com>
17 months agoMerge PR #54808 into main
Venky Shankar [Tue, 30 Jan 2024 04:33:57 +0000 (10:03 +0530)]
Merge PR #54808 into main

* refs/pull/54808/head:
client: fix copying bufferlist to iovec structures in Client::_read
src/test: test sync call providing nullptr as ctx to async api

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>
17 months agoMerge PR #54031 into main
Venky Shankar [Tue, 30 Jan 2024 04:29:57 +0000 (09:59 +0530)]
Merge PR #54031 into main

* refs/pull/54031/head:
qa: add test to mangle lost+found directory object and ensure safety
qa: run scrub before mounting client and validations

Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com>
17 months agoMerge pull request #55241 from rhcs-dashboard/remove-bucket-policy
Nizamudeen A [Tue, 30 Jan 2024 04:12:19 +0000 (09:42 +0530)]
Merge pull request #55241 from rhcs-dashboard/remove-bucket-policy

mgr/dashboard: Remove bucket policy

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agomgr/dashboard: Export rgw multisite status via the API 55228/head
Aashish Sharma [Thu, 18 Jan 2024 07:58:46 +0000 (13:28 +0530)]
mgr/dashboard: Export rgw multisite status via the API

Fixes: https://tracker.ceph.com/issues/64081
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
17 months ago.github/workflows: disable sync-labels in pr-triage 55364/head
Laura Flores [Mon, 29 Jan 2024 23:40:13 +0000 (17:40 -0600)]
.github/workflows: disable sync-labels in pr-triage

`sync-labels` is defined as "Whether or not to remove labels
when matching files are reverted or no longer changed by the PR".

We should disable this in case someone manually adds a label,
so the label doesn't get removed.

Signed-off-by: Laura Flores <lflores@ibm.com>
17 months agoMerge pull request #55326 from ceph/dependabot-github_actions-actions-labeler-5.0.0
Laura Flores [Mon, 29 Jan 2024 18:50:47 +0000 (12:50 -0600)]
Merge pull request #55326 from ceph/dependabot-github_actions-actions-labeler-5.0.0

.github: Bump actions/labeler from 4.0.2 to 5.0.0

17 months agomgr/dashboard: remove bucket policy 55241/head
Pedro Gonzalez Gomez [Fri, 19 Jan 2024 05:40:05 +0000 (06:40 +0100)]
mgr/dashboard: remove bucket policy
add a button on the bucket form to clear the bucket policy

Fixes: https://tracker.ceph.com/issues/64096
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
17 months agoMerge pull request #55062 from rhcs-dashboard/set-bucket-policy
Pedro Gonzalez Gomez [Mon, 29 Jan 2024 17:39:45 +0000 (18:39 +0100)]
Merge pull request #55062 from rhcs-dashboard/set-bucket-policy

mgr/dashboard: set bucket policies

Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agoMerge pull request #54853 from ivoalmeida/snapshot-schedule-module
Nizamudeen A [Mon, 29 Jan 2024 17:30:36 +0000 (23:00 +0530)]
Merge pull request #54853 from ivoalmeida/snapshot-schedule-module

mgr/dashboard: snap schedule module detect/enable

Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Ankush Behl <cloudbehl@gmail.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
17 months agoMerge pull request #55255 from phlogistonjohn/jjm-mypy-updates
Adam King [Mon, 29 Jan 2024 16:27:34 +0000 (11:27 -0500)]
Merge pull request #55255 from phlogistonjohn/jjm-mypy-updates

Various mypy related updates

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
17 months agoMerge pull request #55329 from cbodley/wip-64189
Casey Bodley [Mon, 29 Jan 2024 16:11:52 +0000 (16:11 +0000)]
Merge pull request #55329 from cbodley/wip-64189

rgw/rest: fix url decode of post params for iam/sts/sns

Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
17 months agomgr/dashboard: set bucket policies 55062/head
Pedro Gonzalez Gomez [Thu, 4 Jan 2024 22:16:10 +0000 (23:16 +0100)]
mgr/dashboard: set bucket policies

- Adds support to set bucket policies through the Dashboard.
- Rename rgw bucket policy from 'policy' to 'bucket policy' and tab 'Permissions' to 'Policies'
- Fix: hide Tags when none are present on bucket list details and sets bucket form dirty after deleting a tag
- Added service to manage the formatting of a textArea that works with json

Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
Fixes: https://tracker.ceph.com/issues/63942
17 months agoMerge PR #54446 into main
Venky Shankar [Mon, 29 Jan 2024 13:24:44 +0000 (18:54 +0530)]
Merge PR #54446 into main

* refs/pull/54446/head:
qa: bump up scrub status command timeout

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
17 months agoMerge PR #54683 into main
Venky Shankar [Mon, 29 Jan 2024 13:22:16 +0000 (18:52 +0530)]
Merge PR #54683 into main

* refs/pull/54683/head:
qa/tasks/cephfs/test_misc: switch duration to timeout
qa/tasks/cephfs/test_misc: fix the incorrect comments

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
17 months agoMerge PR #53578 into main
Venky Shankar [Mon, 29 Jan 2024 13:15:58 +0000 (18:45 +0530)]
Merge PR #53578 into main

* refs/pull/53578/head:
mds: adhere to mds_health_summarize_threshold config when reporting laggy clients

Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
17 months agoMerge PR #53177 into main
Venky Shankar [Mon, 29 Jan 2024 13:14:28 +0000 (18:44 +0530)]
Merge PR #53177 into main

* refs/pull/53177/head:
qa: test nfs export apply -i failure returns pseudo path in output JSON
mgr/nfs: include pseudo in JSON output when nfs export apply -i fails

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: John Mulligan <jmulligan@redhat.com>
17 months agoMerge PR #53734 into main
Venky Shankar [Mon, 29 Jan 2024 13:12:36 +0000 (18:42 +0530)]
Merge PR #53734 into main

* refs/pull/53734/head:
qa: refactor client upgrade yamls and other minor touchups
qa/upgrade/nofs: upgrade pacific->reef
qa/upgrade/upgraded_client: upgrade nautilus->pacific and pacific->reef

Reviewed-by: Venky Shankar <vshankar@redhat.com>
17 months agoMerge PR #55309 into main
Venky Shankar [Mon, 29 Jan 2024 13:11:23 +0000 (18:41 +0530)]
Merge PR #55309 into main

* refs/pull/55309/head:
qa: `fs volume rename` requires `fs fail` and `refuse_client_session` set

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
17 months agomgr/rook: adding metrics monitoring e2e testing 55313/head
Redouane Kachach [Thu, 25 Jan 2024 12:57:09 +0000 (13:57 +0100)]
mgr/rook: adding metrics monitoring e2e testing
Fixes: https://tracker.ceph.com/issues/64183
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
17 months agoMerge PR #54451 into main
Venky Shankar [Mon, 29 Jan 2024 12:50:35 +0000 (18:20 +0530)]
Merge PR #54451 into main

* refs/pull/54451/head:
common/admin_socket: improvements to the RaiseHook

Reviewed-by: Venky Shankar <vshankar@redhat.com>
17 months agocrimson/osd/pg_map: add assertion 55305/head
Matan Breizman [Mon, 29 Jan 2024 09:57:45 +0000 (09:57 +0000)]
crimson/osd/pg_map: add assertion

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
17 months agocrimson/osd/pg_map: increase verbosity
Matan Breizman [Mon, 29 Jan 2024 09:50:28 +0000 (09:50 +0000)]
crimson/osd/pg_map: increase verbosity

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
17 months agoscript/run-make: install lvm2 for make check cephadm test 55351/head
luo rixin [Mon, 29 Jan 2024 11:25:00 +0000 (19:25 +0800)]
script/run-make: install lvm2 for make check cephadm test

The make check test `run-tox-cephdam` reports error:
```
        if errors:
>           raise Error('\nERROR: '.join(errors))
E           cephadmlib.exceptions.Error: lvcreate binary does not appear to be installed

cephadm.py:4434: Error
```
So let's installing lvm2 for make check cephadm test.

Fixes: https://tracker.ceph.com/issues/64122
Signed-off-by: luo rixin <luorixin@huawei.com>
17 months agomgr/dashboard: snap schedule module detect/eneable 54853/head
Ivo Almeida [Sun, 10 Dec 2023 17:44:33 +0000 (17:44 +0000)]
mgr/dashboard: snap schedule module detect/eneable

Fixes: https://tracker.ceph.com/issues/63768
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
17 months agoosd: improve MOSDScrubReserver log formatting
Ronen Friedman [Sun, 28 Jan 2024 07:04:41 +0000 (01:04 -0600)]
osd: improve MOSDScrubReserver log formatting

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
17 months agocommon: add some missing include files to AsyncReserver.h
Ronen Friedman [Sat, 27 Jan 2024 13:07:47 +0000 (07:07 -0600)]
common: add some missing include files to AsyncReserver.h

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
17 months agoMerge pull request #55131 from ronen-fr/wip-rf-reserver
Ronen Friedman [Mon, 29 Jan 2024 10:43:09 +0000 (12:43 +0200)]
Merge pull request #55131 from ronen-fr/wip-rf-reserver

osd/scrub: partial implementation of scrub reserver
Reviewed-by: Samuel Just <sjust@redhat.com>-