]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agocommon: Fix missing utility include 44375/head
Willem Jan Withagen [Tue, 21 Dec 2021 09:10:17 +0000 (10:10 +0100)]
common: Fix missing utility include

See:
    https://en.cppreference.com/w/cpp/utility/move

Detected on FreeBSD/Clang/libc++:
/home/jenkins/workspace/ceph-master-compile/src/common/deleter.h:111:43: error: no member named 'move' in namespace 'std'
  impl(deleter next) : refs(1), next(std::move(next)) {}

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
3 years agoMerge pull request #42750 from aclamk/wip-aclamk-bluefs-log-incremental
Neha Ojha [Tue, 21 Dec 2021 01:15:13 +0000 (17:15 -0800)]
Merge pull request #42750 from aclamk/wip-aclamk-bluefs-log-incremental

os/bluestore: incremental update mode for bluefs log

Reviewed-by: Igor Fedotov <igor.fedotov@croit.io>
3 years agoMerge pull request #44368 from ceph/fix-api-tests
Ernesto Puerta [Mon, 20 Dec 2021 22:43:18 +0000 (23:43 +0100)]
Merge pull request #44368 from ceph/fix-api-tests

mgr/dashboard: run-backend-api-tests.sh: Older setuptools

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: David Galloway <dgallowa@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agoos/bluestore/bluefs: Add tracking of bluefs log in noop replay mode 42750/head
Adam Kupczyk [Wed, 15 Dec 2021 09:59:55 +0000 (09:59 +0000)]
os/bluestore/bluefs: Add tracking of bluefs log in noop replay mode

Keep updating bluefs log when printing content of bluefs replay log.
Without this modification we only have initial content of log.
Log can be printed by 'ceph-bluestore-tool bluefs-log-dump'.

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
3 years agoos/bluestore/bluefs: Sync BlueFS log with its allocation delta
Adam Kupczyk [Wed, 24 Nov 2021 17:55:05 +0000 (18:55 +0100)]
os/bluestore/bluefs: Sync BlueFS log with its allocation delta

BlueFS log is the only file that we can append to.
When we append to file we must take into consideration previously commited allocations,
otherwise update will be miscalculated.

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
3 years agotest/objectstore/bluefs_test: Add test for continuation of previous BlueFS log
Adam Kupczyk [Wed, 24 Nov 2021 17:52:35 +0000 (18:52 +0100)]
test/objectstore/bluefs_test: Add test for continuation of previous BlueFS log

Added test that verifies that in update mode we properly pick up delta.
BlueFS log is the only file that can be appended to, but it is done in very indirect way.

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
3 years agoos/bluefs: allow incremental file metadata updates in bluefs log
Igor Fedotov [Fri, 30 Jul 2021 11:02:26 +0000 (14:02 +0300)]
os/bluefs: allow incremental file metadata updates in bluefs log

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
3 years agoMerge PR #44315 into master
Patrick Donnelly [Mon, 20 Dec 2021 19:41:43 +0000 (14:41 -0500)]
Merge PR #44315 into master

* refs/pull/44315/head:
doc/cephfs: mds default cache memory limit is now 4GB

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
3 years agopybind/mgr/dashboard/run-backend-api-tests: Older setuptools 44368/head
David Galloway [Mon, 20 Dec 2021 15:44:23 +0000 (10:44 -0500)]
pybind/mgr/dashboard/run-backend-api-tests: Older setuptools

https://github.com/pypa/setuptools/issues/2353

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agoMerge pull request #42416 from galsalomon66/wip-test-albin-error-status
Matt Benjamin [Mon, 20 Dec 2021 15:50:44 +0000 (10:50 -0500)]
Merge pull request #42416 from galsalomon66/wip-test-albin-error-status

RGW/s3select : new-s3select-responds presto-alignments output-serialization

3 years agoMerge pull request #44350 from Huber-ming/fix_annotation_misspelling
Kefu Chai [Sun, 19 Dec 2021 07:53:45 +0000 (15:53 +0800)]
Merge pull request #44350 from Huber-ming/fix_annotation_misspelling

rgw: fix misspelling of 'effort'

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agoMerge pull request #44277 from fengchunsong/dpdk-rte-exit
Kefu Chai [Sat, 18 Dec 2021 14:19:50 +0000 (22:19 +0800)]
Merge pull request #44277 from fengchunsong/dpdk-rte-exit

