]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agorgw: moving data members of RGWRole into RGWRoleInfo.
Pritha Srivastava [Mon, 22 Nov 2021 06:54:50 +0000 (12:24 +0530)]
rgw: moving data members of RGWRole into RGWRoleInfo.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw: shifting back be_handler and module initialization to svc role
Pritha Srivastava [Fri, 19 Nov 2021 06:48:47 +0000 (12:18 +0530)]
rgw: shifting back be_handler and module initialization to svc role
rados.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw: using put() method of metadata backend to ensure that role
Pritha Srivastava [Wed, 17 Nov 2021 15:19:56 +0000 (20:49 +0530)]
rgw: using put() method of metadata backend to ensure that role
metadata is written to md log in method store_info().

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw: cleanup.
Pritha Srivastava [Wed, 27 Oct 2021 09:12:46 +0000 (14:42 +0530)]
rgw: cleanup.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw: code for handling mtime, object tracker and attrs
Pritha Srivastava [Wed, 27 Oct 2021 05:42:12 +0000 (11:12 +0530)]
rgw: code for handling mtime, object tracker and attrs
needed for RGWRoleMetadataHandler.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw: removing do_start() method from
Pritha Srivastava [Tue, 26 Oct 2021 06:21:35 +0000 (11:51 +0530)]
rgw: removing do_start() method from
RGWRoleMetadataHandler and class RGWSI_Role_Module.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agorgw: role metadata handler invokes RGWRole interfaces.
Pritha Srivastava [Mon, 18 Oct 2021 05:53:17 +0000 (11:23 +0530)]
rgw: role metadata handler invokes RGWRole interfaces.
Removing references to RGW services and RGW Ctl.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
3 years agosvc: role: use the stat system obj call for checking presence
Abhishek Lekshmanan [Mon, 2 Nov 2020 13:46:00 +0000 (14:46 +0100)]
svc: role: use the stat system obj call for checking presence

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: tools: introduce `rgw_stat_system_obj`
Abhishek Lekshmanan [Mon, 2 Nov 2020 13:43:43 +0000 (14:43 +0100)]
rgw: tools: introduce `rgw_stat_system_obj`

Similar to the read and write system_obj interfaces this function stats an
object and returns the mtime & attrs if set.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role/svc cosmetic comments & ws cleanup
Abhishek Lekshmanan [Mon, 26 Oct 2020 17:36:25 +0000 (18:36 +0100)]
rgw: role/svc cosmetic comments & ws cleanup

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role: use the list roles from role svc classes
Abhishek Lekshmanan [Mon, 26 Oct 2020 14:53:51 +0000 (15:53 +0100)]
rgw: role: use the list roles from role svc classes

This keeps the implementation of storage seperate from the RGWRole class. Also
drop the get_roles_by_path_prefix static function as this is currently
implemented in the backend and can be directly accessed from role ctl classes.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agosvc: role: make string consts static
Abhishek Lekshmanan [Mon, 26 Oct 2020 14:52:54 +0000 (15:52 +0100)]
svc: role: make string consts static

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agosvc: role: introduce list roles by path
Abhishek Lekshmanan [Mon, 26 Oct 2020 13:24:22 +0000 (14:24 +0100)]
svc: role: introduce list roles by path

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role: use svc->delete_role for deleting
Abhishek Lekshmanan [Wed, 21 Oct 2020 13:06:50 +0000 (15:06 +0200)]
rgw: role: use svc->delete_role for deleting

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role: use a err msg string in RoleInfo class for logging
Abhishek Lekshmanan [Wed, 21 Oct 2020 12:31:28 +0000 (14:31 +0200)]
rgw: role: use a err msg string in RoleInfo class for logging

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw_role: remove unrelated functions
Abhishek Lekshmanan [Wed, 21 Oct 2020 11:46:00 +0000 (13:46 +0200)]
rgw_role: remove unrelated functions

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agosvc: role: improve delete functions & introduce delete_role
Abhishek Lekshmanan [Wed, 21 Oct 2020 11:45:23 +0000 (13:45 +0200)]
svc: role: improve delete functions & introduce delete_role

