]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agobluestore: Revert "os/bluestore: Add CoDel to BlueStore for Bufferbloat mitigation" 46028/head
Samuel Just [Mon, 25 Apr 2022 19:29:49 +0000 (12:29 -0700)]
bluestore: Revert "os/bluestore: Add CoDel to BlueStore for Bufferbloat mitigation"

Merge caused: https://tracker.ceph.com/issues/55433

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #44989 from Ejdesgaard/patch-1
Casey Bodley [Mon, 25 Apr 2022 18:26:08 +0000 (14:26 -0400)]
Merge pull request #44989 from Ejdesgaard/patch-1

radosgw-admin zone deletion uses zone delete

Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #45407 from vshankar/wip-54046
Venky Shankar [Mon, 25 Apr 2022 14:18:57 +0000 (19:48 +0530)]
Merge pull request #45407 from vshankar/wip-54046

mds: include encoded stray inode when sending dentry unlink message to replicas

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45243 from lxbsz/mdslog_bz
Venky Shankar [Mon, 25 Apr 2022 12:26:27 +0000 (17:56 +0530)]
Merge pull request #45243 from lxbsz/mdslog_bz

mds: flush mdlog if locked and still has wanted caps not satisfied

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45307 from lxbsz/wip54461
Venky Shankar [Mon, 25 Apr 2022 12:24:06 +0000 (17:54 +0530)]
Merge pull request #45307 from lxbsz/wip54461

mds: notify clients if the session has already opened

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45887 from bluikko/patch-3
Ilya Dryomov [Sat, 23 Apr 2022 08:53:31 +0000 (10:53 +0200)]
Merge pull request #45887 from bluikko/patch-3

doc: replace spaces with underscores in config option names

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
3 years agodoc: remove spaces at line ends and doubles, fix wrapping 45887/head
Ville Ojamo [Fri, 22 Apr 2022 13:36:44 +0000 (20:36 +0700)]
doc: remove spaces at line ends and doubles, fix wrapping

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
3 years agodoc: replace spaces with underscores in config option names
Ville Ojamo [Wed, 13 Apr 2022 03:33:36 +0000 (10:33 +0700)]
doc: replace spaces with underscores in config option names

Signed-off-by: Ville Ojamo <14869000+bluikko@users.noreply.github.com>
3 years agoMerge pull request #45948 from cyx1231st/wip-seastore-cleaner-work
Yingxin [Sat, 23 Apr 2022 04:07:09 +0000 (12:07 +0800)]
Merge pull request #45948 from cyx1231st/wip-seastore-cleaner-work

crimson/os/seastore/segment_cleaner: cleanup segment_info_set_t

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agoMerge pull request #43413 from esmaeil-mirvakili/bluestore-bufferbloat-mitigation
Samuel Just [Fri, 22 Apr 2022 21:37:04 +0000 (14:37 -0700)]
Merge pull request #43413 from esmaeil-mirvakili/bluestore-bufferbloat-mitigation

os/bluestore: Add CoDel to BlueStore for Bufferbloat mitigation

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
3 years agoMerge pull request #45920 from adk3798/stop-mgr-nfs-upgrade-fail
Adam King [Fri, 22 Apr 2022 13:28:35 +0000 (09:28 -0400)]
Merge pull request #45920 from adk3798/stop-mgr-nfs-upgrade-fail

qa/suites/orch/cephadm: stop upgrade tests if failures are seen

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #45931 from rkachach/fix_issue_51671
Adam King [Fri, 22 Apr 2022 13:27:47 +0000 (09:27 -0400)]
Merge pull request #45931 from rkachach/fix_issue_51671

mgr/cephadm: fixing logging output for rm-cluster operation

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #45982 from rkachach/fix_issue_52727
Adam King [Fri, 22 Apr 2022 13:23:31 +0000 (09:23 -0400)]
Merge pull request #45982 from rkachach/fix_issue_52727

mgr/cephadm: do not add _admin label when no-minimize-config is provided

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #45934 from ceph/fix-github_triage-master
Ernesto Puerta [Fri, 22 Apr 2022 12:02:24 +0000 (14:02 +0200)]
Merge pull request #45934 from ceph/fix-github_triage-master

.github/pr-triage: reorder milestone step

Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #45631 from Rethan/feat-mds-slow-ops
Venky Shankar [Fri, 22 Apr 2022 11:56:52 +0000 (17:26 +0530)]
Merge pull request #45631 from Rethan/feat-mds-slow-ops

