]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agomgr/cephadm: agent: allow agent down multiplier to be configured 44101/head
Adam King [Wed, 24 Nov 2021 23:52:10 +0000 (18:52 -0500)]
mgr/cephadm: agent: allow agent down multiplier to be configured

Signed-off-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #43244 from ronen-fr/wip-rf-scrub-command
Ronen Friedman [Tue, 23 Nov 2021 13:19:33 +0000 (15:19 +0200)]
Merge pull request #43244 from ronen-fr/wip-rf-scrub-command

osd: make 'pg deep-scrub' command initiate a scrub

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #43722 from lxbsz/caps_doc
Venky Shankar [Tue, 23 Nov 2021 12:47:22 +0000 (18:17 +0530)]
Merge pull request #43722 from lxbsz/caps_doc

doc: update the capabilities doc for cephfs

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #43982 from guits/refactor_cv_human_readable_func
Guillaume Abrioux [Tue, 23 Nov 2021 05:12:22 +0000 (06:12 +0100)]
Merge pull request #43982 from guits/refactor_cv_human_readable_func

ceph-volume: human_readable_size() refactor

3 years agoMerge pull request #44007 from tchaikov/wip-cmake-python3.10
Kefu Chai [Tue, 23 Nov 2021 02:59:54 +0000 (10:59 +0800)]
Merge pull request #44007 from tchaikov/wip-cmake-python3.10

cmake: check for python(\d)\.(\d+) when building boost

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #43992 from rhcs-dashboard/flaky-inventory-test-fix
Ernesto Puerta [Mon, 22 Nov 2021 19:39:50 +0000 (20:39 +0100)]
Merge pull request #43992 from rhcs-dashboard/flaky-inventory-test-fix

mgr/dashboard: fix flaky inventory e2e test

Reviewed-by: Waad Alkhoury <walkhour@redhat.com>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #43958 from rhcs-dashboard/daemon-event-padding
Ernesto Puerta [Mon, 22 Nov 2021 18:43:11 +0000 (19:43 +0100)]
Merge pull request #43958 from rhcs-dashboard/daemon-event-padding

mgr/dashboard: Daemon Events listing using bootstrap class

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #43866 from rhcs-dashboard/add-hint-provisioned-images
Ernesto Puerta [Mon, 22 Nov 2021 18:41:04 +0000 (19:41 +0100)]
Merge pull request #43866 from rhcs-dashboard/add-hint-provisioned-images

mgr/dashboard: provisioned values is misleading in RBD image table

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #43843 from cbodley/wip-test-cls-rgw-stats
Casey Bodley [Mon, 22 Nov 2021 15:59:39 +0000 (10:59 -0500)]
Merge pull request #43843 from cbodley/wip-test-cls-rgw-stats

test/cls/rgw: add index transaction simulator to model bucket stats

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agoMerge pull request #43888 from mgfritch/cephadm-expect-hostname
Sebastian Wagner [Mon, 22 Nov 2021 11:00:20 +0000 (12:00 +0100)]
Merge pull request #43888 from mgfritch/cephadm-expect-hostname

cephadm: fixup expect-hostname message

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #43873 from guits/add_shared_folder_shell_cmd
Sebastian Wagner [Mon, 22 Nov 2021 10:59:19 +0000 (11:59 +0100)]
Merge pull request #43873 from guits/add_shared_folder_shell_cmd

cephadm: add --shared_ceph_folder to shell cmd

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #43876 from sebastian-philipp/all-osd-at-once
Sebastian Wagner [Mon, 22 Nov 2021 10:27:13 +0000 (11:27 +0100)]
Merge pull request #43876 from sebastian-philipp/all-osd-at-once

mgr/cephadm: create osds at all hosts at once

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agoMerge pull request #44033 from ljflores/wip-update-email-id
Ernesto Puerta [Mon, 22 Nov 2021 08:14:07 +0000 (09:14 +0100)]
Merge pull request #44033 from ljflores/wip-update-email-id

mailmap: add Laura Flores

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: ljflores <NOT@FOUND>
Reviewed-by: neha-ojha <NOT@FOUND>
3 years agoMerge pull request #43795 from myoungwon/wip-paddr-split
Samuel Just [Mon, 22 Nov 2021 06:17:04 +0000 (22:17 -0800)]
Merge pull request #43795 from myoungwon/wip-paddr-split

seastore: generalize paddr_t

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agomgr/dashboard: fix flaky inventory e2e test 43992/head
Nizamudeen A [Thu, 18 Nov 2021 07:13:39 +0000 (12:43 +0530)]
mgr/dashboard: fix flaky inventory e2e test

When `inventory.getTableCount('total').should('be.eq', totalDiskCount);`
this line is executed the table was not loaded properly and hence the
getTableCount returns 0 on the first try but on second try it passes
since the table is loaded. But in orch e2es the retries are set to 0. I
am not sure if it makes sense to set it to 1. Anyway I am adapting the
test a bit to expect the count to be equal to totalDiskCount so that the
test will wait a bit.

Fixes: https://tracker.ceph.com/issues/53353
Signed-off-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #43524 from Rethan/feat-expiration-time
Deepika Upadhyay [Mon, 22 Nov 2021 01:22:31 +0000 (06:52 +0530)]
Merge pull request #43524 from Rethan/feat-expiration-time

