]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
4 years agorgw: Add DoutPrefixProvider to create_bucket logging 38861/head
Ali Maredia [Fri, 11 Dec 2020 21:19:39 +0000 (16:19 -0500)]
rgw: Add DoutPrefixProvider to create_bucket logging

This commit hits all log messages for a create bucket
request and ensures each has a DoutPrefixProvider.

This commit gets dpp's all the way down to rgw/services
up way though to rgw_op.cc, rgw_rest.cc files,
rgw_admin.cc, etc.

This commit also removes store as dpp in rgw_sal.h

Signed-off-by: Ali Maredia <amaredia@redhat.com>
4 years agoMerge pull request #39086 from orozery/qa-rbd-delete-passphrase-file
Jason Dillaman [Tue, 26 Jan 2021 20:42:08 +0000 (15:42 -0500)]
Merge pull request #39086 from orozery/qa-rbd-delete-passphrase-file

qa/tasks/rbd: cleanup passphrase file

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #39089 from orozery/librbd-luks-cli-test
Jason Dillaman [Tue, 26 Jan 2021 20:17:12 +0000 (15:17 -0500)]
Merge pull request #39089 from orozery/librbd-luks-cli-test

test/librbd: fix luks encryption cli test on unsupported runs

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #39091 from tchaikov/wip-crimson-build
Ilya Dryomov [Tue, 26 Jan 2021 19:45:31 +0000 (20:45 +0100)]
Merge pull request #39091 from tchaikov/wip-crimson-build

cmake: let alienstore link against zoned allocator

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
4 years agocmake: let alienstore link against zoned allocator 39091/head
Kefu Chai [Tue, 26 Jan 2021 18:04:52 +0000 (02:04 +0800)]
cmake: let alienstore link against zoned allocator

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge PR #39028 into master
Sage Weil [Tue, 26 Jan 2021 17:22:50 +0000 (11:22 -0600)]
Merge PR #39028 into master

* refs/pull/39028/head:
cephadm: retry for 30s instead of 10s
cephadm: try 'mgr stat' before 'mgr dump' to get the epoch
mon: add 'mgr stat' command

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agotest/librbd: fix luks encryption cli test on unsupported runs 39089/head
Or Ozeri [Tue, 26 Jan 2021 16:54:05 +0000 (18:54 +0200)]
test/librbd: fix luks encryption cli test on unsupported runs

This commit changes the luks encryption cli test to return success instead of failure when not supported.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
4 years agoMerge pull request #39077 from tchaikov/wip-libzbd
Kefu Chai [Tue, 26 Jan 2021 15:34:06 +0000 (23:34 +0800)]
Merge pull request #39077 from tchaikov/wip-libzbd

install-deps.sh: set codename when installing libzbd

Reviewed-by: David Galloway <dgallowa@redhat.com>
4 years agoMerge pull request #38935 from tchaikov/wip-mgr-ann
Kefu Chai [Tue, 26 Jan 2021 15:26:34 +0000 (23:26 +0800)]
Merge pull request #38935 from tchaikov/wip-mgr-ann

pybind/mgr/mgr_module: annotate more methods and add poll to CLICommand

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Kamoltat <ksirivad@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoqa/tasks/rbd: cleanup passphrase file 39086/head
Or Ozeri [Tue, 26 Jan 2021 15:02:37 +0000 (17:02 +0200)]
qa/tasks/rbd: cleanup passphrase file

This commit adds a cleanup for the passphrase file used to create/mount encrypted rbd images.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
4 years agoMerge pull request #39022 from petrutlucian94/rbd_fixes
Jason Dillaman [Tue, 26 Jan 2021 14:47:40 +0000 (09:47 -0500)]
Merge pull request #39022 from petrutlucian94/rbd_fixes

Windows RBD fixes

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #38984 from petrutlucian94/dll
Jason Dillaman [Tue, 26 Jan 2021 14:47:26 +0000 (09:47 -0500)]
Merge pull request #38984 from petrutlucian94/dll

Windows DLL support

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #39073 from tchaikov/wip-rbd-bench
Jason Dillaman [Tue, 26 Jan 2021 14:47:06 +0000 (09:47 -0500)]
Merge pull request #39073 from tchaikov/wip-rbd-bench

