]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agoosd: fix reference leak 35899/head
myoungwon oh [Sun, 30 Aug 2020 08:23:52 +0000 (17:23 +0900)]
osd: fix reference leak

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agotest: use existing replicated tier instead of using ec_overwrite
myoungwon oh [Fri, 28 Aug 2020 09:35:28 +0000 (18:35 +0900)]
test: use existing replicated tier instead of using ec_overwrite

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agotest: fix to use set-chunk (with reference)
myoungwon oh [Fri, 28 Aug 2020 02:47:09 +0000 (11:47 +0900)]
test: fix to use set-chunk (with reference)

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agotool, test: make with-reference default when called set-chunk
myoungwon oh [Thu, 27 Aug 2020 13:50:12 +0000 (22:50 +0900)]
tool, test: make with-reference default when called set-chunk

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoosd: chunk_info must hold a reference
myoungwon oh [Wed, 26 Aug 2020 06:38:04 +0000 (15:38 +0900)]
osd: chunk_info must hold a reference

Every mapping in chunk_map must have a corresponding refcount

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agotest: adjust test cases based on a new flush scheme
myoungwon oh [Thu, 27 Aug 2020 03:15:06 +0000 (12:15 +0900)]
test: adjust test cases based on a new flush scheme

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoosd: make checking intersect range simple
myoungwon oh [Thu, 27 Aug 2020 01:38:43 +0000 (10:38 +0900)]
osd: make checking intersect range simple

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoosd, test: remove all things related to manifest_flush
myoungwon oh [Wed, 26 Aug 2020 02:31:06 +0000 (11:31 +0900)]
osd, test: remove all things related to manifest_flush

Due to a plan to re-work based on CDC-based flush,
remove manifest_flush()

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agotest: add refcount increment test on snapshot
myoungwon oh [Sat, 15 Aug 2020 18:02:12 +0000 (03:02 +0900)]
test: add refcount increment test on snapshot

add refcount increment test on snapshotted manifest object
when using set-chunk

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoosd: increment refcount if adjacent clones do not have a same chunk
myoungwon oh [Sat, 15 Aug 2020 15:10:14 +0000 (00:10 +0900)]
osd: increment refcount if adjacent clones do not have a same chunk

Upon set-chunk, check a previous snapshot and increment the target
reference if there is no the same chunk in the previous snapshot

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agotest: Consider a tier_promote case deleting redirect info
myoungwon oh [Sun, 9 Aug 2020 11:40:09 +0000 (20:40 +0900)]
test: Consider a tier_promote case deleting redirect info

Since calling tier_promote triggers to remove redirect
manifest info in the target object, unset_manifest can get
the response with EOPNOTSUPP

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoosd: remove existing object before rename is called
myoungwon oh [Sun, 9 Aug 2020 11:35:23 +0000 (20:35 +0900)]
osd: remove existing object before rename is called

In redirected manifest case, the object exists in the upper tier.
So, to avoid a conflict when rename() is called, remove existing
object first.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoosd: drop the reference if redirect has the reference
myoungwon oh [Sun, 9 Aug 2020 11:31:02 +0000 (20:31 +0900)]
osd: drop the reference if redirect has the reference

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoosd: clear <off, chunk_info> if the chunk is dedup chunk
myoungwon oh [Sun, 9 Aug 2020 11:27:14 +0000 (20:27 +0900)]
osd: clear <off, chunk_info>  if the chunk is dedup chunk

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agotest: add tests to cover overlapped cases when using
myoungwon oh [Sat, 8 Aug 2020 08:23:21 +0000 (17:23 +0900)]
test: add tests to cover overlapped cases when using
calc_refs_to_drop_on_modify()

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agotest: remove unused code and fix test scenario
myoungwon oh [Fri, 7 Aug 2020 07:30:14 +0000 (16:30 +0900)]
test: remove unused code and fix test scenario

Fix test scenario due to the reference decrement
upon modification

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoosd: make dec_refcount simple
myoungwon oh [Fri, 7 Aug 2020 07:29:04 +0000 (16:29 +0900)]
osd: make dec_refcount simple