rbd: when trash mv, show expiration time if it's not now

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
Reviewed-by: Sunny Kumar <sunkumar@redhat.com>
3 years agoMerge pull request #43852 from hualongfeng/show_feature
Deepika Upadhyay [Mon, 22 Nov 2021 01:21:51 +0000 (06:51 +0530)]
Merge pull request #43852 from hualongfeng/show_feature

tools/rbd: make rbd info display dirty-cache feature

Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agoMerge pull request #43907 from cybozu/rbd-correct-encoding-of-snap-protection-record...
Deepika Upadhyay [Sun, 21 Nov 2021 17:03:41 +0000 (22:33 +0530)]
Merge pull request #43907 from cybozu/rbd-correct-encoding-of-snap-protection-record-in-exporting

rbd: correct encoding of snap protection record in exporting image

Reviewed-by: Mykola Golub <mykola.golub@clyso.com>
3 years agoseastore: generalize paddr_t 43795/head
myoungwon oh [Wed, 3 Nov 2021 07:27:03 +0000 (16:27 +0900)]
seastore: generalize paddr_t

Due to necessity to support both segment and rbm addrs,
paddr_t needs to be generlized.
To do so, this commits introduces seg_paddr_t---
seg_paddr_t inherits paddr_t, and deals with common_addr
according to the semantic of segment.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
3 years agoMerge pull request #43999 from kamoltat/wip-autoscale-profile-scale-up-default
Neha Ojha [Sat, 20 Nov 2021 00:55:43 +0000 (16:55 -0800)]
Merge pull request #43999 from kamoltat/wip-autoscale-profile-scale-up-default

pybind/mgr/pg_autoscale: revert to default profile scale-up

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge PR #43974 into master
Patrick Donnelly [Fri, 19 Nov 2021 23:43:48 +0000 (18:43 -0500)]
Merge PR #43974 into master

* refs/pull/43974/head:
qa: disable metrics on kernel client during upgrade

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
3 years agomailmap: add Laura Flores 44033/head
Laura Flores [Fri, 19 Nov 2021 23:22:16 +0000 (23:22 +0000)]
mailmap: add Laura Flores

Signed-off-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #43987 from rhcs-dashboard/53123-dashboard-nfs-cleanup
Ernesto Puerta [Fri, 19 Nov 2021 19:40:41 +0000 (20:40 +0100)]
Merge pull request #43987 from rhcs-dashboard/53123-dashboard-nfs-cleanup

mgr/dashboard: NFS non-existent files cleanup

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: ljflores <NOT@FOUND>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #43983 from rhcs-dashboard/rgw-add-realm-column
Ernesto Puerta [Fri, 19 Nov 2021 19:14:19 +0000 (20:14 +0100)]
Merge pull request #43983 from rhcs-dashboard/rgw-add-realm-column

mgr/dashboard: rgw daemon list: add realm column

Reviewed-by: Waad Alkhoury <walkhour@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: sebastian-philipp <NOT@FOUND>
3 years agoMerge pull request #43824 from cbodley/wip-qa-rgw-upgrade-octopus-multisite-cv
J. Eric Ivancich [Fri, 19 Nov 2021 19:11:39 +0000 (14:11 -0500)]
Merge pull request #43824 from cbodley/wip-qa-rgw-upgrade-octopus-multisite-cv

qa/upgrade: rgw multisite upgrade test excludes ceph-volume

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
3 years agoMerge pull request #43764 from gregsfortytwo/wip-rbd-crash-consistency
Deepika Upadhyay [Fri, 19 Nov 2021 18:59:16 +0000 (00:29 +0530)]
Merge pull request #43764 from gregsfortytwo/wip-rbd-crash-consistency

doc: fix up rbd snapshot docs around crash consistency

Reviewed-by: Mykola Golub <mykola.golub@clyso.com>
Reviewed-by: Sunny Kumar <sunkumar@redhat.com>
3 years agopybind/mgr/pg_autoscale: revert to default profile scale-up 43999/head
Kamoltat [Wed, 17 Nov 2021 20:34:48 +0000 (20:34 +0000)]
pybind/mgr/pg_autoscale: revert to default profile scale-up

pg_autoscale module will now start out all the pools
with a scale-up profile by default.

Added tests in workunits/mon/pg_autoscaler.sh
to evaluate if the default pool creation is
a scale-up profile

Updated documentation and release notes to
reflect the change in the default behavior
of the pg_autoscale profile.

Fixes: https://tracker.ceph.com/issues/53309
Signed-off-by: Kamoltat <ksirivad@redhat.com>
3 years agoqa: disable metrics on kernel client during upgrade 43974/head
Patrick Donnelly [Tue, 16 Nov 2021 20:04:59 +0000 (15:04 -0500)]
qa: disable metrics on kernel client during upgrade

v16.2.4 MDS triggers an assert from these messages.

Also: add latest pacific for extra coverage.

