Commit Graph

69057 Commits

Author SHA1 Message Date
Yuri Weinstein
ccc885ac59 qa/suites/upgrade/kraken-x: Initial checkin
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2017-02-18 21:12:23 -05:00
Sage Weil
c1c1f2e408 Merge pull request #13207 from liewegas/wip-mapping
mon: restructure prime_pg_temp around a full pg mapping calculated on multiple CPUs

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-02-18 12:58:05 -06:00
Sage Weil
2a4be500d8 Merge pull request #13420 from liewegas/wip-18929
osd/PG: restrict want_acting to up+acting on recovery completion

Reviewed-by: Samuel Just <sjust@redhat.com>
2017-02-18 12:57:00 -06:00
Sage Weil
9762dbfb26 Merge pull request #13479 from LiumxNL/fix-monc-rand
mon/MonClient: random all ranks then pick first_n

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-02-18 12:38:29 -06:00
Jason Dillaman
2c2b7abf93 Merge pull request #13482 from idryomov/wip-qa-krbd-data-pool
qa: add workunit to test krbd data-pool support

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-02-18 09:00:59 -05:00
Mingxin Liu
9b546b6906 mon/MonClient: random all ranks then pick first_n
Signed-off-by: Mingxin Liu <mingxin@xsky.com>
2017-02-18 21:57:45 +08:00
Nathan Cutler
3e157bf16c rpm: build ceph-resource-agents by default
To align with debian build

Fixes: http://tracker.ceph.com/issues/17613
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-02-18 14:33:25 +01:00
Kefu Chai
49740fc0fb Merge pull request #13493 from liewegas/wip-log-split-index
osd/PGLog: fix index for parent and child log on split

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-02-18 18:31:24 +08:00
Kefu Chai
5e98ce933c Merge pull request #13458 from tchaikov/wip-silence-gcc-warnings
include/denc, kv: silence gcc warnings

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2017-02-18 18:24:46 +08:00
Kefu Chai
9d7dd22339 Merge pull request #13462 from tanghaodong25/reweight-by-pg
mon/OSDMonitor: some cleanup for reweight-by-pg

Reviewed-by: Sage Weil <sage@redhat.com>
2017-02-18 18:23:55 +08:00
Kefu Chai
780f4c08bc Merge pull request #13473 from tchaikov/wip-coverity-fixes
msg, messages: coverity fixes

Reviewed-by: Sage Weil <sage@redhat.com>
2017-02-18 18:22:47 +08:00
Kefu Chai
0603794d53 Merge pull request #12977 from weixiaowilliam/crc32c_opt
crc32c: optimize aarch64 crc32c implementation

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-02-18 17:13:50 +08:00
Kefu Chai
bb6216752e Merge pull request #13428 from xiexingguo/wip-flush-cache
os/bluestore: add flush_store_cache cmd

Reviewed-by: Sage Weil <sage@redhat.com>
2017-02-18 16:45:36 +08:00
Kefu Chai
f0da8aa178 Merge pull request #13430 from majianpeng/tracepointprovier
common/TracepointProvider: add assert if dlopen error.

Reviewed-by: Sage Weil <sage@redhat.com>
2017-02-18 16:45:01 +08:00
Kefu Chai
2a05daa8f6 Merge pull request #13335 from ovh/wip-clang-compilation-fix
common: Fix clang compilation

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-02-18 16:43:51 +08:00
Haomai Wang
067d569773 msg/async: fix missing unlock when already bind
Signed-off-by: Haomai Wang <haomai@xsky.com>
2017-02-18 14:16:30 +08:00
Haomai Wang
6dcd79cdcd Merge pull request #13435 from yuyuyu101/wip-rdma-leak
msg/async/rdm: fix leak when existing failure in ip network

Reviewed-by: Adir lev <adirl@mellanox.com>
2017-02-18 14:14:32 +08:00
Haomai Wang
e120aa457b Merge pull request #13511 from tangwenjun3/wip-nvme
os/bluestore: fix bug in aio_read()

Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-02-18 14:10:37 +08:00
tangwenjun3
2bfeefb9de os/bluestore:fix bug in aio_read()
fixed compilation issue  in aio_read() when enable spdk

Signed-off-by: tangwenjun <tang.wenjun3@zte.com.cn>
2017-02-18 13:49:22 +08:00
Haomai Wang
a6db737115 Merge pull request #13484 from yuyuyu101/wip-rdma-perf-counter
msg/async/rdma: add perf counters to RDMA backend