Use hobject_t as a input paramter instead of ObjectContextRef

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agosrc/test: clean up ec test cases
myoungwon oh [Tue, 4 Aug 2020 13:26:06 +0000 (22:26 +0900)]
src/test: clean up ec test cases

Use write_full to create an object and adjust test
scenario because all dirty chunks do not lead to flush

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoosd, test: do not increment refcount if a previous snapshot have a same chunk
myoungwon oh [Wed, 1 Jul 2020 13:57:21 +0000 (22:57 +0900)]
osd, test: do not increment refcount if a previous snapshot have a same chunk

When flush is started, check a previous snapshot and making target chunk's
state clean if there is the same chunk in the previous snapshot

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agosrc/test: adjust test scenario based on modified refcount scheme
myoungwon oh [Thu, 6 Aug 2020 13:39:56 +0000 (22:39 +0900)]
src/test: adjust test scenario based on modified refcount scheme

Based on the reference decrement upon modification,
test scenario is adjusted with cleanups

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agosrc/test: remove unused code
myoungwon oh [Mon, 3 Aug 2020 07:11:44 +0000 (16:11 +0900)]
src/test: remove unused code

no need to configure existing tier mode

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agosrc/test: create a instance and use tier-flush
myoungwon oh [Mon, 3 Aug 2020 07:07:46 +0000 (16:07 +0900)]
src/test: create a instance and use tier-flush

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agosrc/test: use tier-flush explicitly
myoungwon oh [Mon, 3 Aug 2020 06:01:37 +0000 (15:01 +0900)]
src/test: use tier-flush explicitly

flush no longer occurs when all chunks are dirty

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agosrc/test: prevent truncate from using write_full
myoungwon oh [Mon, 3 Aug 2020 05:35:21 +0000 (14:35 +0900)]
src/test: prevent truncate from using write_full

Use write instead of write_full to avoid truncate
even if set-chunk is set

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agosrc/test: add a test that can verify dropping the reference when modification occurs
myoungwon oh [Mon, 20 Jul 2020 12:49:44 +0000 (21:49 +0900)]
src/test: add a test that can verify dropping the reference when modification occurs

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
5 years agoosd: drop the reference right after modification
myoungwon oh [Tue, 14 Jul 2020 11:30:07 +0000 (20:30 +0900)]
osd: drop the reference right after modification

To simply chunk_info_t state and keep unreferenced chunk minimal,
we prefer to drop the reference and remove manifest pointer.
Also, FLAG_DIRTY will be no longer used in chunk_info_t.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
5 years agosrc/test: add a test to check that the redirect is clear after promote
myoungwon oh [Tue, 14 Jul 2020 06:21:43 +0000 (15:21 +0900)]
src/test: add a test to check that the redirect is clear after promote

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoosd: clear redirect after promote
myoungwon oh [Fri, 3 Jul 2020 15:02:25 +0000 (00:02 +0900)]
osd: clear redirect after promote

We do want PROMOTE to be able to atomically replace
a redirect with the actual object, so the solution
is to clear the redirect at the end of the promote.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agosrc/test: verify that set-chunk is working right on the clone
myoungwon oh [Fri, 31 Jul 2020 09:51:30 +0000 (18:51 +0900)]
src/test: verify that set-chunk is working right on the clone

1. check whether set-chunk triggers a clone
2. verify that set-chunk make a chunk on a clone

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoosd: do not trigger clone when set_chunk is called
myoungwon oh [Fri, 31 Jul 2020 07:34:23 +0000 (16:34 +0900)]
osd: do not trigger clone when set_chunk is called

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoosd: remove dead code
myoungwon oh [Tue, 18 Aug 2020 12:40:35 +0000 (21:40 +0900)]
osd: remove dead code

the code is no longer useful

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoosd: do not make the chunk state missing upon set_chunk
myoungwon oh [Tue, 18 Aug 2020 12:27:19 +0000 (21:27 +0900)]
osd: do not make the chunk state missing upon set_chunk

Since the missing state causes a promote on clone
after set_chunk is set, we remove the missing state.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoosd: return ERANGE if set_chunk tries to set large range
myoungwon oh [Tue, 18 Aug 2020 12:21:19 +0000 (21:21 +0900)]
osd: return ERANGE if set_chunk tries to set large range
over the object size

