]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agoMerge PR #42137 into master
Patrick Donnelly [Tue, 6 Jul 2021 20:07:53 +0000 (13:07 -0700)]
Merge PR #42137 into master

* refs/pull/42137/head:
msg/async/net_handler: do not define variable unless it is used
mds/cephfs_features: print size_t using "%zu"

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #42155 from yuvalif/wip-yuval-fix-51347
Yuval Lifshitz [Tue, 6 Jul 2021 19:02:02 +0000 (22:02 +0300)]
Merge pull request #42155 from yuvalif/wip-yuval-fix-51347

rgw/notifications: cache object size to avoid accessing invalid memoery

4 years agoMerge PR #41966 into master
Patrick Donnelly [Tue, 6 Jul 2021 18:54:18 +0000 (11:54 -0700)]
Merge PR #41966 into master

* refs/pull/41966/head:
mgr/volumes: use dedicated libcephfs handles for subvolume calls and async jobs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #42174 from cyx1231st/wip-seastore-fix-transactional-retire
Kefu Chai [Tue, 6 Jul 2021 04:53:52 +0000 (12:53 +0800)]
Merge pull request #42174 from cyx1231st/wip-seastore-fix-transactional-retire

crimson/os/seastore: leverage RetiredExtentPlaceholder to detect transaction conflicts

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/cache: cleanup query_cache_with_placeholders() 42174/head
Yingxin Cheng [Mon, 5 Jul 2021 13:59:10 +0000 (21:59 +0800)]
crimson/os/seastore/cache: cleanup query_cache_with_placeholders()

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore/transaction: remove unused retired_uncached
Yingxin Cheng [Mon, 5 Jul 2021 03:29:57 +0000 (11:29 +0800)]
crimson/os/seastore/transaction: remove unused retired_uncached

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore: leverage RetiredExtentPlaceholder to detect transaction conflicts
Yingxin Cheng [Mon, 5 Jul 2021 03:28:35 +0000 (11:28 +0800)]
crimson/os/seastore: leverage RetiredExtentPlaceholder to detect transaction conflicts

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore: remove unused template in RetiredExtentPlaceholder
Yingxin Cheng [Mon, 5 Jul 2021 03:24:57 +0000 (11:24 +0800)]
crimson/os/seastore: remove unused template in RetiredExtentPlaceholder

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore/cache: cleanup, consolidate extent lookup through query_cache_for...
Yingxin Cheng [Thu, 1 Jul 2021 06:03:02 +0000 (14:03 +0800)]
crimson/os/seastore/cache: cleanup, consolidate extent lookup through query_cache_for_extent()

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agoMerge pull request #42187 from tchaikov/wip-crimson-cleanup
Kefu Chai [Tue, 6 Jul 2021 01:05:29 +0000 (09:05 +0800)]
Merge pull request #42187 from tchaikov/wip-crimson-cleanup

crimson/os/seastore: use discard_result() to discard futurized value

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agoMerge pull request #42186 from lorenzbausch/fix_typo
Kefu Chai [Mon, 5 Jul 2021 15:32:11 +0000 (23:32 +0800)]
Merge pull request #42186 from lorenzbausch/fix_typo

doc/dev/crimson/osd: fix typo

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/common/errorator: forward declare futurize as a struct 42187/head
Kefu Chai [Mon, 5 Jul 2021 15:27:27 +0000 (23:27 +0800)]
crimson/common/errorator: forward declare futurize as a struct

as it is defined as struct, otherwise clang complains on this
inconsistency.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os/seastore: use discard_result() to discard futurized value
Kefu Chai [Mon, 5 Jul 2021 14:54:51 +0000 (22:54 +0800)]
crimson/os/seastore: use discard_result() to discard futurized value

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os/seastore: capture variables explicitly
Kefu Chai [Mon, 5 Jul 2021 14:53:53 +0000 (22:53 +0800)]
crimson/os/seastore: capture variables explicitly

less error prune this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/common: add discard_result() to errorator
Kefu Chai [Mon, 5 Jul 2021 14:53:21 +0000 (22:53 +0800)]
crimson/common: add discard_result() to errorator