Fixes: https://tracker.ceph.com/issues/53293
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
3 years agoqa/rgw: run ceph_test_cls_rgw_stats in rgw/verify suite 43843/head
Casey Bodley [Fri, 19 Nov 2021 17:09:31 +0000 (12:09 -0500)]
qa/rgw: run ceph_test_cls_rgw_stats in rgw/verify suite

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agotest/rgw: model multipart uploads in ceph_test_cls_rgw_stats
Casey Bodley [Mon, 8 Nov 2021 14:05:45 +0000 (09:05 -0500)]
test/rgw: model multipart uploads in ceph_test_cls_rgw_stats

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agotest/rgw: add ceph_test_cls_rgw_stats simulator
Casey Bodley [Sun, 7 Nov 2021 15:13:43 +0000 (10:13 -0500)]
test/rgw: add ceph_test_cls_rgw_stats simulator

a simulator that generates lots of create/delete operations against a
set of object names, and tracks the expected bucket stats for comparison

each operation has a 70% chance to complete successfully, a 10% chance to
cancel, 10% chance to suggest update, and 10% chance to suggest removal

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agocls/rgw: add some missing equality comparisons
Casey Bodley [Sun, 7 Nov 2021 14:50:08 +0000 (09:50 -0500)]
cls/rgw: add some missing equality comparisons

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agocls/rgw: RGWObjCategory to string
Casey Bodley [Sun, 7 Nov 2021 14:46:11 +0000 (09:46 -0500)]
cls/rgw: RGWObjCategory to string

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agocls/rgw: RGWModifyOp <-> string conversions
Casey Bodley [Sun, 7 Nov 2021 14:37:45 +0000 (09:37 -0500)]
cls/rgw: RGWModifyOp <-> string conversions

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agocls/rgw: move stream operator from rgw_common.h
Casey Bodley [Sun, 7 Nov 2021 14:25:46 +0000 (09:25 -0500)]
cls/rgw: move stream operator from rgw_common.h

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agocls/rgw: input parameters are const
Casey Bodley [Sat, 6 Nov 2021 16:08:10 +0000 (12:08 -0400)]
cls/rgw: input parameters are const

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agocls/rgw: add rgw_bucket_dir_stats alias
Casey Bodley [Mon, 8 Nov 2021 14:32:33 +0000 (09:32 -0500)]
cls/rgw: add rgw_bucket_dir_stats alias

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #41557 from ifed01/wip-ifed-better-daemonperf
Igor Fedotov [Fri, 19 Nov 2021 15:48:52 +0000 (18:48 +0300)]
Merge pull request #41557 from ifed01/wip-ifed-better-daemonperf

os/bluestore: improve usability for bluestore/bluefs perf counters

Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
Reviewed-by: Laura Flores lflores@redhat.com
3 years agoMerge pull request #43886 from nmshelke/doc-fix-53054
Venky Shankar [Fri, 19 Nov 2021 04:40:59 +0000 (10:10 +0530)]
Merge pull request #43886 from nmshelke/doc-fix-53054

doc: prerequisites fix for cephFS mount

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #44008 from rzarzynski/wip-crimson-leaky-objectcontextregistry
Samuel Just [Fri, 19 Nov 2021 01:36:30 +0000 (17:36 -0800)]
Merge pull request #44008 from rzarzynski/wip-crimson-leaky-objectcontextregistry

crimson/osd: fix leaks of ObjectContext in the registry.

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
3 years agoMerge pull request #43326 from pdvian/wip-doc-config-correction
Neha Ojha [Fri, 19 Nov 2021 01:03:11 +0000 (17:03 -0800)]
Merge pull request #43326 from pdvian/wip-doc-config-correction

doc/dev/config: Replace invalid config debug-pg

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #43980 from liu-chunmei/crimson-peerevent-nested
Liu-Chunmei [Thu, 18 Nov 2021 23:04:34 +0000 (15:04 -0800)]
Merge pull request #43980 from liu-chunmei/crimson-peerevent-nested

crimson: add delay for peering_event start when nested

reviewed-by : Samuel Just <sjust@redhat.com>,
                       Kefu Chai <tchaikov@gmail.com>,
                       Xuehan Xu <xxhdx1985126@gmail.com>,
                       Radoslaw Zarzynski <rzarzyns@redhat.com>.

3 years agocrimson/osd: fix leaks of ObjectContext in the registry. 44008/head
Radoslaw Zarzynski [Tue, 16 Nov 2021 01:35:12 +0000 (01:35 +0000)]
crimson/osd: fix leaks of ObjectContext in the registry.

The patch is supposed to fix the following problems (extra
debugs onboard):

