Commit Graph

96610 Commits

Author SHA1 Message Date
dudengke
7b6e05a030 cmake/FindRocksDB: fix IMPORTED_LOCATION for ROCKSDB_LIBRARIES
Signed-off-by: dudengke <pinganddu90@gmail.com>
2019-03-27 10:18:26 +08:00
Kefu Chai
4f7a5a0651
Merge pull request #27183 from tchaikov/wip-ceph.spec.in-devtoolset-8
rpm: s/devtoolset-7/devtoolset-8/

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2019-03-26 23:41:58 +08:00
Kefu Chai
78396d83b5
Merge pull request #27177 from tchaikov/wip-crimson-stop-before-exit
crimson/osd: call at_exit() before stopping the engine

Reviewed-by: Samuel Just <sjust@redhat.com>
2019-03-26 23:39:29 +08:00
Ilya Dryomov
0ba913ba2c
Merge pull request #27192 from idryomov/wip-krbd-discard-fixups
qa/workunits/rbd: fixups for the new krbd discard behavior

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-03-26 14:09:41 +01:00
Lenz Grimmer
7c1f1efeb5
Merge pull request #26925 from votdev/issue_38265
mgr/dashboard/qa: Improve tasks.mgr.test_dashboard.TestDashboard.test_standby

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2019-03-26 13:44:19 +01:00
Lenz Grimmer
fe11e7f7f2
Merge pull request #26396 from familyuu/interval
mgr/dashboard: Add refresh  interval to the dashboard landing page

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Kanika Murarka <kmurarka@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-03-26 13:41:35 +01:00
Jason Dillaman
b18acbaabe
Merge pull request #27136 from trociny/wip-38895
librbd: trash move return EBUSY instead of EINVAL for migrating image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-03-26 08:21:37 -04:00
Jason Dillaman
6e32108204
Merge pull request #27137 from trociny/wip-qa-rbd-qos
qa: add RBD QOS functional test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-03-26 08:21:18 -04:00
Jason Dillaman
cd4e793e23
Merge pull request #27151 from trociny/wip-38928
librbd: look for pool metadata in default namespace

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-03-26 08:20:43 -04:00
Sebastian Wagner
933db5639f
Merge pull request #27118 from sebastian-philipp/mypy-gitignore
scrips/run_mypy: add .gitignore

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
2019-03-26 11:05:36 +01:00
Sebastian Wagner
f88710f14d scrips/run_mypy: add .gitignore
Co-Authored-by: Patrick Nawracay <pnawracay@suse.com>
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-03-26 09:58:42 +01:00
Kefu Chai
ec018e9244
Merge pull request #27181 from tchaikov/wip-test/test_weighted_shuffle
test/test_weighted_shuffle: enlarge epsilon

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2019-03-26 16:37:58 +08:00
Kefu Chai
9694a72dae rpm: s/devtoolset-7/devtoolset-8/
should activate devtoolset-8 not devtoolset-7 for enabling GCC-8.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-26 15:20:00 +08:00
Kefu Chai
37b832ca96 test/test_weighted_shuffle: enlarge epsilon
be more permissive to address the following failure:

test_weighted_shuffle.cc:36: Failure
The difference between float(w) / total_weight and float(f.front()) /
samples is 0.010334432125091553, which exceeds epsilon, where
float(w) / total_weight evaluates to 0.53763443231582642,
float(f.front()) / samples evaluates to 0.52730000019073486, and
epsilon evaluates to 0.0099999997764825821

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-26 13:30:55 +08:00
Kefu Chai
d22a1b0e00 crimson/osd: call at_exit() before stopping the engine
if we mkfs and stop the engine, any calls using the engine should/will
fail after `seastar::engine().exit(0)`. in the case of reactor::at_exit(),
it has:

assert(!_stopping);