This deletes all the role related objects

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agosvc: roles: set objv_tracker to null for sysobj calls
Abhishek Lekshmanan [Wed, 21 Oct 2020 10:45:44 +0000 (12:45 +0200)]
svc: roles: set objv_tracker to null for sysobj calls

Since these aren't tracked via MDLog and merely ancillary objects

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role: move populate from svc->role
Abhishek Lekshmanan [Wed, 21 Oct 2020 10:45:09 +0000 (12:45 +0200)]
rgw: role: move populate from svc->role

As populate creates uuids etc which are only needed in direct calls to rgw_admin

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role: use create_role from svc
Abhishek Lekshmanan [Wed, 21 Oct 2020 08:32:42 +0000 (10:32 +0200)]
rgw: role: use create_role from svc

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agosvc: role: introduce create role
Pritha Srivastava [Tue, 5 Oct 2021 09:18:05 +0000 (14:48 +0530)]
svc: role: introduce create role

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role: json fixes
Abhishek Lekshmanan [Tue, 20 Oct 2020 06:24:05 +0000 (08:24 +0200)]
rgw: role: json fixes

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role: use ot
Abhishek Lekshmanan [Tue, 20 Oct 2020 06:23:49 +0000 (08:23 +0200)]
rgw: role: use ot

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agosvc: role: move prefix to Module
Abhishek Lekshmanan [Tue, 20 Oct 2020 06:23:09 +0000 (08:23 +0200)]
svc: role: move prefix to Module

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role fixes
Abhishek Lekshmanan [Thu, 15 Oct 2020 15:52:20 +0000 (17:52 +0200)]
rgw: role fixes

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role: backend handler definition
Abhishek Lekshmanan [Thu, 15 Oct 2020 13:55:45 +0000 (15:55 +0200)]
rgw: role: backend handler definition

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role: md handler get_meta_obj defn
Abhishek Lekshmanan [Thu, 15 Oct 2020 13:54:53 +0000 (15:54 +0200)]
rgw: role: md handler get_meta_obj defn

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role: define md handler for roles
Abhishek Lekshmanan [Tue, 6 Oct 2020 16:15:04 +0000 (18:15 +0200)]
rgw: role: define md handler for roles

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role: add RGWRoleMetadataObject
Abhishek Lekshmanan [Tue, 6 Oct 2020 14:11:36 +0000 (16:11 +0200)]
rgw: role: add RGWRoleMetadataObject

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: metadata: provide a constructor for RGWMetadataObject
Abhishek Lekshmanan [Tue, 6 Oct 2020 14:11:11 +0000 (16:11 +0200)]
rgw: metadata: provide a constructor for RGWMetadataObject

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role: drop rados_ctl and use only role_ctl
Abhishek Lekshmanan [Wed, 14 Oct 2020 19:40:08 +0000 (21:40 +0200)]
rgw: role: drop rados_ctl and use only role_ctl

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: finish role class impl
Abhishek Lekshmanan [Wed, 14 Oct 2020 16:56:08 +0000 (18:56 +0200)]
rgw: finish role class impl

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role: modify store_name & path
Abhishek Lekshmanan [Tue, 13 Oct 2020 12:42:42 +0000 (14:42 +0200)]
rgw: role: modify store_name & path

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: base role md handler decl
Abhishek Lekshmanan [Thu, 1 Oct 2020 12:42:32 +0000 (14:42 +0200)]
rgw: base role md handler decl

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agosvc: introduce role_rados service
Abhishek Lekshmanan [Thu, 1 Oct 2020 08:59:08 +0000 (10:59 +0200)]
svc: introduce role_rados service

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: start using role_ctl
Abhishek Lekshmanan [Thu, 1 Oct 2020 08:58:54 +0000 (10:58 +0200)]
rgw: start using role_ctl

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: svc: role_rados: stub out get_path
Abhishek Lekshmanan [Thu, 1 Oct 2020 08:58:06 +0000 (10:58 +0200)]
rgw: svc: role_rados:  stub out get_path

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw_role: define RGWRoleCtl
Abhishek Lekshmanan [Wed, 30 Sep 2020 13:50:39 +0000 (15:50 +0200)]
rgw_role: define RGWRoleCtl

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: role: basic ctl class defn
Abhishek Lekshmanan [Mon, 28 Sep 2020 15:01:15 +0000 (17:01 +0200)]
rgw: role: basic ctl class defn

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: split RGWRole into an Info Class containing members
Abhishek Lekshmanan [Thu, 24 Sep 2020 10:58:22 +0000 (12:58 +0200)]
rgw: split RGWRole into an Info Class containing members

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: implement delete oids
Abhishek Lekshmanan [Tue, 1 Sep 2020 15:19:10 +0000 (17:19 +0200)]
rgw: implement delete oids

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agosvc: role: implement read/write role path & name
Abhishek Lekshmanan [Tue, 1 Sep 2020 15:10:50 +0000 (17:10 +0200)]
svc: role: implement read/write role path & name

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agosvc: role: implement get/put/delete Roles
Abhishek Lekshmanan [Mon, 31 Aug 2020 14:57:49 +0000 (16:57 +0200)]
svc: role: implement get/put/delete Roles

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agosvc: role: fix real_time put param
Abhishek Lekshmanan [Mon, 31 Aug 2020 14:57:25 +0000 (16:57 +0200)]
svc: role: fix real_time put param

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: RGWRole: add a missing RGWRados forward declaration
Abhishek Lekshmanan [Mon, 31 Aug 2020 14:56:55 +0000 (16:56 +0200)]
rgw: RGWRole: add a missing RGWRados forward declaration

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: introduce RGW Role Rados service
Abhishek Lekshmanan [Mon, 31 Aug 2020 12:46:45 +0000 (14:46 +0200)]
rgw: introduce RGW Role Rados service