```
NFO  2021-11-16 01:18:38,713 [shard 0] osd - ~OSD: OSD dtor called
INFO  2021-11-16 01:18:38,713 [shard 0] osd - Heartbeat::Peer: osd.6 removed
INFO  2021-11-16 01:18:38,714 [shard 0] osd - Heartbeat::Peer: osd.5 removed
INFO  2021-11-16 01:18:38,714 [shard 0] osd - Heartbeat::Peer: osd.2 removed
INFO  2021-11-16 01:18:38,714 [shard 0] osd - ~ShardServices: ShardServices dtor called
INFO  2021-11-16 01:18:38,714 [shard 0] osd - ~ObjectContextRegistry: ShardServices dtor called; unref_size=3, size=3
INFO  2021-11-16 01:18:38,714 [shard 0] osd - ~ObjectContextRegistry: unreferenced p=0x619000115380
INFO  2021-11-16 01:18:38,714 [shard 0] osd - ~ObjectContextRegistry: unreferenced p=0x619000114980
INFO  2021-11-16 01:18:38,714 [shard 0] osd - ~ObjectContextRegistry: unreferenced p=0x619000112680
INFO  2021-11-16 01:18:38,714 [shard 0] osd - ~ObjectContextRegistry: set p=0x619000114980
INFO  2021-11-16 01:18:38,714 [shard 0] osd - ~ObjectContextRegistry: set p=0x619000115380
INFO  2021-11-16 01:18:38,714 [shard 0] osd - ~ObjectContextRegistry: set p=0x619000112680
INFO  2021-11-16 01:18:38,738 [shard 0] osd - crimson shutdown complete

=================================================================
==33351==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 2808 byte(s) in 3 object(s) allocated from:
    #0 0x7fe10c0327b0 in operator new(unsigned long) (/lib64/libasan.so.5+0xf17b0)
    #1 0x55accbe8ffc4 in ceph::common::intrusive_lru<ceph::common::intrusive_lru_config<hobject_t, crimson::osd::ObjectContext, crimson::osd::obc_to_hoid<crimson::osd::ObjectContext> > >::get_or_create(hobject_t const&) (/usr/bin/ceph-osd+0x3b000fc4)

Objects leaked above:
0x619000112680 (936 bytes)
0x619000114980 (936 bytes)
0x619000115380 (936 bytes)
```

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agocmake: check for python(\d)\.(\d+) when building boost 44007/head
Kefu Chai [Thu, 18 Nov 2021 16:18:13 +0000 (00:18 +0800)]
cmake: check for python(\d)\.(\d+) when building boost

now that python3.10 has two digits as its minor version, we should be
able to match it.

this change fixes the build with python3.10. without this change, we'd
have

error: wrong library name 'python310' in the --with-<library> option.

when building with python3.10

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
3 years agomgr/cephadm: use asyncio.gather to parallelize things 43876/head
Sebastian Wagner [Thu, 11 Nov 2021 10:04:19 +0000 (11:04 +0100)]
mgr/cephadm: use asyncio.gather to parallelize things

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agomgr/cephadm: make OSDService.create_from_spec_one async
Sebastian Wagner [Wed, 10 Nov 2021 17:01:37 +0000 (18:01 +0100)]
mgr/cephadm: make OSDService.create_from_spec_one async

And gather all results. Plus a lot of mechanical adjustments

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agomgr/cephadm: Add CephadmOrchestrator.wait_async()
Sebastian Wagner [Wed, 10 Nov 2021 16:19:53 +0000 (17:19 +0100)]
mgr/cephadm: Add CephadmOrchestrator.wait_async()

less typing

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #43409 from linuxbox2/wip-rgwadmin-logtest
Casey Bodley [Thu, 18 Nov 2021 15:06:56 +0000 (10:06 -0500)]
Merge pull request #43409 from linuxbox2/wip-rgwadmin-logtest

qa/rgw: use local runner with cmdline radosgw_admin.py

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #35100 from soumyakoduri/cloudtiering
Casey Bodley [Thu, 18 Nov 2021 14:27:46 +0000 (09:27 -0500)]
Merge pull request #35100 from soumyakoduri/cloudtiering

rgw/CloudTransition: Transition objects to cloud endpoint

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #42780 from ronen-fr/wip-ronenf-unique-scrub
Ronen Friedman [Thu, 18 Nov 2021 14:08:07 +0000 (16:08 +0200)]
Merge pull request #42780 from ronen-fr/wip-ronenf-unique-scrub

osd/scrub: mark PG as being scrubbed, from scrub initiation to Inactive state

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge PR #43880 into master
Sage Weil [Thu, 18 Nov 2021 13:35:41 +0000 (08:35 -0500)]
Merge PR #43880 into master

* refs/pull/43880/head:
mgr/cephadm: turn off asyncssh debug output

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #43093 from zdover23/wip-doc-2021-09-09-rados-bootstrap-options-2
zdover23 [Thu, 18 Nov 2021 12:54:58 +0000 (22:54 +1000)]
Merge pull request #43093 from zdover23/wip-doc-2021-09-09-rados-bootstrap-options-2

doc/rados: update mon_host & friends options

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agomgr/dashboard: Daemon Events listing using bootstrap class 43958/head
Nizamudeen A [Tue, 16 Nov 2021 14:43:09 +0000 (20:13 +0530)]
mgr/dashboard: Daemon Events listing using bootstrap class

Fixes: https://tracker.ceph.com/issues/53282
Signed-off-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #43969 from sebastian-philipp/core
Sebastian Wagner [Thu, 18 Nov 2021 09:52:36 +0000 (10:52 +0100)]
Merge pull request #43969 from sebastian-philipp/core

doc/cephadm: core dumps

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
3 years agorgw/CloudTransition: Replace Coroutines with RGWRestConn APIs 35100/head
Soumya Koduri [Wed, 23 Jun 2021 18:00:11 +0000 (23:30 +0530)]
rgw/CloudTransition: Replace Coroutines with RGWRestConn APIs

To avoid the overhead of using coroutines during lifecycle transition,
RGWRESTStream* APIs are used to transition objects to remote cloud.