rbd/bench: include used headers

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #39049 from lixiaoy1/fix_spec
Jason Dillaman [Tue, 26 Jan 2021 14:46:44 +0000 (09:46 -0500)]
Merge pull request #39049 from lixiaoy1/fix_spec

spec: enable RWL/SSD caches

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #39044 from orozery/librbd-crypto-close-bug
Jason Dillaman [Tue, 26 Jan 2021 14:46:35 +0000 (09:46 -0500)]
Merge pull request #39044 from orozery/librbd-crypto-close-bug

librbd: do not share crypto image layers with ancestors

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #39006 from orozery/librbd-luks-cli-test
Jason Dillaman [Tue, 26 Jan 2021 14:46:20 +0000 (09:46 -0500)]
Merge pull request #39006 from orozery/librbd-luks-cli-test

test/librbd: add luks encryption cli test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #39005 from orozery/librbd-plain64-iv-fix
Jason Dillaman [Tue, 26 Jan 2021 14:45:54 +0000 (09:45 -0500)]
Merge pull request #39005 from orozery/librbd-plain64-iv-fix

librbd: use 512 sector size for crypto IV

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoMerge pull request #39064 from idryomov/wip-doc-osdtimeout
Ilya Dryomov [Tue, 26 Jan 2021 12:37:10 +0000 (13:37 +0100)]
Merge pull request #39064 from idryomov/wip-doc-osdtimeout

doc: don't mention osdtimeout option in mount.ceph man page

Reviewed-by: Jeff Layton <jlayton@redhat.com>
4 years agoMerge pull request #39060 from idryomov/wip-krbd-msgr2
Ilya Dryomov [Tue, 26 Jan 2021 10:46:08 +0000 (11:46 +0100)]
Merge pull request #39060 from idryomov/wip-krbd-msgr2

krbd: add support for msgr2 (kernel 5.11)

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
4 years agoinstall-deps.sh: set codename when installing libzbd 39077/head
Kefu Chai [Tue, 26 Jan 2021 10:20:45 +0000 (18:20 +0800)]
install-deps.sh: set codename when installing libzbd

this was an oversight in e7e3b86762ff3fccdae21e713c64215ab3bb7bb4

also use updated build with sha1 of
1fadde94b08fab574b17637c2bebd2b1e7f9127b, the older version has an issue
where both libzbd and libzbd-dev packaged .pc file with the same path,
so they conflicted with each other. the new version addressed this
issue.

and install libzbd-dev instead of libzbd and libzbd-dev, as the package
name of the former could change if its so version is bumped, so use the
*-dev package is a safer choice from the perspective of testing the
dev build.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/cephadm: return -ENOENT if self.ssh_user is None 38935/head
Kefu Chai [Thu, 21 Jan 2021 16:11:39 +0000 (00:11 +0800)]
pybind/mgr/cephadm: return -ENOENT if self.ssh_user is None

there is chance that self.ssh_user is None when handling "cephadm
get-user" command, so return -ENOENT and error messages in that case.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/dashboard: use _get_localized_key for composing store key
Kefu Chai [Tue, 19 Jan 2021 17:56:02 +0000 (01:56 +0800)]
pybind/mgr/dashboard: use _get_localized_key for composing store key

Just for keeping this 'encapsulated', there's _get_localized_key helper
in mgr_module (there's also a set_localized_store but it only deals with
the active manager)

As suggested by Ernesto Puerta <epuertat@redhat.com>

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/prometheus: add assert to appease mypy
Kefu Chai [Tue, 19 Jan 2021 17:28:20 +0000 (01:28 +0800)]
pybind/mgr/prometheus: add assert to appease mypy

self.get_osd_perf_counters() might return None, add assert() to assure
mypy that it does not return None here.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/cephadm/serve: add assert to appease mypy
Kefu Chai [Tue, 19 Jan 2021 17:26:06 +0000 (01:26 +0800)]
pybind/mgr/cephadm/serve: add assert to appease mypy

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/cephadm/module: assure self.ssh_user is not None
Kefu Chai [Tue, 19 Jan 2021 17:25:10 +0000 (01:25 +0800)]
pybind/mgr/cephadm/module: assure self.ssh_user is not None