This handles the metadata for RGW Roles with the RADOS backend

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agorgw: svc: introduce a service for rgw_role
Abhishek Lekshmanan [Wed, 26 Aug 2020 11:55:26 +0000 (13:55 +0200)]
rgw: svc: introduce a service for rgw_role

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
3 years agoMerge pull request #46165 from rishabh-d-dave/qa-omit-sudo
Venky Shankar [Mon, 6 Jun 2022 05:53:11 +0000 (11:23 +0530)]
Merge pull request #46165 from rishabh-d-dave/qa-omit-sudo

qa/cephfs: set omit_sudo False when sudo is set to True

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
Reviewed-by: Nikhilkumar Shelke <nshelke@redhat.com>
3 years agoMerge pull request #46168 from rishabh-d-dave/fix-caps-helper
Venky Shankar [Mon, 6 Jun 2022 05:50:58 +0000 (11:20 +0530)]
Merge pull request #46168 from rishabh-d-dave/fix-caps-helper

qa/cephfs: fix minor bug in caps_helper.py's run_mon_cap_tests()

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
3 years agoMerge pull request #40434 from rishabh-d-dave/fs-refactor-method-in-mount
Venky Shankar [Mon, 6 Jun 2022 05:49:54 +0000 (11:19 +0530)]
Merge pull request #40434 from rishabh-d-dave/fs-refactor-method-in-mount

qa/cephfs: modify get_key_from_keyfile() in mount.py

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
3 years agoMerge pull request #46522 from tchaikov/wip-crimson-logging
Kefu Chai [Mon, 6 Jun 2022 00:30:46 +0000 (08:30 +0800)]
Merge pull request #46522 from tchaikov/wip-crimson-logging

crimson/osd: reset logger before exit

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoMerge pull request #46416 from tchaikov/wip-debian-dh-python3
Kefu Chai [Sun, 5 Jun 2022 13:44:41 +0000 (21:44 +0800)]
Merge pull request #46416 from tchaikov/wip-debian-dh-python3

debian: python3 related cleanups

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agocrimson/osd: reset logger before exit 46522/head
Kefu Chai [Sun, 5 Jun 2022 10:30:28 +0000 (18:30 +0800)]
crimson/osd: reset logger before exit

