]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
3 years agodoc/cephadm: deployment scenarios single host and isolated environment 44092/head
Melissa [Tue, 26 Oct 2021 06:46:37 +0000 (02:46 -0400)]
doc/cephadm: deployment scenarios single host and isolated environment

This PR adds a deployment scenarios section to the cephadm docs to document the single-host-defaults flag, and explain how to deploy in an isolated environment.

Signed-off-by: Melissa Li <melissali@redhat.com>
3 years agodoc/cephadm: isolated environment and other deployment scenarios
Melissa [Tue, 26 Oct 2021 06:46:37 +0000 (02:46 -0400)]
doc/cephadm: isolated environment and other deployment scenarios

This PR adds a section to the cephadm docs to describe how to install cephadm in different deployment scenarios (set cluster on single host, and deployment in an isolated environment or private network).

Signed-off-by: Melissa Li <melissali@redhat.com>
3 years agoMerge pull request #43905 from rhcs-dashboard/fix-53242-master
Ernesto Puerta [Wed, 24 Nov 2021 11:47:11 +0000 (12:47 +0100)]
Merge pull request #43905 from rhcs-dashboard/fix-53242-master

mgr/dashboard: dashboard does not show degraded objects if they are less than 0.5% under "Dashboard->Capacity->Objects block

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agoMerge pull request #44023 from rhcs-dashboard/kcli-expanded-monitoring
Alfonso Martínez [Wed, 24 Nov 2021 10:30:22 +0000 (11:30 +0100)]
Merge pull request #44023 from rhcs-dashboard/kcli-expanded-monitoring

mgr/dashboard: cephadm e2e start script: --expanded: deploy monitoring stack

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 #44064 from MrFreezeex/fix-statusupdater-utest
Mykola Golub [Wed, 24 Nov 2021 09:58:36 +0000 (11:58 +0200)]
Merge pull request #44064 from MrFreezeex/fix-statusupdater-utest

rbd-mirror: make RemoveImmediateUpdate test synchronous

Reviewed-by: Mykola Golub <mgolub@suse.com>
3 years agoMerge pull request #44045 from rhcs-dashboard/upgrade-cypress
Alfonso Martínez [Wed, 24 Nov 2021 07:34:10 +0000 (08:34 +0100)]
Merge pull request #44045 from rhcs-dashboard/upgrade-cypress

mgr/dashboard: upgrade Cypress to the latest stable version

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
3 years agoMerge pull request #44019 from liu-chunmei/crimson-background-recovery 43923/head
Liu-Chunmei [Wed, 24 Nov 2021 00:46:16 +0000 (16:46 -0800)]
Merge pull request #44019 from liu-chunmei/crimson-background-recovery

crimson/osd: add delay for background_recovery

reviewed-by:  Radoslaw Zarzynski <rzarzyns@redhat.com>

3 years agoMerge pull request #43989 from cfsnyder/wip-53308
Xie Xingguo [Wed, 24 Nov 2021 00:41:22 +0000 (08:41 +0800)]
Merge pull request #43989 from cfsnyder/wip-53308

osd/OSDMap.cc: clean up pg_temp for nonexistent pgs

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
3 years agoMerge PR #44036 into master
Sage Weil [Wed, 24 Nov 2021 00:40:35 +0000 (19:40 -0500)]
Merge PR #44036 into master

* refs/pull/44036/head:
.github/pull_request_template: drop teuthology reference
.github/pull_request_template: add cleanup option

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Deepika Upadhyay <dupadhya@redhat.com>
3 years agoMerge pull request #44061 from Matan-B/wip-matanb-doc-teuthology
Neha Ojha [Tue, 23 Nov 2021 20:07:41 +0000 (12:07 -0800)]
Merge pull request #44061 from Matan-B/wip-matanb-doc-teuthology

doc/dev: adding Teuthology suggested resources

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #43996 from rhcs-dashboard/predefined-labels
Ernesto Puerta [Tue, 23 Nov 2021 19:03:22 +0000 (20:03 +0100)]
Merge pull request #43996 from rhcs-dashboard/predefined-labels

