]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoradosgw: fix small sized chunked uploads with s3 17040/head
Marcus Watts [Wed, 16 Aug 2017 01:57:06 +0000 (21:57 -0400)]
radosgw: fix small sized chunked uploads with s3

The logic to compute the number of bytes to copy with a chunked file
upload was failing to take into account the amount of data that had been
consumed, but was still pending in the parse buffer.  This would cause
strange behavior ranging from "just works" to "fails".  There was also a
strange "works, one byte at a time" mode.  Using the correct stream_pos
offset eliminates the bad behavior.

This fix also adds debug statements to make the correct behavior easier to see.

Fixes: http://tracker.ceph.com/issues/21003
Signed-off-by: Marcus Watts <mwatts@redhat.com>
7 years agoradosgw: fix zero sized chunked uploads with s3
Marcus Watts [Tue, 15 Aug 2017 03:56:21 +0000 (23:56 -0400)]
radosgw: fix zero sized chunked uploads with s3

s3 allows for zero sized objects, which can be
created using chunked uploads.  It is important to
call "recv_body (and ChunkMeta::create_next()) even
on zero sized objects, so that the proper chunk signature
can be presented at signature verification time.

Fixes: http://tracker.ceph.com/issues/21000
Signed-off-by: Marcus Watts <mwatts@redhat.com>
7 years agorgw: replace '+' with "%20" in canonical query string for s3 v4 auth.
Zhang Shaowen [Tue, 4 Jul 2017 09:18:11 +0000 (17:18 +0800)]
rgw: replace '+' with "%20" in canonical query string for s3 v4 auth.

( note: this patch modified: now replaces "+" with " ".  mwatts@redhat.com )

Fixes: http://tracker.ceph.com/issues/20501
Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
7 years agoMerge pull request #16628 from theanalyst/rgw-policy-list-buckets
Matt Benjamin [Fri, 11 Aug 2017 15:53:01 +0000 (11:53 -0400)]
Merge pull request #16628 from theanalyst/rgw-policy-list-buckets

rgw: policy: support for s3 conditionals in ListBucket Op

7 years agoMerge pull request #16968 from liewegas/wip-store-test-expect-death
Sage Weil [Fri, 11 Aug 2017 13:45:02 +0000 (08:45 -0500)]
Merge pull request #16968 from liewegas/wip-store-test-expect-death

ceph_test_objectstore: drop expect regex

7 years agoceph_test_objectstore: drop expect regex 16968/head
Sage Weil [Thu, 10 Aug 2017 14:41:47 +0000 (10:41 -0400)]
ceph_test_objectstore: drop expect regex

If logging is enabled (as it now is in teuthology) this won't match the
forked output.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16991 from liewegas/wip-doc-bluestore-migration
Sage Weil [Fri, 11 Aug 2017 13:37:28 +0000 (08:37 -0500)]
Merge pull request #16991 from liewegas/wip-doc-bluestore-migration

doc/rados/operations/bluestore-migration: typos and whitespace

7 years agodoc/rados/operations/bluestore-migration: typos and whitespace 16991/head
Sage Weil [Tue, 8 Aug 2017 19:09:50 +0000 (15:09 -0400)]
doc/rados/operations/bluestore-migration: typos and whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16532 from liupan1111/wip-remove-reb
Sage Weil [Fri, 11 Aug 2017 13:32:12 +0000 (08:32 -0500)]
Merge pull request #16532 from liupan1111/wip-remove-reb

kv/RocksDBStore: extract common code to a new function

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16594 from wjwithagen/wip-wjw-reduce-info-messages
Sage Weil [Fri, 11 Aug 2017 13:31:53 +0000 (08:31 -0500)]
Merge pull request #16594 from wjwithagen/wip-wjw-reduce-info-messages

common: make some message informative, instead of error

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16964 from kungf/mon_timer
Sage Weil [Fri, 11 Aug 2017 13:30:42 +0000 (08:30 -0500)]
Merge pull request #16964 from kungf/mon_timer