* extract the code to set logging fstream into a dedicated function
* do not reset logging until the end of the seastar application.

before this change, `reset_logger` is created in the
`if (auto log_file = local_conf()->log_file; !log_file.empty())` branch,
so its life cycle ends when the `if` block ends. in other words,
the cerr fstream is used for logging after the `if` block ends.
this is not the expected behavior.

after this changge, `reset_logger` is created out of the `if` block.
so we won't reset the logger back to `cerr` until the lambda passed to
`seastar::async()` exits.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #46483 from yaarith/rook-telemetry
Neha Ojha [Fri, 3 Jun 2022 20:12:48 +0000 (13:12 -0700)]
Merge pull request #46483 from yaarith/rook-telemetry

mgr/telemetry: add Rook data

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #46417 from xxhdx1985126/wip-gc-parallel-live_extent_retrieval
Samuel Just [Fri, 3 Jun 2022 19:06:35 +0000 (12:06 -0700)]
Merge pull request #46417 from xxhdx1985126/wip-gc-parallel-live_extent_retrieval

crimson/os/seastore/segment_cleaner: parallel live extents retrieval

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #46480 from cfsnyder/wip-cfsnyder-device-classes-in-service-spec
Adam King [Fri, 3 Jun 2022 15:46:54 +0000 (11:46 -0400)]
Merge pull request #46480 from cfsnyder/wip-cfsnyder-device-classes-in-service-spec

python-common: allow crush device class to be set from osd service spec

Reviewed-by: Adam King <adking@redhat.com>
3 years agotest/crimson/seastore: add test case for parallel extent retrieval 46417/head
Xuehan Xu [Thu, 2 Jun 2022 13:33:57 +0000 (21:33 +0800)]
test/crimson/seastore: add test case for parallel extent retrieval

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agocrimson/os/seastore/cache: make access to Transaction::read_set atomic
Xuehan Xu [Wed, 1 Jun 2022 10:44:30 +0000 (18:44 +0800)]
crimson/os/seastore/cache: make access to Transaction::read_set atomic

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agoMerge pull request #46505 from rhcs-dashboard/fix-backports_main-main
Ernesto Puerta [Fri, 3 Jun 2022 12:02:55 +0000 (14:02 +0200)]
Merge pull request #46505 from rhcs-dashboard/fix-backports_main-main

script/ceph-backport.sh: deal with main branch

Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: nmshelke <NOT@FOUND>
Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #46186 from rhcs-dashboard/add-daemon-logs
Ernesto Puerta [Fri, 3 Jun 2022 10:09:56 +0000 (12:09 +0200)]
Merge pull request #46186 from rhcs-dashboard/add-daemon-logs

mgr/dashboard: Add daemon logs tab to Logs component

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: sunilangadi2 <NOT@FOUND>
3 years agoMerge pull request #46283 from MrFreezeex/mixin-config
Ernesto Puerta [Fri, 3 Jun 2022 10:05:58 +0000 (12:05 +0200)]
Merge pull request #46283 from MrFreezeex/mixin-config

ceph-mixin: fix linting issue and add cluster template support

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #46454 from idryomov/wip-rbd-unlink-newest-snap-at-capacity
Ilya Dryomov [Fri, 3 Jun 2022 09:51:41 +0000 (11:51 +0200)]
Merge pull request #46454 from idryomov/wip-rbd-unlink-newest-snap-at-capacity

librbd: unlink newest mirror snapshot when at capacity, bump capacity

Reviewed-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Reviewed-by: Mykola Golub <mgolub@suse.com>
3 years agoMerge pull request #46434 from idryomov/wip-rbd-preserve-non-primary-snap
Ilya Dryomov [Fri, 3 Jun 2022 09:50:41 +0000 (11:50 +0200)]
Merge pull request #46434 from idryomov/wip-rbd-preserve-non-primary-snap

rbd-mirror: don't prune non-primary snapshot when restarting delta sync

