Commit Graph

117225 Commits

Author SHA1 Message Date
Or Ozeri
ea3c1bfb9e librbd: add LUKS support
This commit introduces internal (not yet part of the api) librbd functions for:
1. formating an RBD image in LUKS format
2. parsing an RBD image in LUKS format

 The actual implementation of the LUKS format is done via libcryptsetup, which is added as a new dependency.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
2020-11-23 10:32:14 -05:00
zdover23
8c6b533ee8
Merge pull request #38089 from anthonyeleven/anthonyeleven/docs-47976
doc/mgr: Fix msgr2 TCP port in a couple of examples

Reviewed-by: Zac Dover <zac.dover@gmail.com>
2020-11-24 00:32:22 +10:00
zdover23
f6c3592916
Merge pull request #38180 from anthonyeleven/anthonyeleven/docs-23442
doc/rados/operations: Add description of new auth profiles

Reviewed-by: Zac Dover <zac.dover@gmail.com>
2020-11-24 00:05:00 +10:00
Jason Dillaman
8ee92b87b9 librbd/api/Migration: fix potential double-close of image
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-11-23 08:45:50 -05:00
Jason Dillaman
b58bb486d6 librbd/migration: implement a basic S3 stream source
The new S3 stream requires a fully qualified URL to a bucket
(i.e. no virtual host names) along with the access and secret
keys to the bucket.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-11-23 08:45:50 -05:00
Jason Dillaman
393dddb79c librbd/migration: simplify common http result code handling
Move the processing of common HTTP result codes (not found, permission
denied, etc) higher up the stack so it can be re-used between all
request paths.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-11-23 08:45:50 -05:00
Jason Dillaman
7e3fa13ab3 librbd/migration: implement a callback hook for processing http requests
The S3 authentication scheme requires adding additional headers to the
outbound request as well as computing a secure signature for the request
using the secret key.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-11-23 08:45:50 -05:00
Jason Dillaman
fef41bf131 librbd/migration: move read processing into HttpClient
This will allow the logic to be re-used between the standard
HTTP stream and the future S3 stream.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2020-11-23 08:45:49 -05:00
Jason Dillaman
d340b03612
Merge pull request #38229 from wjwithagen/wjw-fix-librbd-HttpStream.cc
librbd: Fix variable declaration in capture list in lambda

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2020-11-23 08:35:10 -05:00
Ilya Dryomov
422f922c4a msg/async/ProtocolV2: allow rxbuf/txbuf get bigger in testing, again
With CEPHX_V2 authorizer challenges brought back in commit
4a82c72e3b, these need to be bumped again, as two authorizers
(without and then with the challenge) are transmitted and signed
instead of one (without the challenge).  See commit 94953dd939
("msg/async/ProtocolV2: allow rxbuf/txbuf get bigger in testing")
for details.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2020-11-23 14:09:13 +01:00
Jan Fajerski
b19e5ff699 Merge PR #38207 into master
* refs/pull/38207/head:
	ceph-volume: fix test_setup_device_device_name_is_none

Reviewed-by: Dimitri Savineau <dsavinea@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
2020-11-23 13:59:16 +01:00
Igor Fedotov
36a7dc30a6 blk: log is_valid_io() parameters when unsuccessful.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2020-11-23 15:29:32 +03:00
zdover23
de870cac81
Merge pull request #38092 from anthonyeleven/anthonyeleven/docs-mixed-device-trick
doc/rados/operations: enhance primary affinity section

Reviewed-by: Zac Dover <zac.dover@gmail.com>
2020-11-23 22:20:13 +10:00
Tatjana Dehler
2b4e6288c2 mgr/dashboard: add form button panel
Fixes: https://tracker.ceph.com/issues/48016
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2020-11-23 10:49:22 +01:00
Deepika Upadhyay
1974c1a979 cmake: require Lua 5.3 and up
fixes: https://tracker.ceph.com/issues/48312
Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
2020-11-23 15:15:21 +05:30
Volker Theile
1c722aa89e mgr/dashboard: display placement column in service table
Fixes: https://tracker.ceph.com/issues/44404