We allow existing snapshot to be set as a chunk. So,
return ERAMGE if set_chunk's range is over the object
size

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoosd: make set_chunk as ReadOperation
myoungwon oh [Thu, 2 Jul 2020 13:03:41 +0000 (22:03 +0900)]
osd: make set_chunk as ReadOperation

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsumg.com>
5 years agoMerge pull request #35989 from bigwhite37/fix-dedup-tool-unused-var-warn
myoungwon oh [Thu, 16 Jul 2020 00:42:30 +0000 (09:42 +0900)]
Merge pull request #35989 from bigwhite37/fix-dedup-tool-unused-var-warn

tools/ceph_dedup_tool: fix unused variable warning

Reviewed-by: Myoungwon Oh <myoungwon.oh@samsung.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30780 from zhangsw/fix-rgw-multipart-abortdate
ofriedma [Wed, 15 Jul 2020 16:21:55 +0000 (19:21 +0300)]
Merge pull request #30780 from zhangsw/fix-rgw-multipart-abortdate

rgw: add abort multipart date and rule-id header to init multipart upload response

5 years agoMerge pull request #35950 from zdover23/wip-doc-dev-guide-add-zdover-to-lead-list
zdover23 [Wed, 15 Jul 2020 14:37:46 +0000 (00:37 +1000)]
Merge pull request #35950 from zdover23/wip-doc-dev-guide-add-zdover-to-lead-list

doc/devel: add zdover to leads list

5 years agoMerge pull request #34537 from ideepika/wip-bluestore-mem-tracking
Josh Durgin [Wed, 15 Jul 2020 13:50:58 +0000 (06:50 -0700)]
Merge pull request #34537 from ideepika/wip-bluestore-mem-tracking

os/bluestore: mempool split for finer granularity

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Mark Nelson <mnelson@redhat.com>
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
5 years agoMerge pull request #35901 from sebastian-philipp/juanmi-firewall-refactor
Sebastian Wagner [Wed, 15 Jul 2020 12:44:20 +0000 (14:44 +0200)]
Merge pull request #35901 from sebastian-philipp/juanmi-firewall-refactor

cephadm: refactor update_firewalld

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #35862 from adk3798/cephadm_45724
Sebastian Wagner [Wed, 15 Jul 2020 12:42:54 +0000 (14:42 +0200)]
Merge pull request #35862 from adk3798/cephadm_45724

mgr/cephadm: check-host should not fail as hard using fqdn

Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #35471 from sebastian-philipp/cephadm-daemon-spec
Sebastian Wagner [Wed, 15 Jul 2020 12:39:35 +0000 (14:39 +0200)]
Merge pull request #35471 from sebastian-philipp/cephadm-daemon-spec

mgr/cephadm: Add CephadmDaemonSpec class

5 years agoMerge pull request #35838 from mgfritch/cephadm-rgw-spec-validate
Sebastian Wagner [Wed, 15 Jul 2020 12:37:56 +0000 (14:37 +0200)]
Merge pull request #35838 from mgfritch/cephadm-rgw-spec-validate

python-common: RGW service_id might not contain a zone

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agodoc/devel: add zdover to leads list 35950/head
Zac Dover [Wed, 15 Jul 2020 10:59:06 +0000 (20:59 +1000)]
doc/devel: add zdover to leads list

This commit adds "zdover" to the list of
leads as the Docs Lead.

Fixes: https://tracker.ceph.com/issues/46378
Signed-off-by: Zac Dover <zac.dover@gmail.com>
5 years agoMerge pull request #36096 from BenoitKnecht/doc-osd-scrub-during-recovery
Kefu Chai [Wed, 15 Jul 2020 10:58:43 +0000 (18:58 +0800)]
Merge pull request #36096 from BenoitKnecht/doc-osd-scrub-during-recovery

doc/rados: Fix osd_scrub_during_recovery default value

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Zac Dover <zac.dover@gmail.com>
5 years agoMerge pull request #36052 from smithfarm/wip-focce
Kefu Chai [Wed, 15 Jul 2020 10:52:18 +0000 (18:52 +0800)]
Merge pull request #36052 from smithfarm/wip-focce

