]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agocrimson/os/seastore: use unqualified en/decode for denc types
Samuel Just [Wed, 4 Nov 2020 03:36:57 +0000 (19:36 -0800)]
crimson/os/seastore: use unqualified en/decode for denc types

Otherwise, if definitions from encoding.h are in scope the templated
denc one won't be considered.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/journal: fix error returns in replay
Samuel Just [Sat, 31 Oct 2020 00:04:32 +0000 (17:04 -0700)]
crimson/os/seastore/journal: fix error returns in replay

SegmentManager is allowed to return an enoent if the segment isn't
readable.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/.../ephemeral: introduce pauses for testing
Samuel Just [Sat, 31 Oct 2020 00:03:33 +0000 (17:03 -0700)]
crimson/os/seastore/.../ephemeral: introduce pauses for testing

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/journal: send aligned buffer in initialize_segment
Samuel Just [Sat, 31 Oct 2020 00:03:04 +0000 (17:03 -0700)]
crimson/os/seastore/journal: send aligned buffer in initialize_segment

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/tools/: add really simple nbd driver for TransactionManager
Samuel Just [Sat, 31 Oct 2020 00:00:01 +0000 (17:00 -0700)]
crimson/tools/: add really simple nbd driver for TransactionManager

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/.../lba_btree_node_impl: fix at_min_capacity()
Samuel Just [Fri, 30 Oct 2020 23:58:19 +0000 (16:58 -0700)]
crimson/os/seastore/.../lba_btree_node_impl: fix at_min_capacity()

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agotest/crimson: factor out seastar_runner helpers
Samuel Just [Fri, 30 Oct 2020 23:57:48 +0000 (16:57 -0700)]
test/crimson: factor out seastar_runner helpers

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore: add block segment_manager
Samuel Just [Fri, 30 Oct 2020 23:54:46 +0000 (16:54 -0700)]
crimson/os/seastore: add block segment_manager

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/.../lba_btree_node_impl: fix mutate_mapping for missing element
Samuel Just [Fri, 30 Oct 2020 23:53:50 +0000 (16:53 -0700)]
crimson/os/seastore/.../lba_btree_node_impl: fix mutate_mapping for missing element

Also adds assert to LBAInternalNode -- any laddr in the range of an internal
node must necessarily be in the range of a child.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agocrimson/os/seastore/segment_manager: refactor init interface and ephemeral
Samuel Just [Mon, 28 Sep 2020 07:08:54 +0000 (00:08 -0700)]
crimson/os/seastore/segment_manager: refactor init interface and ephemeral

Just remove init from the interface for now.  Real implementations
will need some form of mkfs/mount machinery to bootstrap.

Signed-off-by: Samuel Just <sjust@redhat.com>
4 years agoMerge pull request #38403 from zdover23/wip-doc-CLT-update-02-Dec-2020-1
zdover23 [Fri, 4 Dec 2020 17:49:48 +0000 (03:49 +1000)]
Merge pull request #38403 from zdover23/wip-doc-CLT-update-02-Dec-2020-1

doc/governance.rst - updating CLT list

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #38440 from bk201/wip-48454
Ernesto Puerta [Fri, 4 Dec 2020 17:40:03 +0000 (18:40 +0100)]
Merge pull request #38440 from bk201/wip-48454

mgr/dashboard: fix trusted_ip_list in iSCSI service form

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agoMerge pull request #38398 from tchaikov/wip-48210
Kefu Chai [Fri, 4 Dec 2020 17:33:24 +0000 (01:33 +0800)]
Merge pull request #38398 from tchaikov/wip-48210

pybind/mgr: unpin urllib3

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #38298 from bk201/wip-43165
Ernesto Puerta [Fri, 4 Dec 2020 17:24:46 +0000 (18:24 +0100)]
Merge pull request #38298 from bk201/wip-43165