mon: return directly after health_events_cleanup

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16936 from TsaiJin/wip-set-polling-thread-name
Yuri Weinstein [Fri, 11 Aug 2017 13:20:51 +0000 (06:20 -0700)]
Merge pull request #16936 from TsaiJin/wip-set-polling-thread-name

msg/async/rdma: fix the bug that rdma polling thread uses the same thread name with msg worker

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Pan Liu <liupan1111@gmail.com>
7 years agoMerge pull request #16961 from xiexingguo/wip-class-rename
Yuri Weinstein [Fri, 11 Aug 2017 13:18:57 +0000 (06:18 -0700)]
Merge pull request #16961 from xiexingguo/wip-class-rename

crush: "osd crush class rename" support

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16973 from jan--f/mgr-plugin-doc-accessor-init
John Spray [Fri, 11 Aug 2017 11:23:48 +0000 (12:23 +0100)]
Merge pull request #16973 from jan--f/mgr-plugin-doc-accessor-init

doc/mgr/plugins: mgr accessor during init causes exception

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #16983 from renhwztetecs/renhw-wip-rados-tool-cleanup
Xie Xingguo [Fri, 11 Aug 2017 05:29:30 +0000 (13:29 +0800)]
Merge pull request #16983 from renhwztetecs/renhw-wip-rados-tool-cleanup

rados/tool: fixup rados stat command hint

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge branch 'master' into wip-set-polling-thread-name 16936/head
Jin Cai [Fri, 11 Aug 2017 04:55:16 +0000 (12:55 +0800)]
Merge branch 'master' into wip-set-polling-thread-name

7 years agorados/tool: fixup rados stat command hint 16983/head
huanwen ren [Fri, 11 Aug 2017 02:50:59 +0000 (10:50 +0800)]
rados/tool: fixup rados stat command hint

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
7 years agoMerge pull request #16709 from dzafman/wip-standalone
Sage Weil [Fri, 11 Aug 2017 02:33:43 +0000 (21:33 -0500)]
Merge pull request #16709 from dzafman/wip-standalone

qa/standalone: misc fixes

7 years agoMerge pull request #16954 from gregsfortytwo/wip-20891-pool-metadata
Sage Weil [Fri, 11 Aug 2017 02:29:37 +0000 (21:29 -0500)]
Merge pull request #16954 from gregsfortytwo/wip-20891-pool-metadata

mon: fix "fs new" pool metadata update, tests

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16981 from yuyuyu101/wip_rdma_mt_fix
Haomai Wang [Fri, 11 Aug 2017 02:21:07 +0000 (10:21 +0800)]
Merge pull request #16981 from yuyuyu101/wip_rdma_mt_fix

msg/async/rdma: fixes crash for multi rados client within one process

7 years agomon: return directly after health_events_cleanup 16964/head
kungf [Thu, 10 Aug 2017 12:05:00 +0000 (20:05 +0800)]
mon: return directly after health_events_cleanup

when mon_health_to_clog was set false, all health events was cleanup,
no need to judge the change of mon_health_to_clog_interval and
mon_health_to_clog_tick_interval.

Signed-off-by: wang yang <yang.wang@easystack.cn>
7 years agoMerge pull request #16664 from amitkumar50/coverity-1414508-3
Haomai Wang [Fri, 11 Aug 2017 02:16:33 +0000 (10:16 +0800)]
Merge pull request #16664 from amitkumar50/coverity-1414508-3

rdma: Assign instead of compare

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #16965 from TsaiJin/wip-use-rdtsc-to-get-time
Haomai Wang [Fri, 11 Aug 2017 02:14:46 +0000 (10:14 +0800)]
Merge pull request #16965 from TsaiJin/wip-use-rdtsc-to-get-time

src/msg/async/rdma: decrease cpu usage by rdtsc instruction

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agomsg/async/rdma: add atomic and lock protection 16981/head
Haomai Wang [Fri, 11 Aug 2017 02:02:45 +0000 (10:02 +0800)]
msg/async/rdma: add atomic and lock protection

Signed-off-by: Haomai Wang <haomai@xsky.com>
7 years agomsg/async/rdma: fixes crash in fio
Alex Mikheev [Mon, 12 Jun 2017 08:32:38 +0000 (08:32 +0000)]
msg/async/rdma: fixes crash in fio