Reviewed-by: Adir lev <adirl@mellanox.com>
2017-02-18 13:31:45 +08:00
Haomai Wang
4225e2b646 msg/async/rdma: add perf counters to RDMA backend
Signed-off-by: Haomai Wang <haomai@xsky.com>
2017-02-18 13:30:22 +08:00
Robin H. Johnson
eb0f62421d
msg/async: support IPv6 QoS.
Extend DSCP marking for heartbeat packets to IPv6.

Backport: jewel, luminious
See-Also: http://tracker.ceph.com/issues/18887
Fixes: http://tracker.ceph.com/issues/18928
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
2017-02-17 15:27:55 -08:00
Matt Benjamin
408053a07e Merge pull request #10156 from rzarzynski/wip-rgw-controllable-204
rgw: make sending Content-Length in 204 and 304 responses controllable
2017-02-17 15:56:06 -05:00
Dan Mick
bd025bbd8c Merge pull request #13467 from liewegas/wip-init-ceph
init-ceph: fix ceph user args

Reviewed-by: Dan Mick <dmick@redhat.com>
2017-02-17 12:52:09 -08:00
Sage Weil
a6ead99877 osd/PGLog: avoid return by value on ginormous log
Signed-off-by: Sage Weil <sage@redhat.com>
2017-02-17 14:50:44 -05:00
Sage Weil
643ae42cf2 osd/PGLog: reindex properly on pg log split
When pg_log_t::split_out_child() runs it builds the list, which means the
old indexes are wrong (the point to bad memory), but index() will not
rebuild them because ever since b858e869e7
we won't rebuild them if they are already built.

Fix that by calling unindex() before the split.

Further, the new child log also needs to be indexed.  Fix that too.

Fixes: http://tracker.ceph.com/issues/18975
Signed-off-by: Sage Weil <sage@redhat.com>
2017-02-17 14:50:38 -05:00
Jason Dillaman
f88ed3589d Merge pull request #13495 from ceph/revert-13452-wip-suite-repo-for-workunit
Revert "qa/tasks/workunit: use the suite repo for cloning workunit"

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-02-17 13:49:11 -05:00
Kefu Chai
6e285496f1 common/perf_histogram: initialize member vars of axis_config_d
addresses CID 1400670:    (UNINIT_CTOR)

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-02-18 02:22:50 +08:00
Sage Weil
96bc86b537 Revert "qa/tasks/workunit: use the suite repo for cloning workunit" 2017-02-17 11:54:27 -06:00
Samuel Just
51eee55c47 ReplicatedBackend: don't queue Context outside of ObjectStore with obc
We only flush the ObjectStore callbacks, not everything else.  Thus,
there isn't a guarrantee that the obc held by pull_complete_info will
be cleaned up before the Flush callback is triggered.  Instead, just
defer clearing the pull state until the callback (it'll be cleaned up
during the interval change) and remove the ObjectContext from
pull_complete_info.

Introduced: 68defc2b05
Fixes: http://tracker.ceph.com/issues/18927
Signed-off-by: Samuel Just <sjust@redhat.com>
2017-02-17 09:48:05 -08:00
John Spray
f5ac182cbd Merge pull request #12370 from wido/docs-cephfs-disaster
doc: Update CephFS disaster recovery documentation

Reviewed-by: John Spray <john.spray@redhat.com>
2017-02-17 16:59:35 +00:00
Kefu Chai
929c6a6af9 Merge pull request #13456 from tchaikov/wip-qa-objectstore
qa/suites/rados/objectstore: enable experimental features for testing bluestore

Reviewed-by: Sage Weil <sage@redhat.com>
2017-02-17 23:16:05 +08:00
Jason Dillaman
50f7857ce8 Merge pull request #13437 from Liuchang0812/cleanup-rbd
librbd: use 'override' keyword instead of 'virtual'
2017-02-17 08:03:24 -05:00
Wido den Hollander
0ae3154eb2
Pass first parameter to make-dist for building SRPM
This allows for overriding the version to be build in the SRPM.

make-dist already supports this, pass down the parameter so you can run:

  $ ./make-srpm.sh 12.0.0

Afterwards RPMs can be build using:

  $ rpmbuild --rebuild /tmp/ceph-12.0.0.el7.src.rpm