mds: add a perf counter to record slow replies

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45978 from tchaikov/wip-cmake-python3-exact
Kefu Chai [Thu, 21 Apr 2022 23:10:02 +0000 (07:10 +0800)]
Merge pull request #45978 from tchaikov/wip-cmake-python3-exact

cmake/modules: use exact version of python3 when finding cython

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #44151 from gregsfortytwo/wip-cidr-blocklist
Gregory Farnum [Thu, 21 Apr 2022 15:31:16 +0000 (08:31 -0700)]
Merge pull request #44151 from gregsfortytwo/wip-cidr-blocklist

Implement CIDR blocklisting

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoMerge pull request #45971 from rishabh-d-dave/cephfs-shell-exclam-marks
Venky Shankar [Thu, 21 Apr 2022 13:22:20 +0000 (18:52 +0530)]
Merge pull request #45971 from rishabh-d-dave/cephfs-shell-exclam-marks

qa/cephfs: bug fix and some cleanup for test_cephfs_shell.py

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45977 from tchaikov/wip-cmake-dml-cleanup
Kefu Chai [Thu, 21 Apr 2022 11:31:20 +0000 (19:31 +0800)]
Merge pull request #45977 from tchaikov/wip-cmake-dml-cleanup

cmake: try to find dml only if PMEM is enabled

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoqa/cephfs: cleanup some code in test_cephfs_shell.py 45971/head
Rishabh Dave [Wed, 20 Apr 2022 12:43:05 +0000 (18:13 +0530)]
qa/cephfs: cleanup some code in test_cephfs_shell.py

Also delete a comment since it's incorrect.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoqa/cephfs: don't use exclam mark in tests in test_cephfs_shell.py
Rishabh Dave [Wed, 20 Apr 2022 11:07:16 +0000 (16:37 +0530)]
qa/cephfs: don't use exclam mark in tests in test_cephfs_shell.py

Exclamation mark is a special character for bash as well as
cephfs-shell. For bash, it substitutes current command with matching
command from command history and for cephfs-shell it runs the command
as OS-level command and not inside the cephfs-shell.