fio creates multiple CephContext in a single process.
Crash(es) happen because rdma stack has a global resources that
are still used from one ceph context while have already been destroyed
by another context.

The commit removes global instances of RDMA dispatcher and infiniband
and makes them context (rdma stack) specific.

Signed-off-by: Adir Lev <adirl@mellanox.com>
Signed-off-by: Alex Mikheev <alexm@mellanox.com>
7 years agoMerge pull request #16980 from ceph/revert-16893-wip-fix-multicct-ib
Haomai Wang [Fri, 11 Aug 2017 01:58:17 +0000 (09:58 +0800)]
Merge pull request #16980 from ceph/revert-16893-wip-fix-multicct-ib

Revert "msg/async/rdma: fix multi cephcontext confllicting"

7 years agoRevert "msg/async/rdma: fix multi cephcontext confllicting" 16980/head
Haomai Wang [Fri, 11 Aug 2017 01:57:41 +0000 (09:57 +0800)]
Revert "msg/async/rdma: fix multi cephcontext confllicting"

7 years agoMerge pull request #16977 from liewegas/wip-no-pidfile
David Zafman [Fri, 11 Aug 2017 01:41:38 +0000 (18:41 -0700)]
Merge pull request #16977 from liewegas/wip-no-pidfile

test/CMakeLists: disable test_pidfile.sh

Reviewed-by: Xie Xingguo <xie.xingguo@zte.com.cn>
7 years agocrush: "osd crush class rename" support 16961/head
xie xingguo [Thu, 10 Aug 2017 09:28:04 +0000 (17:28 +0800)]
crush: "osd crush class rename" support

In 076a6abd80cc90ebcb901f908f880ef030721b2a I killed the 'class rename' command
and thought it was totally useless but I was wrong.

Consider the following user case:
(1) randomly choose some OSDs(e.g., from different hosts) and try to make them for private use only,
    say, by grouping them into 'pool1'
(2) ceph osd crush set-device-class pool1 'OSDs from (1)'
(3) ceph osd crush rule create-replicated rule_for_pool1 default host pool1
(4) ceph osd pool rename pool1 pool2
(5) ceph osd crush class rename pool1 pool2

From the above user case, we need to safely change a pool name without worrying
any risk of data migration. That is why the 'osd crush class rename' command
is still needed here.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agotest/CMakeLists: disable test_pidfile.sh 16977/head
Sage Weil [Thu, 10 Aug 2017 19:41:38 +0000 (15:41 -0400)]
test/CMakeLists: disable test_pidfile.sh

Too flaky, see http://tracker.ceph.com/issues/20975

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa: Fix broken test_activate_osd() due to missing space 16709/head
David Zafman [Thu, 10 Aug 2017 01:58:21 +0000 (18:58 -0700)]
qa: Fix broken test_activate_osd() due to missing space

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoqa: Fix races with waiting for scrubs
David Zafman [Wed, 9 Aug 2017 15:43:57 +0000 (08:43 -0700)]
qa: Fix races with waiting for scrubs

The trigger_scrub sets the last_scrub_stamp backwards to
force a scheduled scrub.  In a small window this stamp could get propagated
to the mgr.  A test failure occurred because wait_for_scrub() was confused
by seeing a backward moving date.

The most critical change is having wait_for_scrub() make sure that the
date advances past the previous in value.

A test failed because the random backoff kept delayed triggered scrub, so
set osd_scrub_backoff throughout.

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoqa: Testing of ceph-helpers.sh, teardown on fail to dump logs, save cores
David Zafman [Wed, 9 Aug 2017 14:19:36 +0000 (07:19 -0700)]
qa: Testing of ceph-helpers.sh, teardown on fail to dump logs, save cores

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd: Avoid confusion over legacy snaps when head_exists corrupt
David Zafman [Tue, 8 Aug 2017 14:22:33 +0000 (07:22 -0700)]
osd: Avoid confusion over legacy snaps when head_exists corrupt

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd: Fix Paxos shutdown handling for commit_finish race
David Zafman [Mon, 7 Aug 2017 19:48:27 +0000 (12:48 -0700)]
osd: Fix Paxos shutdown handling for commit_finish race