bluestore: fix typo in _flush function declaration

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35991 from votdev/adapt_cephadm_vagrantbox_to_el8
Sebastian Wagner [Wed, 15 Jul 2020 10:46:58 +0000 (12:46 +0200)]
Merge pull request #35991 from votdev/adapt_cephadm_vagrantbox_to_el8

mgr/cephadm: Adapt Vagrantbox to el8

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #35315 from weixinwei/master
Kefu Chai [Wed, 15 Jul 2020 10:42:57 +0000 (18:42 +0800)]
Merge pull request #35315 from weixinwei/master

blk:BlockDevice.cc: use pending_aios instead of iovec size as ios num

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge pull request #35844 from wuhongsong/fuse-assert-Dprocess
Kefu Chai [Wed, 15 Jul 2020 10:39:19 +0000 (18:39 +0800)]
Merge pull request #35844 from wuhongsong/fuse-assert-Dprocess

common:  ignore SIGHUP prior to fork

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #36054 from tchaikov/wip-blk-no-unused-label
Kefu Chai [Wed, 15 Jul 2020 10:38:02 +0000 (18:38 +0800)]
Merge pull request #36054 from tchaikov/wip-blk-no-unused-label

blk/BlockDevice: use ceph_assertf() for assert

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge pull request #35744 from jmolmo/document_unmanaged_use
Sebastian Wagner [Wed, 15 Jul 2020 10:33:39 +0000 (12:33 +0200)]
Merge pull request #35744 from jmolmo/document_unmanaged_use

doc: Add information about unmanaged parameter

Reviewed-by: Alexandra Settle <asettle@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Zac Dover <zac.dover@gmail.com>
5 years agomgr/cephadm: Add test for _check_daemons() 35471/head
Sebastian Wagner [Thu, 18 Jun 2020 12:07:54 +0000 (14:07 +0200)]
mgr/cephadm: Add test for _check_daemons()

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: refactor `_create_daemon()`
Sebastian Wagner [Mon, 8 Jun 2020 10:45:14 +0000 (12:45 +0200)]
mgr/cephadm: refactor `_create_daemon()`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agomgr/cephadm: Add CephadmDaemonSpec class
Sebastian Wagner [Mon, 8 Jun 2020 07:36:20 +0000 (09:36 +0200)]
mgr/cephadm: Add CephadmDaemonSpec class

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35709 from zdover23/wip-doc-preferring-yaml-to-cli-in-cephadm
Sebastian Wagner [Wed, 15 Jul 2020 08:10:38 +0000 (10:10 +0200)]
Merge pull request #35709 from zdover23/wip-doc-preferring-yaml-to-cli-in-cephadm

doc/cephadm: add yaml info for orch apply mon

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #29283 from myoungwon/wip-refcount-snap
Samuel Just [Tue, 14 Jul 2020 22:52:42 +0000 (15:52 -0700)]
Merge pull request #29283 from myoungwon/wip-refcount-snap

osd: refcounting chunks for snapshotted manifest object

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com> (portions Sam wrote)
5 years agoMerge pull request #35955 from jschmid1/deprecate_filstore
Sebastian Wagner [Tue, 14 Jul 2020 14:17:52 +0000 (16:17 +0200)]
Merge pull request #35955 from jschmid1/deprecate_filstore

mgr/cephadm: do not accept filestore osds in osdspecs

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Travis Nielsen <tnielsen@redhat.com>
Reviewed-by: Varsha Rao <varao@redhat.com>
5 years agodoc/cephadm: add yaml infor for orch apply mon 35709/head
Zac Dover [Tue, 14 Jul 2020 13:51:08 +0000 (23:51 +1000)]
doc/cephadm: add yaml infor for orch apply mon

This commit breaks one of the long sentences into
three shorter sentences, and adds a parenthetical
comment walking the reader through a series of commands,
explaining what each command does and why only the last
of the commands ends up having a lasting effect on the Ceph
environment.