Also handled few optimizations and cleanup stated below:
* Store the list of cloud target buckets as part of LCWorker instead
  of making it global. This list is maintained for the duration of
  RGWLC::process(), post which discarded.
* Refactor code to remove coroutine based class definitions which are no
  longer needed and use direct function calls instead.
* Check for cloud transitioned objects using tier-type and return error if
  accessed in RGWGetObj, RGWCopyObj and RGWPutObj ops.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/RGWRESTConn: Define a wrapper to send PUT/POST stream request
Soumya Koduri [Wed, 23 Jun 2021 15:46:24 +0000 (21:16 +0530)]
rgw/RGWRESTConn: Define a wrapper to send PUT/POST stream request

Similar to "get_resource()", add an API "send_resource()" to send
PUT/POST/DELETE Stream request on RGWRestConn

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/CloudTransition: Include aws region name for remote endpoint
Soumya Koduri [Mon, 22 Mar 2021 10:44:12 +0000 (16:14 +0530)]
rgw/CloudTransition: Include aws region name for remote endpoint

With commit#81ad226, aws auth v4 rquires region name for remote
endpoint connection. Include the same in the tier parameters.

& misc fixes

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/CloudTransition: Handle versioned objects
Soumya Koduri [Wed, 17 Mar 2021 21:12:54 +0000 (02:42 +0530)]
rgw/CloudTransition: Handle versioned objects

For versioned and locked objects, similar semantics as that of LifecycleExpiration are applied as stated below -

If the bucket versioning is enabled and the object transitioned to cloud is
 - current version, irrespective of what the config option "retain_object" value is, the object is not deleted but instead delete marker is created on the source rgw server.
 - noncurrent version, it is deleted or retained based on the config option "retain_object" value.

If the object is locked, and is
 - current version, it is transitioned to cloud post which it is made noncurrent with delete marker created.
 - noncurrent version, transition is skipped.

Also misc rebase fixes and cleanup -

* Rename config option to "retain_head_object"

to reflect its functionality to keep head object post transitioning
to cloud if enabled

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/CloudTransition: Skip transition to cloud if the object is locked
Soumya Koduri [Sun, 7 Mar 2021 14:14:36 +0000 (19:44 +0530)]
rgw/CloudTransition: Skip transition to cloud if the object is locked

If an object is locked, skip its transition to cloud.

@todo: Do we need special checks for bucket versioning too?
If current, instead of deleting the data, do we need to create
a delete marker? What about the case if retain_object is set to true.

& misc rebase fixes

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/CloudTransition: Change tier-type to cloud-s3
Soumya Koduri [Fri, 26 Feb 2021 16:48:52 +0000 (22:18 +0530)]
rgw/CloudTransition: Change tier-type to cloud-s3

Currently the transition is supported to cloud providers
that are compatible with AWS/S3. Hence change the tier-type to
cloud-s3 to configure the S3 style endpoint details.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/CloudTransition: handle versioned objects
Soumya Koduri [Sun, 10 Jan 2021 21:32:17 +0000 (03:02 +0530)]
rgw/CloudTransition: handle versioned objects

If the object is versioned, to avoid objects getting overwritten
post transition to cloud, append object versionID to the target
object name

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/CloudTransition: Add documentation
Soumya Koduri [Mon, 21 Dec 2020 15:20:30 +0000 (20:50 +0530)]
rgw/CloudTransition: Add documentation

Also to avoid object name collisions across various buckets
post cloud transition, add bucket name to the object prefix.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/CloudTransition: Do not allow data pool for tier type storage classes
Soumya Koduri [Mon, 14 Dec 2020 18:26:16 +0000 (23:56 +0530)]
rgw/CloudTransition: Do not allow data pool for tier type storage classes

Tier type storage classes should not be allowed to have data
pools

& few other fixes/cleanup stated below -

* If the tier_targets are not configured, do not dump them in
the 'zonegroup get' command.

* If not configured, by default a bucket of below name convention -
"rgwx-$zonegroup-$storage_class-cloud-bucket"

is created in the remote cloud endpoint to transition objects to.

* Rename config option 'tier_storage_class' to 'target_storage_class'.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/CloudTransition: Fail GET on cloud tiered objects
Soumya Koduri [Wed, 4 Nov 2020 18:24:47 +0000 (23:54 +0530)]
rgw/CloudTransition: Fail GET on cloud tiered objects

As per https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html
GET operation may fail with “InvalidObjectStateError” error if the
object is in GLACIER or DEEP_ARCHIVE storage class and not restored.
Same can apply for cloud tiered objects. However STAT/HEAD requests
shall return the metadata stored.

& misc fixes

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/CloudTransition: Verify if the object is already tiered
Soumya Koduri [Sun, 16 Aug 2020 09:01:50 +0000 (14:31 +0530)]
rgw/CloudTransition: Verify if the object is already tiered

Add class to fetch headers from remote endpoint and verify if the object
is already tiered.

& Few other fixes stated below -

* Erase data in the head of cloud transitioned object
* 'placement rm' command should erase tier_config details
* A new option added in the object manifest to denote if the
  object is tiered in multiparts

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/CloudTransition: Store the status of multipart uploads
Soumya Koduri [Tue, 18 Aug 2020 07:02:22 +0000 (12:32 +0530)]
rgw/CloudTransition: Store the status of multipart uploads