to appease mypy

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/cephadm/inventory: cast variable to expected type
Kefu Chai [Tue, 19 Jan 2021 17:24:01 +0000 (01:24 +0800)]
pybind/mgr/cephadm/inventory: cast variable to expected type

to silence mypy warnings like:

cephadm/module.py:55: note: In module imported here,
cephadm/__init__.py:6: note: ... from here:
cephadm/inventory.py: note: In member "load" of class "SpecStore":
cephadm/inventory.py:130: error: Invalid index type "str" for "str"; expected type "Union[int, slice]"
cephadm/inventory.py:131: error: Invalid index type "str" for "str"; expected type "Union[int, slice]"

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agotools/setup-virtualenv.sh: do not pass --use-feature=2020-resolver to pip
Kefu Chai [Tue, 19 Jan 2021 12:12:22 +0000 (20:12 +0800)]
tools/setup-virtualenv.sh: do not pass --use-feature=2020-resolver to pip

pip use the new resolver by default now. so no need to pass this option
to it anymore.

This reverts commit fa9e2bfd4b3648f08ed3a88ce737d432ab97cce1.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/mgr_module: annotate variable type
Kefu Chai [Tue, 19 Jan 2021 09:34:43 +0000 (17:34 +0800)]
pybind/mgr/mgr_module: annotate variable type

to silence following mypy error:

cephadm/module.py:1155: error: Incompatible types in assignment
(expression has type "None", variable has type "str")

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/cephadm: rename variables to avoid name reuse
Kefu Chai [Tue, 19 Jan 2021 09:20:29 +0000 (17:20 +0800)]
pybind/mgr/cephadm: rename variables to avoid name reuse

to applease mypy, otherwise, for instance, "err" would be reused for
holding the return value of self.mgr.check_mon_command(...)

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr: annotate OSDMap and friends
Kefu Chai [Tue, 19 Jan 2021 06:53:11 +0000 (14:53 +0800)]
pybind/mgr: annotate OSDMap and friends

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr: correct annotation for BasePyOSDMap._apply_incremental()
Kefu Chai [Tue, 19 Jan 2021 06:49:07 +0000 (14:49 +0800)]
pybind/mgr: correct annotation for BasePyOSDMap._apply_incremental()

it's incorrect. as the underlying C implementation,
"osdmap_apply_incremental()", actually expects an instance of
`BasePyOSDMapIncrementalType`. which is mapped to
`BasePyOSDMapIncremental` in Python. and this class is wrapped using
`OSDMapIncremental` in mgr_module.py.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr: define HandleCommandResult using NamedTuple
Kefu Chai [Tue, 19 Jan 2021 06:08:39 +0000 (14:08 +0800)]
pybind/mgr: define HandleCommandResult using NamedTuple

simpler this way, so we don't need to define __new__

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr: use numeric values of logging level for index
Kefu Chai [Tue, 19 Jan 2021 04:16:12 +0000 (12:16 +0800)]
pybind/mgr: use numeric values of logging level for index

less magic values in code this way

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomgr/cephadm: use dict instead of defaultdict to silence mypy warning
Kefu Chai [Sun, 17 Jan 2021 08:36:35 +0000 (16:36 +0800)]
mgr/cephadm: use dict instead of defaultdict to silence mypy warning

otherwise we have:

1: cephadm/module.py:30: note: In module imported here:
1: cephadm/serve.py: note: In member "_check_for_strays" of class "CephadmServe":
1: cephadm/serve.py:395: error: Argument "default" to "get_metadata" of "MgrModule" has incompatible type "defaultdict[str, None]"; expected "Optional[Dict[str, str]]"

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomgr/rook: handle the case where given osd is not found
Kefu Chai [Sun, 17 Jan 2021 08:29:37 +0000 (16:29 +0800)]
mgr/rook: handle the case where given osd is not found

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomgr/dashboard: pass str as the 2nd param of set_store()
Kefu Chai [Sun, 17 Jan 2021 08:09:36 +0000 (16:09 +0800)]
mgr/dashboard: pass str as the 2nd param of set_store()