Fixes: https://tracker.ceph.com/issues/46133
Signed-off-by: Zac Dover <zac.dover@gmail.com>
5 years agomgr/cephadm: check-host should not fail as hard using fqdn 35862/head
Adam King [Tue, 30 Jun 2020 21:49:09 +0000 (17:49 -0400)]
mgr/cephadm: check-host should not fail as hard using fqdn

Print error message instead of traceback when check-host
fails in due to host address not being found

Fixes: https://tracker.ceph.com/issues/45724
Signed-off-by: Adam King <adking@redhat.com>
5 years agocephadm: refactor update_firewalld 35901/head
Sebastian Wagner [Thu, 2 Jul 2020 14:28:14 +0000 (16:28 +0200)]
cephadm: refactor update_firewalld

* split into three different methods
* untangle service and port lists

This helps in making our firewall handling more dynamic.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Co-authored-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
5 years agodoc/rados: Fix osd_scrub_during_recovery default value 36096/head
Benoît Knecht [Tue, 14 Jul 2020 11:50:28 +0000 (13:50 +0200)]
doc/rados: Fix osd_scrub_during_recovery default value

Since 8dca17c, `osd_scrub_during_recovery` defaults to `false`, but the
documentation was still stating that its default value is `true`.

Fixes: https://tracker.ceph.com/issues/46531
Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
5 years agoMerge pull request #36013 from Devp00l/wip-46376
Sebastian Wagner [Tue, 14 Jul 2020 08:38:09 +0000 (10:38 +0200)]
Merge pull request #36013 from Devp00l/wip-46376

cephadm: Make Vagrantfile more flexible

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #36072 from zdover23/wip-doc-dev-word-choice-guidance
zdover23 [Tue, 14 Jul 2020 07:46:40 +0000 (17:46 +1000)]
Merge pull request #36072 from zdover23/wip-doc-dev-word-choice-guidance

doc/dev: remove extraneous word "guidance".

5 years agoMerge pull request #35931 from tchaikov/wip-mds-denc
Kefu Chai [Tue, 14 Jul 2020 04:04:32 +0000 (12:04 +0800)]
Merge pull request #35931 from tchaikov/wip-mds-denc

mds,denc: prepare for the enabling of denc support of EMetaBlob::fullbit

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #35755 into master
Patrick Donnelly [Tue, 14 Jul 2020 02:53:29 +0000 (19:53 -0700)]
Merge PR #35755 into master

* refs/pull/35755/head:
mgr/volumes: Deprecate protect/unprotect CLI calls for subvolume snapshots

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kotresh Hiremath Ravishankar <khiremat@redhat.com>
Reviewed-by: Victoria Martinez de la Cruz <vkmc@redhat.com>
Reviewed-by: Goutham Pacha Ravi <gouthamr@redhat.com>
5 years agoMerge pull request #35970 from athanatos/sjust/wip-fix-lba-addrs
Kefu Chai [Tue, 14 Jul 2020 02:18:41 +0000 (10:18 +0800)]
Merge pull request #35970 from athanatos/sjust/wip-fix-lba-addrs

crimson/seastore: fix lba btree internal references

Reviewed-by: Chunmei Liu <chunmei.liu@intel.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #34246 into master
Patrick Donnelly [Mon, 13 Jul 2020 18:17:44 +0000 (11:17 -0700)]
Merge PR #34246 into master

* refs/pull/34246/head:
mds: add request to batch_op before taking auth pins and locks
mds: move MDRequestImpl::batch_reqs into Batch_Getattr_Lookup
mds: track which map batch_op is in-use in MDRequest

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #34785 into master
Patrick Donnelly [Mon, 13 Jul 2020 18:16:28 +0000 (11:16 -0700)]
Merge PR #34785 into master

* refs/pull/34785/head:
ceph-fuse: show fuse helper options for libfuse >= 3.0
ceph-fuse: add splice read/write support to reduce the memory copy
ceph-fuse: add connection args parsing support for libfuse > 3.0
ceph-fuse: switch to fuse_reply_iov to reduce the memory copy

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agoMerge PR #35327 into master
Patrick Donnelly [Mon, 13 Jul 2020 18:15:14 +0000 (11:15 -0700)]
Merge PR #35327 into master