mgr/dashboard: Predefine labels in create host form

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 agorbd-mirror: make RemoveImmediateUpdate test synchronous 44064/head
Arthur Outhenin-Chalandre [Tue, 23 Nov 2021 14:25:46 +0000 (15:25 +0100)]
rbd-mirror: make RemoveImmediateUpdate test synchronous

Try fixing sporadic failure linked in the tracker in
TestMockMirrorStatusUpdater.RemoveImmediateUpdate by making it
synchronous.

Fixes: https://tracker.ceph.com/issues/53375
Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
3 years agomgr/dashboard: upgrade Cypress to the latest stable version 44045/head
Alfonso Martínez [Tue, 23 Nov 2021 14:17:54 +0000 (15:17 +0100)]
mgr/dashboard: upgrade Cypress to the latest stable version

- Remove unneeded dependency that was causing UI performance issues: zone.js
- Ignore 'ResizeObserver loop limit exceeded' error.
- run-frontend-e2e-tests.sh refactoring: create rgw dashboard user through
  'ceph dashboard set-rgw-credentials' and use it on rgw buckets' tests.

Fixes: https://tracker.ceph.com/issues/53357
Signed-off-by: Alfonso Martínez <almartin@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 agodoc/dev: adding Teuthology suggested resources 44061/head
Matan Breizman [Tue, 23 Nov 2021 11:06:57 +0000 (11:06 +0000)]
doc/dev: adding Teuthology suggested resources

Signed-off-by: Matan Breizman <mbreizma@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 agomgr/dashboard: dashboard does not show degraded objects if they are less than 0.5... 43905/head
Aashish Sharma [Fri, 12 Nov 2021 10:05:38 +0000 (15:35 +0530)]
mgr/dashboard: dashboard does not show degraded objects if they are less than 0.5% under "Dashboard->Capacity->Objects block

This PR is intended to fix this issue

Fixes: https://tracker.ceph.com/issues/53242
Signed-off-by: Aashish Sharma <aasharma@redhat.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: Predfine labels in create host form 43996/head
Nizamudeen A [Thu, 18 Nov 2021 11:09:30 +0000 (16:39 +0530)]
mgr/dashboard: Predfine labels in create host form

Also retains the previously created labels by user in the form

Fixes: https://tracker.ceph.com/issues/53315
Signed-off-by: Nizamudeen A <nia@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 ago.github/pull_request_template: drop teuthology reference 44036/head
Sage Weil [Sat, 20 Nov 2021 14:55:50 +0000 (08:55 -0600)]
.github/pull_request_template: drop teuthology reference

It is not clear what role this has relative to the needs-qa label.

Signed-off-by: Sage Weil <sage@newdream.net>
3 years ago.github/pull_request_template: add cleanup option
Sage Weil [Sat, 20 Nov 2021 14:55:20 +0000 (08:55 -0600)]
.github/pull_request_template: add cleanup option

Signed-off-by: Sage Weil <sage@newdream.net>
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 agomgr/dashboard: cephadm e2e start script: deploy monitoring stack when --expanded 44023/head
Alfonso Martínez [Fri, 19 Nov 2021 07:57:06 +0000 (08:57 +0100)]
mgr/dashboard: cephadm e2e start script: deploy monitoring stack when --expanded

Fixes: https://tracker.ceph.com/issues/53333
Signed-off-by: Alfonso Martínez <almartin@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 agocrimson/osd: add delay for background_recovery 44019/head
chunmei-liu [Thu, 18 Nov 2021 22:59:48 +0000 (14:59 -0800)]
crimson/osd: add delay for background_recovery

to avoid interuptor nested.

Signed-off-by: chunmei-liu <chunmei.liu@intel.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 agoosd/OSDMap.cc: clean up pg_temp for nonexistent pgs 43989/head
Cory Snyder [Wed, 17 Nov 2021 18:07:45 +0000 (13:07 -0500)]
osd/OSDMap.cc: clean up pg_temp for nonexistent pgs

Fixes an issue where the OSDMap does not clear pg-temp entries for PGs that no longer exist.

Fixes: https://tracker.ceph.com/issues/53308
Signed-off-by: Cory Snyder <csnyder@iland.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>