Commit Graph

124162 Commits

Author SHA1 Message Date
myoungwon oh
65f577a772 seastore/rbm: remove newline before function name
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
myoungwon oh
6cad63650c seastore/rbm: add check_bitmap_blocks when open()
This commits adds check_bitmap_blocks to check free_block_count
is correct whenever open() is called

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
myoungwon oh
f72ad486ac seastore/rbm: fix wrong statement
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
myoungwon oh
c8323d364b seastore/rbm: use move()
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
myoungwon oh
88578e978d seastore/nvmedevice: use the necessary capture value and fix typo
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
Jinyong Ha
46e72c1877 seastore: move implementation of TestMemory to nvmeblockdevice.cc
Signed-off-by: Jinyong Ha <jy200.ha@samsung.com>
2021-06-15 11:09:06 +09:00
Jinyong Ha
736adb212d seastore: utilize errorator as a return type of discard()
Signed-off-by: Jinyong Ha <jy200.ha@samsung.com>
2021-06-15 11:09:06 +09:00
Jinyong Ha
916faf07f2 seastore: utilize unique_ptr as a return value of create()
Signed-off-by: Jinyong Ha <jy200.ha@samsung.com>
2021-06-15 11:09:06 +09:00
Jinyong Ha
ac8ac07863 seastore: change class name NormalNBD to PosixNVMeDevice
Signed-off-by: Jinyong Ha <jy200.ha@samsung.com>
2021-06-15 11:09:06 +09:00
Jinyong Ha
6c5c841686 seastore: replace POSIX call to seastar::file in NormalNBD
Signed-off-by: Jinyong Ha <jy200.ha@samsung.com>
2021-06-15 11:09:06 +09:00
myoungwon oh
4e2939687a seastore: add abort_allocation
when aborting uncommitted transaction, abort_allocation
should be called to cancel in-flight allocations in
in-memory allocator.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
myoungwon oh
eccf92ba05 test: add more tests
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
myoungwon oh
f61b3f4606 test: modify existing unit test to cover range based operations
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
myoungwon oh
302afffbe0 seastore: fix wrong operator
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
myoungwon oh
06e5cd5fcd seastore: make multiple bitmap block initialization to work correctly
when initializing bitmap area, this commit corrects multiple
block initialization.

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
myoungwon oh
0b35d5a864 seastore: continous range based free_extent()
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
myoungwon oh
e0d2f89ad3 seastore: continous range based complete_allocation()
To work with a range of allocated blocks as a input,
this commit modify complete_allocation().

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
myoungwon oh
0f287e0834 seastore: introduce rbm_sync_block_bitmap_by_range()
To set continous range of block id at once, this commit adds
rbm_sync_block_bitmap_by_range().

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
myoungwon oh
ccd76f477f seastore: make alloc_extent to allocate continuous blocks
If there is no continous blocks, alloc_extent() returns nospc

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
myoungwon oh
835ddb7303 seastore: use deltas to deliver allocated info
alloc_extent() will allocates continous blocks (e.g., block 1 ~ 4).
To deliver such informations to journal efficiently,
this commit adds a member variable regarding only modified range in the deltas

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
Jinyong Ha
70bced5b17 seastore: add NormalNBD
NormalNBD - NVMe Block device with seastar file
 1. Support preffered write granularity/alignment which is reported
 from NVMe SSD. User should follow this write guidance for enhancing write
 performance.
 2. Support multi-stream IO in NVMe SSD.

Signed-off-by: Jinyong Ha <jy200.ha@samsung.com>
2021-06-15 11:09:06 +09:00
Myoungwon Oh
0e04bcfa97 seastore: randomblockmanager inital commit
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
2021-06-15 11:09:06 +09:00
chunmei-liu
3fdd94c43f crimson/seastore: fix cache::get_extent got retired extent
one transaction got an extent whose state is MUTATION_PENDINGat that time.
but another transaction do split and set the extent state to RETIRED.
when the first transaction resume and do continuation, the state of the extent
has been changed to RETIRED. So need eagain to try again.

Signed-off-by: chunmei-liu <chunmei.liu@intel.com>
2021-06-14 15:29:18 -07:00
Patrick Donnelly
3511c83c6b
doc: fix typo in option
Fixes: https://tracker.ceph.com/issues/51214
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-06-14 13:37:29 -07:00
Sage Weil
ebb5a3f0bc qa/suites/orch/cephadm/dashboard: remove remaining bits
Signed-off-by: Sage Weil <sage@newdream.net>
2021-06-14 13:00:45 -05:00
Patrick Donnelly
a402b23c84
qa: update cli syntax to conventional
This was using an obscure syntax that worked at one time and wasn't
documented (AFAIK).

Fixes: https://tracker.ceph.com/issues/51182
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2021-06-14 10:21:43 -07:00
Laura Flores
36de216d25
script/build-integration-branch: update print statement based on update to documentation
The print statement originally suggested to the user to run "make && ctest -j12", but that is outdated. The user should execute "./run-make-check.sh" instead.

Signed-off-by: Laura Flores <lflores@redhat.com>
2021-06-14 12:03:01 -05:00
Laura Flores
13695c1a92
doc/dev: should be ./run-make-check.sh
Updating the initial pull request. The smoke test line should read "./run-make-check.sh" instead of "make && ctest -j12".