* refs/pull/35327/head:
client: fix directory inode can not call release callback

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #35690 into master
Patrick Donnelly [Mon, 13 Jul 2020 18:14:16 +0000 (11:14 -0700)]
Merge PR #35690 into master

* refs/pull/35690/head:
mds: fix hang issue when accessing a file under a lost parent directory

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #35848 into master
Patrick Donnelly [Mon, 13 Jul 2020 18:13:43 +0000 (11:13 -0700)]
Merge PR #35848 into master

* refs/pull/35848/head:
mds: do not submit omap_rm_keys if the dir is the basedir of merge.

Reviewed-by: Zheng Yan <zyan@redhat.com>
5 years agoos/Bluefs: fix file reader/writer buffer mempool 34537/head
Deepika Upadhyay [Wed, 17 Jun 2020 14:42:32 +0000 (10:42 -0400)]
os/Bluefs: fix file reader/writer buffer mempool

Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
5 years agobluestore: _get_used_bytes should reflect new mempool fields
Deepika Upadhyay [Wed, 20 May 2020 20:32:02 +0000 (02:02 +0530)]
bluestore: _get_used_bytes should reflect new mempool fields

with bluestore_cache_other split further, the _get_used_bytes should
take into account the new mempool splits as well.

see also: 0ce8ee4b123eacfc2bfb14f554487e928512415a
  68ee931fd4b6bf748f95b14dae31d11738fbaf1e

Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
5 years agocommon/mempool: More detailed bluestore stats
Adam Kupczyk [Thu, 14 May 2020 11:24:15 +0000 (07:24 -0400)]
common/mempool: More detailed bluestore stats

Splits bluestore bluestore_cache_other, exposes accounting of some internals.

Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
5 years agoIntroduce separate mempool for FileReaderBuffer and FileWriter
Deepika Upadhyay [Wed, 15 Apr 2020 12:10:15 +0000 (17:40 +0530)]
Introduce separate mempool for FileReaderBuffer and FileWriter

FileReaderBuffer and FileWriter uses Bufferlists which needs to be
tracked by mempool to get the proper memory usage.

Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
5 years agosplit mempool allocation for bluestore_cache_other
Deepika Upadhyay [Wed, 15 Apr 2020 12:01:46 +0000 (17:31 +0530)]
split mempool allocation for bluestore_cache_other

While doing root cause analysis it bluestore_cache_other gives a bit of
a crude estimate, something more helpful would be to have it split into
the following fields:

- bluestore_cache_onode
- bluestore_cache_meta
- bluestore_onode_attrs

Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
5 years agoMerge PR #35951 into master
Patrick Donnelly [Mon, 13 Jul 2020 18:10:00 +0000 (11:10 -0700)]
Merge PR #35951 into master

* refs/pull/35951/head:
qa/cephfs: set omit_sudo to False for wait_until_mounted() in...

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agocrimson/os/seastore: fix internal relative btree addrs 35970/head
Samuel Just [Tue, 7 Jul 2020 22:44:42 +0000 (15:44 -0700)]
crimson/os/seastore: fix internal relative btree addrs

Internal relative addrs must be block relative on disk and record
relative in deltas.  Use maybe_generate_relative as intended.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoseastore/test_transaction_manager: add a test which forces an lba split
Samuel Just [Tue, 7 Jul 2020 22:44:04 +0000 (15:44 -0700)]
seastore/test_transaction_manager: add a test which forces an lba split

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoseastore/test_btree_lba_manager: ensure record and block addrs are different
Samuel Just [Tue, 7 Jul 2020 23:23:29 +0000 (16:23 -0700)]
seastore/test_btree_lba_manager: ensure record and block addrs are different

Adds an extra extent to each transaction in the test to ensure that
record and block relative addresses differ as they do in real usage.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoMerge pull request #34920 from ofriedma/ofriedma-civetweb-timeout
Casey Bodley [Mon, 13 Jul 2020 14:42:46 +0000 (10:42 -0400)]
Merge pull request #34920 from ofriedma/ofriedma-civetweb-timeout