in this change, we register the at_exit() calls before scheduling the
`engine().exit(0)` call.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-26 11:59:02 +08:00
Kefu Chai
049ce9f40b
Merge pull request #27149 from wjwithagen/wjw-fix-stdFileSystem
cmake: use StdFilesystem::filesystem instead of stdc++fs

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-03-26 11:05:29 +08:00
Kefu Chai
128ce1199f
Merge pull request #27134 from tchaikov/wip-devtools-8
install-dep,rpm: use devtools-8 on amd64

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2019-03-26 09:45:55 +08:00
Kefu Chai
fa14f80e10
Merge pull request #26697 from tchaikov/wip-crimson-pg-fsm
crimon/osd: serve read requests

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-03-26 09:36:12 +08:00
Kefu Chai
40a295814f crimson/osd/pg: specify file variable values for editors
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-26 09:34:04 +08:00
Kefu Chai
4619a9cc49 crimson/osd: add pg backends
* add exceptions.h for EIO, ENOENT error handling
* add PGBackend for serving i/o requests

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-26 09:34:04 +08:00
Ilya Dryomov
f3f757aaa3 qa/workunits/rbd: fixups for the new krbd discard behavior
With discard_granularity set to alloc_size, we no longer get object
size alignment from blk_bio_discard_split().

This assumption is pretty deeply ingrained in krbd_data_pool.sh, so
make it explicit.  For krbd_fallocate.sh, just fix the expectation.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-03-25 22:06:14 +01:00
Ilya Dryomov
673673f53d qa: krbd_fallocate.sh: zero can be munged to truncate
The test case is issuing discards that span two objects: the tail of
the first object is truncated, the head of the second object is zeroed.
These discards aren't serial, so there is a race:

  discard i ~ i + 1: truncate i, zero i + 1
  discard i + 1 ~ i + 2: truncate i + 1, zero i + 2

can be executed as

  truncate i + 1, zero i + 2, truncate i, zero i + 1

For object i + 1, the sequence ends up being truncate tail, then zero
head.  This zero op is munged to truncate on the OSD, resulting in size
0 instead of OBJECT_SIZE / 2.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-03-25 22:06:14 +01:00
Sage Weil
c402e51f6c Merge PR #27124 into master
* refs/pull/27124/head:
	osd/pg: use emplace() to construct new element in-place

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-03-25 13:15:16 -05:00
Sage Weil
eeb97a98a4 Merge PR #27079 into master
* refs/pull/27079/head:
	mgr/pg_autoscaler: Fix python3 incompatibility

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
2019-03-25 13:14:41 -05:00
Sage Weil
7003c89bbb Merge PR #27113 into master
* refs/pull/27113/head:
	mgr/diskprediction_cloud: Correct base64 encode translate table