MgrModule.set_store() only accepts str or None as its second
parameter.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomgr/progress: pass a str as the value of option to set_module_option()
Kefu Chai [Sun, 17 Jan 2021 08:02:30 +0000 (16:02 +0800)]
mgr/progress: pass a str as the value of option to set_module_option()

MgrModule.set_module_option() only accepts str or None as its second
parameter.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomgr/progress: pass id to constructor of Event
Kefu Chai [Sun, 17 Jan 2021 07:29:33 +0000 (15:29 +0800)]
mgr/progress: pass id to constructor of Event

to assure that the self.id is always valid, it helps to silence the
warnings from mypy like:

progress/module.py: note: In member "_refresh" of class "Event":
progress/module.py:46: error: Argument 1 to "update_progress_event" of "MgrModule" has incompatible type "Optional[str]"; expected "str"

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/insights: be PEP8 compliant
Kefu Chai [Sun, 17 Jan 2021 02:41:58 +0000 (10:41 +0800)]
pybind/mgr/insights: be PEP8 compliant

to applease flake8

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/insights: use CLICommand to define command
Kefu Chai [Sun, 17 Jan 2021 02:37:40 +0000 (10:37 +0800)]
pybind/mgr/insights: use CLICommand to define command

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/iostat: minor cleanups
Kefu Chai [Sun, 17 Jan 2021 02:19:53 +0000 (10:19 +0800)]
pybind/mgr/iostat: minor cleanups

* do not pass typename and self to super()
* do not add parentheses around condition expression

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/iostat: use correct types
Kefu Chai [Sun, 17 Jan 2021 01:35:36 +0000 (09:35 +0800)]
pybind/mgr/iostat: use correct types

for better readability and for the sake of correctness.

* do not cast denominator to float before diving by it
* use '//' for divding an int
* cast int to str as it will be used as an element in a list of str

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomgr/iostat: use CLICommand to define command
Kefu Chai [Sun, 17 Jan 2021 01:29:20 +0000 (09:29 +0800)]
mgr/iostat: use CLICommand to define command

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/mgr_module: annotate more methods
Kefu Chai [Sat, 16 Jan 2021 15:14:07 +0000 (23:14 +0800)]
pybind/mgr/mgr_module: annotate more methods

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38929 from jdurgin/wip-cot-log
Kefu Chai [Tue, 26 Jan 2021 09:33:22 +0000 (17:33 +0800)]
Merge pull request #38929 from jdurgin/wip-cot-log

qa/tasks/ceph_manager: let c-o-t log errors

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38931 from trociny/wip-48821
Kefu Chai [Tue, 26 Jan 2021 09:28:30 +0000 (17:28 +0800)]
Merge pull request #38931 from trociny/wip-48821

osd: fix potential null pointer dereference when sending ping

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #38901 from gmayyyha/io_uring-48872
Kefu Chai [Tue, 26 Jan 2021 09:25:41 +0000 (17:25 +0800)]
Merge pull request #38901 from gmayyyha/io_uring-48872

blk/kernel: fix io_uring got (4) Interrupted system call

Reviewed-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #38932 from tchaikov/wip-48905
Kefu Chai [Tue, 26 Jan 2021 09:23:19 +0000 (17:23 +0800)]
Merge pull request #38932 from tchaikov/wip-48905

mgr: update mon metadata when monmap is updated

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agospec: enable RWL/SSD caches 39049/head
lixiaoy1 [Fri, 22 Jan 2021 16:07:40 +0000 (11:07 -0500)]
spec: enable RWL/SSD caches

Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
4 years agocmake,win32*.sh: Windows DLL support 38984/head
Lucian Petrut [Thu, 7 Jan 2021 13:14:00 +0000 (13:14 +0000)]
cmake,win32*.sh: Windows DLL support

At the moment, the Windows binaries can only be linked statically.
This is less than ideal since:

* the resulting binaries can be quite large, especially when
including debug symbols
* librados and librbd cannot be used directly by 3rd party apps
* the build duration is increased

In order to do a dynamic build, we'll:

* add an option to win32_build.sh
* fix link order
* dynamically link boost
* disable the "-pie" flag when using Mingw, which generates incorrect
  executable entry points