so we can discard result explicitly.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/dev/crimson/osd: fix typo 42186/head
Lorenz Bausch [Mon, 5 Jul 2021 14:50:42 +0000 (16:50 +0200)]
doc/dev/crimson/osd: fix typo

Signed-off-by: Lorenz Bausch <info@lorenzbausch.de>
4 years agoMerge pull request #42184 from xxhdx1985126/wip-seastore-lambda
Kefu Chai [Mon, 5 Jul 2021 14:17:46 +0000 (22:17 +0800)]
Merge pull request #42184 from xxhdx1985126/wip-seastore-lambda

crimson/os/seastore: fix lambda capture issue in Journal::scan_extents()

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os/seastore: fix lambda capture issue in Journal::scan_extents() 42184/head
Xuehan Xu [Mon, 5 Jul 2021 13:41:03 +0000 (21:41 +0800)]
crimson/os/seastore: fix lambda capture issue in Journal::scan_extents()

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agoMerge pull request #42178 from xxhdx1985126/wip-collection-manager-test-case
Kefu Chai [Mon, 5 Jul 2021 10:25:24 +0000 (18:25 +0800)]
Merge pull request #42178 from xxhdx1985126/wip-collection-manager-test-case

test/crimson/seastore: fix a bug in the collection manager test case

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agotest/crimson/seastore: fix bug in the collection manager test case 42178/head
Xuehan Xu [Mon, 5 Jul 2021 08:56:53 +0000 (16:56 +0800)]
test/crimson/seastore: fix bug in the collection manager test case

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agoMerge pull request #42171 from sharuzzaman/patch-1
Kefu Chai [Mon, 5 Jul 2021 05:17:47 +0000 (13:17 +0800)]
Merge pull request #42171 from sharuzzaman/patch-1

doc/rados/configuration: fixing small typo for word "implemebnt"

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/rados/configuration: fixing small typo for word "implemebnt" 42171/head
Sharuzzaman Ahmat Raslan [Sun, 4 Jul 2021 18:06:21 +0000 (02:06 +0800)]
doc/rados/configuration: fixing small typo for word "implemebnt"

Signed-off-by: Sharuzzaman Ahmat Raslan <sharuzzaman@gmail.com>
4 years agoMerge pull request #42147 from xxhdx1985126/wip-interruptible-errorator
Kefu Chai [Sun, 4 Jul 2021 05:02:17 +0000 (13:02 +0800)]
Merge pull request #42147 from xxhdx1985126/wip-interruptible-errorator

crimson/common: allow interruptible parallel_for_each to handle error…

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/common: allow interruptible parallel_for_each to handle errorated future 42147/head
Xuehan Xu [Fri, 2 Jul 2021 04:05:02 +0000 (12:05 +0800)]
crimson/common: allow interruptible parallel_for_each to handle errorated future

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agoMerge PR #41938 into master
Sage Weil [Sat, 3 Jul 2021 18:19:03 +0000 (14:19 -0400)]
Merge PR #41938 into master

* refs/pull/41938/head:
mgr/cephadm: include addr in HOST_CHECK_FAILED alert detail

Reviewed-by: Adam King <adking@redhat.com>
4 years agorgw/notifications: cache object size to avoid accessing invalid memoery 42155/head
Yuval Lifshitz [Fri, 2 Jul 2021 13:12:33 +0000 (16:12 +0300)]
rgw/notifications: cache object size to avoid accessing invalid memoery

Fixes: https://tracker.ceph.com/issues/51347
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
4 years agoMerge PR #42081 into master
Patrick Donnelly [Fri, 2 Jul 2021 20:17:05 +0000 (13:17 -0700)]
Merge PR #42081 into master

* refs/pull/42081/head:
qa: use kclient xattr to lookup client id
qa: refactor reading debug file code
qa: get mount id before failing fs

Reviewed-by: Xiubo Li <xiubli@redhat.com>
4 years agoMerge PR #42075 into master
Patrick Donnelly [Fri, 2 Jul 2021 20:14:42 +0000 (13:14 -0700)]
Merge PR #42075 into master