Reviewed-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Reviewed-by: Mykola Golub <mgolub@suse.com>
3 years agoqa/cephfs: modify get_key_from_keyfile() in mount.py 40434/head
Rishabh Dave [Fri, 26 Mar 2021 11:32:38 +0000 (17:02 +0530)]
qa/cephfs: modify get_key_from_keyfile() in mount.py

CephFSMount.get_key_from_keyfile() should raise an exception instead of
returning None if key is not found in keyring file.

Fixes: https://tracker.ceph.com/issues/50010
Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoMerge pull request #46411 from pcuzner/add-serial-numbers
Adam King [Thu, 2 Jun 2022 23:01:01 +0000 (19:01 -0400)]
Merge pull request #46411 from pcuzner/add-serial-numbers

cephadm: Add server serial info to gather-facts

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #46444 from rkachach/fix_issue_55800
Adam King [Thu, 2 Jun 2022 23:00:17 +0000 (19:00 -0400)]
Merge pull request #46444 from rkachach/fix_issue_55800

mgr/cephadm: check if a service exists before trying to restart it

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agoMerge pull request #46445 from rkachach/fix_issue_55801
Adam King [Thu, 2 Jun 2022 22:59:02 +0000 (18:59 -0400)]
Merge pull request #46445 from rkachach/fix_issue_55801

mgr/cephadm: capture exception when not able to list upgrade tags

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #46481 from guits/cephadm-custom-names-osd-adoption
Adam King [Thu, 2 Jun 2022 22:58:24 +0000 (18:58 -0400)]
Merge pull request #46481 from guits/cephadm-custom-names-osd-adoption

cephadm: fix osd adoption with custom cluster name

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #39002 from ceph/wip-rgw-multisite-reshard
Casey Bodley [Thu, 2 Jun 2022 20:04:30 +0000 (16:04 -0400)]
Merge pull request #39002 from ceph/wip-rgw-multisite-reshard

rgw multisite: bucket reshard work in progress

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
3 years agoMerge pull request #45470 from ceph/wip-setx
Ernesto Puerta [Thu, 2 Jun 2022 17:22:59 +0000 (19:22 +0200)]
Merge pull request #45470 from ceph/wip-setx

run-backend-api-tests.sh: set -x for Jenkins job debugging

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #44684 from zenomri/wip-omri-tracing-compiled
Yuval Lifshitz [Thu, 2 Jun 2022 17:22:17 +0000 (20:22 +0300)]
Merge pull request #44684 from zenomri/wip-omri-tracing-compiled

tracer: set tracing compiled in by default

3 years agoscript/ceph-backport.sh: deal with main branch 46505/head
Ernesto Puerta [Thu, 2 Jun 2022 15:11:33 +0000 (17:11 +0200)]
script/ceph-backport.sh: deal with main branch

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #43216 from k0ste/fix_47537
Anthony D'Atri [Thu, 2 Jun 2022 15:41:25 +0000 (08:41 -0700)]
Merge pull request #43216 from k0ste/fix_47537

doc/mgr: Document wildcard to expose Prometheus metrics for all RBD pools and namespaces

3 years agopython-common: allow crush device class to be set from osd service spec 46480/head
Cory Snyder [Wed, 1 Jun 2022 09:39:11 +0000 (05:39 -0400)]
python-common: allow crush device class to be set from osd service spec

Adds crush_device_class parameter to DriveGroupSpec so that device class
can be set via service specs with cephadm.

Fixes: https://tracker.ceph.com/issues/55813
Signed-off-by: Cory Snyder <csnyder@iland.com>
3 years agoMerge pull request #46019 from yushu20171007/fix_issue_55422
Casey Bodley [Thu, 2 Jun 2022 14:47:22 +0000 (10:47 -0400)]
Merge pull request #46019 from yushu20171007/fix_issue_55422

common: notify all when max backlog reached in OutputDataSocket

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
3 years agoMerge pull request #46501 from rhcs-dashboard/fix-55826-master
Ernesto Puerta [Thu, 2 Jun 2022 12:13:26 +0000 (14:13 +0200)]
Merge pull request #46501 from rhcs-dashboard/fix-55826-master