Signed-off-by: Laura Flores <lflores@redhat.com>
2021-06-14 11:23:54 -05:00
Laura Flores
5bbed1f6bd
doc/dev: update testing.rst to say ninja
The current version of Ceph uses "ninja" rather than "make," so the testing documentation needs to be updated.

Signed-off-by: Laura Flores <lflores@redhat.com>
2021-06-14 11:01:15 -05:00
Sage Weil
6824b29ca1 Merge PR #41799 into master
* refs/pull/41799/head:
	cephadm: validate `--fsid` during bootstrap

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2021-06-14 11:02:31 -04:00
Sage Weil
3ded6803c2 Merge PR #41805 into master
* refs/pull/41805/head:
	cephadm: set TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES=134217728

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2021-06-14 11:02:16 -04:00
Kefu Chai
75b91d49b8
Merge pull request #39624 from sebastian-philipp/mypy-812
src,qa: Upgrade to mypy 0.901

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-06-14 22:53:02 +08:00
Sebastian Wagner
caf793662e
Merge pull request #41632 from jmolmo/fix_osd_rm_help_msg
mgr/cephadm: fix errors in command <ceph orch osd> help and documentation

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
2021-06-14 16:09:07 +02:00
Sebastian Wagner
07189c8aec
Merge pull request #41556 from adk3798/daemon-count
mgr/cephadm: fix --service-type flag in orch ls when service has id

Reviewed-by: Sebastian Wagner <sewagner@redhat.com>
2021-06-14 16:08:46 +02:00
Sage Weil
9074e87611 Merge PR #41827 into master
* refs/pull/41827/head:
	qa: move dashboard e2e from cephadm -> rados suite

Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2021-06-14 09:11:04 -04:00
Kefu Chai
5cf3f8491b
Merge pull request #41796 from rzarzynski/wip-crimson-cltreq-dbgs
crimson/osd: improve debugs in ClientRequest

Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-06-14 21:00:04 +08:00
Radoslaw Zarzynski
c451bb8519 crimson/osd: improve debugs in OpSequencer.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2021-06-14 12:26:22 +00:00
Radoslaw Zarzynski
36b14288bd crimson/osd: should_abort_request() dumps Operation's details.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2021-06-14 12:26:22 +00:00
Radoslaw Zarzynski
6463cd9c12 crimson/osd: print prev_op_id in ClientRequest's debugs.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2021-06-14 12:26:22 +00:00
Kefu Chai
d7a70ed770
Merge pull request #41832 from inspur-wyq/patch-4
os/ObjectStore: fix typo in comments

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-06-14 18:13:21 +08:00
Patrick Donnelly
b01591b790
Merge PR #41786 into master
* refs/pull/41786/head:
	mon/MonCommands: remove obsolete mds commands
	mon/MonCommands: remove obsolete mon commands

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-06-13 19:57:37 -07:00
Patrick Donnelly
31a771139d
Merge PR #41580 into master
* refs/pull/41580/head:
	cephfs: make ceph_fallocate() platform independent

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2021-06-13 19:57:05 -07:00
Patrick Donnelly
7e320919f7
Merge PR #41482 into master
* refs/pull/41482/head:
	qa: remove obsolete deactivate routines

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2021-06-13 19:56:34 -07:00
Patrick Donnelly
6a173d1a39
Merge PR #41481 into master
* refs/pull/41481/head:
	client: Add ceph.caps vxattr

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
2021-06-13 19:56:04 -07:00
Patrick Donnelly
dfce83ef12
Merge PR #41431 into master
* refs/pull/41431/head:
	mds: progress the recover queue immediately after the inode is enqueued
	mds: switch to mdr->get_client()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-06-13 19:54:45 -07:00
Patrick Donnelly
6a095654f4
Merge PR #41422 into master
* refs/pull/41422/head:
	qa/tasks/cephfs/test_sessionmap: reap connections immediately
	msg/async: configurable threshold for reaping dead connections

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-06-13 19:52:48 -07:00
Patrick Donnelly
0441b3d60f
Merge PR #41403 into master
* refs/pull/41403/head:
	mgr/volumes: Add config to insert delay at the beginning of the clone

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2021-06-13 19:51:52 -07:00
wangyunqing
7e0d79b9d1 os/ObjectStore: fix typo in comments
Signed-off-by: wangyunqing <wangyunqing@inspur.com>
2021-06-14 10:42:14 +08:00
Kefu Chai
9b6be59d6f test/pybind/test_ceph_argparse: add a test where args contains comma
to ensure the support for the new syntax of "prefix --name bon,jour"
does not break existing behavior of "prefix hello cruel,world" where value2
contains reads "hello,world", and the parsed result should be

prefix="prefix"
value=["hello", "cruel,world"]

instead of something like

prefix="prefix"
value=["hello", "cruel", "world"]

or

prefix="prefix"
value=["cruel", "world"]

the above test only applies to the test where "value" is a CephString.
if "value" is a CephChoices, the parsed argument should be

prefix="prefix"
value=["hello", "cruel", "world"]

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-06-14 09:50:47 +08:00
Kefu Chai
49be76ce11 cmake: run nose test using "python3 -m nose"
otherwise the tests are not performed at all.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-06-14 09:50:47 +08:00