mgr/dashboard: refactor /api/orchestrator/* endpoints

Reviewed-by: Courtney Caldwell <ccaldwel@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
4 years agoMerge pull request #38432 from rhcs-dashboard/orch-not-available-incorrect-status
Ernesto Puerta [Fri, 4 Dec 2020 17:22:43 +0000 (18:22 +0100)]
Merge pull request #38432 from rhcs-dashboard/orch-not-available-incorrect-status

mgr/dashboard: Fix for misleading "Orchestrator is not available" error

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
4 years agoMerge pull request #38379 from dillaman/wip-librbd-migration-5
Mykola Golub [Fri, 4 Dec 2020 15:43:59 +0000 (17:43 +0200)]
Merge pull request #38379 from dillaman/wip-librbd-migration-5

librbd/migration: add thick-provisioned snapshot support to the raw format

Reviewed-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #38285 from jmolmo/include_hw_info_in_HostCache
Sebastian Wagner [Fri, 4 Dec 2020 15:11:08 +0000 (16:11 +0100)]
Merge pull request #38285 from jmolmo/include_hw_info_in_HostCache

mgr/cephadm: Get host facts data in host cache

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agodoc/governance.rst - updating CLT list 38403/head
Zac Dover [Wed, 2 Dec 2020 15:18:51 +0000 (01:18 +1000)]
doc/governance.rst - updating CLT list

This PR removes the following people from the
CLT. They've left the CLT:
* Lenz Grimmer
* Alfredo Deza
* Zack Cerza

This commit also adds:
* Ernesto Puerta

Fixes: https://tracker.ceph.com/issues/48436
Signed-off-by: Zac Dover <zac.dover@gmail.com>
4 years agomgr/cephadm: Get host facts data in host cache 38285/head
Juan Miguel Olmo Martínez [Wed, 25 Nov 2020 14:40:57 +0000 (15:40 +0100)]
mgr/cephadm: Get host facts data in host cache

Include cephadm gather-facts information in host cache

Signed-off-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
4 years agoMerge pull request #37631 from zjcmszh/aio_setxattr
Kefu Chai [Fri, 4 Dec 2020 06:15:21 +0000 (14:15 +0800)]
Merge pull request #37631 from zjcmszh/aio_setxattr

pybind/rados: add Ioctx::aio_setxattr() and remove_omap_range2()

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38168 from agayev/cleaner-plumbing
Kefu Chai [Fri, 4 Dec 2020 06:14:54 +0000 (14:14 +0800)]
Merge pull request #38168 from agayev/cleaner-plumbing

os/bluestore: Introduce plumbing necessary for garbage collecting zones.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agoMerge pull request #38323 from wjwithagen/wjw-fix-nasm-wrapper
Kefu Chai [Fri, 4 Dec 2020 06:13:42 +0000 (14:13 +0800)]
Merge pull request #38323 from wjwithagen/wjw-fix-nasm-wrapper

nasm-wrapper: Make nasm-wrapper OS independent

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38325 from aclamk/bs-onode-put
Kefu Chai [Fri, 4 Dec 2020 06:13:10 +0000 (14:13 +0800)]
Merge pull request #38325 from aclamk/bs-onode-put

os/bluestore: Only pass that decremented nref to 0 deletes object

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agoMerge pull request #38387 from hualongfeng/vstart_add_path
Kefu Chai [Fri, 4 Dec 2020 05:52:50 +0000 (13:52 +0800)]
Merge pull request #38387 from hualongfeng/vstart_add_path

vstart.sh: add PATH in vstart_environment

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38358 from batrick/i48030
Kefu Chai [Fri, 4 Dec 2020 05:35:07 +0000 (13:35 +0800)]
Merge pull request #38358 from batrick/i48030

librados: add RadosClient to conf observers

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agomgr/dashboard: fix trusted_ip_list in iSCSI service form 38440/head
Kiefer Chang [Fri, 4 Dec 2020 02:51:47 +0000 (10:51 +0800)]
mgr/dashboard: fix trusted_ip_list in iSCSI service form

The value should be a comma-separated string rather than a list of strings.

Fixes: https://tracker.ceph.com/issues/48454
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
4 years agoMerge pull request #37548 from ofriedma/wip-ofriedma-quota-hdrs
Matt Benjamin [Thu, 3 Dec 2020 17:13:43 +0000 (12:13 -0500)]
Merge pull request #37548 from ofriedma/wip-ofriedma-quota-hdrs

rgw: send headers of quota settings

4 years agomgr/dashboard: Fix for misleading "Orchestrator is not available" error 38432/head
Nizamudeen A [Thu, 3 Dec 2020 12:44:04 +0000 (18:14 +0530)]
mgr/dashboard: Fix for misleading "Orchestrator is not available" error

When switching between options, in the Services and Inventory page sometimes it shows "Orchestrator not available" error which appears for 2-3 second and then disappears and shows the normal page. This commit fixes that.

Fixes: https://tracker.ceph.com/issues/48448
Signed-off-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #38433 from tchaikov/wip-rgw
Kefu Chai [Thu, 3 Dec 2020 14:04:37 +0000 (22:04 +0800)]
Merge pull request #38433 from tchaikov/wip-rgw

rgw: pass null_yield to ctl->user->read_stats()

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
4 years agorgw: pass null_yield to ctl->user->read_stats() 38433/head
Kefu Chai [Thu, 3 Dec 2020 13:32:41 +0000 (21:32 +0800)]
rgw: pass null_yield to ctl->user->read_stats()

this change fixes the FTBFS introduced by
4758e50c96afb2e14700e3b91161313ec9567692

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoqa/suites/rbd: new basic migration CLI test case 38379/head
Jason Dillaman [Wed, 2 Dec 2020 03:35:51 +0000 (22:35 -0500)]
qa/suites/rbd: new basic migration CLI test case

Pending a larger suite of tests for instant-restore image migration,
this test provides a basic sanity check for both the native and
raw image formats -- including basic snapshot tests.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38167 from CloudFerro/wip-disable-prefetch-in-rgw-file
Matt Benjamin [Thu, 3 Dec 2020 12:55:05 +0000 (07:55 -0500)]
Merge pull request #38167 from CloudFerro/wip-disable-prefetch-in-rgw-file

rgw: disable prefetch in rgw_file to fix 3x read amplification

4 years agoMerge pull request #37595 from pritha-srivastava/wip-rgw-sts-old-users
Matt Benjamin [Thu, 3 Dec 2020 12:36:42 +0000 (07:36 -0500)]
Merge pull request #37595 from pritha-srivastava/wip-rgw-sts-old-users

rgw/sts: adding code for creating oidc users in a backward

4 years agoMerge pull request #38412 from badone/wip-build-uring-alternate-git-repo
Brad Hubbard [Thu, 3 Dec 2020 04:53:19 +0000 (14:53 +1000)]
Merge pull request #38412 from badone/wip-build-uring-alternate-git-repo

cmake: Alter GIT_REPOSITORY for liburing

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: Alter GIT_REPOSITORY for liburing 38412/head
Brad Hubbard [Thu, 3 Dec 2020 01:56:43 +0000 (11:56 +1000)]
cmake: Alter GIT_REPOSITORY for liburing

https://git.kernel.dk/liburing appears, at least currently, to be
unavailable. This could be reverted once it comes back.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
4 years agoMerge pull request #38409 from rhcs-dashboard/fix-48441-master
Kiefer Chang [Thu, 3 Dec 2020 01:28:22 +0000 (09:28 +0800)]
Merge pull request #38409 from rhcs-dashboard/fix-48441-master

mgr/dashboard: fix wrong import in iscsi unit test

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
4 years agoMerge pull request #38289 from smithfarm/wip-rn-hotfix-octo
Josh Durgin [Thu, 3 Dec 2020 00:51:53 +0000 (16:51 -0800)]
Merge pull request #38289 from smithfarm/wip-rn-hotfix-octo

doc: add release notes for Octopus 15.2.7

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
4 years agomgr/dashboard: fix wrong import in iscsi unit test 38409/head
Ernesto Puerta [Wed, 2 Dec 2020 20:49:26 +0000 (21:49 +0100)]
mgr/dashboard: fix wrong import in iscsi unit test

This commit bdf866e436b8772a4080ade7298192eee9adcc97 happened after the
last run of https://github.com/ceph/ceph/pull/37198 make check. That's
why that latter PR passed the tests then but failed when merged in
master.

Fixes: https://tracker.ceph.com/issues/48441
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #38385 from rzarzynski/wip-rbd-memset_s
Jason Dillaman [Wed, 2 Dec 2020 20:38:15 +0000 (15:38 -0500)]
Merge pull request #38385 from rzarzynski/wip-rbd-memset_s

librbd: use the ceph_memzero_s() wrapper instead of explicit_bzero()

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38395 from trociny/wip-rbd-test-migration-verbose
Jason Dillaman [Wed, 2 Dec 2020 20:37:36 +0000 (15:37 -0500)]
Merge pull request #38395 from trociny/wip-rbd-test-migration-verbose

test/librbd: print difference if deep-copy or migration test fails

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38386 from petrutlucian94/duplicate_get_size
Jason Dillaman [Wed, 2 Dec 2020 20:37:09 +0000 (15:37 -0500)]
Merge pull request #38386 from petrutlucian94/duplicate_get_size

Revert "rbd: add missing FileStream::get_size"

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge PR #38364 into master
Patrick Donnelly [Wed, 2 Dec 2020 20:14:16 +0000 (12:14 -0800)]
Merge PR #38364 into master

* refs/pull/38364/head:
mds/CDir: make the data length as long as possible for each op
mds/CDir: correct the write_size

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #38326 into master
Patrick Donnelly [Wed, 2 Dec 2020 20:13:39 +0000 (12:13 -0800)]
Merge PR #38326 into master

* refs/pull/38326/head:
client: cleanup the handle_mds_map() code

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #38112 into master
Patrick Donnelly [Wed, 2 Dec 2020 20:09:09 +0000 (12:09 -0800)]
Merge PR #38112 into master

* refs/pull/38112/head:
Revert "client: optimize rename operation under different quota root"

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge PR #38033 into master
Patrick Donnelly [Wed, 2 Dec 2020 20:08:17 +0000 (12:08 -0800)]
Merge PR #38033 into master

* refs/pull/38033/head:
client: do not use g_conf().get_val<>() in libcephfs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #37708 into master
Patrick Donnelly [Wed, 2 Dec 2020 20:07:17 +0000 (12:07 -0800)]
Merge PR #37708 into master

* refs/pull/37708/head:
qa/suites/fs: enable thrashing in multifs environment
qa/workunits/fs/snaps: allow tests to be run
qa/tasks/{kclient,ceph_fuse}: allow mounting
qa/tasks: allow per file system config setting

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
4 years agoMerge pull request #38369 from linuxbox2/wip-rgwfile-cporder
Matt Benjamin [Wed, 2 Dec 2020 14:54:02 +0000 (09:54 -0500)]
Merge pull request #38369 from linuxbox2/wip-rgwfile-cporder

rgw_file: return common_prefixes in lexical order

4 years agoMerge pull request #38383 from shellwedance/doc_fix_typos
Jason Dillaman [Wed, 2 Dec 2020 14:34:38 +0000 (09:34 -0500)]
Merge pull request #38383 from shellwedance/doc_fix_typos

doc/rbd: fix doc typos

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38320 from tchaikov/wip-cmake-std-fs
Kefu Chai [Wed, 2 Dec 2020 14:03:26 +0000 (22:03 +0800)]
Merge pull request #38320 from tchaikov/wip-cmake-std-fs

cmake: do not always require extra link flags for std::filesystem

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #38390 from xxhdx1985126/wip-obc-related-issues
Kefu Chai [Wed, 2 Dec 2020 13:13:51 +0000 (21:13 +0800)]
Merge pull request #38390 from xxhdx1985126/wip-obc-related-issues

crimson/osd: fix several obc related issues

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38397 from tchaikov/wip-crimson-tests
Kefu Chai [Wed, 2 Dec 2020 13:10:19 +0000 (21:10 +0800)]
Merge pull request #38397 from tchaikov/wip-crimson-tests

test/crimson: adapt to the changes of messenger

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agodoc/releases: add recent releases to timeline 38289/head
Nathan Cutler [Wed, 25 Nov 2020 18:06:14 +0000 (19:06 +0100)]
doc/releases: add recent releases to timeline

Signed-off-by: Nathan Cutler <ncutler@suse.com>
4 years agoMerge pull request #38136 from yuvalif/wip-yuval-fix-47904
Matt Benjamin [Wed, 2 Dec 2020 12:43:12 +0000 (07:43 -0500)]
Merge pull request #38136 from yuvalif/wip-yuval-fix-47904

rgw/notification: trigger notifications on changes from any user

4 years agoMerge pull request #38171 from yuvalif/wip-yuval-fix-46296
Matt Benjamin [Wed, 2 Dec 2020 12:42:03 +0000 (07:42 -0500)]
Merge pull request #38171 from yuvalif/wip-yuval-fix-46296

rgw/notification: support GetTopicAttributes API

4 years agocrimson/osd: drop redundant locking operations in ObjectContext::wait_recovery_read() 38390/head
Xuehan Xu [Wed, 2 Dec 2020 08:48:15 +0000 (16:48 +0800)]
crimson/osd: drop redundant locking operations in ObjectContext::wait_recovery_read()

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agocmake: pass REQUIRED to find_package(StdFilesystem) 38320/head
Kefu Chai [Fri, 27 Nov 2020 15:54:27 +0000 (23:54 +0800)]
cmake: pass REQUIRED to find_package(StdFilesystem)

otherwise there is chance that we could link to
StdFilesystem::filesystem which is not defined anywhere.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: do not always require extra link flags for std::filesystem
Kefu Chai [Fri, 27 Nov 2020 15:50:57 +0000 (23:50 +0800)]
cmake: do not always require extra link flags for std::filesystem

since GCC-9

> Using the types and functions in <filesystem> does not require linking
> with -lstdc++fs now.

see https://gcc.gnu.org/gcc-9/changes.html#libstdcxx

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38300 from rhcs-dashboard/fix-saml2-endpoint
Ernesto Puerta [Wed, 2 Dec 2020 11:26:20 +0000 (12:26 +0100)]
Merge pull request #38300 from rhcs-dashboard/fix-saml2-endpoint

mgr/dashboard: SSO not working after REST API versioning

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
4 years agoMerge pull request #38154 from votdev/issue_48181_pipe_function
Ernesto Puerta [Wed, 2 Dec 2020 11:25:39 +0000 (12:25 +0100)]
Merge pull request #38154 from votdev/issue_48181_pipe_function

mgr/dashboard: Use pipe instead of calling function within template wherever possible

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
4 years agoMerge pull request #38019 from bk201/wip-48176
Ernesto Puerta [Wed, 2 Dec 2020 11:25:03 +0000 (12:25 +0100)]
Merge pull request #38019 from bk201/wip-48176

mgr/dashboard: allow selecting all daemons for Orchestrator NFS clusters

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge pull request #37198 from tspmelo/wip-iscsi-fix-frontend
Ernesto Puerta [Wed, 2 Dec 2020 11:24:13 +0000 (12:24 +0100)]
Merge pull request #37198 from tspmelo/wip-iscsi-fix-frontend

mgr/dashboard: Allow managing iSCSI Initiator after removing from group

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
4 years agopybind/mgr: unpin urllib3 38398/head
Kefu Chai [Wed, 2 Dec 2020 11:20:17 +0000 (19:20 +0800)]
pybind/mgr: unpin urllib3

now that requests is able to support urllib v1.26, there is no need to
pin it anymore.

see also
https://github.com/psf/requests/blob/03957eb1c2b9a1e5e6d61f5e930d7c5ed7cfe853/HISTORY.md#2250-2020-11-11

Fixes: https://tracker.ceph.com/issues/48210
Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agotest/crimson: adapt to the changes of messenger 38397/head
Kefu Chai [Wed, 2 Dec 2020 10:58:03 +0000 (18:58 +0800)]
test/crimson: adapt to the changes of messenger

the crimson::net::Messenger interface was changed in
44585adc78bded751b8b50d6304068a8c5186fa1 and
ff2c3b597de4c5707e18529dfa6bed162026014c, so need to change the tests
accordingly.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agotest/librbd: print difference if deep-copy or migration test fails 38395/head
Mykola Golub [Wed, 2 Dec 2020 09:41:13 +0000 (09:41 +0000)]
test/librbd: print difference if deep-copy or migration test fails

It may appear to be useful to track the sporadic test failures
observed on jenkins, not reproducible locally.

Previously it was disabled because the output could be too
large. But after the hexdump was improved to skip repeating bytes
the output will hopefully be much smaller.

Signed-off-by: Mykola Golub <mgolub@suse.com>
4 years agoMerge pull request #38360 from cyx1231st/wip-seastar-msgr-fix-gate-exception
Kefu Chai [Wed, 2 Dec 2020 09:31:08 +0000 (17:31 +0800)]
Merge pull request #38360 from cyx1231st/wip-seastar-msgr-fix-gate-exception

crimson/net: misc fixes and cleanups to messenger

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/osd: call ObjectContext::with_promoted_lock() with the currently demanding...
Xuehan Xu [Wed, 2 Dec 2020 08:47:10 +0000 (16:47 +0800)]
crimson/osd: call ObjectContext::with_promoted_lock() with the currently demanding lock type

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agoMerge pull request #38327 from lnsyyj/wip-make-error
Kefu Chai [Wed, 2 Dec 2020 08:04:10 +0000 (16:04 +0800)]
Merge pull request #38327 from lnsyyj/wip-make-error

debian/control: add libffi-dev build dep for aarch64

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agovstart.sh: add PATH in vstart_environment 38387/head
Hualong Feng [Wed, 2 Dec 2020 07:51:08 +0000 (15:51 +0800)]
vstart.sh: add PATH in vstart_environment

Signed-off-by: Hualong Feng <hualong.feng@intel.com>
4 years agoMerge pull request #38380 from lixiaoy1/pkg_fix
Kefu Chai [Wed, 2 Dec 2020 07:38:31 +0000 (15:38 +0800)]
Merge pull request #38380 from lixiaoy1/pkg_fix

cmake: fix unknown pkg_search_module

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocmake: fix unknown pkg_search_module 38380/head
lixiaoy1 [Wed, 2 Dec 2020 10:56:33 +0000 (05:56 -0500)]
cmake: fix unknown pkg_search_module

Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
4 years agoRevert "rbd: add missing FileStream::get_size" 38386/head
Lucian Petrut [Wed, 2 Dec 2020 07:35:25 +0000 (07:35 +0000)]
Revert "rbd: add missing FileStream::get_size"

This function was missing initially and was added by two separate
commits [1][2]. We have to remove one of the two definitions.

This reverts commit c17c53f460254c29e961227e19484c527fd08fc7.

[1] c17c53f460254c29e961227e19484c527fd08fc7
[2] 074dd33c4f0112839a7c51ab97c805ee288d84c1

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
4 years agolibrbd: use the ceph_memzero_s() wrapper instead of explicit_bzero(). 38385/head
Radoslaw Zarzynski [Wed, 2 Dec 2020 07:21:30 +0000 (08:21 +0100)]
librbd: use the ceph_memzero_s() wrapper instead of explicit_bzero().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
4 years agodoc/rbd: fix doc typos 38383/head
Taeuk Kim [Wed, 2 Dec 2020 06:07:34 +0000 (15:07 +0900)]
doc/rbd: fix doc typos

fix typos in Ceph iSCSI manual

Signed-off-by: Taeuk Kim <taeuk_kim@tmax.co.kr>
4 years agodebian/control: building wheel for cffi(no dependency) 38327/head
JiangYu [Mon, 30 Nov 2020 04:22:24 +0000 (04:22 +0000)]
debian/control: building wheel for cffi(no dependency)

This commit fixes Building wheel for cffi (setup.py) ... error:
   c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory

some python packages do not offer precompiled binary packages for aarch64 on PyPI.
only happens on non-amd64 arches, so add [!amd64].

Signed-off-by: JiangYu <lnsyyj@hotmail.com>
4 years agolibrbd/migration: minor debug message tweaks
Jason Dillaman [Wed, 2 Dec 2020 03:34:00 +0000 (22:34 -0500)]
librbd/migration: minor debug message tweaks

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agolibrbd/migration: generic method for applying source image metadata
Jason Dillaman [Wed, 2 Dec 2020 02:25:34 +0000 (21:25 -0500)]
librbd/migration: generic method for applying source image metadata

Collect the image size and snapshot details from the constructed format
and apply it to the source image ctx.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agolibrbd/migration: avoid async callback on image ctx open request
Jason Dillaman [Wed, 2 Dec 2020 02:26:54 +0000 (21:26 -0500)]
librbd/migration: avoid async callback on image ctx open request

If the ImageState::open call fails, we cannot have the callback be
asynchronously dispatched via the now deleted ImageCtx object.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agocrimson/net: make ms_dispatch() return optional<future<>> 38360/head
Yingxin Cheng [Wed, 2 Dec 2020 03:25:10 +0000 (11:25 +0800)]
crimson/net: make ms_dispatch() return optional<future<>>

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agoMerge pull request #38378 from xxhdx1985126/wip-obc-with-lock-issue
Kefu Chai [Wed, 2 Dec 2020 03:19:25 +0000 (11:19 +0800)]
Merge pull request #38378 from xxhdx1985126/wip-obc-with-lock-issue

crimson/osd: add _with_lock method to obc

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agocrimson/net: use boost::container::small_vector in ChainedDispatchers
Yingxin Cheng [Wed, 2 Dec 2020 02:34:52 +0000 (10:34 +0800)]
crimson/net: use boost::container::small_vector in ChainedDispatchers

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
4 years agocrimson/osd: add _with_lock method to obc 38378/head
Xuehan Xu [Wed, 2 Dec 2020 02:30:07 +0000 (10:30 +0800)]
crimson/osd: add _with_lock method to obc

this is modeling the seastar::with_lock() method with the exception
that obc is also captured in the finally block.

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
4 years agolibrbd/api: re-use migration open source image state machine
Jason Dillaman [Wed, 2 Dec 2020 01:01:23 +0000 (20:01 -0500)]
librbd/api: re-use migration open source image state machine

Let the open source image state machine parse the provided
source-spec JSON and instantiate the source image ctx for the
prepare migration step.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agolibrbd/migration: tweak open source image state machine
Jason Dillaman [Wed, 2 Dec 2020 00:48:41 +0000 (19:48 -0500)]
librbd/migration: tweak open source image state machine

Remove the need for the child (destination) image to be opened
for the state machine to function.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agolibrbd/migration: simplify the native format JSON spec
Jason Dillaman [Wed, 2 Dec 2020 00:32:46 +0000 (19:32 -0500)]
librbd/migration: simplify the native format JSON spec

Allow the pool id integer to be specified via a string, support an
optional pool name alternative, and make the pool namespace optional
as well.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agolibrbd/migration: add snapshot support to the raw format
Jason Dillaman [Tue, 1 Dec 2020 22:47:38 +0000 (17:47 -0500)]
librbd/migration: add snapshot support to the raw format

Snapshots can be specified via a new "snapshots" array of
objects within the raw format JSON object.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #34462 from inspur-wyq/wip-44987
J. Eric Ivancich [Tue, 1 Dec 2020 21:55:10 +0000 (16:55 -0500)]
Merge pull request #34462 from inspur-wyq/wip-44987

rgw: belong the anonymous object to the bucket owner

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #35511 from yehudasa/wip-rgw-cr-drain
J. Eric Ivancich [Tue, 1 Dec 2020 21:54:48 +0000 (16:54 -0500)]
Merge pull request #35511 from yehudasa/wip-rgw-cr-drain

rgw: refactor boilerplate coroutine drain callers

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #37733 from orztt/master
J. Eric Ivancich [Tue, 1 Dec 2020 21:54:27 +0000 (16:54 -0500)]
Merge pull request #37733 from orztt/master

cls/rgw/cls_rgw.cc: fix multiple lastest version problem

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #31393 from jiahuizeng/int-range
J. Eric Ivancich [Tue, 1 Dec 2020 21:53:49 +0000 (16:53 -0500)]
Merge pull request #31393 from jiahuizeng/int-range

rgw: avoid expiration early triggering caused by overflow

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
4 years agoMerge pull request #35059 from matthewoliver/s3_put_bucket_policy_204
J. Eric Ivancich [Tue, 1 Dec 2020 21:52:49 +0000 (16:52 -0500)]
Merge pull request #35059 from matthewoliver/s3_put_bucket_policy_204

rgw: S3 Put Bucket Policy should return 204 on success

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agoMerge pull request #37933 from markhoughton-microfocus/issue_47586_fix
J. Eric Ivancich [Tue, 1 Dec 2020 21:52:02 +0000 (16:52 -0500)]
Merge pull request #37933 from markhoughton-microfocus/issue_47586_fix

rgw: check object locks in multi-object delete

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
4 years agorgw/notification: trigger notifications on changes from any user 38136/head
Yuval Lifshitz [Tue, 17 Nov 2020 11:31:59 +0000 (13:31 +0200)]
rgw/notification: trigger notifications on changes from any user

any user authorized to make changes to a bucket may trigger
notifications defined on that bucket.
manual test procedure of the fix is described here:
https://gist.github.com/yuvalif/39c183aa0f74d286ecef7844268817df

fixes: https://tracker.ceph.com/issues/47904

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
4 years agoMerge pull request #38311 from anthonyeleven/anthonyeleven/fix-typo
zdover23 [Tue, 1 Dec 2020 18:03:26 +0000 (04:03 +1000)]
Merge pull request #38311 from anthonyeleven/anthonyeleven/fix-typo

doc/rados/operations: typo in stretch-mode.rst

Reviewed-by: Zac Dover <zac.dover@gmail.com>
4 years agolibrbd/migration: re-use RawSnapshot for RawFormat's HEAD revision
Jason Dillaman [Tue, 1 Dec 2020 17:34:34 +0000 (12:34 -0500)]
librbd/migration: re-use RawSnapshot for RawFormat's HEAD revision

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38366 from tchaikov/wip-templated-doc
Kefu Chai [Tue, 1 Dec 2020 16:57:26 +0000 (00:57 +0800)]
Merge pull request #38366 from tchaikov/wip-templated-doc

doc: drop edit-on-github extension and templatize page.html further

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge PR #38034 into master
Jan Fajerski [Tue, 1 Dec 2020 16:38:25 +0000 (17:38 +0100)]
Merge PR #38034 into master

* refs/pull/38034/head:
lvm/create.py: fix a typo in the help message

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Dimitri Savineau <dsavinea@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
4 years agodoc: check "release" context variable for #dev-warning 38366/head
Kefu Chai [Tue, 1 Dec 2020 07:16:15 +0000 (15:16 +0800)]
doc: check "release" context variable for #dev-warning

if $release is "dev", then the release being built is not a stable
version.

drop ceph.js, as the web page is generated at build time.

since the last user of "releases.json" is gone, now we can
drop the hooks preparing "releases.json" in conf.py as well.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc: disable eol-warning based on "is_release_eol"
Kefu Chai [Tue, 1 Dec 2020 07:00:54 +0000 (15:00 +0800)]
doc: disable eol-warning based on "is_release_eol"

enable/disable #eol-warning based on "is_release_eol" context variable.
this allows us to generate a more static web page. and pave the road to
a releases.json-free doc build process.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agodoc: add docubetter link back
Kefu Chai [Tue, 1 Dec 2020 06:56:23 +0000 (14:56 +0800)]
doc: add docubetter link back

check if the release being built is EOL when building the document, so
no need to use javascript to read releases.json anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agolibrbd/migration: generic raw snapshot format support
Jason Dillaman [Tue, 1 Dec 2020 15:26:49 +0000 (10:26 -0500)]
librbd/migration: generic raw snapshot format support

The RawFormat will be tweaked to support the new RawSnapshot in a
future commit, but the basic structure will allow for the eventual
support of sparse snapshot data formats (i.e. rbd export-diff).

Signed-off-by: Jason Dillaman <dillaman@redhat.com>