Store the status of multipart upload parts to verify if the object
hasn't changed during the transition and if yes, abort the upload.

Also avoid re-creating target buckets -

Its not ideal to try creating target bucket for every object
transition to cloud. To avoid it caching the bucket creations in
a map with an expiry period set to '2*lc_debug_interval' for each
entry.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/CloudTransition: Delete cloud tiered objects by default
Soumya Koduri [Sun, 2 Aug 2020 19:54:19 +0000 (01:24 +0530)]
rgw/CloudTransition: Delete cloud tiered objects by default

Added a new option "retain_object" in tier_config which determines
whether a cloud tiered object is deleted or if its head object is
retained. By default the value is false i.e, the objects get
deleted.

XXX: verify that if Object is locked (ATTR_RETENTION), transition is
not processed. Also check if the transition takes place separately for
each version.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/CloudTransition: Update object metadata and bi post cloud tranistion
Soumya Koduri [Tue, 28 Jul 2020 20:27:04 +0000 (01:57 +0530)]
rgw/CloudTransition: Update object metadata and bi post cloud tranistion

After transitioning the object to cloud, following updates are done
to the existing object.

* In bi entry, change object category to CloudTiered
* Update cloud-tier details (like endpoint, keys etc) in Object Manifest
* Mark the tail objects expired to be deleted by gc

TODO:
* Update all the cloud config details including multiparts
* Check if any other object metadata needs to be changed
* Optimize to avoid using read_op again to read attrs.
* Check for mtime to resolve conflicts when multiple zones try to transition obj

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/CloudTransition: Tier objects to remote cloud
Soumya Koduri [Wed, 23 Dec 2020 05:44:53 +0000 (11:14 +0530)]
rgw/CloudTransition: Tier objects to remote cloud

If the storage class configured is of cloud, transition
the objects to remote endpoint configured.

In case the object size is >mulitpart size limit (say 5M),
upload the object into multiparts.

As part of transition, map rgw attributes to http attrs,
including ACLs.

A new attribute (x-amz-meta-source: rgw) is added to denote
that the object is transitioned from RGW source.

Added two new options to tier-config to configure multipart size -
* multipart_sync_threshold - determines the limit of object size,
when exceeded transitioned in multiparts
* multipart_min_part_size - the minimum size of the multipart upload part

Default values for both the options is 32M and minimum value supported
is 5M.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agorgw/CloudTransition: Add new options to configure tier endpoint
Soumya Koduri [Sat, 11 Jul 2020 17:05:04 +0000 (22:35 +0530)]
rgw/CloudTransition: Add new options to configure tier endpoint

As mentioned in https://docs.google.com/document/d/1IoeITPCF64A5W-UA-9Y3Vp2oSfz3xVQHu31GTu3u3Ug/edit,
the tier storage class will be configured at zonegroup level.

So the existing CLI "radosgw-admin zonegroup placement add  <id> --storage-class <class>" will be
used to add tier storage classes as well but with extra tier-config options mentioned below -

--tier-type : "cloud"
--tier-config : [<key,value>,]

These tier options are already defined to configure cloud sync module which are being reused here.

TODO:
* Add multipart options (if any , like part size, threshold)
* Document
* Test upgrade/downgrade

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agocrimson: add delay for peering_event start when nested 43980/head
chunmei-liu [Wed, 17 Nov 2021 04:40:09 +0000 (20:40 -0800)]
crimson: add delay for peering_event start when nested

Delay the second (nested) peerevent::start to let the first finish.
Then avoid interruptor nesting which will cause local interrupt_cond
not equal global interrupt_cond.

Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
3 years agoMerge PR #43929 into master
Sage Weil [Wed, 17 Nov 2021 22:05:23 +0000 (17:05 -0500)]
Merge PR #43929 into master

* refs/pull/43929/head:
qa/suites/orch/cephadm: verify /var/log/ceph/$fsid ownership
cephadm: only make_log_dir for ceph daemons

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge PR #43934 into master
Sage Weil [Wed, 17 Nov 2021 22:04:57 +0000 (17:04 -0500)]
Merge PR #43934 into master

* refs/pull/43934/head:
qa/suites/rados/dashboard: use single-container-host.yaml
qa/distros: add single-container-host.yaml
qa/suites: use distros/container-hosts/
qa/distros/container-hosts: add 8.stream + crun
qa/distros/container-hosts: add collection of container targets

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoqa/upgrade: rgw multisite upgrade test excludes ceph-volume 43824/head
Casey Bodley [Fri, 5 Nov 2021 17:53:44 +0000 (13:53 -0400)]
qa/upgrade: rgw multisite upgrade test excludes ceph-volume

E: Unable to locate package ceph-volume

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #43433 from soumyakoduri/wip-skoduri-dbstore-lc
Casey Bodley [Wed, 17 Nov 2021 17:39:19 +0000 (12:39 -0500)]
Merge pull request #43433 from soumyakoduri/wip-skoduri-dbstore-lc