Fixes: http://tracker.ceph.com/issues/20921
Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoqa: Add support for core dumps
David Zafman [Fri, 4 Aug 2017 19:34:47 +0000 (12:34 -0700)]
qa: Add support for core dumps

Save core dumps when running tests locally
Dump logs to output whenever cores seen

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #16918 from liewegas/wip-doc-bluestore-migration
Sage Weil [Thu, 10 Aug 2017 19:15:31 +0000 (14:15 -0500)]
Merge pull request #16918 from liewegas/wip-doc-bluestore-migration

doc/rados/operations/bluestore-migration: document bluestore migration process

Reviewed-by: Vasu Kulkarni <vasu@redhat.com>
7 years agodoc/rados/operations/bluestore-migration: document bluestore migration process 16918/head
Sage Weil [Tue, 8 Aug 2017 19:09:50 +0000 (15:09 -0400)]
doc/rados/operations/bluestore-migration: document bluestore migration process

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16975 from theanalyst/doc-12-1-3-release-notes
Sage Weil [Thu, 10 Aug 2017 18:30:05 +0000 (13:30 -0500)]
Merge pull request #16975 from theanalyst/doc-12-1-3-release-notes

doc: 12.1.3 release notes

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16974 from liewegas/wip-release-notes
Sage Weil [Thu, 10 Aug 2017 18:29:25 +0000 (13:29 -0500)]
Merge pull request #16974 from liewegas/wip-release-notes

doc/release-notes: remove mention of crush weight optimization

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
7 years agoqa: test that "fs new" correctly set the application_metadata 16954/head
Greg Farnum [Thu, 10 Aug 2017 17:28:09 +0000 (10:28 -0700)]
qa: test that "fs new" correctly set the application_metadata

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
7 years agodoc: 12.1.3 release notes 16975/head
Abhishek Lekshmanan [Thu, 10 Aug 2017 18:00:19 +0000 (20:00 +0200)]
doc: 12.1.3 release notes

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agodoc/release-notes: remove mention of crush weight optimization 16974/head
Sage Weil [Thu, 10 Aug 2017 17:36:51 +0000 (13:36 -0400)]
doc/release-notes: remove mention of crush weight optimization

It's not there yet.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #15330 from guihecheng/rgw_file-fsid-mount
Matt Benjamin [Thu, 10 Aug 2017 17:32:27 +0000 (13:32 -0400)]
Merge pull request #15330 from guihecheng/rgw_file-fsid-mount

rgw_file: introduce new fsid and rgw_mount

7 years agomdsmon: treat the osdmon correctly when doing plugged updates
Greg Farnum [Wed, 9 Aug 2017 21:34:44 +0000 (14:34 -0700)]
mdsmon: treat the osdmon correctly when doing plugged updates

Make sure it's writeable before invoking changes, and propose_pending()
on it when we're done.
Make the PaxosService::C_RetryMessage public so we can do this from FSCommands.

Maybe-
Fixes: http://tracker.ceph.com/issues/20959
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
7 years agodoc/mgr/plugins: mgr accessor during init causes exception 16973/head
Jan Fajerski [Thu, 10 Aug 2017 17:01:34 +0000 (19:01 +0200)]
doc/mgr/plugins: mgr accessor during init causes exception

Currently calling a mgr accessor during a plugins __init__ method causes
a cyclic locking exception.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
7 years agoMerge pull request #16648 from ovh/bp-kill-str-conv
Sage Weil [Thu, 10 Aug 2017 16:19:24 +0000 (11:19 -0500)]
Merge pull request #16648 from ovh/bp-kill-str-conv

osdc, class_api: kill implicit string conversions

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #16850 from liewegas/wip-bluestore-dirty-range
Sage Weil [Thu, 10 Aug 2017 16:17:32 +0000 (11:17 -0500)]
Merge pull request #16850 from liewegas/wip-bluestore-dirty-range