Signed-off-by: Wido den Hollander <wido@42on.com>
2017-02-17 12:23:10 +01:00
liuchang0812
5fe3a1017a rbd: add override in rbd subsystem
Fixes: http://tracker.ceph.com/issues/18922

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2017-02-17 19:13:20 +08:00
Kefu Chai
7251ea56f6 kv: silence the gcc warning of func foo was hidden
this silences the warnings like

ceph/ceph/src/kv/KeyValueDB.h:59:18: warning: ‘virtual void
KeyValueDB::TransactionImpl::set(const string&, const char*, size_t,
const bufferlist&)’ was hidden [-Woverloaded-\
virtual]
     virtual void set(
                  ^~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-02-17 18:19:08 +08:00
Kefu Chai
cdb3ecb57e include/denc: silence gcc warnings
gcc-7 complains:

ceph/ceph/src/include/denc.h:469:50: warning: enum constant in boolean
context [-Wint-in-bool-context]
 inline typename std::enable_if<traits::supported &&
                                ~~~~~~~~~~~~~~~~~~^~
           traits::featured>::type denc(
           ~~~~~~

so let's use "static constexpr bool" instead of enum.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-02-17 18:19:08 +08:00
Xiaoxi Chen
a1710aecd4 osdc: fix osdc_osd_seesion perf counter.
Should be "set" instead of "inc"

Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
2017-02-17 02:49:49 -07:00
Loic Dachary
057e7b1641 Merge pull request #11786 from leseb/dmcrypt-cluster-name
ceph-disk: ability to use a different cluster name with dmcrypt

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2017-02-17 09:55:19 +01:00
Mykola Golub
69e31a8ede Merge pull request #12433 from liupan1111/wip-fix-rbd-nbd-log-sock
rbd-nbd: create admin socket only for map command

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-02-17 09:54:03 +02:00
wangzhengyong
34913f9c07 os/bluestore/BitAllocator: fix bug of checking required blocks
Signed-off-by: wangzhengyong@cmss.chinamobile.com
2017-02-17 14:39:08 +08:00
lvshuhua
00d87f6045 rgw: make sync thread name clear
Fixes: http://tracker.ceph.com/issues/18860
Signed-off-by: lvshuhua <lvshuhua@cmss.chinamobile.com>
2017-02-17 13:50:57 +08:00
Kefu Chai
f40b09cad0 msg/async/AsyncConnection: remove no-ops
addresses CID 1400656:  Incorrect expression  (NO_EFFECT)

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-02-17 13:12:48 +08:00
Kefu Chai
f8a959306e msg/simple/Pipe: remove no-op statements
addresses CID 1400658:  Incorrect expression  (NO_EFFECT)

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-02-17 13:12:47 +08:00
Kefu Chai
4e8b5d79ea messages/MOSDBackoff: make *_VERSION static
addresses CID 1400661:  Uninitialized variables  (UNINIT)

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-02-17 13:12:47 +08:00
Zhang Shaowen
2c3a7698be rgw: add support for noncurrentversion expiration in s3 lifecycle.
Fixes: http://tracker.ceph.com/issues/18916

Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
2017-02-17 12:43:55 +08:00
Kefu Chai
8ae48637f7 qa/workunits/objectstore/test_fuse.sh: enable experimental features
so we can test bluestore

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-02-17 11:23:41 +08:00
Dan Mick
6582f42dfd qa/workunits/objectstore/test_fuse.sh: use portable function decl
function f() is illegal in strict POSIX shells, like dash, which is
the default /bin/sh on Ubuntu

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-02-17 11:18:20 +08:00
Dan Mick
ce5d375e61 qa/workunits/objectstore/test_fuse.sh: allow failure
This script currently has a syntax error, but still exits with
success, which is hiding that failure.  Expose it by allowing
the 'sudo' exit code to be the script's exit code.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-02-17 11:18:20 +08:00
Patrick Donnelly
848fd1f4af
mon: detect existing fs and duplicate name earlier
Detecting creation of an equivalent fs was made impossible by
052c3d3f68, as an existing file system
will obviously have objects in its pool. This commit moves the pool with
objects check later and uses a more helpful errno (EEXIST) for the case
where a fs with the same name already exists (but uses different pools).

Fixes: http://tracker.ceph.com/issues/18964

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-02-16 21:34:42 -05:00