Commit Graph

72024 Commits

Author SHA1 Message Date
Yuri Weinstein
279050e4eb Merge pull request #13451 from xiexingguo/wip-add-up-primary-sum
mon/PGMap: add up_primary pg number field for pg-dump cmd

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-02 09:09:10 -07:00
Yuri Weinstein
0fd1689cf8 Merge pull request #14497 from tchaikov/wip-pybind-better-error-msg
pybind: better error msg

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-02 09:07:29 -07:00
Yuri Weinstein
35171b97a3 Merge pull request #14687 from jcsp/wip-mgr-suite
qa/suites: move mgr tests into rados suite

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-02 09:06:51 -07:00
Yuri Weinstein
3dbc29ba75 Merge pull request #14810 from liewegas/wip-status
mon: show inactive % in ceph status

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-02 09:06:13 -07:00
Yuri Weinstein
76e94a0a11 Merge pull request #14821 from badone/wip-no-death-coredumps
tests: Don't dump core when using EXPECT_DEATH

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-02 09:05:32 -07:00
Yuri Weinstein
0807f384bf Merge pull request #14857 from joscollin/wip-arch-cpuid
arch: use __get_cpuid instead of do_cpuid

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-02 09:04:09 -07:00
Sage Weil
94a873090e Merge pull request #12669 from hjwsm1989/unfound-objects
osd/PG: fix possible overflow on unfound objects

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-05-02 10:54:19 -05:00
Sage Weil
56104449da Merge pull request #12882 from wonzhq/pglog-fixes
osd: pglog trimming fixes

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-02 10:53:26 -05:00
Sage Weil
fcd64d75ab Merge pull request #14444 from liewegas/wip-past-intervals
osd: simplify past_intervals representation

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-02 10:51:37 -05:00
Sage Weil
3b4e4d0077 Merge pull request #14898 from tchaikov/wip-clean-pending_created_pgs
mon/OSDMonitor: cleanup pending_created_pgs after done with it

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-02 10:51:12 -05:00
Sage Weil
7f97f363e8 Merge pull request #14904 from tchaikov/wip-19638-followon
osd: stop mgrc earlier in shutdown()

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-02 10:50:52 -05:00
Sage Weil
3e53e47e6b osd: fix legacy pg create conditions
1- in reality we don't really care if pg_temp is set.
2- compare against acting_primary since that's what actually matters.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-02 10:49:28 -05:00
Sage Weil
003113ff67 mon/OSDMonitor: fix prime_pg_temp vs creating condition
We want to *skip* creating PGs.

Fixes: http://tracker.ceph.com/issues/19826
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-02 10:49:00 -05:00
Yuri Weinstein
3a6801751d Merge pull request #14858 from dmick/wip-config-dump
mon/ConfigKeyService: add 'config-key dump' to show keys and vals

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-02 08:25:16 -07:00
Yuri Weinstein
f7cf9d14b8 Merge pull request #14870 from smithfarm/wip-gperftools
build/ops: rpm: gperftools-devel >= 2.4

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2017-05-02 08:23:59 -07:00
Jason Dillaman
736890fb30 qa/workunits: fix appdir setup issue in devstack
See https://bugs.launchpad.net/devstack/+bug/1667545

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-05-02 09:56:57 -04:00
Jason Dillaman
37d8a42510 qa/workunits: switch to OpenStack Ocata release for RBD testing
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-05-02 09:55:38 -04:00
Jos Collin
902561e9c3 dmclock: error: ‘function’ in namespace ‘std’ does not name a template type
The following error appears during make:

In file included from ceph/src/dmclock/support/src/run_every.cc:10:0:
ceph/src/dmclock/support/src/run_every.h:30:10: error: ‘function’ in namespace ‘std’ does not name a template type
     std::function<void()>     body;
          ^~~~~~~~
ceph/src/dmclock/support/src/run_every.h:46:12: error: ‘std::function’ has not been declared
       std::function<void()> _body) :
            ^~~~~~~~
ceph/src/dmclock/support/src/run_every.h:46:20: error: expected ‘,’ or ‘...’ before ‘<’ token
       std::function<void()> _body) :
                    ^
ceph/src/dmclock/support/src/run_every.h: In constructor ‘crimson::RunEvery::RunEvery(D, int)’:
ceph/src/dmclock/support/src/run_every.h:48:7: error: class ‘crimson::RunEvery’ does not have any field named ‘body’
       body(_body)
       ^~~~
ceph/src/dmclock/support/src/run_every.h:48:12: error: ‘_body’ was not declared in this scope
       body(_body)
            ^~~~~
ceph/src/dmclock/support/src/run_every.cc: In member function ‘void crimson::RunEvery::run()’:
ceph/src/dmclock/support/src/run_every.cc:70:7: error: ‘body’ was not declared in this scope
       body();
       ^~~~
ceph/src/dmclock/support/src/run_every.cc:70:7: note: suggested alternative: ‘bool’
       body();
       ^~~~
       bool

Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-05-02 15:35:14 +05:30
Gui Hecheng
05b2fde54a rgw_file: cleanup virtual keyword on derived functions
Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
2017-05-02 16:29:04 +08:00
Yan, Zheng
5915dd9c54 ceph-fuse: use user space permission check by default
The kernel permission check uses getattr() to get inode's uid, gid
and mode. But due to limitation of fuse API, ceph-fuse has to get
attributes of the inode. Getting direcotry inode's size can be slow
if the directory is fragmented and dirfrags are managed by multiple
mds.