* by default, cmake generates import libs for executables. The issue
  is that for rados.exe, it generates librados.dll.a, thus overriding
  the librados.dll import library, which breaks the build process.
  We'll configure cmake to skip generating import libs for executables.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
4 years agorbd/bench: include used headers 39073/head
Kefu Chai [Tue, 26 Jan 2021 08:08:43 +0000 (16:08 +0800)]
rbd/bench: include used headers

should help with fixing following failure:

src/tools/rbd/action/Bench.cc:20:26: error: aggregate 'std::atomic<bool>
terminating' has incomplete type and cannot be defined

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #37250 from cbodley/wip-qa-librgw
Matt Benjamin [Tue, 26 Jan 2021 03:10:37 +0000 (22:10 -0500)]
Merge pull request #37250 from cbodley/wip-qa-librgw

qa/rgw: add librgw_file unit tests to rgw/verify task

4 years agoMerge pull request #38852 from adamemerson/wip-thou-shalt-not-unwind
Harish Munjulur [Mon, 25 Jan 2021 23:22:38 +0000 (15:22 -0800)]
Merge pull request #38852 from adamemerson/wip-thou-shalt-not-unwind

Thou Shalt Not Unwind

4 years agoMerge pull request #38905 from cbodley/wip-48874
Harish Munjulur [Mon, 25 Jan 2021 23:17:05 +0000 (15:17 -0800)]
Merge pull request #38905 from cbodley/wip-48874

rgw: fix trailing null in object names of multipart reuploads

4 years agoMerge pull request #39063 from yuriw/wip-yuriw-crontab-master
Neha Ojha [Mon, 25 Jan 2021 22:11:53 +0000 (14:11 -0800)]
Merge pull request #39063 from yuriw/wip-yuriw-crontab-master

qa/tests: added pacific branch to the mix

Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agoMerge pull request #39009 from mdw-at-linuxbox/wip-master-keystonebindep
Casey Bodley [Mon, 25 Jan 2021 22:04:36 +0000 (17:04 -0500)]
Merge pull request #39009 from mdw-at-linuxbox/wip-master-keystonebindep

qa/tasks/keystone.py: centos-8 bindep fix

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #38962 from aclamk/wip-aclamk-bluestore-tool-reshard-fix
Neha Ojha [Mon, 25 Jan 2021 22:03:38 +0000 (14:03 -0800)]
Merge pull request #38962 from aclamk/wip-aclamk-bluestore-tool-reshard-fix

Fix ceph-bluestore-tool reshard command

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #38965 from aclamk/wip-aclamk-bluestore-tool-sharding-show
Neha Ojha [Mon, 25 Jan 2021 22:02:32 +0000 (14:02 -0800)]
Merge pull request #38965 from aclamk/wip-aclamk-bluestore-tool-sharding-show

Add command 'show-sharding' to ceph-bluestore-tool

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
4 years agotest/rgw_file: bypass one bad-deletes test due to intermittent failure 37250/head
Matt Benjamin [Mon, 25 Jan 2021 18:35:03 +0000 (13:35 -0500)]
test/rgw_file: bypass one bad-deletes test due to intermittent failure

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agotest/rgw_file: override keyring if we gen keys
Matt Benjamin [Thu, 14 Jan 2021 19:15:46 +0000 (14:15 -0500)]
test/rgw_file: override keyring if we gen keys

Run with ceph.keyring not that of client.${CEPH_ID}.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agotest/rgw_file: elaborate test cycle
Matt Benjamin [Tue, 12 Jan 2021 22:14:57 +0000 (17:14 -0500)]
test/rgw_file: elaborate test cycle

Ensure that all delete phases are run so that script can be
re-run when desired.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
 Please enter the commit message for your changes. Lines starting

4 years agorgw_file: delete test bucket when do_delete
Matt Benjamin [Tue, 12 Jan 2021 22:14:26 +0000 (17:14 -0500)]
rgw_file: delete test bucket when do_delete

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agorgw_file: add librgw unit test arguments
Matt Benjamin [Tue, 5 Jan 2021 21:08:02 +0000 (16:08 -0500)]
rgw_file: add librgw unit test arguments