Reviewed-by: Sage Weil <sage@redhat.com>
2019-03-25 13:14:11 -05:00
Sage Weil
5118df1da1 Merge PR #27156 into master
* refs/pull/27156/head:
	common/blkdev: get_device_id: behave if model is lvm and id_model_enc isn't there

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-03-25 13:08:56 -05:00
Casey Bodley
9fdcaae19a
Merge pull request #26100 from ceph/wip-s3a-hadoop-ver
qa/tests: update s3a hadoop versions used for test

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-03-25 13:22:39 -04:00
Kefu Chai
1fdd8ed552
Merge pull request #27150 from tchaikov/wip-ceph.spec.in/immutable-object-cache
rpm: immutable-object-cache related changes

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-03-25 23:38:50 +08:00
Kefu Chai
650cb7de9a crimson/osd/pg: wait until pg is active
hold i/o request until pg is active

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-25 23:34:00 +08:00
Kefu Chai
2a474443aa crimson/osd: handle MOSDOp in OSD
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-25 23:34:00 +08:00
Kefu Chai
9262912904
Merge pull request #27126 from tchaikov/wip-monclient-srv-priority
mon/MonClient: add proper SRV priority support

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2019-03-25 23:29:46 +08:00
J. Eric Ivancich
274e069d1c
Merge pull request #25808 from joke-lee/fix_dump_usage_categories_info
rgw: usage dump_unsigned instead dump_int in dump_usage_categories_info

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-03-25 11:11:48 -04:00
J. Eric Ivancich
b7608fe3fe
Merge pull request #26070 from iliul/fix-bug-38002
rgw: Replace COMPLETE_MULTIPART_MAX_LEN with rgw_max_put_param_size

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-03-25 11:11:17 -04:00
J. Eric Ivancich
d5ae6e478f
Merge pull request #26947 from IrekFasikhov/fixRGWMultiDeleteObject
rgw: fix RGWDeleteMultiObj::verify_permission()

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
2019-03-25 11:10:20 -04:00
Sage Weil
ec4434a65f common/blkdev: get_device_id: behave if model is lvm and id_model_enc isn't there
If that happens, leave ID_MODEL blank and we'll fall back to something
else, like ID_SERIAL (which is present in each case I've seen this).

Signed-off-by: Sage Weil <sage@redhat.com>
2019-03-25 08:24:45 -05:00
Casey Bodley
9ebea28370
Merge pull request #26634 from theanalyst/scheduler-beast-ctx
rgw: build async scheduler only when beast is built

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
2019-03-25 08:56:57 -04:00
Lenz Grimmer
fc7057fc0f
Merge pull request #25451 from nathan-weinberg/gateway-tests
mgr/dashboard: Added breadcrumb tests to Object Gateway menu items

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-03-25 12:43:56 +01:00
Lenz Grimmer
bf1fa247d2
Merge pull request #26850 from nathan-weinberg/nfs-breadcrumb
mgr/dashboard: Added breadcrumb tests to NFS menu

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-03-25 12:21:02 +01:00
Mykola Golub
1729f14937 librbd: look for pool metadata in default namespace
when applying pool level config overrides

Fixes: https://tracker.ceph.com/issues/38928
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-03-25 09:30:46 +00:00
Mykola Golub
d5b52eaef3 librbd: trash move return EBUSY instead of EINVAL for migrating image
Fixes: https://tracker.ceph.com/issues/38895
Signed-off-by: Mykola Golub <mgolub@suse.com>
2019-03-25 07:56:38 +00:00
Kefu Chai
253385d4cc rpm,deb: let immutable-object-cache depend on librados2
ceph-common depends on librados2, but ceph-immutable-object-cache only
uses librados2's C++ API, so librados2 would suffice.

rpmbuild is able to figure out the .so dependencies, and let
ceph-immutable-object-cache depend on the package which offers
librados2, but we'd better make sure immutable-object-cache is linked
against the librados2 of the same version, to ensure that librados2
offers the correct C++ symbols. as we only version the C++ API in the
librados2 after nautilus.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-25 13:56:52 +08:00
Xie Xingguo
c9dbaf279e
Merge pull request #27090 from xiexingguo/wip-config-mon-core
mon/ConfigMonitor: make 'num' of 'config reset' optional; allow target version 0

Reviewed-by: Sage Weil <sage@redhat.com>
2019-03-25 13:28:41 +08:00
Kefu Chai
c80d5aa693 rpm: remove libradospp1 from immutable-object-cache's Requires
* remove "libradospp1" from immutable-object-cache's runtime
  dependencies. this package was removed in 65c8733b

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-25 12:47:34 +08:00
Kefu Chai
1cd1967013 rpm: do not use "-n" for immutable-object-cache
as immutable-object-cache has the prefix of "ceph", no need to use "-n"
option. so this change is but a cleanup.

* use "%package immutable-object-cache" not "%package
  ceph-immutable-object-cache" for naming subpackage of
  "ceph-immutable-object-cache". this would result in package name of
  "ceph-immutable-object-cache". see
  http://ftp.rpm.org/max-rpm/s1-rpm-subpack-spec-file-changes.html
* the same applies to other directives with "-n" options, see
  http://ftp.rpm.org/max-rpm/s1-rpm-inside-package-directive.html

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-03-25 12:47:34 +08:00
Zengran Zhang
bbfe99bead osd/pg: use emplace() to construct new element in-place
replace emplace() and emplace_back() with insert() and push_back()
calls to construct the new element in-place and avoid the overhead
of move constructor calls

Signed-off-by: Zengran Zhang <zhangzengran@sangfor.com.cn>
2019-03-25 09:46:31 +08:00
xie xingguo
1bc9c86d08 mon/ConfigMonitor: make 'num' of 'config reset' command optional
This way it can be used to fast cancel/undo the last command.
Also make the tip message a litter bit nicer..

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2019-03-25 09:41:05 +08:00
Sage Weil
2d920de190 Merge PR #27147 into master
* refs/pull/27147/head:
	qa/workunits/mon/config.sh: s|bin/ceph|ceph|

Reviewed-by: Sage Weil <sage@redhat.com>
2019-03-24 10:25:45 -05:00
Willem Jan Withagen
1f0e443854 cmake: use StdFilesystem::filesystem instead of stdc++fs
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2019-03-24 15:14:12 +01:00
Kefu Chai
673f1e8e7e
Merge pull request #26531 from majianpeng/msg-async-optimization
msg/async: optimizations

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
2019-03-24 10:46:58 +08:00
Kefu Chai
86f9005f22
Merge pull request #27107 from neha-ojha/wip-38845
mon/Monitor.cc: print min_mon_release correctly

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-03-24 10:28:25 +08:00