Signed-off-by: Volker Theile <vtheile@suse.com>
2020-11-23 10:28:30 +01:00
Tatjana Dehler
faa93577c3 mgr/dashboard: add additional wording
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2020-11-23 10:11:02 +01:00
Tatjana Dehler
1786a65852 mgr/dashboard: refactor back button event
Convert the `back` input event into a `backAction` output
event in order to be a bit more flexible with implementing
th actual back action.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2020-11-23 10:11:02 +01:00
Xiubo Li
7496be719c common/config_proxy: clear the values.changed in _gather_changes()
Signed-off-by: Xiubo Li <xiubli@redhat.com>
2020-11-23 16:27:51 +08:00
zdover23
2f0fe914be
Merge pull request #38181 from anthonyeleven/anthonyeleven/docs-23443
doc: object -> file -> disk is wrong for bluestore

Reviewed-by: Zac Dover <zac.dover@gmail.com>
2020-11-23 16:13:24 +10:00
zdover23
acf80f111c
Merge pull request #34506 from ktdreyer/doc-rm-sysv-init
doc: remove SysV init reference in manual deployment walkthrough

Reviewed-by: Zac Dover <zac.dover@gmail.com>
2020-11-23 16:10:30 +10:00
Xiubo Li
73a48dfe8e global: reexpand the conf meta in all the child processes
Especially for the tools or the daemons whose config options need
to expand the '$pid', they will be always expanded with the parent
processes. We need to reexpand them in child processes just after
the fork is done.

Fixes: https://tracker.ceph.com/issues/48240
Signed-off-by: Xiubo Li <xiubli@redhat.com>
2020-11-23 14:07:07 +08:00
Lucian Petrut
ae2bb42806 rbd: add "help" command to rbd-wnbd
At the moment, "rbd-wnbd" says that "help" is an unsupported command,
only "rbd-wnbd -h" works. This isn't very user friendly.

Although "rbd-wnbd" isn't supposed to be used directly in most cases,
users might want to retrieve device specific arguments that can be
passed using "rbd device -o".

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2020-11-22 17:37:13 +00:00
J. Eric Ivancich
cf18f7e9cd
Merge pull request #38228 from ivancich/wip-rgw-gc-defer-should-not-enqueue
rgw: during GC defer, prevent new GC enqueue

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
2020-11-22 10:36:48 -05:00
Kefu Chai
b7e8d11d09
Merge pull request #38231 from anthonyeleven/anthonyeleven/docs-40579
doc/rados/operations: POOL_NEAR_FULL on OSD_NEAR_FULL

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-11-22 21:24:56 +08:00
JiangYu
125674b662 blk/kernel/io_uring: do not guard liburing backend with __x86_64__ anymore
Signed-off-by: JiangYu <lnsyyj@hotmail.com>

Let the liburing library to ensure the support of the iouring system call back-end CPU instruction set.
2020-11-22 11:39:40 +00:00
Anthony D'Atri
7fde53bbb1 doc/rados/operations: POOL_NEAR_FULL on OSD_NEAR_FULL
Fixes: https://tracker.ceph.com/issues/40579
Signed-off-by: Anthony D'Atri <anthony.datri@gmail.com>
2020-11-22 00:02:54 -08:00
Anthony D'Atri
61a7eb8647 doc/rados/operations: enhance primary affinity section
Signed-off-by: Anthony D'Atri <anthony.datri@gmail.com>
2020-11-21 23:57:31 -08:00
Kefu Chai
d3cf17da15
Merge pull request #38090 from anthonyeleven/anthonyeleven/docs-47339
doc/releases: correct spelling

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-11-22 14:03:09 +08:00
Kefu Chai
46ad0835c1
Merge pull request #37900 from jhonxue/master
os/bluestore/StupidAllocator: choose the right bin when bdev_block_size changed

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
2020-11-22 13:42:46 +08:00
Kefu Chai
ed77641a53
Merge pull request #38161 from petrutlucian94/msg_timeout
msg: use timeout when initiating connection

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-11-22 13:41:33 +08:00
Kefu Chai
6a52585e61
Merge pull request #38070 from dvanders/dvanders_trimto
mon/OSDMonitor, mon/PaxosService: additional debug outputs when trimming

Reviewed-by: Joao Eduardo Luis <joao@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-11-22 13:39:44 +08:00
Kefu Chai
57f385f6b8
Merge pull request #38148 from jhonxue/wip-fix-bluestore-avl-allocator
os/bluestore: do not call _block_picker() again if already searched from start()

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-11-22 13:39:09 +08:00
Kefu Chai
b6c92fd80c
Merge pull request #38128 from tchaikov/wip-mon-add-space-in-log
mon/OSDMonitor: add a space after function name in logging message