qa: fix teuthology master branch ref

Reviewed-by: amathuria <NOT@FOUND>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
3 years agoqa: fix teuthology master branch ref 46501/head
Ernesto Puerta [Thu, 2 Jun 2022 10:27:02 +0000 (12:27 +0200)]
qa: fix teuthology master branch ref

Fixes: https://tracker.ceph.com/issues/55826
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
3 years agodoc/mgr: Document wildcard to expose Prometheus metrics for all RBD pools and namespaces 43216/head
Konstantin Shalygin [Sat, 18 Sep 2021 10:22:14 +0000 (17:22 +0700)]
doc/mgr: Document wildcard to expose Prometheus metrics for all RBD pools and namespaces

Fixes: https://tracker.ceph.com/issues/47537
Signed-off-by: Konstantin Shalygin <k0ste@k0ste.ru>
3 years agoMerge pull request #46272 from sshambar/bug-55664
Adam King [Wed, 1 Jun 2022 21:44:54 +0000 (17:44 -0400)]
Merge pull request #46272 from sshambar/bug-55664

cephadm: preserve cephadm user during RPM upgrade

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agoMerge pull request #46488 from jtlayton/teuth-branch-fix
David Galloway [Wed, 1 Jun 2022 19:17:03 +0000 (15:17 -0400)]
Merge pull request #46488 from jtlayton/teuth-branch-fix

qa: remove .teuthology_branch file

3 years agoqa: remove .teuthology_branch file 46488/head
Jeff Layton [Wed, 1 Jun 2022 18:26:33 +0000 (14:26 -0400)]
qa: remove .teuthology_branch file

This was originally added to help support the py2 -> py3 conversion.
That's long since complete so we should be able to just remove this file
now.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
3 years agoMerge pull request #46487 from jtlayton/teuth-branch-fix
David Galloway [Wed, 1 Jun 2022 18:18:00 +0000 (14:18 -0400)]
Merge pull request #46487 from jtlayton/teuth-branch-fix

qa: fix .teuthology_branch file in qa/

3 years agotest/rgw/multisite: enable zonegroup resharding feature 39002/head
Casey Bodley [Wed, 1 Jun 2022 18:10:24 +0000 (14:10 -0400)]
test/rgw/multisite: enable zonegroup resharding feature

qa/tasks/rgw_multisite.py uses 'zonegroup set' to create zonegroups from
their json format. this doesn't enable any of the supported zonegroup
features by default, so this adds the 'enabled_features' field to the
json representations

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoqa: fix .teuthology_branch file in qa/ 46487/head
Jeff Layton [Wed, 1 Jun 2022 17:57:29 +0000 (13:57 -0400)]
qa: fix .teuthology_branch file in qa/

According to teuthology-suite:

  -t <branch>, --teuthology-branch <branch>
                              The teuthology branch to run against.
                              Default value is determined in the next order.
                              There is TEUTH_BRANCH environment variable set.
                              There is `qa/.teuthology_branch` present in
                              the suite repo and contains non-empty string.
                              There is `teuthology_branch` present in one of
                              the user or system `teuthology.yaml` configuration
                              files respectively, otherwise use `main`.

The .teuthology_branch file in the qa/ dir currently points at "master".
Change it to point to "main".

Signed-off-by: Jeff Layton <jlayton@redhat.com>
3 years agocephadm: fix osd adoption with custom cluster name 46481/head
Guillaume Abrioux [Wed, 1 Jun 2022 11:24:50 +0000 (13:24 +0200)]
cephadm: fix osd adoption with custom cluster name

When adopting Ceph OSD containers from a Ceph cluster with a custom name, it fails
because the name isn't propagated in unit.run.
The idea here is to change the lvm metadata and enforce 'ceph.cluster_name=ceph'
given that cephadm doesn't support custom names anyway.