os/bluestore: fix dirty_shard off-by-one

Reviewed-by: Liu-Chunmei <chunmei.liu@intel.com>
7 years agoMerge pull request #16872 from markhpc/wip-bluestore-faster_gncb
Sage Weil [Thu, 10 Aug 2017 16:15:38 +0000 (11:15 -0500)]
Merge pull request #16872 from markhpc/wip-bluestore-faster_gncb

os/bluestore:  clearer comments, not slower code.

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16941 from jcsp/wip-20956
Sage Weil [Thu, 10 Aug 2017 16:14:54 +0000 (11:14 -0500)]
Merge pull request #16941 from jcsp/wip-20956

osd: include front_iface+back_iface in metadata

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16944 from liewegas/wip-kraken-x
Sage Weil [Thu, 10 Aug 2017 16:12:43 +0000 (11:12 -0500)]
Merge pull request #16944 from liewegas/wip-kraken-x

mon/Elector: force election epoch bump on start

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #16953 from neha-ojha/wip-20798
Sage Weil [Thu, 10 Aug 2017 16:12:22 +0000 (11:12 -0500)]
Merge pull request #16953 from neha-ojha/wip-20798

test/librados: create unique lock names

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoqa: For FreeBSD skip osd-dup.sh because there is no bluestore
David Zafman [Thu, 3 Aug 2017 15:16:04 +0000 (08:16 -0700)]
qa: For FreeBSD skip osd-dup.sh because there is no bluestore

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoqa: Raise mon-data-avail-warn to pass tests with less space
David Zafman [Thu, 3 Aug 2017 13:06:03 +0000 (06:06 -0700)]
qa: Raise mon-data-avail-warn to pass tests with less space

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoqa: Add common generalized inject_eio() to ceph-helpers.sh
David Zafman [Wed, 2 Aug 2017 04:35:34 +0000 (21:35 -0700)]
qa: Add common generalized inject_eio() to ceph-helpers.sh

Retry for a while to allow pool to appear

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoqa: osd-scrub-repair.sh handle older versions of jq
David Zafman [Wed, 2 Aug 2017 20:26:19 +0000 (13:26 -0700)]
qa: osd-scrub-repair.sh handle older versions of jq

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoqa: Add support for specifying sub-tests with run-standalone.sh
David Zafman [Tue, 1 Aug 2017 23:04:10 +0000 (16:04 -0700)]
qa: Add support for specifying sub-tests with run-standalone.sh

Fix test-ceph-helpers.sh to pass additional arguments on

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoqa: ceph-helpers.sh fixes
David Zafman [Tue, 1 Aug 2017 22:19:01 +0000 (15:19 -0700)]
qa: ceph-helpers.sh fixes

Add missing teardown to cleanup test directory
Fix pgid due to elimination of initial default pool
Testing could never fail because run_tests return ignored

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoqa: Skip ceph-helpers.sh which is tested through test-ceph-helpers.sh
David Zafman [Tue, 1 Aug 2017 20:42:29 +0000 (13:42 -0700)]
qa: Skip ceph-helpers.sh which is tested through test-ceph-helpers.sh

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #16962 from ceph/wip-bz1479797
Andrew Schoen [Thu, 10 Aug 2017 15:07:27 +0000 (10:07 -0500)]
Merge pull request #16962 from ceph/wip-bz1479797

ceph-volume: tests add tests for the is_mounted utility

Reviewed-by: Andrew Schoen aschoen@redhat.com
7 years agoMerge pull request #16618 from adamemerson/wip-throttle
Yuri Weinstein [Thu, 10 Aug 2017 14:45:11 +0000 (07:45 -0700)]
Merge pull request #16618 from adamemerson/wip-throttle

common/Throttle: Clean up

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16702 from hjwsm1989/wip-recover-timeout-expired
Yuri Weinstein [Thu, 10 Aug 2017 14:43:30 +0000 (07:43 -0700)]
Merge pull request #16702 from hjwsm1989/wip-recover-timeout-expired

 osd: do not forget pg_stat acks which failed to send

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #16928 from amitkumar50/cov-messages-7
Yuri Weinstein [Thu, 10 Aug 2017 14:42:00 +0000 (07:42 -0700)]
Merge pull request #16928 from amitkumar50/cov-messages-7