rgw/dbstore: handle lc related state

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
3 years agoMerge pull request #43921 from aclamk/wip-aclamk-fix-omap-upgrade-fix
Neha Ojha [Wed, 17 Nov 2021 17:35:19 +0000 (09:35 -0800)]
Merge pull request #43921 from aclamk/wip-aclamk-fix-omap-upgrade-fix

 BlueStore: Omap upgrade to per-pg fix fix

Reviewed-by: Igor Fedotov <igor.fedotov@croit.io>
3 years agoqa/rgw: use local runner with cmdline radosgw_admin.py 43409/head
Matt Benjamin [Mon, 4 Oct 2021 15:22:11 +0000 (11:22 -0400)]
qa/rgw: use local runner with cmdline radosgw_admin.py

Restore ability to run radosgw_admin.py unit standalone--improved
to use vstart_runner hooks.

Local rgwadmin(...) wrapper suggested as a cleanup in review by Casey.

Fixes: https://tracker.ceph.com/issues/52837
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
3 years agoos/bluestore: Fix omap upgrade to per-pg scheme 43921/head
Adam Kupczyk [Sat, 13 Nov 2021 10:28:18 +0000 (11:28 +0100)]
os/bluestore: Fix omap upgrade to per-pg scheme

This is fix to regression introduced by fix to omap upgrade: https://github.com/ceph/ceph/pull/43687
The problem was that we always skipped first omap entry.
This worked fine with objects having omap header key.
For objects without header key we skipped first actual omap key.

Fixes: https://tracker.ceph.com/issues/53260
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
3 years agoos/bluestore: Add more legacy -> per PG upgrade tests
Adam Kupczyk [Sat, 13 Nov 2021 09:41:14 +0000 (10:41 +0100)]
os/bluestore: Add more legacy -> per PG upgrade tests

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
3 years agodoc/cephadm: core dumps 43969/head
Sebastian Wagner [Tue, 16 Nov 2021 15:59:29 +0000 (16:59 +0100)]
doc/cephadm: core dumps

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
3 years agoMerge pull request #43977 from xxhdx1985126/wip-53273
Samuel Just [Wed, 17 Nov 2021 15:34:47 +0000 (07:34 -0800)]
Merge pull request #43977 from xxhdx1985126/wip-53273

crimson/os/seastore/lba_manager: do full merge if the donor node is *AT* its minimum capacity

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
3 years agoqa/suites/rados/dashboard: use single-container-host.yaml 43934/head
Sage Weil [Tue, 16 Nov 2021 15:57:01 +0000 (09:57 -0600)]
qa/suites/rados/dashboard: use single-container-host.yaml

Signed-off-by: Sage Weil <sage@newdream.net>
3 years agoqa/distros: add single-container-host.yaml
Sage Weil [Tue, 16 Nov 2021 15:59:25 +0000 (09:59 -0600)]
qa/distros: add single-container-host.yaml

This is a single, possibly preferred, os + container runtime
combination.

Signed-off-by: Sage Weil <sage@newdream.net>
3 years agoqa/suites: use distros/container-hosts/
Sage Weil [Tue, 16 Nov 2021 15:53:28 +0000 (09:53 -0600)]
qa/suites: use distros/container-hosts/

Signed-off-by: Sage Weil <sage@newdream.net>
3 years agodoc/rados: update mon_host & friends options 43093/head
Zac Dover [Wed, 8 Sep 2021 14:37:57 +0000 (00:37 +1000)]
doc/rados: update mon_host & friends options

This PR improves the wording of the descriptions of
the mon_host and mon_host_override bootstrap options.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
3 years agoMerge pull request #43095 from sebastian-philipp/_check_for_moved_osds
Sebastian Wagner [Wed, 17 Nov 2021 14:09:06 +0000 (15:09 +0100)]
Merge pull request #43095 from sebastian-philipp/_check_for_moved_osds

mgr/cephadm: Add _check_for_moved_osds

Reviewed-by: Adam King <adking@redhat.com>
3 years agodoc: update the capabilities doc for cephfs 43722/head
Xiubo Li [Fri, 29 Oct 2021 03:46:52 +0000 (11:46 +0800)]
doc: update the capabilities doc for cephfs

Add more detail about the caps and explain more for the caps in
filelock.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
3 years agomgr/dashboard: NFS non-existent files cleanup 43987/head
Alfonso Martínez [Wed, 17 Nov 2021 12:18:26 +0000 (13:18 +0100)]
mgr/dashboard: NFS non-existent files cleanup

After https://github.com/ceph/ceph/pull/42526 and https://github.com/ceph/ceph/pull/43725 merges,
the following files do not exist but there were still references to them:
- src/pybind/mgr/dashboard/services/ganesha.py
- qa/tasks/mgr/dashboard/test_ganesha.py

The following files were renamed but there were still references to old names:
- src/pybind/mgr/dashboard/controllers/nfsganesha.py:  nfsganesha.py --> nfs.py
- src/pybind/mgr/dashboard/tests/test_ganesha.py:  test_ganesha.py --> test_nfs.py

Other changes in qa/suites/rados/dashboard/tasks/dashboard.yaml:
- Add missing task: tasks.mgr.dashboard.test_api
- Sort dashboard tasks alphabetically.