Fixes: https://tracker.ceph.com/issues/55654
Signed-off-by: Adam King <adking@redhat.com>
Co-authored-by: Guillaume Abrioux <gabrioux@redhat.com>
3 years agoMerge pull request #46474 from idryomov/wip-rbd-codeowners
Ilya Dryomov [Wed, 1 Jun 2022 16:29:38 +0000 (18:29 +0200)]
Merge pull request #46474 from idryomov/wip-rbd-codeowners

CODEOWNERS: add RBD team

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agoCODEOWNERS: add RBD team 46474/head
Ilya Dryomov [Wed, 1 Jun 2022 07:22:15 +0000 (09:22 +0200)]
CODEOWNERS: add RBD team

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agocrimson/os/seastore/segment_cleaner: retrieve different live extents in parallel
Xuehan Xu [Sat, 28 May 2022 08:38:30 +0000 (16:38 +0800)]
crimson/os/seastore/segment_cleaner: retrieve different live extents in parallel

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agomgr/cephadm: capture exception when not able to list upgrade tags 46445/head
Redouane Kachach [Tue, 31 May 2022 10:59:26 +0000 (12:59 +0200)]
mgr/cephadm: capture exception when not able to list upgrade tags
Fixes: https://tracker.ceph.com/issues/55801
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
3 years agomgr/telemetry: add Rook data 46483/head
Yaarit Hatuka [Wed, 1 Jun 2022 04:46:17 +0000 (04:46 +0000)]
mgr/telemetry: add Rook data

Add the first Rook data collection to telemetry's basic channel.

We choose to nag with this collection since we wish to know the volume
of Rook deployments in the wild.

The next Rook collections should have consecutive numbers (basic_rook_v02,
basic_rook_v03, ...).

See tracker below for more details.

Fixes: https://tracker.ceph.com/issues/55740
Signed-off-by: Yaarit Hatuka <yaarit@redhat.com>
3 years agoMerge pull request #46382 from rzarzynski/wip-crimson-op-tracking-3
Samuel Just [Tue, 31 May 2022 23:48:52 +0000 (16:48 -0700)]
Merge pull request #46382 from rzarzynski/wip-crimson-op-tracking-3

crimson/osd: add support for historic & slow op tracking

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #46437 from cyx1231st/wip-seastore-tune-and-fixes
Samuel Just [Tue, 31 May 2022 23:37:11 +0000 (16:37 -0700)]
Merge pull request #46437 from cyx1231st/wip-seastore-tune-and-fixes

crimson/os/seastore/segment_cleaner: tune and fixes around reclaiming

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #46193 from ljflores/wip-zero-detection-off-by-default
Laura Flores [Tue, 31 May 2022 21:55:51 +0000 (16:55 -0500)]
Merge pull request #46193 from ljflores/wip-zero-detection-off-by-default

os/bluestore: turn bluestore zero block detection off by default

3 years agorgw: restore check for empty olh name on reshard 46464/head
Casey Bodley [Tue, 31 May 2022 21:29:37 +0000 (17:29 -0400)]
rgw: restore check for empty olh name on reshard

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agotest/rgw: fix test case for empty-OLH-name cleanup
Casey Bodley [Tue, 31 May 2022 21:29:18 +0000 (17:29 -0400)]
test/rgw: fix test case for empty-OLH-name cleanup

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #46367 from 0xavi0/dbstore-default-dbdir-rgw-data
Soumya Koduri [Tue, 31 May 2022 15:57:28 +0000 (21:27 +0530)]
Merge pull request #46367 from 0xavi0/dbstore-default-dbdir-rgw-data

rgw/dbstore: change default value of dbstore_db_dir to /var/lib/ceph/radosgw

Reviewed-by: Soumya Koduri <skoduri@redhat.com>
3 years agoMerge pull request #46395 from cbodley/wip-backport-create-issue-assigned-to
Casey Bodley [Tue, 31 May 2022 15:17:12 +0000 (11:17 -0400)]
Merge pull request #46395 from cbodley/wip-backport-create-issue-assigned-to

backport-create-issue: copy 'Assignee' of original issue to backports

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #46415 from neha-ojha/wip-cw-core 46674/head
Neha Ojha [Tue, 31 May 2022 14:16:18 +0000 (07:16 -0700)]
Merge pull request #46415 from neha-ojha/wip-cw-core