Reviewed-by: Joao Eduardo Luis <joao@suse.com>
2020-11-22 13:36:25 +08:00
Anthony D'Atri
b3cede6dbc doc/releases: correct spelling
Fixes: https://tracker.ceph.com/issues/47339
Signed-off-by: Anthony D'Atri <anthony.datri@gmail.com>
2020-11-21 18:32:40 -08:00
Kefu Chai
2d5830650c
Merge pull request #38227 from tchaikov/wip-store-test
test/store_test: pass raw Formatter pointer as expected

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2020-11-22 09:59:08 +08:00
Willem Jan Withagen
80ae2d286c librbd: Fix variable declaration in capture list in lambda
Fixes: https://github.com/ceph/ceph/pull/38000
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2020-11-21 23:25:13 +01:00
J. Eric Ivancich
2603485bcb rgw: during GC defer, prevent new GC enqueue
With the new queue-based GC code, when a GC defer operation is
performed, it adds an "urgent" record to prevent GC from removing
objects that are still being read. It does not check whether the
objects are on the GC queue or not and that's OK for the urgent
record.

The code *also* adds a new GC entry to the queue to cause GC to occur
at a later time. This would be incorrect if there was no GC entry to
begin with, however. In such a case this would cause GC to delete tail
objects when no user-initiated remove has happend. In other words a
READ could cause a DELETE of tail objects and therefore data loss.

This fix prevents such a new GC entry from being enqueued, thus
preventing the data loss in this rare case. There is a new risk that
tail object orphans to be created, but as an immediate fix to prevent
data loss, this is appropriate and it is a rare event. A follow-on PR
that will handle these cases is likely.

This PR adds a level 0 log entry as a way to potentially confirm this
case is being triggered in real-world cases. In time, this log entry
should be deleted.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
2020-11-21 13:52:16 -05:00
Kefu Chai
a8749d198e test/store_test: pass raw Formatter pointer as expected
this addresses the FTBFS regression introduced by
f153a7031e

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-11-22 01:16:01 +08:00
Mykola Golub
4040082610
Merge pull request #38196 from dillaman/wip-48296
pybind/mgr/rbd_support: delay creation of progress module events

Reviewed-by: Mykola Golub <mgolub@suse.com>
2020-11-21 15:41:16 +02:00
Kefu Chai
8f26ecb35d
Merge pull request #38223 from Rethan/fix_formatter_pointer
test: free Formatter pointers

Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-11-21 19:01:33 +08:00
haoyixing
f153a7031e test/: use unique_ptr for some formatter whose pointers were not released.
some code under test use formatter to output, but Formatter *f
was not freed like elsewere. So use unique_ptr to avoid this.

Signed-off-by: haoyixing <haoyixing@kuaishou.com>
2020-11-21 17:09:38 +08:00
Neha Ojha
0ba966763e
Merge pull request #38220 from neha-ojha/wip-fix-label-2
.github/labeler.yml: fix pybind and common rules

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2020-11-20 14:50:10 -08:00
Neha Ojha
1f538d4e65 .github/labeler.yml: fix pybind and common rules
Noticed it didn't work in https://github.com/ceph/ceph/pull/38206

Signed-off-by: Neha Ojha <nojha@redhat.com>
2020-11-20 19:53:29 +00:00
Daniel Gryniewicz
e8dac81153
Merge pull request #38193 from dang/wip-dang-zipper-9
RGW - Zipper 9: Write path
2020-11-20 14:33:45 -05:00
Daniel Gryniewicz
8208d8450e Zipper - ObjectProcessor
Fix the ObjectProcessor classes to use Zipper APIs

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
2020-11-20 12:38:29 -05:00
Casey Bodley
c2a1edbd8c
Merge pull request #37734 from matthewoliver/rgw_swift_dlo_fix
rgw: Check all shards for user manifest parts

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2020-11-20 11:55:58 -05:00
Ernesto Puerta
dcd3403a75
Merge pull request #38062 from s0nea/wip-dashboard-new-password
mgr/dashboard: amend the look & feel of the login password form

Reviewed-by: nizamial09 <nia@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-11-20 17:47:27 +01:00
Ernesto Puerta
e238c6f6e7
Merge pull request #37740 from s0nea/wip-dashboard-ceph-input-validation
mgr/dashboard: validate username while creation

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2020-11-20 17:45:44 +01:00
Ernesto Puerta
85c538a5b3
Merge pull request #37719 from tspmelo/wip-rbd-invalid-name
mgr/dashboard: RBD: Disable actions when name is not valid

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-11-20 17:43:55 +01:00