Also adjust some unit test files to avoid trivial failures.
Fixes missing commit after rgw_write(), as well as conditional
cleanup.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agoqa/rgw: librgw workunit creates a test user
Casey Bodley [Tue, 22 Sep 2020 14:38:22 +0000 (10:38 -0400)]
qa/rgw: librgw workunit creates a test user

Signed-off-by: Casey Bodley <cbodley@redhat.com>
4 years agocmake: install the ceph_test_librgw_file_* targets
Casey Bodley [Fri, 18 Sep 2020 16:48:07 +0000 (12:48 -0400)]
cmake: install the ceph_test_librgw_file_* targets

these need to be installed in order to be included in packages for
testing in teuthology

Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
4 years agoqa/rgw: add librgw_file unit tests to rgw/verify task
Casey Bodley [Fri, 18 Sep 2020 16:15:10 +0000 (12:15 -0400)]
qa/rgw: add librgw_file unit tests to rgw/verify task

Signed-off-by: Casey Bodley <cbodley@redhat.com>
4 years agoqa/suites/krbd: add msgr2 modes to most subsuites 39060/head
Ilya Dryomov [Wed, 20 Jan 2021 15:00:18 +0000 (16:00 +0100)]
qa/suites/krbd: add msgr2 modes to most subsuites

basic, rbd and rbd-nomount subsuites are expanded to run with each
of ms_mode=legacy, ms_mode=crc and ms_mode=secure.  This increases
the total number of jobs in the suite from 100 to 220.

fsx, singleton and thrash subsuites choose ms_mode at random (from
the above plus ms_mode=prefer-crc).

unmap and wac subsuites remain msgr1-only.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
4 years agodoc: deprecate [no]cephx_require_signatures map options
Ilya Dryomov [Mon, 18 Jan 2021 13:29:27 +0000 (14:29 +0100)]
doc: deprecate [no]cephx_require_signatures map options

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
4 years agokrbd: add support for msgr2
Ilya Dryomov [Mon, 18 Jan 2021 12:49:49 +0000 (13:49 +0100)]
krbd: add support for msgr2

Recognize ms_mode map option and filter initial monitor addresses
accordingly: if ms_mode is not given or ms_mode=legacy, discard v2
addresses, otherwise discard v1 addresses.

Note that nothing was discarded (i.e. v2 addresses were passed to
the kernel) previously.  The intent was to preserve that behaviour
in case ms_mode is not given, allowing to change the kernel default
in the future.  However, it turns out that mount.ceph helper has
been misguidedly discarding v2 addresses since commit eae01275134e
("mount.ceph: fork a child to get info from local configuration"),
so that ship has sailed.

Fixes: https://tracker.ceph.com/issues/48976
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
4 years agoMerge pull request #37694 from BryceCao/wip-add-MD5-in-forward_request
Harish Munjulur [Mon, 25 Jan 2021 19:50:45 +0000 (11:50 -0800)]
Merge pull request #37694 from BryceCao/wip-add-MD5-in-forward_request

rgw : add MD5 in forward_request

4 years agoMerge pull request #38977 from adamemerson/wip-48929
Harish Munjulur [Mon, 25 Jan 2021 19:48:56 +0000 (11:48 -0800)]
Merge pull request #38977 from adamemerson/wip-48929

rgw: Fix spurious error on empty datalog shard

4 years agoMerge pull request #38958 from badone/wip-osd-df-tree-accounting-error
Neha Ojha [Mon, 25 Jan 2021 18:17:19 +0000 (10:17 -0800)]
Merge pull request #38958 from badone/wip-osd-df-tree-accounting-error

An empty bucket or OSD is not an error

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoMerge pull request #38992 from ifed01/wip-ifed-fix-48776-2
Neha Ojha [Mon, 25 Jan 2021 18:10:15 +0000 (10:10 -0800)]
Merge pull request #38992 from ifed01/wip-ifed-fix-48776-2

os/bluestore: be more protective in _deferred_queue

Reviewed-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
4 years agodoc: don't mention osdtimeout option in mount.ceph man page 39064/head
Ilya Dryomov [Sat, 23 Jan 2021 11:08:35 +0000 (12:08 +0100)]
doc: don't mention osdtimeout option in mount.ceph man page