* refs/pull/42075/head:
qa: avoid using sudo for regular test artifacts
qa: convert mount calls to mount_wait
qa: use run_shell_payload to avoid sudo

Reviewed-by: Rishabh Dave <ridave@redhat.com>
4 years agoqa: use kclient xattr to lookup client id 42081/head
Patrick Donnelly [Tue, 29 Jun 2021 00:15:19 +0000 (17:15 -0700)]
qa: use kclient xattr to lookup client id

Added relatively recently but in RHEL 8.4.

Fixes: https://tracker.ceph.com/issues/51183
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #41926 from TRYTOBE8TME/wip-rgw-dpp-2
Ali Maredia [Fri, 2 Jul 2021 18:02:54 +0000 (14:02 -0400)]
Merge pull request #41926 from TRYTOBE8TME/wip-rgw-dpp-2

src/rgw: DPP addition 3

Reviewed-by: Ali Maredia <amaredia@redhat.com>
4 years agoMerge pull request #42105 from dvanders/dvanders_pgp_num_actual
Kefu Chai [Fri, 2 Jul 2021 16:58:56 +0000 (00:58 +0800)]
Merge pull request #42105 from dvanders/dvanders_pgp_num_actual

mgr/DaemonServer: skip redundant update of pgp_num_actual

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #41829 from SMIL-Infra/clean-cg
Kefu Chai [Fri, 2 Jul 2021 15:15:38 +0000 (23:15 +0800)]
Merge pull request #41829 from SMIL-Infra/clean-cg

cephadm: workaround unit replace failure

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
4 years agoMerge pull request #41928 from sebastian-philipp/rm-qa-qa
Kefu Chai [Fri, 2 Jul 2021 15:14:56 +0000 (23:14 +0800)]
Merge pull request #41928 from sebastian-philipp/rm-qa-qa

qa: remove `qa/.qa` symlink

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
4 years agoMerge pull request #41943 from liewegas/qa-8-stream
Kefu Chai [Fri, 2 Jul 2021 15:14:27 +0000 (23:14 +0800)]
Merge pull request #41943 from liewegas/qa-8-stream

qa/distro/supported: add centos 8.stream

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #42146 from tchaikov/wip-crimson-cleanup
Kefu Chai [Fri, 2 Jul 2021 14:59:24 +0000 (22:59 +0800)]
Merge pull request #42146 from tchaikov/wip-crimson-cleanup

crimson/os/seastore: do not capture unused variable

Reviewed-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #42032 from sebastian-philipp/cephadm_shared_folder_bin_cephadm
Sebastian Wagner [Fri, 2 Jul 2021 13:17:06 +0000 (15:17 +0200)]
Merge pull request #42032 from sebastian-philipp/cephadm_shared_folder_bin_cephadm

cephadm: shared folder: Mount the cephadm

Reviewed-by: Adam King <adking@redhat.com>
4 years agoMerge pull request #41906 from mgfritch/cephadm-test-monaddrv
Sebastian Wagner [Fri, 2 Jul 2021 13:16:42 +0000 (15:16 +0200)]
Merge pull request #41906 from mgfritch/cephadm-test-monaddrv

cephadm: add `bootstrap --mon-addrv` test

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
4 years agoMerge pull request #42017 from Daniel-Pivonka/cephadm-orch-host-drain
Sebastian Wagner [Fri, 2 Jul 2021 13:16:11 +0000 (15:16 +0200)]
Merge pull request #42017 from Daniel-Pivonka/cephadm-orch-host-drain

mgr/cephadm: add ceph orch host drain and limit host removal to empty hosts

Reviewed-by: Adam King <adking@redhat.com>
4 years agoMerge pull request #41883 from rhcs-dashboard/run-dashboard-cephadm-e2e-tests
Ernesto Puerta [Fri, 2 Jul 2021 10:51:19 +0000 (12:51 +0200)]
Merge pull request #41883 from rhcs-dashboard/run-dashboard-cephadm-e2e-tests

mgr/dashboard: run cephadm-backend e2e tests with KCLI

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Juan Miguel Olmo <jolmomar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #42144 from cyx1231st/wip-fix-seastore-cache2
Kefu Chai [Fri, 2 Jul 2021 08:56:24 +0000 (16:56 +0800)]
Merge pull request #42144 from cyx1231st/wip-fix-seastore-cache2