And evey command executed in tests (say "ls") is run by passing it as a
parameter to cephfs-shell command (that is "cephfs-shell -c <conf> --
ls"). So, exclamation mark, when used in tests, is consumed by bash
instead of cephfs-shell.

To avoid these complications it's best (and even simpler!) to issue the
command meant for bash on bash without going through cephfs-shell.

Fixes: https://tracker.ceph.com/issues/55394
Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agomgr/cephadm: do not add _admin label when no-minimize-config is provided 45982/head
Redouane Kachach [Thu, 21 Apr 2022 10:01:44 +0000 (12:01 +0200)]
mgr/cephadm: do not add _admin label when no-minimize-config is provided
Fixes: https://tracker.ceph.com/issues/52727
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #45979 from lxbsz/doc_noatime
Anthony D'Atri [Thu, 21 Apr 2022 08:03:10 +0000 (01:03 -0700)]
Merge pull request #45979 from lxbsz/doc_noatime

doc: cephfs: update with atime not supporting explaination

3 years agodoc: cephfs: update with atime not supporting explaination 45979/head
Xiubo Li [Thu, 21 Apr 2022 01:35:58 +0000 (09:35 +0800)]
doc: cephfs: update with atime not supporting explaination

Signed-off-by: Xiubo Li <xiubli@redhat.com>
3 years agotest: osd: add a /0 cidr test for 32-bit... 44151/head
Greg Farnum [Thu, 21 Apr 2022 00:16:22 +0000 (00:16 +0000)]
test: osd: add a /0 cidr test for 32-bit...

...and make the OSDMap handle it.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
3 years agotest: add a /0 cidr test that blocklists EVERYTHING
Greg Farnum [Wed, 20 Apr 2022 15:59:01 +0000 (15:59 +0000)]
test: add a /0 cidr test that blocklists EVERYTHING

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
3 years agotest: add a 128-bit range blocklist test
Greg Farnum [Wed, 20 Apr 2022 15:06:33 +0000 (15:06 +0000)]
test: add a 128-bit range blocklist test

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
3 years agoMerge pull request #45975 from adamemerson/wip-mrun-bashism
Kefu Chai [Thu, 21 Apr 2022 00:11:43 +0000 (08:11 +0800)]
Merge pull request #45975 from adamemerson/wip-mrun-bashism

mrun: Change mrun to use bash

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agocmake/modules: use exact version of python3 when finding cython 45978/head
Kefu Chai [Wed, 20 Apr 2022 22:31:21 +0000 (06:31 +0800)]
cmake/modules: use exact version of python3 when finding cython

* CMakeLists.txt:
    always pass "EXACT" to find_package(Python3).
    because per cmake document, "EXACT" only takes effect when
    <Package>_FIND_VERSION_COUNT is greater than 1, where <Package>
    is "Python3". see also cmake/modules/FindPython/Support.cmake
* cmake/modules/AddCephTest.cmake:
    drop redundant find_package(Python3) calls. since Python3 is
    a mandatory requirement for building Ceph, we only need a
    single call of find_package(Python3..) in the top of the source
    tree. the only possible case to repeat it is to ensure that we
    have the correct version of Python3 used in following CMake
    script. but there is no need to repeat it if we just want to
    ensure that we have a python3 interpretor in place.
* cmake/modules/Distutils.cmake:
    always pass "EXACT" to find_package(Python3).
    we should always pass EXACT to find_package() when finding python3,
    this is a follow-up of e2babdfae8c99f39f99a7c8a8f966299b2e62b19

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agocmake: try to find dml only if PMEM is enabled 45977/head
Kefu Chai [Wed, 20 Apr 2022 22:27:25 +0000 (06:27 +0800)]
cmake: try to find dml only if PMEM is enabled

as the feature dependent on DML library requires PMEM backend.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agotooling: Change mrun to use bash 45975/head
Adam C. Emerson [Wed, 20 Apr 2022 20:19:36 +0000 (16:19 -0400)]
tooling: Change mrun to use bash

Since mrun contains some bashisms, have it use bash explicitly.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
3 years agoMerge pull request #45973 from ionutbalutoiu/add-windows-tests 46002/head
David Galloway [Wed, 20 Apr 2022 20:08:21 +0000 (16:08 -0400)]
Merge pull request #45973 from ionutbalutoiu/add-windows-tests

qa/crontab/teuthology-cronjobs: add windows suite

3 years agoqa/crontab/teuthology-cronjobs: add windows suite 45973/head
Ionut Balutoiu [Wed, 20 Apr 2022 16:56:23 +0000 (19:56 +0300)]
qa/crontab/teuthology-cronjobs: add windows suite

Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
3 years agotest: add 32-bit ipv4 and 64-bit ipv6 blocklist testing
Greg Farnum [Wed, 20 Apr 2022 14:51:09 +0000 (14:51 +0000)]
test: add 32-bit ipv4 and 64-bit ipv6 blocklist testing

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
3 years agotest: add a 30-bit range mask to ipv6 blocklisting tests
Greg Farnum [Wed, 20 Apr 2022 01:50:46 +0000 (01:50 +0000)]
test: add a 30-bit range mask to ipv6 blocklisting tests

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
3 years agotest: split up ip- and range-based blocklisting tests
Greg Farnum [Wed, 20 Apr 2022 00:38:21 +0000 (00:38 +0000)]
test: split up ip- and range-based blocklisting tests

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
3 years agoMerge pull request #44230 from optimistyzy/122_add_dml
Kefu Chai [Wed, 20 Apr 2022 10:47:00 +0000 (18:47 +0800)]
Merge pull request #44230 from optimistyzy/122_add_dml

blk/pmem: use DML library to offload read/write operations in pmem

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #45872 from idryomov/wip-make-check-enable-rbd-caches
Ilya Dryomov [Wed, 20 Apr 2022 09:08:41 +0000 (11:08 +0200)]
Merge pull request #45872 from idryomov/wip-make-check-enable-rbd-caches

run-make-check.sh: enable RBD persistent caches

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agocrimson/os/seastore/segment_cleaner: cleanup SegmentProvider interfaces 45948/head
Yingxin Cheng [Tue, 19 Apr 2022 07:40:41 +0000 (15:40 +0800)]
crimson/os/seastore/segment_cleaner: cleanup SegmentProvider interfaces

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agocrimson/os/seastore/segment_cleaner: cleanup segment_info_set_t
Yingxin Cheng [Tue, 19 Apr 2022 07:38:41 +0000 (15:38 +0800)]
crimson/os/seastore/segment_cleaner: cleanup segment_info_set_t

* better encapsulated interfaces to SegmentCleaner;
* drop unused device related implementations;
* improve related metrics and logs;

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
3 years agoMerge pull request #45609 from optimistyzy/wip_pmem_devdax
Kefu Chai [Wed, 20 Apr 2022 01:54:00 +0000 (09:54 +0800)]
Merge pull request #45609 from optimistyzy/wip_pmem_devdax

blk/pmem: Add the devdax support.

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #45048 from ceph/1710
David Galloway [Wed, 20 Apr 2022 01:37:33 +0000 (21:37 -0400)]
Merge pull request #45048 from ceph/1710

doc: Add Quincy 17.2.0 release notes

3 years agodoc/releases/quincy.rst: mention log_to_journald 45048/head
Neha Ojha [Wed, 20 Apr 2022 00:45:49 +0000 (00:45 +0000)]
doc/releases/quincy.rst: mention log_to_journald

Details about https://tracker.ceph.com/issues/55383

Signed-off-by: Neha Ojha <nojha@redhat.com>
3 years agodoc: Typo and indentation fix
David Galloway [Wed, 20 Apr 2022 00:20:44 +0000 (20:20 -0400)]
doc: Typo and indentation fix

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agoMerge pull request #45933 from ionutbalutoiu/qa-add-rbd-wnbd-tests
David Galloway [Tue, 19 Apr 2022 20:50:24 +0000 (16:50 -0400)]
Merge pull request #45933 from ionutbalutoiu/qa-add-rbd-wnbd-tests

qa: add basic Ceph on Windows integration test

3 years agodoc: No changelog for first release
David Galloway [Tue, 19 Apr 2022 18:32:39 +0000 (14:32 -0400)]
doc: No changelog for first release

The diff between origin/pacific..origin/quincy is definitely not what we want listed.  There is no Changelog for the first major release.

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agodoc/releases: additional clarification, release date
Neha Ojha [Tue, 19 Apr 2022 16:59:06 +0000 (16:59 +0000)]
doc/releases: additional clarification, release date

- address review comments
- emphasize LevelDB removal
- update release date

Signed-off-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #45945 from vshankar/wip-54374
Venky Shankar [Tue, 19 Apr 2022 17:27:07 +0000 (22:57 +0530)]
Merge pull request #45945 from vshankar/wip-54374

mgr/snap_schedule: add time zone suffix to snapshot dir name

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45916 from tchaikov/wip-python3
David Galloway [Tue, 19 Apr 2022 15:55:35 +0000 (11:55 -0400)]
Merge pull request #45916 from tchaikov/wip-python3

cmake/modules: always use the python3 specified in command line

3 years agoMerge pull request #45864 from cyx1231st/wip-crimson-refactor-with-device-ut
Samuel Just [Tue, 19 Apr 2022 15:14:03 +0000 (08:14 -0700)]
Merge pull request #45864 from cyx1231st/wip-crimson-refactor-with-device-ut

test/crimson/.../test_transaction_manager: test multiple devices

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #45938 from liu-chunmei/seastore-omap-enlarge
Samuel Just [Tue, 19 Apr 2022 15:03:47 +0000 (08:03 -0700)]
Merge pull request #45938 from liu-chunmei/seastore-omap-enlarge

crimson/seastore: enlarge omap_leaf_node size

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoqa: add basic Ceph on Windows integration test 45933/head
Ionut Balutoiu [Wed, 6 Apr 2022 18:21:39 +0000 (21:21 +0300)]
qa: add basic Ceph on Windows integration test

Due to lack of Windows support in the Teuthology, the test case adopts
the following workaround:

* Deploy baremetal machine with `ubuntu_latest.yaml` and
  configure it with libvirt KVM.
* Create a libvirt VM and provision it with Windows Server 2019, using
  the official ISO from Microsoft.
* Configure SSH in the Windows VM, and run the tests remotely via SSH.

The implementation of the test case consists of workunit scripts.

`qa/workunits/windows/test_rbd_wnbd.py` is the main Python script
to test Ceph on Windows basic functionality. This is executed in the
libvirt VM configured with Windows Server 2019.

Co-authored-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
Co-authored-by: Daniel Vincze <dvincze@cloudbasesolutions.com>
Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
3 years agoMerge pull request #45708 from votdev/issue_55133_improve_exception_handling
Ernesto Puerta [Tue, 19 Apr 2022 11:29:00 +0000 (13:29 +0200)]
Merge pull request #45708 from votdev/issue_55133_improve_exception_handling

mgr/dashboard: Imrove error message of '/api/grafana/validation' API endpoint

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: sunilangadi2 <NOT@FOUND>
3 years agoMerge pull request #45603 from nmshelke/feature-54472
Venky Shankar [Tue, 19 Apr 2022 11:22:13 +0000 (16:52 +0530)]
Merge pull request #45603 from nmshelke/feature-54472

mgr/volumes: set, get, list and remove metadata of subvolume

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45909 from soumyakoduri/wip-skoduri-dbstore-fixes
Soumya Koduri [Tue, 19 Apr 2022 11:04:32 +0000 (16:34 +0530)]
Merge pull request #45909 from soumyakoduri/wip-skoduri-dbstore-fixes

rgw/dbstore: Handle prefix/delim while listing objects

3 years agomgr/snap_schedule: add time zone suffix to snapshot dir name 45945/head
Milind Changire [Sat, 9 Apr 2022 03:03:22 +0000 (08:33 +0530)]
mgr/snap_schedule: add time zone suffix to snapshot dir name

Fixes: https://tracker.ceph.com/issues/54374
Signed-off-by: Milind Changire <mchangir@redhat.com>
Signed-off-by: Venky Shankar <vshankar@redhat.com>
3 years agorun-make-check.sh: enable RBD persistent caches 45872/head
Ilya Dryomov [Tue, 19 Apr 2022 09:21:06 +0000 (11:21 +0200)]
run-make-check.sh: enable RBD persistent caches

This was attempted in commit 69a7ed4eab36 ("run-make-check: enable
WITH_RBD_RWL when WITH_PMEM is true") but never completed.  We soon
bumped the requirement on libpmem, so WITH_SYSTEM_PMDK=ON wouldn't
have worked anyway.

Enable the RWL mode conditionally based on WITH_RBD_RWL variable.
Enable the SSD mode unconditionally as it has no special dependencies
and can be built on any architecture.

Fixes: https://tracker.ceph.com/issues/55285
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agotest/encoding/check-generated.sh: show diff if binary reencode check fails
Ilya Dryomov [Tue, 19 Apr 2022 09:21:06 +0000 (11:21 +0200)]
test/encoding/check-generated.sh: show diff if binary reencode check fails

Take bf0b161115aa ("test/encoding/check-generated.sh: show diff if cmp
fails") a bit further.  Suggesting "cmp $tmp1 $tmp2" isn't very helpful
since cmp would report just the mismatch offset.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agolibrbd/cache/pwl: WriteLogCacheEntry constructor must initialize flags
Ilya Dryomov [Tue, 19 Apr 2022 09:21:05 +0000 (11:21 +0200)]
librbd/cache/pwl: WriteLogCacheEntry constructor must initialize flags

Initializing the individual bit field members leaves the remaining two
bits uninitialized and that garbage state gets persisted.

In general, using bit fields in a structure where the layout actually
matters is not desirable.  Even with a few single bits, such as here,
their order, strictly speaking, is not guaranteed:

    An implementation may allocate any addressable storage unit large
    enough to hold a bit-field. If enough space remains, a bit-field
    that immediately follows another bit-field in a structure shall be
    packed into adjacent bits of the same unit. If insufficient space
    remains, whether a bit-field that does not fit is put into the next
    unit or overlaps adjacent units is implementation-defined. The
    order of allocation of bit-fields within a unit (high-order to
    low-order or low-order to high-order) is implementation-defined.
    The alignment of the addressable storage unit is unspecified.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agolibrbd/cache/pwl: initialize generate_test_instances() objects
Ilya Dryomov [Tue, 19 Apr 2022 09:21:05 +0000 (11:21 +0200)]
librbd/cache/pwl: initialize generate_test_instances() objects

... to prevent check-generated.sh failures such as:

**** librbd::cache::pwl::WriteLogPoolRoot test 1 dump_json check failed ****
   ceph-dencoder type librbd::cache::pwl::WriteLogPoolRoot select_test 1 dump_json > /tmp/typ-cAoWrqlHC
   ceph-dencoder type librbd::cache::pwl::WriteLogPoolRoot select_test 1 encode decode dump_json > /tmp/typ-ES5yHpfGL
5c5
<     "flushed_sync_gen": 0,
---
>     "flushed_sync_gen": 255,

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agolibrbd/cache/pwl: fix -Wunused-lambda-capture warnings
Ilya Dryomov [Tue, 19 Apr 2022 09:21:05 +0000 (11:21 +0200)]
librbd/cache/pwl: fix -Wunused-lambda-capture warnings

Reported by clang on "make check" and "make check arm64" builds.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
3 years agorgw/dbstore: Handle prefix/delim in Bucket::List op 45909/head
Soumya Koduri [Thu, 14 Apr 2022 19:51:17 +0000 (01:21 +0530)]
rgw/dbstore: Handle prefix/delim in Bucket::List op

Given a prefix, fetch only those objects matching the prefix.
In addition, skip the entries with "delim" and instead include
those entries in common_prefixes

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/dbstore: DBObject state initialization
Soumya Koduri [Mon, 11 Apr 2022 08:36:59 +0000 (14:06 +0530)]
rgw/dbstore: DBObject state initialization

Initialize & store 'state' part of DBObject to be
referenced by callers of 'get_obj_state'.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agoAdd the support to use DML library for PMEM device. 44230/head
Ziye Yang [Thu, 2 Dec 2021 02:15:28 +0000 (02:15 +0000)]
Add the support to use DML library for PMEM device.

The purpose of this patch is to add the initial support to
offload memory/pmem operations by sync usage through hardware path
in DML library.

Signed-off-by: Ziye Yang <ziye.yang@intel.com>
3 years agoMerge pull request #45866 from liu-chunmei/crimson-longxattr
Liu-Chunmei [Tue, 19 Apr 2022 03:09:07 +0000 (20:09 -0700)]
Merge pull request #45866 from liu-chunmei/crimson-longxattr

crimson: check long attr name

Reviewed-by: Samuel Just <sjust@redhat.com>
Radoslaw Zarzynski <rzarzyns@redhat.com>

3 years agocrimson/seastore: enlarge omap_leaf_node size 45938/head
chunmei-liu [Fri, 15 Apr 2022 05:47:30 +0000 (22:47 -0700)]
crimson/seastore: enlarge omap_leaf_node size

to avoid double split when key size around 2K.

Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
3 years agoMerge pull request #44784 from Gaoweinan/master-doc-InconsistentFormat-gaoweinan
Laura Flores [Mon, 18 Apr 2022 18:59:21 +0000 (13:59 -0500)]
Merge pull request #44784 from Gaoweinan/master-doc-InconsistentFormat-gaoweinan

doc:InconsistentFormat

3 years ago.github/pr-triage: reorder milestone step 45934/head
Ernesto Puerta [Mon, 18 Apr 2022 16:50:52 +0000 (18:50 +0200)]
.github/pr-triage: reorder milestone step

In `master` the milestone step exits and causes remaining tasks not to be run. I previously tried with the `continue-on-error` flag, but it didn't work, so let's try putting that steps at the end.

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
3 years agomgr/cephadm: fixing logging output for rm-cluster operation 45931/head
Redouane Kachach [Mon, 18 Apr 2022 13:42:39 +0000 (15:42 +0200)]
mgr/cephadm: fixing logging output for rm-cluster operation
Fixes: https://tracker.ceph.com/issues/51671
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #45860 from adk3798/alertmanager-skip-verify
Adam King [Mon, 18 Apr 2022 12:57:14 +0000 (08:57 -0400)]
Merge pull request #45860 from adk3798/alertmanager-skip-verify

mgr/cephadm: allow setting insecure_skip_verify for alertmanager

Reviewed-by: Francesco Pantano <fpantano@redhat.com>
Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
3 years agoMerge pull request #43879 from rishabh-d-dave/vr-clearer-msg
Venky Shankar [Mon, 18 Apr 2022 09:57:52 +0000 (15:27 +0530)]
Merge pull request #43879 from rishabh-d-dave/vr-clearer-msg

qa/vstart_runner: print "success" explicitly

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45924 from rishabh-d-dave/qa-cephfs-test_cephfs_shell
Venky Shankar [Mon, 18 Apr 2022 09:32:55 +0000 (15:02 +0530)]
Merge pull request #45924 from rishabh-d-dave/qa-cephfs-test_cephfs_shell

qa/cephfs: expand note for test_cephfs_shell.py

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45923 from rishabh-d-dave/doc-fix-note
Venky Shankar [Mon, 18 Apr 2022 07:58:46 +0000 (13:28 +0530)]
Merge pull request #45923 from rishabh-d-dave/doc-fix-note

doc/developer_guide: split a note point into two

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoqa/cephfs: expand note for test_cephfs_shell.py 45924/head
Rishabh Dave [Sun, 17 Apr 2022 17:28:10 +0000 (22:58 +0530)]
qa/cephfs: expand note for test_cephfs_shell.py

Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoqa/vstart_runner: print "success" explicitly 43879/head
Rishabh Dave [Thu, 21 Oct 2021 05:09:39 +0000 (10:39 +0530)]
qa/vstart_runner: print "success" explicitly

This makes it effortless for new vstart_runner.py users to spot that the
test passed.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoMerge pull request #45816 from kotreshhr/clone-failure-status
Venky Shankar [Mon, 18 Apr 2022 04:13:40 +0000 (09:43 +0530)]
Merge pull request #45816 from kotreshhr/clone-failure-status

mgr/volumes: Show clone failure reason in clone status command

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agomds: notify clients if the session has already opened 45307/head
Xiubo Li [Wed, 9 Mar 2022 07:42:56 +0000 (15:42 +0800)]
mds: notify clients if the session has already opened

If the connection was accidently closed due to the socket issue or
something else the client will try to open the opened sessions, for
now the MDS will just discard the session open request.

But the client will keep waiting the reply from the mds forever.

We need to tell the clients what has happened instead of discard it
directly. And when the client get the session open reply, it can
do what needed.

Fixes: https://tracker.ceph.com/issues/53911
Signed-off-by: Xiubo Li <xiubli@redhat.com>
3 years agomds: remove the useless session seq for stale MClientSession
Xiubo Li [Mon, 21 Mar 2022 02:26:05 +0000 (10:26 +0800)]
mds: remove the useless session seq for stale MClientSession

Client side never uses this seq.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
3 years agoclient: skip reopening the opened or is under opening sessions
Xiubo Li [Wed, 9 Mar 2022 08:07:50 +0000 (16:07 +0800)]
client: skip reopening the opened or is under opening sessions

Signed-off-by: Xiubo Li <xiubli@redhat.com>
3 years agodoc/developer_guide: split a note point into two 45923/head
Rishabh Dave [Sun, 17 Apr 2022 17:23:09 +0000 (22:53 +0530)]
doc/developer_guide: split a note point into two

Since both the sentences in the note point aren't strictly related to
each other, it's better to split that note point into two.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
3 years agoqa/suites/orch/cephadm: stop upgrade tests if failures are seen 45920/head
Adam King [Sun, 17 Apr 2022 16:21:44 +0000 (12:21 -0400)]
qa/suites/orch/cephadm: stop upgrade tests if failures are seen

Otherwise the tests may run forever. This was already done for
mds upgrade sequence, justadding it in the other two places here

Related to: https://tracker.ceph.com/issues/53939

Signed-off-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #45114 from lxbsz/wip-54362
Venky Shankar [Sun, 17 Apr 2022 09:54:57 +0000 (15:24 +0530)]
Merge pull request #45114 from lxbsz/wip-54362

client: do not release the global snaprealm until unmounting

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45688 from lxbsz/fwd
Venky Shankar [Sun, 17 Apr 2022 09:53:15 +0000 (15:23 +0530)]
Merge pull request #45688 from lxbsz/fwd

client: stop forwarding the request when exceeding 256 times

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45107 from lxbsz/wip-54345
Venky Shankar [Sat, 16 Apr 2022 15:20:17 +0000 (20:50 +0530)]
Merge pull request #45107 from lxbsz/wip-54345

mds: reset heartbeat when fetching or committing dentries

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45915 from ljflores/wip-dashboard-cypress-password
Laura Flores [Sat, 16 Apr 2022 04:58:58 +0000 (23:58 -0500)]
Merge pull request #45915 from ljflores/wip-dashboard-cypress-password

3 years agocmake/modules: always use the python3 specified in command line 45916/head
Kefu Chai [Sat, 16 Apr 2022 01:10:20 +0000 (09:10 +0800)]
cmake/modules: always use the python3 specified in command line

if another python3 with higher version is found by
find_package(Python3), the cmake's install script would just
install the python modules/extensions into that python3's
dist-package directory, and the packaging script would fail
to find these artifacts when trying to package them.

so we need to ensure that the install directories for python
modeules/extensions are always "versioned" with WITH_PYTHON3
cmake option.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agomgr/dashboard/frontend: fix cypress env password 45915/head
Laura Flores [Thu, 14 Apr 2022 20:42:05 +0000 (20:42 +0000)]
mgr/dashboard/frontend: fix cypress env password

"LOGIN_PASSWORD" should be "LOGIN_PWD". Bug introduced
in e9128c4.

Fixes: https://tracker.ceph.com/issues/55323
Signed-off-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #45765 from m-ildefons/1196785-cephadm-status-trace
Adam King [Fri, 15 Apr 2022 15:05:05 +0000 (11:05 -0400)]
Merge pull request #45765 from m-ildefons/1196785-cephadm-status-trace

cephadm: avoid crashing on expected non-zero exit

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agoMerge pull request #45863 from adk3798/mgr-fail-retry
Adam King [Fri, 15 Apr 2022 15:02:55 +0000 (11:02 -0400)]
Merge pull request #45863 from adk3798/mgr-fail-retry

mgr/cephadm: retry mgr fail over in case of transient failure

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #45898 from idryomov/wip-resurrect-mutex-debug
Ilya Dryomov [Fri, 15 Apr 2022 09:09:42 +0000 (11:09 +0200)]
Merge pull request #45898 from idryomov/wip-resurrect-mutex-debug

cmake: resurrect mutex debugging in all Debug builds

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agocrimson/osd: check obj exists 45866/head
chunmei-liu [Tue, 12 Apr 2022 09:16:37 +0000 (02:16 -0700)]
crimson/osd: check obj exists

Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
3 years agoclient: do not release the global snaprealm until unmounting 45114/head
Xiubo Li [Tue, 22 Feb 2022 03:46:44 +0000 (11:46 +0800)]
client: do not release the global snaprealm until unmounting

The global snaprealm would be created and then destroyed immediately
every time when updating it.

Fixes: https://tracker.ceph.com/issues/54362
Signed-off-by: Xiubo Li <xiubli@redhat.com>
3 years agoblk/pmem: Add the devdax support. 45609/head
Ziye Yang [Wed, 23 Mar 2022 17:34:36 +0000 (01:34 +0800)]
blk/pmem: Add the devdax support.

The purpose is to make the pmem device usage more flexible
than the current solution. And prepare for the potential
offloading by hardware engine later.

Signed-off-by: Ziye Yang <ziye.yang@intel.com>
3 years agomgr/cephadm: allow setting insecure_skip_verify for alertmanager 45860/head
Adam King [Wed, 6 Apr 2022 14:32:22 +0000 (10:32 -0400)]
mgr/cephadm: allow setting insecure_skip_verify for alertmanager

Add a "secure" parameter to alertmanager spec that will cause it
to deploy alertmanagers with insecure_skip_verify as true or false
depending on the value given for "secure".

NOTE: alertmanager must still be reconfigured after applying a yaml
with this option changed.

Fixes: https://tracker.ceph.com/issues/55272
Fixes: https://tracker.ceph.com/issues/55333
Signed-off-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #45394 from iqbalredkhan/amrojiqbal
Ali Maredia [Thu, 14 Apr 2022 13:35:00 +0000 (09:35 -0400)]
Merge pull request #45394 from iqbalredkhan/amrojiqbal

cls/rgw : Add missing classes in < #include "cls/rgw/cls_rgw_types.h">

Reviewed-by: Ali Maredia <amaredia@redhat.com>
3 years agoclient: stop forwarding the request when exceeding 256 times 45688/head
Xiubo Li [Tue, 29 Mar 2022 08:45:12 +0000 (16:45 +0800)]
client: stop forwarding the request when exceeding 256 times

The type of 'num_fwd' in ceph 'MClientRequestForward' is 'int32_t',
while in 'ceph_mds_request_head' the type is '__u8'. So in case
the request bounces between MDSes exceeding 256 times, the client
will get stuck.

In this case it's ususally a bug in MDS and continue bouncing the
request makes no sense.

Fixes: https://tracker.ceph.com/issues/55129
Signed-off-by: Xiubo Li <xiubli@redhat.com>
3 years agoMerge pull request #45549 from nmshelke/fuse-linux-only
Venky Shankar [Thu, 14 Apr 2022 12:08:20 +0000 (17:38 +0530)]
Merge pull request #45549 from nmshelke/fuse-linux-only

ceph-fuse: restrict already_fuse_mounted function only for linux

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45636 from joscollin/wip-B54971-rank0-stale-perf-stats-assertion...
Venky Shankar [Thu, 14 Apr 2022 12:06:42 +0000 (17:36 +0530)]
Merge pull request #45636 from joscollin/wip-B54971-rank0-stale-perf-stats-assertion-error

qa: make test_perf_stats_stale_metrics check only the clients created for the tests

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45663 from lxbsz/client_cleanup_dl
Venky Shankar [Thu, 14 Apr 2022 12:04:31 +0000 (17:34 +0530)]
Merge pull request #45663 from lxbsz/client_cleanup_dl

client: remove expect_null and cleanup the code get_or_create()

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #45683 from kotreshhr/subvolume-retainsnap-rm-fix
Venky Shankar [Thu, 14 Apr 2022 12:01:46 +0000 (17:31 +0530)]
Merge pull request #45683 from kotreshhr/subvolume-retainsnap-rm-fix

mgr/volumes: Fix idempotent subvolume rm

Reviewed-by: Venky Shankar <vshankar@redhat.com>