It was deprecated over 8 years ago and will be entirely removed in
kernel 5.12.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
4 years agoMerge pull request #39051 from tchaikov/wip-install-deps-libzbd
Kefu Chai [Mon, 25 Jan 2021 17:00:52 +0000 (01:00 +0800)]
Merge pull request #39051 from tchaikov/wip-install-deps-libzbd

install-deps.sh: install libzbd-dev when WITH_ZBD is set

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
4 years agoqa/tests: added pacific branch to the mix 39063/head
Yuri Weinstein [Mon, 25 Jan 2021 16:36:28 +0000 (08:36 -0800)]
qa/tests: added pacific branch to the mix

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
4 years agocephadm: retry for 30s instead of 10s 39028/head
Sage Weil [Fri, 22 Jan 2021 15:09:17 +0000 (09:09 -0600)]
cephadm: retry for 30s instead of 10s

No real reason not to wait longer, and I'm worried about things not coming
up quickly enough on slower or loady machines.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agocephadm: try 'mgr stat' before 'mgr dump' to get the epoch
Sage Weil [Fri, 22 Jan 2021 15:06:44 +0000 (09:06 -0600)]
cephadm: try 'mgr stat' before 'mgr dump' to get the epoch

This is less noise in the debug log.  (Also, there seems to be a problem
when the mgr stat output gets too big.)

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agomon: add 'mgr stat' command
Sage Weil [Thu, 21 Jan 2021 23:51:39 +0000 (17:51 -0600)]
mon: add 'mgr stat' command

This is analogous to 'osd stat' and 'mds stat'.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoinstall-deps.sh: install libzbd-dev when WITH_ZBD is set 39051/head
Kefu Chai [Mon, 25 Jan 2021 06:11:46 +0000 (14:11 +0800)]
install-deps.sh: install libzbd-dev when WITH_ZBD is set

to avoid zbd backend bitrot, and for build test it in our "make check"
builds.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr: define CLUSTER_LOG_PRIO* using enum.IntEnum
Kefu Chai [Sat, 16 Jan 2021 15:30:30 +0000 (23:30 +0800)]
pybind/mgr: define CLUSTER_LOG_PRIO* using enum.IntEnum

so the clog type / prio can be typed.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/mgr_module: add poll param to CLICommand
Kefu Chai [Sat, 16 Jan 2021 14:54:51 +0000 (22:54 +0800)]
pybind/mgr/mgr_module: add poll param to CLICommand

and add it to the output of dump_cmd() call, if "poll" is missing
in the output of dump_cmd() call, ceph CLI consider the it as False.

but it'd be better to be explicit. so this field is always set.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agomgr,pybind/mgr: use bool for poll in COMMANDS
Kefu Chai [Sun, 17 Jan 2021 01:16:36 +0000 (09:16 +0800)]
mgr,pybind/mgr: use bool for poll in COMMANDS

use correctly typed variable helps with readability and less
error-prone.

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agopybind/mgr/mgr_module: flake8 fixes
Kefu Chai [Sat, 16 Jan 2021 14:47:02 +0000 (22:47 +0800)]
pybind/mgr/mgr_module: flake8 fixes

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39040 from liewegas/cephadm-qa-targets
Sebastian Wagner [Sun, 24 Jan 2021 11:32:26 +0000 (12:32 +0100)]
Merge pull request #39040 from liewegas/cephadm-qa-targets

qa/suites/rados/cephadm: test against ubuntu 20.04 (and update ubuntu_latest)

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
4 years agolibrbd: do not share crypto image layers with ancestors 39044/head
Or Ozeri [Sun, 24 Jan 2021 07:32:44 +0000 (09:32 +0200)]
librbd: do not share crypto image layers with ancestors

This commit creates a unique crypto image dispatch per image,
instead of sharing a single object with all ancestors.
This should fix a seg-fault caused when closing an encrypted cloned image.

Signed-off-by: Or Ozeri <oro@il.ibm.com>
4 years agotest/librbd: add luks encryption cli test 39006/head
Or Ozeri [Thu, 21 Jan 2021 16:18:57 +0000 (18:18 +0200)]
test/librbd: add luks encryption cli test

This commit adds a cli test for rbd encryption verifying LUKS compatbility with cryptsetup