crimson/os/seastore/cache: fix retiring mutation-pending extents

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Xuehan Xu <xuxuehan@360.cn>
4 years agomgr/dashboard: run cephadm-backend e2e tests with KCLI 41883/head
Alfonso Martínez [Fri, 2 Jul 2021 08:08:49 +0000 (10:08 +0200)]
mgr/dashboard: run cephadm-backend e2e tests with KCLI

Fixes: https://tracker.ceph.com/issues/51300
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
4 years agocrimson/os/seastore/cache: fix retiring mutation-pending extents 42144/head
Yingxin Cheng [Fri, 2 Jul 2021 01:28:39 +0000 (09:28 +0800)]
crimson/os/seastore/cache: fix retiring mutation-pending extents

Mark the retiring mutation-pending extent as INVALID, and add it's
prior-instance to retired-set in order to populate transaction
invalidation correctly.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore: use map::emplace(key, val) instead of map::emplace(pair<>) 42146/head
Kefu Chai [Fri, 2 Jul 2021 03:56:42 +0000 (11:56 +0800)]
crimson/os/seastore: use map::emplace(key, val) instead of map::emplace(pair<>)

simpler this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os/seastore: do not capture unused variable
Kefu Chai [Fri, 2 Jul 2021 03:33:43 +0000 (11:33 +0800)]
crimson/os/seastore: do not capture unused variable

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/os/seastore: read_set_t<> should be an alias of set<>
Kefu Chai [Fri, 2 Jul 2021 03:32:15 +0000 (11:32 +0800)]
crimson/os/seastore: read_set_t<> should be an alias of set<>

we don't extend it by inheriting from this class. what we need is to
have a convenient template alias here.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #42143 from athanatos/sjust/wip-cm-omap-int-future
Samuel Just [Fri, 2 Jul 2021 03:34:04 +0000 (20:34 -0700)]
Merge pull request #42143 from athanatos/sjust/wip-cm-omap-int-future

crimson/os/seastore: convert omap and collection_manager to interruptible future

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agorgw: DPP addition 3 41926/head
Kalpesh Pandya [Wed, 16 Jun 2021 08:33:52 +0000 (14:03 +0530)]
rgw: DPP addition 3

Following files have been covered in this PR:

1. rgw_period_puller.cc
2. rgw_reshard.cc
3. rgw_sal_rados.cc
4. services/svc_sync_modules.cc
5. services/svc_bucket_sobj.cc
6. services/svc_notify.cc
7. rgw_acl_swift.cc
8. rgw_acl.cc
9. rgw_sync_module_aws.cc
10. rgw_tools.cc
11. services/svc_sys_obj_cache.cc
12. rgw_bucket_sync.cc

Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
4 years agoMerge pull request #42138 from rzarzynski/wip-crimson-alienstore-indent
Kefu Chai [Fri, 2 Jul 2021 00:16:23 +0000 (08:16 +0800)]
Merge pull request #42138 from rzarzynski/wip-crimson-alienstore-indent

crimson/os: fix indentation in alien_store.cc.

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #42128 from tchaikov/wip-crimson-asock-cleanup
Kefu Chai [Fri, 2 Jul 2021 00:11:12 +0000 (08:11 +0800)]
Merge pull request #42128 from tchaikov/wip-crimson-asock-cleanup

crimson/asock: cleanups

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agocrimson/os/seastore/omap_manager: convert to use interruptible future 42143/head
Samuel Just [Wed, 30 Jun 2021 21:29:15 +0000 (14:29 -0700)]
crimson/os/seastore/omap_manager: convert to use interruptible future

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/collection_manager: convert to use interruptible_future
Samuel Just [Wed, 30 Jun 2021 00:20:13 +0000 (17:20 -0700)]
crimson/os/seastore/collection_manager: convert to use interruptible_future

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agotest/crimson/seastore: clean up transaction_manager based tests
Samuel Just [Wed, 30 Jun 2021 00:19:23 +0000 (17:19 -0700)]
test/crimson/seastore: clean up transaction_manager based tests