messages: Initializing members in MOSDPGUpdateLogMissing

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agodoc/release-notes: fix link typo
Sage Weil [Thu, 10 Aug 2017 14:35:51 +0000 (10:35 -0400)]
doc/release-notes: fix link typo

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16966 from idryomov/wip-krbd-unmap-tests-pool
Ilya Dryomov [Thu, 10 Aug 2017 14:08:58 +0000 (16:08 +0200)]
Merge pull request #16966 from idryomov/wip-krbd-unmap-tests-pool

qa: fix POOL_APP_NOT_ENABLED warning in krbd:unmap suite

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoRevert "qa/suites/upgrade/jewel-x/parallel: thrash layout"
Sage Weil [Thu, 10 Aug 2017 13:51:29 +0000 (09:51 -0400)]
Revert "qa/suites/upgrade/jewel-x/parallel: thrash layout"

This reverts commit 435777dbffc77c93d06476caf83be141359a5778.

This test combination is not yet stable.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16950 from liewegas/wip-20959
Sage Weil [Thu, 10 Aug 2017 13:32:12 +0000 (08:32 -0500)]
Merge pull request #16950 from liewegas/wip-20959

osd/PG: force rebuild of missing set on jewel upgrade

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoceph-volume: is_mounted should use a bytes->string util to compare strings 16962/head
Alfredo Deza [Thu, 10 Aug 2017 13:11:58 +0000 (09:11 -0400)]
ceph-volume: is_mounted should use a bytes->string util to compare strings

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: create a utf-8 string decoder for py3 compat
Alfredo Deza [Thu, 10 Aug 2017 13:11:27 +0000 (09:11 -0400)]
ceph-volume: create a utf-8 string decoder for py3 compat

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agomsg: get the time increment by rdstc inscturtion to decrease the cpu usage 16965/head
Jin Cai [Thu, 10 Aug 2017 12:36:05 +0000 (20:36 +0800)]
msg: get the time increment by rdstc inscturtion to decrease the cpu usage

     in RDMADispatcher polling thread

Signed-off-by: Jin Cai <caijin.caij@alibaba-inc.com>
7 years agoMerge pull request #16945 from liupan1111/wip-fix-spdk-compile
Haomai Wang [Thu, 10 Aug 2017 11:38:10 +0000 (19:38 +0800)]
Merge pull request #16945 from liupan1111/wip-fix-spdk-compile

bluestore: fixed compilation error when enable spdk with gcc 4.8.5

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoceph-volume: tests add tests for the is_mounted utility
Alfredo Deza [Wed, 9 Aug 2017 19:56:53 +0000 (15:56 -0400)]
ceph-volume: tests add tests for the is_mounted utility

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoqa: fix POOL_APP_NOT_ENABLED warning in krbd:unmap suite 16966/head
Ilya Dryomov [Thu, 10 Aug 2017 09:54:53 +0000 (11:54 +0200)]
qa: fix POOL_APP_NOT_ENABLED warning in krbd:unmap suite

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agoMerge pull request #16956 from theanalyst/doc-changelog-v11.2.1
Abhishek L [Thu, 10 Aug 2017 08:51:25 +0000 (10:51 +0200)]
Merge pull request #16956 from theanalyst/doc-changelog-v11.2.1

doc: add changelog for v11.2.1

Reviewed-By: Nathan Cutler <ncutler@suse.com>
7 years agodoc: add changelog for v11.2.1 16956/head
Abhishek Lekshmanan [Thu, 10 Aug 2017 08:11:05 +0000 (10:11 +0200)]
doc: add changelog for v11.2.1

Generated as::

git log v11.2.0..v11.2.1 --after="Thu Jan 19 13:08:40 2017 +0000" > doc/changelog/v11.2.1.txt