Fixes: http://tracker.ceph.com/issues/19820
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2017-05-02 15:55:25 +08:00
Kefu Chai
1edcf1cb11 Merge pull request #14869 from wjwithagen/wip-wjw-cmake-uuid
cmake: fix the linked lib reference of unittest_rgw_crypto

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-02 14:41:19 +08:00
Kefu Chai
958e76d7f6 Merge pull request #14900 from jupiturliu/organization_map
mailmap: add Alibaba into organization map

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-02 14:28:41 +08:00
runsisi
c5c5d2fe5f librbd: get image id from directory if open image failed
Signed-off-by: runsisi <runsisi@zte.com.cn>
2017-05-02 11:38:14 +08:00
Kefu Chai
46da7ee760 Merge pull request #14895 from liewegas/wip-19778
kv: move 'bluestore-kv' hackery out of KeyValueDB into ceph-kvstore-tool

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-02 11:05:54 +08:00
Kefu Chai
4121a3fef7 Merge pull request #14853 from liewegas/wip-aio
os/fs/aio: use small_vector for aio_t; clean up header location

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-02 10:33:38 +08:00
runsisi
7580994cd8 librbd: do not delete ictx twice if open image failed
Signed-off-by: runsisi <runsisi@zte.com.cn>
2017-05-02 10:16:47 +08:00
Sage Weil
5898fe4aa0 osd: assert min_epoch <= sent_epoch
Otherwise the sender is broken and probaby didn't fill in min_epoch
properly!

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:02:34 -05:00
Sage Weil
602c5bfd89 osd: min_epoch for MOSDRepScrub
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:01:29 -05:00
Sage Weil
200f90b753 osd/ReplicatedBackend: cleanup repop_applied
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:01:29 -05:00
Sage Weil
c33ee4e357 osd: min_epoch for MOSDRepOp[Reply]
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:01:29 -05:00
Sage Weil
fad0994cba osd: min_epoch for MOSDPGUpdateLogMissing[Reply]
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:01:29 -05:00
Sage Weil
024235fcd8 osd: min_epoch for MOSDPGScan
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:01:29 -05:00
Sage Weil
cb1a5190cd osd: set min_epoch for push/pull/reply
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:01:28 -05:00
Sage Weil
8c961a311f osd: set min_epoch for MOSDPGBackfill
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:01:28 -05:00
Sage Weil
152dfdd06c osd: min_epoch for MOSDECSubOp*
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 21:01:28 -05:00
Kefu Chai
611572a610 OSD: stop mgrc earlier in shutdown()
it's better this way, as MgrClient is more like an internal consumer
of the services offered by OSD, instead of service privider. it could
prevent future problem if we can stop it earlier in the shutdown
process.

see also: http://tracker.ceph.com/issues/19638
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-05-02 09:45:16 +08:00
Sage Weil
f36f0dbcdb Merge pull request #14897 from tchaikov/wip-19814
mon/OSDMonitor: update creating_pgs using pending_creatings

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-01 20:31:43 -05:00
Sage Weil
7d85bee4b5 Merge pull request #14889 from joscollin/wip-test-write-operations-warning
test: c_write_operations.cc: silence warning from -Wsign-compare
2017-05-01 20:30:49 -05:00
Sage Weil
19f2455b76 Merge pull request #14888 from joscollin/wip-test-read-operations-warning
test: c_read_operations.cc: silence warning from -Wsign-compare
2017-05-01 20:30:35 -05:00
Sage Weil
475daee9c7 Merge pull request #14799 from xiaoxichen/optimiztic_pg_active
osd/PG.cc: Optimistic estimation on PG.last_active

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-01 20:30:23 -05:00
Sage Weil
d3b461eac0 Merge pull request #14790 from wjwithagen/wip-wjw-cleanup-unused-variable-v2
common: Fix unused variable references warnings

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-01 20:30:03 -05:00
Sage Weil
5f1c03e536 Merge pull request #14330 from ivancich/wip-bring-in-dmclock
dmclock: initial commit of dmclock QoS library
2017-05-01 20:29:43 -05:00
Sage Weil
0bded75235 Merge pull request #14896 from liewegas/wip-19638
osd: stop MgrClient callbacks on shutdown

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-01 20:25:29 -05:00
Sage Weil
2d6be11c2f Merge pull request #14899 from liewegas/wip-19433
ceph_test_rados_api_watch_notify: make LibRadosWatchNotify.Watch3Timeout tolerate thrashing

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-01 20:24:48 -05:00
Sage Weil
5376b83b39 Merge pull request #14901 from liewegas/wip-19552
osdc/Objecter: fix pool dne corner case

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-01 20:23:52 -05:00
Kefu Chai
6ce6acf526 Merge pull request #14881 from tchaikov/wip-crosscompiling-armhf
cmake: enable cross-compilation of boost 

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-02 09:19:51 +08:00
Jason Dillaman
03b0b03071 cls_rbd: default initialize snapshot namespace for legacy clients
Creating a snapshot on >=Kraken OSDs using <=Jewel clients can result
in an improperly initialized snapshot namespace. As a result, attempting
to remove the snapshot using a >=Kraken client will result in an -EINVAL
error.

Fixes: http://tracker.ceph.com/issues/19413
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-05-01 21:08:00 -04:00
Neha Ojha
522bd84dc0 objclass-sdk: add override to whitelist the sdk class
Signed-off-by: Neha Ojha <nojha@redhat.com>
2017-05-01 16:28:54 -07:00
Sage Weil
e4874b4091 Merge pull request #14788 from liewegas/wip-jewel-x-rgw
qa/suites/jewel-x/point-to-point: don't scane for keys on second s3tests either

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-05-01 17:12:39 -05:00
Sage Weil
7e6e4bd5de osd/PGBackend: expose interval_start and last_peering_reset to backends
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-01 15:35:11 -05:00