Permits using either vanilla TransactionManager and
InterruptedTransactionManager, updates users to use submit_transaction
helpers.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #41980 from yuvalif/wip-yuval-fix-51320
Yuval Lifshitz [Thu, 1 Jul 2021 20:43:10 +0000 (23:43 +0300)]
Merge pull request #41980 from yuvalif/wip-yuval-fix-51320

rgw/notification: support version-id for all event types

4 years agoMerge pull request #42127 from ivancich/wip-little-rgw-cleanup
Ali Maredia [Thu, 1 Jul 2021 18:59:29 +0000 (14:59 -0400)]
Merge pull request #42127 from ivancich/wip-little-rgw-cleanup

rgw: a small set of clean-ups

Reviewed-by: Ali Maredia <amaredia@redhat.com>
4 years agoqa: avoid using sudo for regular test artifacts 42075/head
Patrick Donnelly [Tue, 29 Jun 2021 16:47:21 +0000 (09:47 -0700)]
qa: avoid using sudo for regular test artifacts

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoqa: convert mount calls to mount_wait
Patrick Donnelly [Tue, 29 Jun 2021 21:51:43 +0000 (14:51 -0700)]
qa: convert mount calls to mount_wait

These tests want to immediately use the mount anyway. But the main
problem is, without waiting for the mount to complete, the command:

    chmod 1777 /path/to/mount

is not run so the mount cannot be written to by normal users without
sudo.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoqa: use run_shell_payload to avoid sudo
Patrick Donnelly [Mon, 28 Jun 2021 22:20:43 +0000 (15:20 -0700)]
qa: use run_shell_payload to avoid sudo

"run_shell" adds 'sudo' which runs afoul of new security protections on
Ubuntu 20.04.

Fixes: https://tracker.ceph.com/issues/51417
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #42012 from yuvalif/wip-yuval-fix-50039
Yuval Lifshitz [Thu, 1 Jul 2021 17:15:58 +0000 (20:15 +0300)]
Merge pull request #42012 from yuvalif/wip-yuval-fix-50039

rgw/notifications: support v4 auth for topics and notifications

4 years agorgw/notification: support version-id for all event types 41980/head
Yuval Lifshitz [Tue, 22 Jun 2021 16:36:35 +0000 (19:36 +0300)]
rgw/notification: support version-id for all event types

including: object copy, multipart upload, delete marker on versioned bucket

Fixes: https://tracker.ceph.com/issues/51320
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
4 years agoMerge pull request #42134 from zdover23/wip-doc-cephadm-operations-2021-07-01
zdover23 [Thu, 1 Jul 2021 17:12:22 +0000 (03:12 +1000)]
Merge pull request #42134 from zdover23/wip-doc-cephadm-operations-2021-07-01

doc/cephadm: improve "Ceph Daemon Logs" (1 of x)

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
4 years agoMerge pull request #42023 from TRYTOBE8TME/wip-rgw-notification-tests
Ali Maredia [Thu, 1 Jul 2021 16:44:20 +0000 (12:44 -0400)]
Merge pull request #42023 from TRYTOBE8TME/wip-rgw-notification-tests

rgw: Modification in the usage of force-branch

Reviewed-by: Ali Maredia <amaredia@redhat.com>
4 years agoMerge pull request #41945 from yuvalif/wip-yuval-fix-51261
Yuval Lifshitz [Thu, 1 Jul 2021 16:19:03 +0000 (19:19 +0300)]
Merge pull request #41945 from yuvalif/wip-yuval-fix-51261

rgw/notifications: support metadata filter in CompleteMultipartUpload and Copy events

4 years agoMerge pull request #41953 from SMIL-Infra/fix-dashboard-osd-count
Ernesto Puerta [Thu, 1 Jul 2021 15:26:32 +0000 (17:26 +0200)]
Merge pull request #41953 from SMIL-Infra/fix-dashboard-osd-count

mgr/dashboard: fix OSD out count

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #42116 from votdev/issue_51443_migrate_userdb
Ernesto Puerta [Thu, 1 Jul 2021 15:23:03 +0000 (17:23 +0200)]
Merge pull request #42116 from votdev/issue_51443_migrate_userdb