Fixes: https://tracker.ceph.com/issues/53123
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
3 years agoMerge pull request #42906 from sebastian-philipp/rm-ceph-orch-osd-i
Sebastian Wagner [Wed, 17 Nov 2021 10:18:51 +0000 (11:18 +0100)]
Merge pull request #42906 from sebastian-philipp/rm-ceph-orch-osd-i

mgr/orch: deprecated `ceph orch apply osd -i <osd_spec_file>`

Reviewed-by: Adam King <adking@redhat.com>
3 years agomgr/dashboard: rgw daemon list: add realm column 43983/head
Alfonso Martínez [Wed, 17 Nov 2021 08:29:38 +0000 (09:29 +0100)]
mgr/dashboard: rgw daemon list: add realm column

- Some refactoring and cleanup.

Fixes: https://tracker.ceph.com/issues/53301
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
3 years agoceph-volume: human_readable_size() refactor 43982/head
Guillaume Abrioux [Tue, 16 Nov 2021 19:32:38 +0000 (20:32 +0100)]
ceph-volume: human_readable_size() refactor

This commit refactors the `human_readable_size()` function.

The current implementation has a couple of issues:

in a 'human readable' mindset, I would expect `human_readable_size(1024)` to
return '1.00 KB' instead of '1024.00 KB'.

```
In [1]: from ceph_volume.util.disk import human_readable_size

In [2]: human_readable_size(1024)
Out[2]: '1024.00 B'

In [3]: human_readable_size(1024*1024)
Out[3]: '1024.00 KB'

```

Also, it doesn't support PB unit:

```
In [4]: human_readable_size(1024*1024*1024*1024*1024)
Out[4]: '1024.00 TB'

In [5]: human_readable_size(1024*1024*1024*1024*1024*1024)
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-31-0859861661dc> in <module>
----> 1 human_readable_size(1024*1024*1024*1024*1024*1024)

~/GIT/ceph/src/ceph-volume/ceph_volume/util/disk.py in human_readable_size(size)
    640     return "{size:.2f} {suffix}".format(
    641         size=size,
--> 642         suffix=suffixes[suffix_index])
    643
    644

IndexError: list index out of range
```

This commit fixes this.

Fixes: https://tracker.ceph.com/issues/48492
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
3 years agoMerge pull request #43670 from jtlayton/wip-53004
Venky Shankar [Wed, 17 Nov 2021 06:14:41 +0000 (11:44 +0530)]
Merge pull request #43670 from jtlayton/wip-53004

client: flesh out doc comments for struct ceph_client_callback_args

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agocrimson/os/seastore/lba_manager: do full merge if the donor node is *AT* its minimum... 43977/head
Xuehan Xu [Wed, 17 Nov 2021 01:10:59 +0000 (09:10 +0800)]
crimson/os/seastore/lba_manager: do full merge if the donor node is *AT* its minimum capacity

Fixes: https://tracker.ceph.com/issues/53273
Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agocrimson/os/seastore/lba_manager: better debug outputs for lba node merge
Xuehan Xu [Wed, 17 Nov 2021 01:09:41 +0000 (09:09 +0800)]
crimson/os/seastore/lba_manager: better debug outputs for lba node merge

Signed-off-by: Xuehan Xu <xxhdx1985126@gmail.com>
3 years agoMerge pull request #43868 from rhcs-dashboard/fix-53209-master
Ernesto Puerta [Wed, 17 Nov 2021 00:03:15 +0000 (01:03 +0100)]
Merge pull request #43868 from rhcs-dashboard/fix-53209-master

mgr/dashboard: Device health status is not getting listed under hosts section

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #43803 from Matan-B/wip-matanb-pgstats-support
Samuel Just [Tue, 16 Nov 2021 23:10:44 +0000 (15:10 -0800)]
Merge pull request #43803 from Matan-B/wip-matanb-pgstats-support

crimson/osd: Fixing empty PG stats issue

Reviewed-by: Samuel Just <sjust@redhat.com>
3 years agoMerge pull request #43669 from rhcs-dashboard/grafana-unit-tests
Ernesto Puerta [Tue, 16 Nov 2021 22:30:10 +0000 (23:30 +0100)]
Merge pull request #43669 from rhcs-dashboard/grafana-unit-tests

monitoring/grafana: Grafana query tester

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #43909 from ivancich/wip-small-code-fixups
J. Eric Ivancich [Tue, 16 Nov 2021 19:19:44 +0000 (14:19 -0500)]
Merge pull request #43909 from ivancich/wip-small-code-fixups

rgw: small code fix-ups

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
3 years agodoc: prerequisites fix for cephFS mount 43886/head
Nikhilkumar Shelke [Thu, 11 Nov 2021 10:34:30 +0000 (16:04 +0530)]
doc: prerequisites fix for cephFS mount

Fixes: https://tracker.ceph.com/issues/53054
Signed-off-by: Nikhilkumar Shelke <nshelke@redhat.com>
3 years agoMerge pull request #43932 from gregsfortytwo/wip-53258-dump-disallowed
Gregory Farnum [Tue, 16 Nov 2021 18:22:00 +0000 (10:22 -0800)]
Merge pull request #43932 from gregsfortytwo/wip-53258-dump-disallowed

mon: MonMap: display disallowed_leaders whenever they're set

Reviewed-by: Samuel Just <sjust@redhat.com
Reviewed-by: Laura Flores <lflores@redhat.com>