In order to avoid qe suite merges before this date

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoMerge pull request #16893 from yuyuyu101/wip-fix-multicct-ib
Haomai Wang [Thu, 10 Aug 2017 06:40:44 +0000 (14:40 +0800)]
Merge pull request #16893 from yuyuyu101/wip-fix-multicct-ib

msg/async/rdma: fix multi cephcontext confllicting

7 years agoMerge pull request #16905 from liewegas/wip-upgrade-sloppy-flush
Sage Weil [Thu, 10 Aug 2017 02:21:51 +0000 (21:21 -0500)]
Merge pull request #16905 from liewegas/wip-upgrade-sloppy-flush

qa/tasks/ceph.py: tolerate flush pg stats exception

7 years agoqa/suites/upgrade/jewel-x/parallel: thrash layout 16950/head
Sage Weil [Wed, 9 Aug 2017 20:40:43 +0000 (16:40 -0400)]
qa/suites/upgrade/jewel-x/parallel: thrash layout

We can't kill and restart osds because that will interfere with
the upgrade process.  We can, however, thrash the layout by
tweaking osd weights and so on.  This will exercise osd recovery
paths during the upgrade that aren't normally exercised (outside
of stress-split..which doesn't upgrade individual osds while they
are non-clean).

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: force rebuild of missing set on jewel upgrade
Sage Weil [Wed, 9 Aug 2017 16:50:57 +0000 (12:50 -0400)]
osd/PG: force rebuild of missing set on jewel upgrade

Previously we were detecting the need to rebuild missing based on
whether the "divergent_priors" omap key was present.  Unfortunately,
jewel does not always set this, so it is not a reliable indicator.
(It only gets set if you actually have a divergent prior at some
point in the PG's life time on that OSD.)

Fix by using the info_struct_v on the PG to detect whether we need
to do the conversion.  We didn't bump the value when we adding
the missing persistence, but the fastinfo was also added during
the same period between jewel and kraken, so it will work just as
well.

Fixes: http://tracker.ceph.com/issues/20958
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16006 from shangfufei/wip_modify_connect_logic
Haomai Wang [Thu, 10 Aug 2017 02:05:05 +0000 (10:05 +0800)]
Merge pull request #16006 from shangfufei/wip_modify_connect_logic

Optimization for connection establishment.

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #16382 from PCzhangPC/bug2
Jos Collin [Thu, 10 Aug 2017 01:48:05 +0000 (01:48 +0000)]
Merge pull request #16382 from PCzhangPC/bug2

common: bench test fall into dead loop when <seconds>=0

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #16396 from amitkumar50/branch20604
Jos Collin [Thu, 10 Aug 2017 01:43:30 +0000 (01:43 +0000)]
Merge pull request #16396 from amitkumar50/branch20604

core: remove startsync

Reviewed-by: Sage Weil <sweil@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #16886 from liupan1111/wip-add-size
Jos Collin [Thu, 10 Aug 2017 01:29:06 +0000 (01:29 +0000)]
Merge pull request #16886 from liupan1111/wip-add-size

os/bluestore: move size and block_size to the base class BlockDevice

Reviewed-by: Sage Weil <sweil@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Liu-Chunmei <chunmei.liu@intel.com>
7 years agoMerge pull request #16888 from gmayyyha/osd-ms-verify-auth
Jos Collin [Thu, 10 Aug 2017 01:16:54 +0000 (01:16 +0000)]
Merge pull request #16888 from gmayyyha/osd-ms-verify-auth

osd/OSD.cc: add 'isvalid=false' when failed to parse caps

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #16829 from ivancich/wip-dup-ops-cleanup-1
Yuri Weinstein [Wed, 9 Aug 2017 23:37:04 +0000 (16:37 -0700)]
Merge pull request #16829 from ivancich/wip-dup-ops-cleanup-1

osd: clean up dup index logic; maintain index flag logic in fewer places

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #16887 from xiexingguo/wip-mon-count
Yuri Weinstein [Wed, 9 Aug 2017 23:34:55 +0000 (16:34 -0700)]
Merge pull request #16887 from xiexingguo/wip-mon-count

mon: fix wrong mon-num counting  logic of 'ceph features' command

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16892 from xiexingguo/wip-clean-pg-temp
Yuri Weinstein [Wed, 9 Aug 2017 23:34:38 +0000 (16:34 -0700)]
Merge pull request #16892 from xiexingguo/wip-clean-pg-temp

mon/OSDMonitor: fix 'osd pg temp' unable to cleanup pg-temp

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16897 from amitkumar50/cov-MDentryLink-1
Gregory Farnum [Wed, 9 Aug 2017 22:37:18 +0000 (15:37 -0700)]
Merge pull request #16897 from amitkumar50/cov-MDentryLink-1

messages: Initialization of is_primary

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #16919 from ceph/wip-volume-tests
Alfredo Deza [Wed, 9 Aug 2017 22:09:39 +0000 (18:09 -0400)]
Merge pull request #16919 from ceph/wip-volume-tests

ceph-volume: adds functional CI testing

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agomdsmon: don't add pool application metadata until running fully-luminous
Greg Farnum [Wed, 9 Aug 2017 20:46:30 +0000 (13:46 -0700)]
mdsmon: don't add pool application metadata until running fully-luminous

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
7 years agotest/librados: create unique lock names 16953/head
Neha Ojha [Wed, 9 Aug 2017 21:14:21 +0000 (14:14 -0700)]
test/librados: create unique lock names

Signed-off-by: Neha Ojha <nojha@redhat.com>
7 years agoceph-volume: lvm activate should check if the device is mounted to prevent errors... 16919/head
Alfredo Deza [Wed, 9 Aug 2017 19:24:15 +0000 (15:24 -0400)]
ceph-volume: lvm activate should check if the device is mounted to prevent errors from mount

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume util add a helper to check if a device is mounted
Alfredo Deza [Wed, 9 Aug 2017 19:10:18 +0000 (15:10 -0400)]
ceph-volume util add a helper to check if a device is mounted

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #16834 from mdw-at-linuxbox/policy
Matt Benjamin [Wed, 9 Aug 2017 18:24:01 +0000 (14:24 -0400)]
Merge pull request #16834 from mdw-at-linuxbox/policy

radosgw: usage: fix bytes_sent bug.

7 years agomon/Elector: force election epoch bump on start 16944/head
Sage Weil [Tue, 8 Aug 2017 22:43:22 +0000 (18:43 -0400)]
mon/Elector: force election epoch bump on start

We are generally careful when bumping the epoch so that we can join
existing rounds.  However, if we restart in the middle of an election,
and change versions, we need to be certain that our previous ACK (as
$version - 1) isn't accepted as truth for the restarted daemon (running
$version) keeping the same epoch.