rgw: increase civetweb request timeout to 65 seconds

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agodoc/dev: remove extraneous word "guidance". 36072/head
Zac Dover [Mon, 13 Jul 2020 14:19:19 +0000 (00:19 +1000)]
doc/dev: remove extraneous word "guidance".

This bug changes the sentence "If your patches emit
messages to the Ceph cluster log, please consult this
guidance:" to "If your patches emit messages to the
Ceph cluster log, please consult this:". This new sentence
is more natural and idiomatic.

Fixes: https://tracker.ceph.com/issues/46363
Signed-off-by: Zac Dover <zac.dover@gmail.com>
5 years agoMerge pull request #36055 from zli091/master
Casey Bodley [Mon, 13 Jul 2020 14:04:30 +0000 (10:04 -0400)]
Merge pull request #36055 from zli091/master

 rgw: lc: fix Segmentation Fault when the tag of the object was not f…

Reviewed-by: Or Friedmann <ofriedma@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
5 years agocephadm: Make Vagrantfile more flexible 36013/head
Stephan Müller [Wed, 1 Jul 2020 14:27:50 +0000 (16:27 +0200)]
cephadm: Make Vagrantfile more flexible

Now you can use a JSON or pass multiple variable to vagrant in order to
configure the outcome of VMs you get. Similar to vstart.sh you can use
OSDS, MGRS and MONS as arguments to pass. As OSDS behave a bit different
in this scenario you can also specify the amount of extra disks and OSD
VM has.

Fixes: https://tracker.ceph.com/issues/46376
Signed-off-by: Stephan Müller <smueller@suse.com>
5 years agocommon: ignore SIGHUP prior to fork 35844/head
hzwuhongsong [Tue, 30 Jun 2020 07:46:28 +0000 (15:46 +0800)]
common: ignore SIGHUP prior to fork

Otherwise, the ceph-fuse process is terminated by the logratote task and will produce one Uninterruptible Sleep process.

Fixes: http://tracker.ceph.com/issues/46269
Signed-off-by: hzwuhongsong <hzwuhongsong@corp.netease.com>
5 years agoblk/zoned: do not use g_ceph_context for reading conf 36054/head
Kefu Chai [Mon, 13 Jul 2020 03:19:53 +0000 (11:19 +0800)]
blk/zoned: do not use g_ceph_context for reading conf

use local `cct` instead, more consistent this way

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoblk/BlockDevice: use ceph_assertf() for assert
Kefu Chai [Sat, 11 Jul 2020 17:04:19 +0000 (01:04 +0800)]
blk/BlockDevice: use ceph_assertf() for assert

also silences a warning like

src/blk/BlockDevice.cc:158:1: warning: label 'out_fail' defined but not used [-Wunused-label]
  158 | out_fail:
      | ^~~~~~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agorgwlc: fix Segmentation Fault related to tags. 36055/head
zhuo li [Sun, 12 Jul 2020 09:31:20 +0000 (17:31 +0800)]
rgwlc: fix Segmentation Fault related to tags.

It is found that rgw crashes when putting a tag beyond the rule to the object, which can be solved by adding the return value judgment.

Fixes: https://tracker.ceph.com/issues/46485
Signed-off-by: zhuo li <lizhuo@chinatelecom.cn>
Signed-off-by: yupeng chen <chenyupeng@chinatelecom.cn>
5 years agoMerge pull request #36008 from idryomov/wip-krbd-58-options
Ilya Dryomov [Sat, 11 Jul 2020 20:19:34 +0000 (22:19 +0200)]
Merge pull request #36008 from idryomov/wip-krbd-58-options

rbd: recognize crush_location, read_from_replica and compression_hint map options

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agomds: do not decode EMetaBlob::fullbit struct_v < 8 35931/head
Kefu Chai [Fri, 3 Jul 2020 12:33:04 +0000 (20:33 +0800)]
mds: do not decode EMetaBlob::fullbit struct_v < 8

the struct_v of EMetaBlob::fullbit::encode was bumped from 7 to 8 in
d62c67ca2041797fc7aa212ae4a37ba91e5620e7, the oldest release containing
this change was hammer rc1.