.github/CODEOWNERS: tag core devs on core PRs

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agolibrbd: unlink newest mirror snapshot when at capacity, bump capacity 46454/head
Ilya Dryomov [Sun, 29 May 2022 16:20:34 +0000 (18:20 +0200)]
librbd: unlink newest mirror snapshot when at capacity, bump capacity

CreatePrimaryRequest::unlink_peer() invoked via "rbd mirror image
snapshot" command or via rbd_support mgr module when creating a new
scheduled mirror snapshot at rbd_mirroring_max_mirroring_snapshots
capacity on the primary cluster can race with Replayer::unlink_peer()
invoked by rbd-mirror when finishing syncing an older snapshot on the
secondary cluster.  Consider the following:

   [ primary: primary-snap1, primary-snap2, primary-snap3
     secondary: non-primary-snap1 (complete), non-primary-snap2 (syncing) ]

0. rbd-mirror is syncing snap1..snap2 delta
1. rbd_support creates primary-snap4
2. due to rbd_mirroring_max_mirroring_snapshots == 3, rbd_support picks
   primary-snap3 for unlinking
3. rbd-mirror finishes syncing snap1..snap2 delta and marks
   non-primary-snap2 complete

   [ snap1 (the old base) is no longer needed on either cluster ]

4. rbd-mirror unlinks and removes primary-snap1
5. rbd-mirror removes non-primary-snap1
6. rbd-mirror picks snap2 as the new base
7. rbd-mirror creates non-primary-snap3 and starts syncing snap2..snap3
   delta

   [ primary: primary-snap2, primary-snap3, primary-snap4
     secondary: non-primary-snap2 (complete), non-primary-snap3 (syncing) ]

8. rbd_support unlinks and removes primary-snap3 which is in-use by
   rbd-mirror

If snap trimming on the primary cluster kicks in soon enough, the
secondary image becomes corrupted: rbd-mirror would eventually finish
"syncing" non-primary-snap3 and mark it complete in spite of bogus data
in the HEAD -- the primary cluster OSDs would start returning ENOENT
for snap trimmed objects.  Luckily, rbd-mirror's attempt to pick snap3
as the new base would wedge the replayer with "split-brain detected:
failed to find matching non-primary snapshot in remote image" error.

Before commit a888bff8d00e ("librbd/mirror: tweak which snapshot is
unlinked when at capacity") this could happen pretty much all the time
as it was the second oldest snapshot that was unlinked.  This commit
changed it to be the third oldest snapshot, turning this into a more
narrow but still very much possible to hit race.

Unfortunately this race condition appears to be inherent to the way
snapshot-based mirroring is currently implemented:

a. when mirror snapshots are created on the producer side of the
   snapshot queue, they are already linked
b. mirror snapshots can be concurrently unlinked/removed on both
   sides of the snapshot queue by non-cooperating clients (local
   rbd_mirror_image_create_snapshot() vs remote rbd-mirror)
c. with mirror peer links off the list due to (a), there is no
   existing way for rbd-mirror to persistently mark a snapshot as
   in-use

As a workaround, bump rbd_mirroring_max_mirroring_snapshots to 5 and
always unlink the newest snapshot (i.e. slot 4) instead of the third
oldest snapshot (i.e. slot 2).  Hopefully this gives enough leeway,
as rbd-mirror would need to sync two snapshots (i.e. transition from
syncing 0-1 to 1-2 and then to 2-3) before potentially colliding with
rbd_mirror_image_create_snapshot() on slot 4.

Fixes: https://tracker.ceph.com/issues/55803
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agotest/librbd: fix set_val() call in SuccessUnlink* test cases
Ilya Dryomov [Sun, 29 May 2022 17:55:04 +0000 (19:55 +0200)]
test/librbd: fix set_val() call in SuccessUnlink* test cases

rbd_mirroring_max_mirroring_snapshots isn't actually set to 3 there
due to the stray conf_ prefix.  It didn't matter until now because the
default was also 3.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>