The conservatism with bumping is to avoid spurious election cycles, but
mon restarts are more rare, and we need them here.

Fixes: http://tracker.ceph.com/issues/20949
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/suites/upgrade/kraken-x/stress-split: more whitelisting
Sage Weil [Wed, 9 Aug 2017 13:11:05 +0000 (09:11 -0400)]
qa/suites/upgrade/kraken-x/stress-split: more whitelisting

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16828 from liewegas/wip-18209
Sage Weil [Wed, 9 Aug 2017 17:46:17 +0000 (12:46 -0500)]
Merge pull request #16828 from liewegas/wip-18209

common/LogClient: assign seq and queue atomically

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #16920 from liewegas/wip-osd-crush-ls
Sage Weil [Wed, 9 Aug 2017 17:45:54 +0000 (12:45 -0500)]
Merge pull request #16920 from liewegas/wip-osd-crush-ls

mon/OSDMonitor: implement 'osd crush ls <node>'

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #16923 from liewegas/wip-20738
Sage Weil [Wed, 9 Aug 2017 17:45:29 +0000 (12:45 -0500)]
Merge pull request #16923 from liewegas/wip-20738

qa/suites/rados/objectstore: logs

7 years agoMerge pull request #16737 from dillaman/wip-rbd-config
Mykola Golub [Wed, 9 Aug 2017 16:41:42 +0000 (19:41 +0300)]
Merge pull request #16737 from dillaman/wip-rbd-config

rbd: switched from legacy to new-style configuration options

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>