`EMetaBlob::fullbit` is used to persist dentry + inode as part of
journal, after the journal is flushed to the metadata pool, and applied to
dirty metadata, the flushed segments are trimmed. also, it's not allowed
to upgrade a Ceph cluster across 2 releases. so, there is no need
to decode an on-disk struct which will be trimmmed as part of journal
recycling, and that struct was encoded in hammer.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agodenc: add boost::container::small_vector support
Kefu Chai [Sat, 4 Jul 2020 10:10:55 +0000 (18:10 +0800)]
denc: add boost::container::small_vector support

i could use `_denc::container_base<>` and `_denc::pushback_details<>` to
implement the traits for boost::container::small_vector (bcs for short),
but the second template parameter of bcs is a value of type size_t, so
the value it not a type, forunately, C++17 allows us to declare non-type
template parameter using `auto`, but when instantiating
_denc::container_base<>, the compiler complains that it expects a
constatnt of `auto` but `T` is passed in. because i have to change the
signature of `container_base` to something like
```
template<template<auto...> class C, typename Details, auto ...Ts>
  struct container_base {
```

so, in this change, the traits for bsc is implemented from scratch.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #36041 from tchaikov/wip-mds-EMetaBlob
Kefu Chai [Sat, 11 Jul 2020 17:14:49 +0000 (01:14 +0800)]
Merge pull request #36041 from tchaikov/wip-mds-EMetaBlob

ceph-object-corpus: pick up changes to drop backward compatibility of…

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoceph-object-corpus: pick up changes to drop backward compatibility 36041/head
Kefu Chai [Sat, 11 Jul 2020 15:11:21 +0000 (23:11 +0800)]
ceph-object-corpus: pick up changes to drop backward compatibility

to drop backward compatibility of EMetaBlob

see also https://github.com/ceph/ceph-object-corpus/pull/12

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35747 from adk3798/cephadm-44877
Kefu Chai [Sat, 11 Jul 2020 14:49:47 +0000 (22:49 +0800)]
Merge pull request #35747 from adk3798/cephadm-44877

mgr/cephadm: allow custom dashboard grafana url

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
5 years agoMerge pull request #32852 from ifed01/wip-ifed-simplify-pin
Kefu Chai [Sat, 11 Jul 2020 12:12:27 +0000 (20:12 +0800)]
Merge pull request #32852 from ifed01/wip-ifed-simplify-pin

os/bluestore: simplify Onode pin/unpin logic.

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #35973 from mlausch/mgr-progress-perf
Kefu Chai [Sat, 11 Jul 2020 11:32:02 +0000 (19:32 +0800)]
Merge pull request #35973 from mlausch/mgr-progress-perf

mgr/progress: Skip pg_summary update if _events dict is empty.

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #35915 from jmolmo/fix_rook_create_osd
Kefu Chai [Sat, 11 Jul 2020 11:31:14 +0000 (19:31 +0800)]
Merge pull request #35915 from jmolmo/fix_rook_create_osd

mgr/rook: Fix error creating OSDs

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #35968 from optimistyzy/73_debug
Kefu Chai [Sat, 11 Jul 2020 11:28:56 +0000 (19:28 +0800)]
Merge pull request #35968 from optimistyzy/73_debug

NVMEDevice: Fix the issue of multiple OSDs when using SPDK

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #32707 from petrutlucian94/windows.4
Kefu Chai [Sat, 11 Jul 2020 11:28:16 +0000 (19:28 +0800)]
Merge pull request #32707 from petrutlucian94/windows.4

Windows support [part 4]

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #35971 from tchaikov/wip-addr-parsing-strncpy
Kefu Chai [Sat, 11 Jul 2020 11:26:59 +0000 (19:26 +0800)]
Merge pull request #35971 from tchaikov/wip-addr-parsing-strncpy

common/addr_parsing: refactor safe_cat()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #35990 from votdev/fix_cephadm_py_code
Kefu Chai [Sat, 11 Jul 2020 11:24:14 +0000 (19:24 +0800)]
Merge pull request #35990 from votdev/fix_cephadm_py_code

cephadm: Fix Python formating issues

Reviewed-by: Kefu Chai <kchai@redhat.com>