Signed-off-by: Or Ozeri <oro@il.ibm.com>
4 years agoqa/workunits/cephadm/test_repos: adjust target version 39040/head
Sage Weil [Sun, 24 Jan 2021 00:56:42 +0000 (18:56 -0600)]
qa/workunits/cephadm/test_repos: adjust target version

15.2.7 is available for 20.04; 15.1.1 is not

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge pull request #39042 from tchaikov/wip-cram
Kefu Chai [Sat, 23 Jan 2021 19:30:29 +0000 (03:30 +0800)]
Merge pull request #39042 from tchaikov/wip-cram

test/run-cli-tests: use cram from github

Reviewed-by: Sage Weil <sage@redhat.com>
4 years agotest/downloads: drop cram-0.5 tar ball 39042/head
Kefu Chai [Sat, 23 Jan 2021 18:13:31 +0000 (02:13 +0800)]
test/downloads: drop cram-0.5 tar ball

since we install cram from github, drop the tarball from repo

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agotest/run-cli-tests: use cram from github
Kefu Chai [Sat, 23 Jan 2021 18:12:31 +0000 (02:12 +0800)]
test/run-cli-tests: use cram from github

to address the failure of

  WARNING: Built wheel for cram is invalid: Metadata 1.2 mandates PEP 440 version, but '0.5.0ceph.2011-01-14' is not
Failed to build cram

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoMerge pull request #39035 from tchaikov/wip-cephadm-call
Kefu Chai [Sat, 23 Jan 2021 18:23:38 +0000 (02:23 +0800)]
Merge pull request #39035 from tchaikov/wip-cephadm-call

cephadm: rewrite call() with asyncio

Reviewed-by: Sebastian Wagner <swagner@suse.com>
4 years agocephadm: rewrite call() with asyncio 39035/head
Kefu Chai [Sat, 23 Jan 2021 05:18:56 +0000 (13:18 +0800)]
cephadm: rewrite call() with asyncio

for better readability, also return 124 when subprocess times out

Signed-off-by: Kefu Chai <kchai@redhat.com>
4 years agoqa/suites/rados/cephadm: add 20.04 targets
Sage Weil [Sat, 23 Jan 2021 17:26:06 +0000 (11:26 -0600)]
qa/suites/rados/cephadm: add 20.04 targets

Add 20.04 targets.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/suites/rados/cephadm: add 20.04 target
Sage Weil [Sat, 23 Jan 2021 17:23:13 +0000 (11:23 -0600)]
qa/suites/rados/cephadm: add 20.04 target

Link directly to the distro version... no need to use _latest here since
it obscures the podman vs docker difference.

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/distros: change ubuntu_latest to 20.04
Sage Weil [Sat, 23 Jan 2021 17:21:58 +0000 (11:21 -0600)]
qa/distros: change ubuntu_latest to 20.04

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoqa/distros: add ubuntu 20.04 targets
Sage Weil [Sat, 23 Jan 2021 17:20:52 +0000 (11:20 -0600)]
qa/distros: add ubuntu 20.04 targets

Signed-off-by: Sage Weil <sage@newdream.net>
4 years agoMerge PR #38974 into master
Sage Weil [Sat, 23 Jan 2021 17:03:10 +0000 (11:03 -0600)]
Merge PR #38974 into master

* refs/pull/38974/head:
qa/suites/rados/cephadm/upgrade: avoid allow_ptrace with old cephadm

Reviewed-by: Michael Fritch <mfritch@suse.com>
4 years agoMerge pull request #39032 from adamemerson/wip-layout-initialize
Casey Bodley [Sat, 23 Jan 2021 16:32:51 +0000 (11:32 -0500)]
Merge pull request #39032 from adamemerson/wip-layout-initialize

rgw: Initialize Layout Logs

Reviewed-by: Casey Bodley <cbodley@redhat.com>
4 years agoMerge pull request #39029 from dillaman/wip-48964
Mykola Golub [Sat, 23 Jan 2021 08:52:27 +0000 (10:52 +0200)]
Merge pull request #39029 from dillaman/wip-48964

ocf: add support for mapping images within an RBD namespace

Reviewed-by: Mykola Golub <mgolub@suse.com>