msg/async/dpdk: replacing rte_exit with ceph_assert to avoid exit fai…

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
3 years agousing fmt for message formatting 42416/head
galsalomon66 [Thu, 2 Dec 2021 11:11:00 +0000 (13:11 +0200)]
using fmt for message formatting

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
3 years agofix comments; enum-class; typo; documentation
galsalomon66 [Thu, 2 Dec 2021 10:08:31 +0000 (12:08 +0200)]
fix comments; enum-class; typo; documentation

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
3 years agotypo
galsalomon66 [Sat, 27 Nov 2021 19:53:55 +0000 (21:53 +0200)]
typo

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
3 years agomodification for error-handling and boto3
galsalomon66 [Sat, 27 Nov 2021 17:44:40 +0000 (19:44 +0200)]
modification for error-handling and boto3

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
3 years agoadding/modifying documentation for output-serialization, s3select-response, syntax...
galsalomon66 [Fri, 26 Nov 2021 08:22:51 +0000 (10:22 +0200)]
adding/modifying documentation for output-serialization, s3select-response, syntax support, error-handling

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
3 years agos3select: point to s3select/master(after merging pr #90)
galsalomon66 [Wed, 24 Nov 2021 09:45:27 +0000 (11:45 +0200)]
s3select: point to s3select/master(after merging pr #90)

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
3 years agoin the case Presto is push-down query, it also send output-serialization parameter...
galsalomon66 [Wed, 17 Nov 2021 17:55:48 +0000 (19:55 +0200)]
in the case Presto is push-down query, it also send output-serialization parameter('&#10;'), that should be handle as '\n'

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
3 years agos3tests.yaml points to ceph-master
galsalomon66 [Mon, 15 Nov 2021 17:29:30 +0000 (19:29 +0200)]
s3tests.yaml points to ceph-master

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
3 years ago RGW: Implement continuation, progress, stats, end s3select response
gal salomon [Fri, 7 May 2021 21:29:13 +0000 (00:29 +0300)]
RGW: Implement continuation, progress, stats, end s3select response

    RGW/S3select: Implement output-serializationi. user may request different CSV defintions
    for output (field delimiter, row delimiter, quote handling.

    RGW/S3select: Implement presto-alignments. presto-application sends
    queries with table-alias,case insensitive, and with no-semicolon at the
    end of statement.

    RGW/s3select: zero object size issue

Signed-off-by: Albin Antony <aantony@redhat.com>
Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
3 years agorgw: fix misspelling of 'effort' 44350/head
Huber-ming [Sat, 18 Dec 2021 06:43:34 +0000 (14:43 +0800)]
rgw: fix misspelling of 'effort'

Signed-off-by: Huber-ming <zhangsm01@inspur.com>
3 years agoMerge pull request #43139 from josephsawaya/rook-orch-qa
Joseph Sawaya [Fri, 17 Dec 2021 17:50:18 +0000 (12:50 -0500)]
Merge pull request #43139 from josephsawaya/rook-orch-qa

qa/tasks/rook: test reapplication of drive groups stored in mgr

3 years agoMerge PR #44337 into master
Sage Weil [Fri, 17 Dec 2021 14:59:48 +0000 (09:59 -0500)]
Merge PR #44337 into master

* refs/pull/44337/head:
mon: prevent new sessions during shutdown

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoMerge pull request #43872 from Huber-ming/reshard
Casey Bodley [Fri, 17 Dec 2021 14:30:42 +0000 (09:30 -0500)]
Merge pull request #43872 from Huber-ming/reshard

rgw: init bucket index only if putting bucket instance info succeeds

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #43817 from joke-lee/UploadPartCopy-src-not-exist
Casey Bodley [Fri, 17 Dec 2021 14:30:32 +0000 (09:30 -0500)]
Merge pull request #43817 from joke-lee/UploadPartCopy-src-not-exist

rgw: fix UploadPartCopy error code when src object not exist and src bucket not exist

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #43259 from paulreece42/wip-rgw-xmlfix
Casey Bodley [Fri, 17 Dec 2021 14:30:21 +0000 (09:30 -0500)]
Merge pull request #43259 from paulreece42/wip-rgw-xmlfix

rgw: allow CompletedMultipartUpload in XML

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #41119 from Huber-ming/ls_mp
Casey Bodley [Fri, 17 Dec 2021 14:30:05 +0000 (09:30 -0500)]
Merge pull request #41119 from Huber-ming/ls_mp

rgw: fix error ListMultipart allways returns StorageClass:STANDARD

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #44336 from sebastian-philipp/cephadm-fix-test-facts
Sebastian Wagner [Fri, 17 Dec 2021 10:20:59 +0000 (11:20 +0100)]
Merge pull request #44336 from sebastian-philipp/cephadm-fix-test-facts

mgr/cephadm: Fix test_facts

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #44338 from rzarzynski/wip-crimson-abort_on_LOST_REVERT
Samuel Just [Fri, 17 Dec 2021 09:58:58 +0000 (01:58 -0800)]
Merge pull request #44338 from rzarzynski/wip-crimson-abort_on_LOST_REVERT

crimson/osd: explicitly abort on LOST_REVERT in PG log.

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #44340 from rzarzynski/wip-crimson-backfill-discarding
Samuel Just [Fri, 17 Dec 2021 09:57:45 +0000 (01:57 -0800)]
Merge pull request #44340 from rzarzynski/wip-crimson-backfill-discarding

crimson/osd: honor discarding old backfill messages

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #44345 from xxhdx1985126/wip-onode-root-fix
Samuel Just [Fri, 17 Dec 2021 09:55:42 +0000 (01:55 -0800)]
Merge pull request #44345 from xxhdx1985126/wip-onode-root-fix

crimson/os/seastore: reset onode in 'SeaStore::repeat_with_onode' before the transaction gets destroyed

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/os/seastore: reset onode in 'SeaStore::repeat_with_onode' before the transact... 44345/head
Xuehan Xu [Fri, 17 Dec 2021 05:20:35 +0000 (13:20 +0800)]
crimson/os/seastore: reset onode in 'SeaStore::repeat_with_onode' before the transaction gets destroyed

Onodes hold references to the onode tree extents. And if it's referencing the root extent, that root
extent is cached in the onode trees root_tracker which caches onode tree roots by transaction address.
Than root_tracker entry only gets removed when the onode(or the corresponding "super") is destroyed.
On the other hand, two non-concurrent transactions can occupy the same address. So if an onode gets destroyed
after its transaction is destroyed, there will be a chance that another transaction occupying the same
address get that not-yet-destroyed and may-be-outdated onode.

BTW, Since we already cache extents in transactions, might want to drop onode tree root_tracker later?

Fixes: https://tracker.ceph.com/issues/53651
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agocrimson/os/seastore/transaction: make sure the transaction's write_set is a subset...
Xuehan Xu [Fri, 17 Dec 2021 05:53:16 +0000 (13:53 +0800)]
crimson/os/seastore/transaction: make sure the transaction's write_set is a subset of its read_set

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agosrc/vstart.sh: correct shell syntax error
Xuehan Xu [Fri, 17 Dec 2021 05:31:40 +0000 (13:31 +0800)]
src/vstart.sh: correct shell syntax error

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agoMerge PR #44228 into master
Sage Weil [Fri, 17 Dec 2021 04:54:25 +0000 (23:54 -0500)]
Merge PR #44228 into master

* refs/pull/44228/head:
qa/suites/orch/cephadm/osds: test 'ceph cephadm osd activate'
mgr/cephadm/services/osd: skip found osds that already have daemons
mgr/cephadm: allow activation of OSDs that have previously started

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoqa/tasks/rook: test reapplication of drive groups stored in mgr 43139/head
Joseph Sawaya [Wed, 8 Sep 2021 15:33:14 +0000 (11:33 -0400)]
qa/tasks/rook: test reapplication of drive groups stored in mgr

This commit adds testing for the drive_group_loop in the Rook orchestrator
that reapplies drive groups that were applied previously.

This test removes an OSD, zaps the underlying device then waits for the OSD
to be re-created by the drive_group_loop.

This commit also updates the rook test suite to test v1.7.2 instead of 1.7.0
since `orch device zap` is only supported from v1.7.2 onwards.

Fixes: https://tracker.ceph.com/issues/53501
Signed-off-by: Joseph Sawaya <jsawaya@redhat.com>
3 years agoqa/suites/orch/cephadm/osds: test 'ceph cephadm osd activate' 44228/head
Sage Weil [Thu, 16 Dec 2021 15:00:05 +0000 (10:00 -0500)]
qa/suites/orch/cephadm/osds: test 'ceph cephadm osd activate'

Make sure this command behaves when the /var/lib/ceph osd.NNN dir is
removed.

Signed-off-by: Sage Weil <sage@newdream.net>
3 years agoMerge pull request #42009 from pritha-srivastava/wip-rgw-sts-correct-read-obj-perm
Casey Bodley [Thu, 16 Dec 2021 18:19:33 +0000 (13:19 -0500)]
Merge pull request #42009 from pritha-srivastava/wip-rgw-sts-correct-read-obj-perm

rgw/sts: fix read_obj_policy permission evaluation

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
3 years agoMerge pull request #44331 from ronen-fr/wip-rf-tips187
Ronen Friedman [Thu, 16 Dec 2021 17:10:17 +0000 (19:10 +0200)]
Merge pull request #44331 from ronen-fr/wip-rf-tips187

crimson/osd: removing an unneeded make_unique()

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agocrimson/osd: implement op discarding for backfill. 44340/head
Radoslaw Zarzynski [Thu, 16 Dec 2021 16:46:59 +0000 (16:46 +0000)]
crimson/osd: implement op discarding for backfill.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agocrimson/osd: generalize PG::old_peering_msg() to handle query_epoch.
Radoslaw Zarzynski [Thu, 16 Dec 2021 16:45:00 +0000 (16:45 +0000)]
crimson/osd: generalize PG::old_peering_msg() to handle query_epoch.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agocrimson/osd: dissect the lpr check into PG::old_peering_msg().
Radoslaw Zarzynski [Thu, 16 Dec 2021 16:31:35 +0000 (16:31 +0000)]
crimson/osd: dissect the lpr check into PG::old_peering_msg().

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoMerge pull request #44280 from chrisphoffman/warn_pg
Neha Ojha [Thu, 16 Dec 2021 16:33:13 +0000 (08:33 -0800)]
Merge pull request #44280 from chrisphoffman/warn_pg

mon: Omit MANY_OBJECTS_PER_PG warning when autoscaler is on

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agocrimson/osd: explicitly abort on LOST_REVERT in PG log. 44338/head
Radoslaw Zarzynski [Thu, 16 Dec 2021 16:01:32 +0000 (16:01 +0000)]
crimson/osd: explicitly abort on LOST_REVERT in PG log.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoMerge pull request #43901 from pcuzner/snmp-notifier
Sebastian Wagner [Thu, 16 Dec 2021 15:53:55 +0000 (16:53 +0100)]
Merge pull request #43901 from pcuzner/snmp-notifier

mgr/cephadm: Add snmp-gateway service support

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agomgr/cephadm: Fix test_facts 44336/head
Sebastian Wagner [Thu, 16 Dec 2021 15:40:08 +0000 (16:40 +0100)]
mgr/cephadm: Fix test_facts

Wasn't executed before

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agomgr/cephadm/services/osd: skip found osds that already have daemons
Sage Weil [Mon, 6 Dec 2021 15:19:57 +0000 (10:19 -0500)]
mgr/cephadm/services/osd: skip found osds that already have daemons

If we are trying to deploy new or newly-found osds, we can skip the ones
that already have cephadm daemons deployed.

Fixes: https://tracker.ceph.com/issues/53491
Signed-off-by: Sage Weil <sage@newdream.net>
3 years agomgr/cephadm: allow activation of OSDs that have previously started
Sage Weil [Mon, 6 Dec 2021 15:19:16 +0000 (10:19 -0500)]
mgr/cephadm: allow activation of OSDs that have previously started

When this code was introduced way back in ea987a0e56db106f7c76d11f86b3e602257f365e,
for some reason I was focused only on freshly created OSDs.  The
get_osd_uuid_map() helper is used by deploy_osd_daemons_for_existing_osds()
which is called not only by OSD creation but also by 'ceph cephadm
osd activate', which is meant to instantiate daemons for existing OSD
devices (e.g., devices that were reattached to a new server, or whose
/var/lib/ceph/$fsid/osd.$id directory was lost for some other reason.
However, if we ignore OSDs with up_from > 0, then we can't recreate a
daemon instance for such existing OSDs--arguably the most important ones,
since they may hold real data.

Fixes: https://tracker.ceph.com/issues/53491
Signed-off-by: Sage Weil <sage@newdream.net>
3 years agomon: prevent new sessions during shutdown 44337/head
Sage Weil [Thu, 16 Dec 2021 15:24:46 +0000 (10:24 -0500)]
mon: prevent new sessions during shutdown

From shutdown() we set STATE_SHUTDOWN and then call remove_all_sessions().
ms_handle_accept() is the only caller of add_session, so verifying that
we aren't shutting down (while under the session_map_lock) is sufficient
to prevent any new sessions from being added.

Fixes: https://tracker.ceph.com/issues/39150
Signed-off-by: Sage Weil <sage@newdream.net>
3 years agoMerge pull request #44293 from sebastian-philipp/extract-uid-gid-readable
Sebastian Wagner [Thu, 16 Dec 2021 15:22:31 +0000 (16:22 +0100)]
Merge pull request #44293 from sebastian-philipp/extract-uid-gid-readable

cephadm: make extract_uid_gid errors more readable

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agoMerge PR #44208 into master
Sage Weil [Thu, 16 Dec 2021 14:53:19 +0000 (09:53 -0500)]
Merge PR #44208 into master

* refs/pull/44208/head:
mgr/progress: avoid inefficient dump of all pg stats

Reviewed-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge PR #44211 into master
Sage Weil [Thu, 16 Dec 2021 14:52:24 +0000 (09:52 -0500)]
Merge PR #44211 into master

* refs/pull/44211/head:
mon: increase mon_down_mkfs_grace to 2m

Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agocrimson/osd: make PG::can_discard_replica_op() reusable for RecoveryBackend.
Radoslaw Zarzynski [Thu, 16 Dec 2021 09:57:24 +0000 (09:57 +0000)]
crimson/osd: make PG::can_discard_replica_op() reusable for RecoveryBackend.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agocrimson/osd: removing an unneeded make_unique() 44331/head
Ronen Friedman [Thu, 16 Dec 2021 10:49:57 +0000 (10:49 +0000)]
crimson/osd: removing an unneeded make_unique()

As the desired lifetime of the object matches the lifetime if
it is allocated on the stack, and as no ownership is transferred,
there is no point in using a unique_ptr here.

And see Google's guidance (https://abseil.io/tips/187),
under "Common Anti-Pattern: Avoiding &".

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
3 years agoMerge pull request #43889 from Daniel-Pivonka/cephadm-reg-cred
Sebastian Wagner [Thu, 16 Dec 2021 10:08:04 +0000 (11:08 +0100)]
Merge pull request #43889 from Daniel-Pivonka/cephadm-reg-cred

mgr/cephadm: store contianer registry credentials in config-key

Reviewed-by: Sage Weil <sage@newdream.net>
Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #44031 from adk3798/agent-thrash
Sebastian Wagner [Thu, 16 Dec 2021 10:07:03 +0000 (11:07 +0100)]
Merge pull request #44031 from adk3798/agent-thrash

 mgr/cephadm: agent: simplify handling of agent reports

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #44267 from phlogistonjohn/jjm-ceph-orch-yaml-issue206961
Sebastian Wagner [Thu, 16 Dec 2021 10:05:16 +0000 (11:05 +0100)]
Merge pull request #44267 from phlogistonjohn/jjm-ceph-orch-yaml-issue206961

python-common: add int value validation for count and count_per_host

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #44269 from SUSE/wip-fix-mgr-cephadm-suse-cherrypy-requires
Tim Serong [Thu, 16 Dec 2021 05:15:13 +0000 (16:15 +1100)]
Merge pull request #44269 from SUSE/wip-fix-mgr-cephadm-suse-cherrypy-requires

ceph.spec.in: fix mgr-cephadm CherryPy requirement for SUSE builds

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Adam King <adking@redhat.com>
3 years agomgr/cephadm: Add snmp-gateway service support 43901/head
Paul Cuzner [Fri, 12 Nov 2021 03:16:59 +0000 (16:16 +1300)]
mgr/cephadm: Add snmp-gateway service support

Add a new snmp-gateway service to provide a bridge between
Prometheus and an SNMP management platform. The gateway
service uses https://github.com/maxwo/snmp_notifier to provide
an SNMP v2c and SNMP V3 support.

The SNMP V3 support mandates at least authentication, and also
offers authentication and privacy (encryption).

Fixes: https://tracker.ceph.com/issues/52920
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
3 years agomgr/cephadm: Add unit tests for snmp-gateway support
Paul Cuzner [Fri, 12 Nov 2021 03:19:00 +0000 (16:19 +1300)]
mgr/cephadm: Add unit tests for snmp-gateway support

Adds tests to validate the deployed configuration given a known
input context, and check the parameters created based on input
various input scenarios

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
3 years agoMerge pull request #44197 from josephsawaya/zns-segment-manager
Samuel Just [Thu, 16 Dec 2021 02:30:08 +0000 (18:30 -0800)]
Merge pull request #44197 from josephsawaya/zns-segment-manager

crimson/os/seastore: add ZNSSegmentManager

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #44323 from cbodley/wip-53252
Casey Bodley [Wed, 15 Dec 2021 19:23:40 +0000 (14:23 -0500)]
Merge pull request #44323 from cbodley/wip-53252

rgw/amqp: add default case to silence compiler warning

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
3 years agomgr/cephadm: agent: simplify handling of agent reports 44031/head
Adam King [Fri, 19 Nov 2021 18:58:02 +0000 (13:58 -0500)]
mgr/cephadm: agent: simplify handling of agent reports

Don't try to do extra things like checking other agents
or updating health checks when agents report. Rely on
serve loop for that

This also should help with thrashing we've been seeing

Signed-off-by: Adam King <adking@redhat.com>
3 years agorgw/amqp: add default case to silence compiler warning 44323/head
Casey Bodley [Wed, 15 Dec 2021 16:07:49 +0000 (11:07 -0500)]
rgw/amqp: add default case to silence compiler warning

Fixes: https://tracker.ceph.com/issues/53252
Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #44131 from ceph/wip-yuriw-release-16.2.7-master
David Galloway [Wed, 15 Dec 2021 16:23:16 +0000 (11:23 -0500)]
Merge pull request #44131 from ceph/wip-yuriw-release-16.2.7-master

doc: 16.2.7 Release Notes

3 years agoMerge pull request #44136 from adk3798/agent-logging
Sebastian Wagner [Wed, 15 Dec 2021 13:38:45 +0000 (14:38 +0100)]
Merge pull request #44136 from adk3798/agent-logging

mgr/cephadm: agent: log response from mgr

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #44249 from DimitriPapadopoulos/codespell
Sebastian Wagner [Wed, 15 Dec 2021 12:26:12 +0000 (13:26 +0100)]
Merge pull request #44249 from DimitriPapadopoulos/codespell

doc,man: Typos found by codespell

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #44309 from foadlind/fix_cephadm_doc
Sebastian Wagner [Wed, 15 Dec 2021 12:22:18 +0000 (13:22 +0100)]
Merge pull request #44309 from foadlind/fix_cephadm_doc

doc/cephadm/upgrade: correct example command

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agodoc,man: typos found by codespell 44249/head
Dimitri Papadopoulos [Wed, 8 Dec 2021 11:43:27 +0000 (12:43 +0100)]
doc,man: typos found by codespell

Signed-off-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
3 years agodoc/cephfs: mds default cache memory limit is now 4GB 44315/head
wangxinyu [Wed, 15 Dec 2021 06:18:41 +0000 (14:18 +0800)]
doc/cephfs: mds default cache memory limit is now 4GB

MDS default cache memory limit is now 4GB.

Signed-off-by: wangxinyu <wangxinyu@inspur.com>
3 years agomgr/cephadm: Updated docs for snmp-gateway support
Paul Cuzner [Fri, 12 Nov 2021 03:17:52 +0000 (16:17 +1300)]
mgr/cephadm: Updated docs for snmp-gateway support

Updated docs to show snmp-gateway usage. docs provide
guidance on SNMP versions supported and show CLI and
yaml deployment examples.

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
3 years agomgr/cephadm: provide initial snmp gateway support
Paul Cuzner [Wed, 13 Oct 2021 23:35:31 +0000 (12:35 +1300)]
mgr/cephadm: provide initial snmp gateway support

This patch enables the cephadm binary
to deploy an SNMP gateway based on -
https://hub.docker.com/r/maxwo/snmp-notifier

Fixes: https://tracker.ceph.com/issues/52920
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
3 years agoMerge pull request #44216 from locallocal/master
Yuri Weinstein [Tue, 14 Dec 2021 23:21:24 +0000 (15:21 -0800)]
Merge pull request #44216 from locallocal/master

os/bluestore: don't need separate variable to mark hits when lookup oid.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
3 years agoMerge pull request #43770 from ifed01/wip-ifed-fix-53002
Yuri Weinstein [Tue, 14 Dec 2021 23:20:41 +0000 (15:20 -0800)]
Merge pull request #43770 from ifed01/wip-ifed-fix-53002

os/bluestore: avoid premature onode release.

Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
3 years agoMerge pull request #43412 from yaarith/devicehealth_fix_tz
Yuri Weinstein [Tue, 14 Dec 2021 23:19:24 +0000 (15:19 -0800)]
Merge pull request #43412 from yaarith/devicehealth_fix_tz

mgr/devicehealth: fix missing timezone from time delta calculation

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agocrimson/os/seastore: add ZNSSegmentManager 44197/head
Joseph Sawaya [Fri, 3 Dec 2021 17:28:21 +0000 (17:28 +0000)]
crimson/os/seastore: add ZNSSegmentManager

This commit adds the ZNSSegmentManager, so SeaStore can
interface with ZNS devices using the linux/blkzoned
library.

Signed-off-by: Joseph Sawaya <jsawaya@redhat.com>
3 years agodoc/releases/pacific.rst: Instructions for notable change 44131/head
David Galloway [Mon, 13 Dec 2021 21:54:30 +0000 (16:54 -0500)]
doc/releases/pacific.rst: Instructions for notable change

Signed-off-by: David Galloway <dgallowa@redhat.com>
3 years agoMerge pull request #44163 from rhcs-dashboard/fix-53451-master
Ernesto Puerta [Tue, 14 Dec 2021 16:42:56 +0000 (17:42 +0100)]
Merge pull request #44163 from rhcs-dashboard/fix-53451-master

mgr/dashboard: disable Promql test in ARM

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: David Galloway <dgallowa@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: p-se <NOT@FOUND>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: sebastian-philipp <NOT@FOUND>
3 years agoMerge pull request #44295 from chrisphoffman/add-email-contact
Neha Ojha [Tue, 14 Dec 2021 15:22:38 +0000 (07:22 -0800)]
Merge pull request #44295 from chrisphoffman/add-email-contact

mailmap: Add Christopher Hoffman

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #44299 from kalebskeithley/dencode2
Casey Bodley [Tue, 14 Dec 2021 15:04:42 +0000 (10:04 -0500)]
Merge pull request #44299 from kalebskeithley/dencode2

rgw:cleanup/refactor json and xml encoders and decoders

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoos/bluestore: avoid premature onode release. 43770/head
Igor Fedotov [Tue, 2 Nov 2021 12:03:39 +0000 (15:03 +0300)]
os/bluestore: avoid premature onode release.

This was observed when onode's removal is followed by reading
and the latter causes object release before the removal is finalized.
The root cause is an improper 'pinned' state assessment in Onode::get

More detailed overview is:
At some point Onode::get() might face the case when nref == 2 and pinned = true
which means parallel incomplete put is running on the onode - ref count is
decremented but pinned state is still unmodified (and even lock hasn't been
acquired yet).
This might finally result in two puts racing over the same onode with nref == 2
which finally results in a premature onode release:
  // nref =3, pinned = 1
  // Thread 1                   Thread 2
  //   o->put()                   o->get()
  //   --nref(n = 2, pinned=1)
  //                              nref++ (n=3, pinned = 1)
  //                              return
  //                              ...
  //                              o->put()
  //                              --nref(n = 2)
  //                              pinned = 0,
  //                              --nref(n = 1)
  //                              ocs->_unpin_and_rm(o) -> o->put()
  //                                ...
  //                                --nref(n = 0)
  //                                release o
  //  o->c->get_onode_cache()
  //  FAULT!
  //
The suggested fix is to introduce additional atomic counter tracking
running put() functions. And permit onode release when both regular
nref and put_nref are both equal to zero.

Fixes: https://tracker.ceph.com/issues/53002
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
3 years agoMerge pull request #44029 from cbodley/wip-rgw-beast-header-limit
Casey Bodley [Tue, 14 Dec 2021 13:21:05 +0000 (08:21 -0500)]
Merge pull request #44029 from cbodley/wip-rgw-beast-header-limit

rgw/beast: add max_header_size option with 16k default, up from 4k

Reviewed-by: Mark Kogan <mkogan@redhat.com>
3 years agocephadm: make extract_uid_gid errors more readable 44293/head
Sebastian Wagner [Mon, 13 Dec 2021 11:54:22 +0000 (12:54 +0100)]
cephadm: make extract_uid_gid errors more readable

Avoid dumping a traceback

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agodoc/cephadm/upgrade: correct example command 44309/head
Foad Lind [Tue, 14 Dec 2021 13:01:58 +0000 (14:01 +0100)]
doc/cephadm/upgrade: correct example command

Update the ceph version used in the example upgrade command to match the one mentioned in the text above it.

Signed-off-by: Foad Lind <foad.lind@citynetwork.eu>
3 years agoMerge pull request #44235 from xxhdx1985126/wip-onode-omap-hint-optimization
Samuel Just [Tue, 14 Dec 2021 08:10:31 +0000 (00:10 -0800)]
Merge pull request #44235 from xxhdx1985126/wip-onode-omap-hint-optimization

crimson/os/seastore: avoid onode/omap laddr hint conflicts as much as possible

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
3 years agocrimson/os/seastore: make onode data/metadata laddr space reservation configurable 44235/head
Xuehan Xu [Sun, 12 Dec 2021 08:43:30 +0000 (16:43 +0800)]
crimson/os/seastore: make onode data/metadata laddr space reservation configurable

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agocrimson/os/seastore: randomize metadata laddr hints
Samuel Just [Fri, 10 Dec 2021 06:22:44 +0000 (06:22 +0000)]
crimson/os/seastore: randomize metadata laddr hints

This should prevent omap and xattr extent allocations from clumping near
the onode's hint.  Additionally, only generate them past the default
16MB object_data_handler reservation.

Signed-off-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/common: DONOT call crimson::get_logger() if NDEBUG is defined
Xuehan Xu [Tue, 7 Dec 2021 06:55:51 +0000 (14:55 +0800)]
crimson/common: DONOT call crimson::get_logger() if NDEBUG is defined

Avoid debug related perf degredation

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agoMerge pull request #44141 from xxhdx1985126/wip-53409
Samuel Just [Tue, 14 Dec 2021 06:15:36 +0000 (22:15 -0800)]
Merge pull request #44141 from xxhdx1985126/wip-53409

crimson/os/seastore/segment_cleaner: correct available space calculation

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
3 years agoMerge pull request #44290 from liu-chunmei/crimson-fix-no-pg
Samuel Just [Tue, 14 Dec 2021 06:08:10 +0000 (22:08 -0800)]
Merge pull request #44290 from liu-chunmei/crimson-fix-no-pg

crimson/osd: fix interruptor assert when no pg in peering_event

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agocrimson/os/seastore/segment_cleaner: correct available space calculation 44141/head
Xuehan Xu [Fri, 26 Nov 2021 06:39:06 +0000 (14:39 +0800)]
crimson/os/seastore/segment_cleaner: correct available space calculation

Current available space calculation is wrong, it just counts the space occupied
by extents, deltas and other stuff are not taken into account.

Fixes: https://tracker.ceph.com/issues/53409
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agocrimson/common: redirect interruptible future debug output to default subsys
Xuehan Xu [Tue, 30 Nov 2021 04:43:34 +0000 (12:43 +0800)]
crimson/common: redirect interruptible future debug output to default subsys

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agocrimson/os/seastore/segment_cleaner: add perf metrics for better monitoring
Xuehan Xu [Tue, 9 Nov 2021 02:39:23 +0000 (10:39 +0800)]
crimson/os/seastore/segment_cleaner: add perf metrics for better monitoring

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agoMerge pull request #44015 from liewegas/fix-44012
Yuri Weinstein [Mon, 13 Dec 2021 23:20:51 +0000 (15:20 -0800)]
Merge pull request #44015 from liewegas/fix-44012

osd/PeeringState: separate history's pruub from pg's

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #43864 from yaarith/fix-config-notify
Yuri Weinstein [Mon, 13 Dec 2021 23:20:11 +0000 (15:20 -0800)]
Merge pull request #43864 from yaarith/fix-config-notify

mgr/telemetry: fix waiting for mgr to warm up

Reviewed-by: Sage Weil <sage@redhat.com>
3 years agoMerge pull request #43857 from aclamk/wip-aclamk-omap-clone-assert
Yuri Weinstein [Mon, 13 Dec 2021 23:19:14 +0000 (15:19 -0800)]
Merge pull request #43857 from aclamk/wip-aclamk-omap-clone-assert

os/bluestore: Protect _clone against sudden omap format changes

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
3 years agodoc/releases/pacific.rst: add core updates for 16.2.7
Neha Ojha [Tue, 7 Dec 2021 17:47:22 +0000 (17:47 +0000)]
doc/releases/pacific.rst: add core updates for 16.2.7

16.2.7 fixes https://tracker.ceph.com/issues/53062, so remove the
"big scary warning" from the top of the pacific release page. We continue
to warn about this bug under the 16.2.6 section and in
https://docs.ceph.com/en/latest/releases/pacific/#upgrading-from-octopus-or-nautilus.

Signed-off-by: Neha Ojha <nojha@redhat.com>
3 years agodoc/releases/index.rst: change ref to 16.2.7
Neha Ojha [Tue, 7 Dec 2021 17:19:03 +0000 (17:19 +0000)]
doc/releases/index.rst: change ref to 16.2.7

Signed-off-by: Neha Ojha <nojha@redhat.com>
3 years agodoc: 16.2.7 change log => 3 PRs added
Yuri Weinstein [Mon, 6 Dec 2021 21:57:53 +0000 (13:57 -0800)]
doc: 16.2.7 change log => 3 PRs added

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>