mgr/dashboard: User database migration has been cut out

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
4 years agocrimson/os: fix indentation in alien_store.cc. 42138/head
Radoslaw Zarzynski [Thu, 1 Jul 2021 14:34:39 +0000 (14:34 +0000)]
crimson/os: fix indentation in alien_store.cc.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agomsg/async/net_handler: do not define variable unless it is used 42137/head
Kefu Chai [Thu, 1 Jul 2021 14:13:45 +0000 (22:13 +0800)]
msg/async/net_handler: do not define variable unless it is used

on WIN32, `flags` is not used at all, hence GCC complains like

../src/msg/async/net_handler.cc: In member function 'int ceph::NetHandler::set_nonblock(int)':
../src/msg/async/net_handler.cc:67:7: warning: unused variable 'flags' [-Wunused-variable]
   67 |   int flags;
      |       ^~~~~

this change silences the warning.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomds/cephfs_features: print size_t using "%zu"
Kefu Chai [Thu, 1 Jul 2021 14:11:20 +0000 (22:11 +0800)]
mds/cephfs_features: print size_t using "%zu"

to silence the warning from GCC like:

../src/mds/cephfs_features.cc: In function 'void cephfs_dump_features(ceph::Formatter*, const feature_bitset_t&)':
../src/mds/cephfs_features.cc:71:39: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'long long unsigned int'} [-Wformat=]
   71 |     snprintf(s, sizeof(s), "feature_%lu", i);
      |                                     ~~^   ~
      |                                       |   |
      |                                       |   size_t {aka long long unsigned int}
      |                                       long unsigned int
      |                                     %llu

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #42107 into master
Sage Weil [Thu, 1 Jul 2021 13:11:09 +0000 (09:11 -0400)]
Merge PR #42107 into master

* refs/pull/42107/head:
mgr/ActivePyModules: streamline mgr_ips a bit
mgr/ActivePyModules: don't take unnecessary lock
pybind/mgr/mgr_module: use get("mgr_ips") for standby get_mgr_ip()
mgr: add get() for standby modules

Reviewed-by: Daniel Pivonka <dpivonka@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
4 years agodoc/cephadm: improve "Ceph Daemon Logs" (1 of x) 42134/head
Zac Dover [Thu, 1 Jul 2021 12:43:10 +0000 (22:43 +1000)]
doc/cephadm: improve "Ceph Daemon Logs" (1 of x)

This PR turned out to be a 3-in-1:

(1) improves syntax and formatting of "Logging to stdout"
(2) improves syntax and formatting of "Logging to files"
(3) replaces all carets with tildes in 3rd-level section
    headers in operations.rst (./build-doc was crying
    about inconsistency when I fed it tildes, but tildes
    and not carets are the RST standard according to
    https://docutils.sourceforge.io/ \
    docs/user/rst/quickstart.html#sections
    so the carets had to go.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
4 years agoMerge pull request #42130 from tchaikov/wip-doc-install
Kefu Chai [Thu, 1 Jul 2021 09:59:38 +0000 (17:59 +0800)]
Merge pull request #42130 from tchaikov/wip-doc-install

doc/install/get-packages: s/el7/el8/ and cleanups

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
4 years agoMerge pull request #42108 from zdover23/wip-doc-upgrading-ceph-cancelling-the-upgrade...
Kefu Chai [Thu, 1 Jul 2021 09:50:34 +0000 (17:50 +0800)]
Merge pull request #42108 from zdover23/wip-doc-upgrading-ceph-cancelling-the-upgrade-2021-06-30

doc/cephadm: improve "Canceling an Upgrade"

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
4 years agodoc/install/get-packages: do not mention additional 3rd party packages 42130/head
Kefu Chai [Thu, 1 Jul 2021 08:34:55 +0000 (16:34 +0800)]
doc/install/get-packages: do not mention additional 3rd party packages

since we are able to build and run on ubuntu focal without extra
dependencies of 3rd party packages, there is no need to mention them.
actually all of the removed packages are available in ubuntu focal.
some of them have different package names though.

the same applies to el8.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc/install/get-packages: s/el7/el8/
Kefu Chai [Thu, 1 Jul 2021 08:25:19 +0000 (16:25 +0800)]
doc/install/get-packages: s/el7/el8/

since we don't build for el7 anymore. replace all occurrences of el7 with
el8.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agorgw: Modification in the usage of force-branch 42023/head
Kalpesh Pandya [Thu, 24 Jun 2021 18:46:53 +0000 (00:16 +0530)]
rgw: Modification in the usage of force-branch

Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
4 years agocrimson/admin: let AdminSocket::register_command() return void 42128/head
Kefu Chai [Thu, 1 Jul 2021 06:32:31 +0000 (14:32 +0800)]
crimson/admin: let AdminSocket::register_command() return void

instead of returning a seastar::future<>, it can just return void,
as it does not involve asynchronous operations.

also drop servers_tbl_rwlock, as we don't register hooks after OSD
starts, there is no need to protect hooks with a rw lock.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/admin: remove unused variable
Kefu Chai [Thu, 1 Jul 2021 06:26:38 +0000 (14:26 +0800)]
crimson/admin: remove unused variable

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #42080 from cyx1231st/wip-seastore-fix-cache
Samuel Just [Thu, 1 Jul 2021 04:17:47 +0000 (21:17 -0700)]
Merge pull request #42080 from cyx1231st/wip-seastore-fix-cache

crimson/os/seastore/cache: misc fixes and cleanup

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Xuehan Xu <xuxuehan@360.cn>
4 years agocrimson/os/seastore/cache: rename try_construct_record to prepare_record 42080/head
Yingxin Cheng [Wed, 30 Jun 2021 06:03:29 +0000 (14:03 +0800)]
crimson/os/seastore/cache: rename try_construct_record to prepare_record

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore/cache: wait io when read from Cache::extents
Yingxin Cheng [Wed, 30 Jun 2021 05:22:07 +0000 (13:22 +0800)]
crimson/os/seastore/cache: wait io when read from Cache::extents

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore/cache: add the missing extent invalid check
Yingxin Cheng [Wed, 30 Jun 2021 03:55:39 +0000 (11:55 +0800)]
crimson/os/seastore/cache: add the missing extent invalid check

see 2bc257beb2ef1253e38c254745f42b3ac5db52de

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore/cache: add missing add_to_read_set()
Yingxin Cheng [Wed, 30 Jun 2021 03:47:50 +0000 (11:47 +0800)]
crimson/os/seastore/cache: add missing add_to_read_set()

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore/cache: cleanup get_extent_if_cached()
Yingxin Cheng [Wed, 30 Jun 2021 03:44:56 +0000 (11:44 +0800)]
crimson/os/seastore/cache: cleanup get_extent_if_cached()

And remove the query_cache_for_extent(t).

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore/cache: fix get_extent_by_type(t) to use Transaction::get_extent()
Yingxin Cheng [Wed, 30 Jun 2021 03:06:52 +0000 (11:06 +0800)]
crimson/os/seastore/cache: fix get_extent_by_type(t) to use Transaction::get_extent()

The original query_cache_for_extent() doesn't call wait_io() if the
extent is pending. And the following get_extent_by_type() already covers
the lookup to Cache::extents and also implements wait_io() correctly.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore/cache: add absent extent to read-set before retire
Yingxin Cheng [Tue, 29 Jun 2021 01:39:10 +0000 (09:39 +0800)]
crimson/os/seastore/cache: add absent extent to read-set before retire

So that transaction can be invalidated if the retiring extent has
conflict.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore/cache: remove retired extents from cache
Yingxin Cheng [Tue, 29 Jun 2021 01:36:01 +0000 (09:36 +0800)]
crimson/os/seastore/cache: remove retired extents from cache

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore: fix print_detail() of RetiredExtentPlaceholder
Yingxin Cheng [Tue, 29 Jun 2021 01:31:49 +0000 (09:31 +0800)]
crimson/os/seastore: fix print_detail() of RetiredExtentPlaceholder

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore/cache: cleanup try_construct_record() optional return
Yingxin Cheng [Mon, 28 Jun 2021 14:12:46 +0000 (22:12 +0800)]
crimson/os/seastore/cache: cleanup try_construct_record() optional return

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/onode-staged-tree: check invalid transaction only
Yingxin Cheng [Mon, 28 Jun 2021 13:38:49 +0000 (21:38 +0800)]
crimson/onode-staged-tree: check invalid transaction only

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore/cache: retire PRESENT extents and add to retired-set
Yingxin Cheng [Mon, 28 Jun 2021 13:36:18 +0000 (21:36 +0800)]
crimson/os/seastore/cache: retire PRESENT extents and add to retired-set

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/os/seastore/cache: invalidate transaction referencing retired extents
Yingxin Cheng [Mon, 28 Jun 2021 13:32:21 +0000 (21:32 +0800)]
crimson/os/seastore/cache: invalidate transaction referencing retired extents

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agoMerge pull request #42103 from athanatos/sjust/wip-seastore-collection-ordering
Kefu Chai [Thu, 1 Jul 2021 02:06:40 +0000 (10:06 +0800)]
Merge pull request #42103 from athanatos/sjust/wip-seastore-collection-ordering

crimson/seastore: enforce per-collection transaction ordering

Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Xuehan Xu <xuxuehan@360.cn>
4 years agoMerge pull request #41932 from tchaikov/wip-mgr-mock-osdmap
Kefu Chai [Thu, 1 Jul 2021 01:50:45 +0000 (09:50 +0800)]
Merge pull request #41932 from tchaikov/wip-mgr-mock-osdmap

mgr,pybind/mgr: add OSDMap.build_simple() method

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #41958 from ceph/wip-yuriw-notes-14.2.22_2
Ilya Dryomov [Wed, 30 Jun 2021 22:30:49 +0000 (00:30 +0200)]
Merge pull request #41958 from ceph/wip-yuriw-notes-14.2.22_2

doc: 14.2.22 Release Notes

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
4 years agodoc/releases/nautilus,octopus: add a note for msgr2 interoperability fix 41958/head
Ilya Dryomov [Wed, 23 Jun 2021 19:42:11 +0000 (21:42 +0200)]
doc/releases/nautilus,octopus: add a note for msgr2 interoperability fix

octopus 15.2.13 already shipped, let's add it retroactively.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
4 years agodoc/releases/nautilus: add notable changes for RADOS
Neha Ojha [Tue, 22 Jun 2021 22:39:15 +0000 (22:39 +0000)]
doc/releases/nautilus: add notable changes for RADOS

Signed-off-by: Neha Ojha <nojha@redhat.com>
4 years agodoc: 14.2.22 Release Notes
Yuri Weinstein [Mon, 21 Jun 2021 20:27:01 +0000 (20:27 +0000)]
doc: 14.2.22 Release Notes

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
4 years agoMerge pull request #42118 from sandrobonazzola/patch-3
Ilya Dryomov [Wed, 30 Jun 2021 22:05:17 +0000 (00:05 +0200)]
Merge pull request #42118 from sandrobonazzola/patch-3

doc/rbd/iscsi-initiator-linux: set "product" in multipath.conf

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
4 years agodoc/rbd/iscsi-initiator-linux: set "product" in multipath.conf 42118/head
Sandro Bonazzola [Wed, 30 Jun 2021 16:14:09 +0000 (18:14 +0200)]
doc/rbd/iscsi-initiator-linux: set "product" in multipath.conf

Adding missing parameter in multipath configuration.  See
https://bugzilla.redhat.com/show_bug.cgi?id=1769135.

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
4 years agorgw: a small set of clean-ups 42127/head
J. Eric Ivancich [Wed, 30 Jun 2021 19:39:33 +0000 (15:39 -0400)]
rgw: a small set of clean-ups

Small items noticed along the way and addressed collectively in this
small "omnibus" PR.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
4 years agoMerge pull request #42121 from ceph/wip-md
Josh Durgin [Wed, 30 Jun 2021 18:42:00 +0000 (11:42 -0700)]
Merge pull request #42121 from ceph/wip-md

ceph-release-notes: Support for markdown for new ceph.io site

Reviewed-by: Josh Durgin <jdurgin@redhat.com>