]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agodoc/bluestore: add SPDK usage for bluestore 17654/head
Haomai Wang [Mon, 11 Sep 2017 21:57:34 +0000 (14:57 -0700)]
doc/bluestore: add SPDK usage for bluestore

Signed-off-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #17018 from alex-mikheev/wip_rdma_rxpool_2
Haomai Wang [Thu, 7 Sep 2017 08:34:43 +0000 (16:34 +0800)]
Merge pull request #17018 from alex-mikheev/wip_rdma_rxpool_2

msg/async/rdma: refactor rx buffer pool allocator

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #17504 from dillaman/wip-21251
Mykola Golub [Thu, 7 Sep 2017 08:34:01 +0000 (11:34 +0300)]
Merge pull request #17504 from dillaman/wip-21251

qa/suites/rbd: miscellaneous test fixes

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
7 years agoMerge pull request #17532 from dillaman/wip-21179
Mykola Golub [Thu, 7 Sep 2017 08:31:45 +0000 (11:31 +0300)]
Merge pull request #17532 from dillaman/wip-21179

rbd: support iterating over metadata items when listing

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
7 years agoMerge pull request #17509 from dillaman/wip-21217
Mykola Golub [Thu, 7 Sep 2017 05:33:08 +0000 (08:33 +0300)]
Merge pull request #17509 from dillaman/wip-21217

test/cls_rbd: mask newer feature bits to support upgrade tests

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
7 years agoMerge pull request #17499 from dillaman/wip-21247
Mykola Golub [Thu, 7 Sep 2017 05:30:31 +0000 (08:30 +0300)]
Merge pull request #17499 from dillaman/wip-21247

cls/rbd: metadata_list not honoring max_return parameter

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
7 years agoMerge PR #17340 into master
Patrick Donnelly [Thu, 7 Sep 2017 04:05:20 +0000 (21:05 -0700)]
Merge PR #17340 into master

* refs/remotes/upstream/pull/17340/head:
mds: void sending cap import message when inode is frozen
client: fix message order check in handle_cap_export()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #16778 into master
Patrick Donnelly [Thu, 7 Sep 2017 04:05:18 +0000 (21:05 -0700)]
Merge PR #16778 into master

* refs/remotes/upstream/pull/16778/head:
mds: fix return value of MDCache::dump_cache
mds: new cap message flags indicate if there is pending capsnap
mds: properly do null snapflush part2
mds: track snap inodes through sorted map
mds: properly drop wrlock when finishing snapflush

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17291 into master
Patrick Donnelly [Wed, 6 Sep 2017 21:45:16 +0000 (14:45 -0700)]
Merge PR #17291 into master

* refs/remotes/upstream/pull/17291/head:
mds: fix 'dirfrag end' check in Server::handle_client_readdir

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: huanwen ren <ren.huanwen@zte.com.cn>
7 years agoMerge PR #17289 into master
Patrick Donnelly [Wed, 6 Sep 2017 21:45:14 +0000 (14:45 -0700)]
Merge PR #17289 into master

* refs/remotes/upstream/pull/17289/head:
osd, mds, tools: drop the invalid comment and some unused variables

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17219 into master
Patrick Donnelly [Wed, 6 Sep 2017 21:45:12 +0000 (14:45 -0700)]
Merge PR #17219 into master

* refs/remotes/upstream/pull/17219/head:
mds: fix StrayManager::truncate()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Amit Kumar <amitkuma@redhat.com>
7 years agoMerge pull request #17505 from liewegas/wip-20910
Sage Weil [Wed, 6 Sep 2017 21:02:01 +0000 (16:02 -0500)]
Merge pull request #17505 from liewegas/wip-20910

qa/objectstore/bluestore*: less debug output

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #17459 from xiexingguo/wip-bs-tracked-key
Sage Weil [Wed, 6 Sep 2017 20:55:54 +0000 (15:55 -0500)]
Merge pull request #17459 from xiexingguo/wip-bs-tracked-key

os/bluestore: add bluestore_prefer_deferred_size_hdd/ssd to tracked keys

Reviewed-by: Pan Liu <liupan1111@gmail.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17463 from tchaikov/wip-ceph-tell-mds-star
Sage Weil [Wed, 6 Sep 2017 20:55:25 +0000 (15:55 -0500)]
Merge pull request #17463 from tchaikov/wip-ceph-tell-mds-star

ceph: fixes for "tell <service>.*" command

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Chang Liu <liuchang0812@gmail.com>
7 years agoMerge pull request #17503 from liewegas/wip-21250
Sage Weil [Wed, 6 Sep 2017 20:52:29 +0000 (15:52 -0500)]
Merge pull request #17503 from liewegas/wip-21250

os/bluestore/BlueFS: prevent _compact_log_async reentry

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Varada Kari <varada.kari@gmail.com>
7 years agocls/rbd: metadata_list not honoring max_return parameter 17499/head
Jason Dillaman [Tue, 5 Sep 2017 14:53:47 +0000 (10:53 -0400)]
cls/rbd: metadata_list not honoring max_return parameter

Fixes: http://tracker.ceph.com/issues/21247
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agorbd: support iterating over metadata items when listing 17532/head
Jason Dillaman [Wed, 6 Sep 2017 20:14:58 +0000 (16:14 -0400)]
rbd: support iterating over metadata items when listing

Fixes: http://tracker.ceph.com/issues/21179
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #17510 from liewegas/wip-crush-fix-rule-lookup
Sage Weil [Wed, 6 Sep 2017 18:41:55 +0000 (13:41 -0500)]
Merge pull request #17510 from liewegas/wip-crush-fix-rule-lookup

crush: fix fast rule lookup when uniform

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17356 from shashalu/bucket_link/unlink_olh
Yuri Weinstein [Wed, 6 Sep 2017 15:50:23 +0000 (08:50 -0700)]
Merge pull request #17356 from shashalu/bucket_link/unlink_olh

rgw: don't write bucket_header when it is not changed in bucket_link/unlink

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #17434 from iliul/remove-useless-output
Yuri Weinstein [Wed, 6 Sep 2017 15:49:27 +0000 (08:49 -0700)]
Merge pull request #17434 from iliul/remove-useless-output

rgw: Remove the useless output when list zones

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #17518 from wjwithagen/wjw-githubmap
Jos Collin [Wed, 6 Sep 2017 15:14:47 +0000 (15:14 +0000)]
Merge pull request #17518 from wjwithagen/wjw-githubmap

.githubmap: Add wjwithagen as a known Ceph reviewer

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agomds: fix return value of MDCache::dump_cache 16778/head
Yan, Zheng [Wed, 6 Sep 2017 09:06:44 +0000 (17:06 +0800)]
mds: fix return value of MDCache::dump_cache

previous commit "mds: track snap inodes through sorted map" makes
MDCache::dump_cache return 1 on success.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
7 years ago.githubmap: Add myself 17518/head
Willem Jan Withagen [Wed, 6 Sep 2017 12:18:57 +0000 (14:18 +0200)]
.githubmap: Add myself

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agoMerge pull request #16145 from yehudasa/wip-20234
Orit Wasserman [Wed, 6 Sep 2017 07:23:30 +0000 (10:23 +0300)]
Merge pull request #16145 from yehudasa/wip-20234

rgw: add tail tag to track tail instance
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #17502 from dillaman/wip-21248
Mykola Golub [Wed, 6 Sep 2017 07:14:04 +0000 (10:14 +0300)]
Merge pull request #17502 from dillaman/wip-21248

librbd: rename of non-existent image results in seg fault

Reviewed-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #17375 from liupan1111/wip-final-fix-nbd
Mykola Golub [Wed, 6 Sep 2017 06:27:38 +0000 (09:27 +0300)]
Merge pull request #17375 from liupan1111/wip-final-fix-nbd

rbd-nbd: fix generic option issue

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
7 years agoMerge pull request #17507 from batrick/githubmap-update
Jos Collin [Wed, 6 Sep 2017 04:18:39 +0000 (04:18 +0000)]
Merge pull request #17507 from batrick/githubmap-update

githubmap: add some known Ceph reviewers

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge PR #17319 into master
Patrick Donnelly [Wed, 6 Sep 2017 03:49:54 +0000 (20:49 -0700)]
Merge PR #17319 into master

* refs/remotes/upstream/pull/17319/head:
qa: whitelist expected rstat warning
qa: sync whitelist with fs/basic_functional
qa: whitelist expected MDS_CACHE_OVERSIZED

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #17301 into master
Patrick Donnelly [Wed, 6 Sep 2017 03:49:19 +0000 (20:49 -0700)]
Merge PR #17301 into master

* refs/remotes/upstream/pull/17301/head:
mds: fix "1 filesystem is have a..." message

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17263 into master
Patrick Donnelly [Wed, 6 Sep 2017 03:45:35 +0000 (20:45 -0700)]
Merge PR #17263 into master

* refs/remotes/upstream/pull/17263/head:
mds: remove unused method
mds: move EMetaBlob cons to header

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #17178 into master
Patrick Donnelly [Wed, 6 Sep 2017 03:44:39 +0000 (20:44 -0700)]
Merge PR #17178 into master

* refs/remotes/upstream/pull/17178/head:
ceph-dencoder: simplify decoding/encoding cephfs inode

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge PR #17095 into master
Patrick Donnelly [Wed, 6 Sep 2017 03:44:04 +0000 (20:44 -0700)]
Merge PR #17095 into master

* refs/remotes/upstream/pull/17095/head:
client: reset unmounting flag to false when starting a new mount
client: add mountedness check inside client_lock
client: rework Client::get_local_osd() return codes
client: remove misleading comment in get_cap_ref

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Douglas Fuller <dfuller@redhat.com>
7 years agoMerge PR #16562 into master
Patrick Donnelly [Wed, 6 Sep 2017 03:43:28 +0000 (20:43 -0700)]
Merge PR #16562 into master

* refs/remotes/upstream/pull/16562/head:
cephfs/fuse: set big_writes default is false

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #16305 into master
Patrick Donnelly [Wed, 6 Sep 2017 03:42:30 +0000 (20:42 -0700)]
Merge PR #16305 into master

* refs/remotes/upstream/pull/16305/head:
qa/cephfs: test CephFS recovery pools
qa/cephfs: support CephFS recovery pools
qa/ceph_test_case: support CephFS recovery pools
qa/cephfs: Allow deferred fs creation
qa/cephfs: Refactor alternate pool test

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agogithubmap: add some known GitHub reviewers 17507/head
Patrick Donnelly [Tue, 5 Sep 2017 21:54:06 +0000 (14:54 -0700)]
githubmap: add some known GitHub reviewers

Selection from [1] where the GitHub username is available.

[1] http://pad.ceph.com/p/reviewers

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #17447 from tchaikov/wip-freebsd-coredump
Kefu Chai [Wed, 6 Sep 2017 03:16:08 +0000 (11:16 +0800)]
Merge pull request #17447 from tchaikov/wip-freebsd-coredump

test/coredumpctl: support freebsd

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agocrush: fix fast rule lookup when uniform 17510/head
Sage Weil [Wed, 6 Sep 2017 02:25:03 +0000 (22:25 -0400)]
crush: fix fast rule lookup when uniform

Older clients will search for the first rule with a matching ruleset,
type, and size.  The has_uniform_rules bool is only set if we have rule
ids and rulesets that line up, but we must also verify that the rest of the
mask matches or else we can get a different CRUSH mapping result because
the mask might not match and old clients will fail to find a rule and we
will find one.  We also can't just check the ruleset as the legacy clients
find the *first* (of potentially many) matching rules; hence we only do
the fast check if all rulesets == rule id.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agotest/cls_rbd: mask newer feature bits to support upgrade tests 17509/head
Jason Dillaman [Wed, 6 Sep 2017 01:37:16 +0000 (21:37 -0400)]
test/cls_rbd: mask newer feature bits to support upgrade tests

Fixes: http://tracker.ceph.com/issues/21217
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoqa/objectstore/bluestore*: less debug output 17505/head
Sage Weil [Tue, 5 Sep 2017 21:43:28 +0000 (17:43 -0400)]
qa/objectstore/bluestore*: less debug output

Let's see if this makes the spurious MON_DOWN failures go away?  (See
http://tracker.ceph.com/issues/20910)

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/suites/rbd: reduce monitor requirements for mirroring tests 17504/head
Jason Dillaman [Tue, 5 Sep 2017 20:26:52 +0000 (16:26 -0400)]
qa/suites/rbd: reduce monitor requirements for mirroring tests

Fixes: http://tracker.ceph.com/issues/21251
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoqa/suites/rbd: fixed cache override
Jason Dillaman [Tue, 5 Sep 2017 20:20:26 +0000 (16:20 -0400)]
qa/suites/rbd: fixed cache override

Fixes: http://tracker.ceph.com/issues/21251
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoqa/suites/rbd: reduce OSD debug log levels
Jason Dillaman [Tue, 5 Sep 2017 19:59:47 +0000 (15:59 -0400)]
qa/suites/rbd: reduce OSD debug log levels

The teuthology machines are periodically running out of space
due to the aggressive log settings.

Fixes: http://tracker.ceph.com/issues/21251
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge PR #17373 into master
Patrick Donnelly [Tue, 5 Sep 2017 19:48:41 +0000 (12:48 -0700)]
Merge PR #17373 into master

* refs/remotes/upstream/pull/17373/head:
doc/cephfs: add info on using EC pools with CephFS

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoos/bluestore/BlueFS: prevent _compact_log_async reentry 17503/head
Sage Weil [Tue, 5 Sep 2017 19:01:02 +0000 (15:01 -0400)]
os/bluestore/BlueFS: prevent _compact_log_async reentry

_should_compact_log uses new_log != nullptr to tell whether compaction is
already in progress, but we don't set it until we are midway through the
process.  Set it at the top of the method to prevent reentry.

See 455cc6cea2e5e8bc1126b5047b6003fa583af1b5, which failed to implement
this properly.

Fixes: http://tracker.ceph.com/issues/21250
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph: collect all mds in mdsids() 17463/head
Kefu Chai [Tue, 5 Sep 2017 08:33:24 +0000 (16:33 +0800)]
ceph: collect all mds in mdsids()

otherwise, only the active mds are returned.

Fixes: http://tracker.ceph.com/issues/21230
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoceph: always populate `targets` with ids_by_service()
Kefu Chai [Tue, 5 Sep 2017 08:05:44 +0000 (16:05 +0800)]
ceph: always populate `targets` with ids_by_service()

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoceph: extract ids_by_service() so it can be reused
Kefu Chai [Tue, 5 Sep 2017 08:00:59 +0000 (16:00 +0800)]
ceph: extract ids_by_service() so it can be reused

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agolibrbd: rename of non-existent image results in seg fault 17502/head
Jason Dillaman [Tue, 5 Sep 2017 16:11:45 +0000 (12:11 -0400)]
librbd: rename of non-existent image results in seg fault

Fixes: http://tracker.ceph.com/issues/21248
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #17141 from theanalyst/doc-civetweb-ports
Casey Bodley [Tue, 5 Sep 2017 15:39:12 +0000 (11:39 -0400)]
Merge pull request #17141 from theanalyst/doc-civetweb-ports

doc: rgw: mention the civetweb support for binding to multiple ports

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #17436 from ashishkumsingh/wip-doc-fix-snapshot-flatten-example
Jason Dillaman [Tue, 5 Sep 2017 14:13:50 +0000 (10:13 -0400)]
Merge pull request #17436 from ashishkumsingh/wip-doc-fix-snapshot-flatten-example

doc: Fixes rbd snapshot flatten example

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #17457 from batrick/githubmap
Sage Weil [Tue, 5 Sep 2017 14:05:46 +0000 (09:05 -0500)]
Merge pull request #17457 from batrick/githubmap

githubmap: add map for GitHub contributor lookup

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17489 from mychoxin/yuanxin_deep_copy
Jos Collin [Tue, 5 Sep 2017 12:12:30 +0000 (12:12 +0000)]
Merge pull request #17489 from mychoxin/yuanxin_deep_copy

include/buffer.h: fix typo in comment

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoinclude/buffer.h: fix comment 'no not allow' -> 'do not allow' 17489/head
xin.yuan [Tue, 5 Sep 2017 11:25:39 +0000 (19:25 +0800)]
include/buffer.h: fix comment 'no not allow' -> 'do not allow'

Signed-off-by: mychoxin <mychoxin@gmail.com>
7 years agoMerge pull request #17430 from Songweibin/wip-osd-misc
Kefu Chai [Tue, 5 Sep 2017 05:43:05 +0000 (13:43 +0800)]
Merge pull request #17430 from Songweibin/wip-osd-misc

osd: misc cleanups

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #16476 from renhwztetecs/renhw-wip-mgr-standby-ip
Kefu Chai [Tue, 5 Sep 2017 05:02:03 +0000 (13:02 +0800)]
Merge pull request #16476 from renhwztetecs/renhw-wip-mgr-standby-ip

mgr: add the ip addr of standbys

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17431 from tchaikov/wip-da-SCA-20170510
Kefu Chai [Tue, 5 Sep 2017 04:52:57 +0000 (12:52 +0800)]
Merge pull request #17431 from tchaikov/wip-da-SCA-20170510

Coverity and SCA fixes

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoos/bluestore: add bluestore_prefer_deferred_size_hdd/ssd to tracked keys 17459/head
xie xingguo [Tue, 5 Sep 2017 03:45:53 +0000 (11:45 +0800)]
os/bluestore: add bluestore_prefer_deferred_size_hdd/ssd to tracked keys

To make these two keys can be changed online:

./bin/ceph tell osd.* injectargs "--bluestore_prefer_deferred_size_hdd 0"
osd.0: bluestore_prefer_deferred_size_hdd = '0' (not observed, change may require restart)
osd.1: bluestore_prefer_deferred_size_hdd = '0' (not observed, change may require restart)
osd.2: bluestore_prefer_deferred_size_hdd = '0' (not observed, change may require restart)

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agotest/coredumpctl: support freebsd 17447/head
Kefu Chai [Mon, 4 Sep 2017 08:12:55 +0000 (16:12 +0800)]
test/coredumpctl: support freebsd

setrlimit() on platforms without prctl()

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17437 from tchaikov/wip-refactor-build_initial_pg_history
Kefu Chai [Tue, 5 Sep 2017 02:05:09 +0000 (10:05 +0800)]
Merge pull request #17437 from tchaikov/wip-refactor-build_initial_pg_history

osd: update info only if new_interval

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #17393 from tchaikov/wip-cmake-disable-vta
Kefu Chai [Tue, 5 Sep 2017 01:33:24 +0000 (09:33 +0800)]
Merge pull request #17393 from tchaikov/wip-cmake-disable-vta

cmake: disable VTA on options.cc

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agogithubmap: add map for GitHub contributor lookup 17457/head
Patrick Donnelly [Mon, 4 Sep 2017 19:08:08 +0000 (12:08 -0700)]
githubmap: add map for GitHub contributor lookup

Idea of this is to allow scripts to lookup the contributor name/email by GitHub
username. This is useful in particular for adding appropriate "Reviewed-by"s
for each GitHub style "review".

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agorbd-nbd: fix generic option issue 17375/head
Pan Liu [Sun, 3 Sep 2017 04:12:15 +0000 (12:12 +0800)]
rbd-nbd: fix generic option issue

Fixes: http://tracker.ceph.com/issues/20426
Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
7 years agoMerge pull request #15705 from xiexingguo/wip-fix-blob-tracker-check
Xie Xingguo [Mon, 4 Sep 2017 11:53:14 +0000 (19:53 +0800)]
Merge pull request #15705 from xiexingguo/wip-fix-blob-tracker-check

os/bluestore: pass strict flag to bluestore_blob_use_tracker_t::equal()

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
7 years agodoc: Fixes rbd snapshot flatten example 17436/head
Ashish Singh [Mon, 4 Sep 2017 11:12:09 +0000 (16:42 +0530)]
doc: Fixes rbd snapshot flatten example

Snapshot flatten example has incorrect image name, fixing the same.

Fixes: #17723
Signed-off-by: Ashish Singh <assingh@redhat.com>
7 years agoMerge pull request #15363 from ShiqiCooperation/master
Xie Xingguo [Mon, 4 Sep 2017 11:01:59 +0000 (19:01 +0800)]
Merge pull request #15363 from ShiqiCooperation/master

test/unittest_bluefs: check whether rmdir success

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agorgw: remove the useless output when list zones 17434/head
iliul [Sun, 3 Sep 2017 08:41:22 +0000 (16:41 +0800)]
rgw: remove the useless output when list zones

Signed-off-by: iliul <liul124@chinaunicom.cn>
7 years agoosd: update info only if new_interval 17437/head
Kefu Chai [Mon, 4 Sep 2017 05:51:34 +0000 (13:51 +0800)]
osd: update info only if new_interval

refactor OSD::build_initial_pg_history() so we update the info only if a
new interval is identified. also, this is consistent with
OSD::build_past_intervals_parallel().

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17435 from liupan1111/wip-fix-spdk-perf
Haomai Wang [Mon, 4 Sep 2017 05:33:43 +0000 (22:33 -0700)]
Merge pull request #17435 from liupan1111/wip-fix-spdk-perf

bluestore/NVMEDevice: accurate the latency perf counter of queue latency

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agobluestore/NVMEDevice: accurate the latency of queue latency. 17435/head
Pan Liu [Mon, 4 Sep 2017 03:33:03 +0000 (11:33 +0800)]
bluestore/NVMEDevice: accurate the latency of queue latency.

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
7 years agobluestore/NVMEDevice: remove mm_pause according to the example givn by
Pan Liu [Mon, 4 Sep 2017 03:14:18 +0000 (11:14 +0800)]
bluestore/NVMEDevice: remove mm_pause according to the example givn by
spdk.

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
7 years agomgr: add the ip addr of standbys 16476/head
huanwen ren [Wed, 30 Aug 2017 08:47:24 +0000 (16:47 +0800)]
mgr: add the ip addr of standbys

we need to manage the ip addr of the "standbys" state,
because the hostname/gid is insufficient to locate the
Standby node. we add ip of the mgr standby to metadata.

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
7 years agobluestore/NVMEDevice: rename the perf counter *aio_write* to *write*,
Pan Liu [Mon, 4 Sep 2017 02:57:24 +0000 (10:57 +0800)]
bluestore/NVMEDevice: rename the perf counter *aio_write* to *write*,
because it will also statistic the latency of sync write

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
7 years agobluestore/NVMEDevice.cc: rename the thread from ceph-osd to
Pan Liu [Mon, 4 Sep 2017 02:49:11 +0000 (10:49 +0800)]
bluestore/NVMEDevice.cc: rename the thread from ceph-osd to
nvme-device-manager, to avoid name duplication with main thread
"ceph-osd"

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
7 years agoMerge pull request #17409 from liewegas/wip-21207
Xie Xingguo [Mon, 4 Sep 2017 01:20:40 +0000 (09:20 +0800)]
Merge pull request #17409 from liewegas/wip-21207

os/bluestore: separate finisher for deferred_try_submit

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Varada Kari <varada.kari@sandisk.com>
7 years agoMerge pull request #17395 from theanalyst/cli-rados-stat2
Xie Xingguo [Mon, 4 Sep 2017 01:18:20 +0000 (09:18 +0800)]
Merge pull request #17395 from theanalyst/cli-rados-stat2

cli: rados: support for high precision time using stat2

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17100 from mychoxin/yuanxin_vstart_default_bluestore
Xie Xingguo [Mon, 4 Sep 2017 01:17:07 +0000 (09:17 +0800)]
Merge pull request #17100 from mychoxin/yuanxin_vstart_default_bluestore

vstart.sh: use bluestore as default osd objectstore backend

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #16855 from amitkumar50/rgw_module
Yehuda Sadeh [Sun, 3 Sep 2017 05:25:42 +0000 (08:25 +0300)]
Merge pull request #16855 from amitkumar50/rgw_module

rgw: Initializes uninitialized members

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #17129 from C2python/clear_para
Yehuda Sadeh [Sun, 3 Sep 2017 05:23:59 +0000 (08:23 +0300)]
Merge pull request #17129 from C2python/clear_para

rgw: Remove unused Parameter in Function RGWConf::init()

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #15341 from chardan/jfw-wip-rand_makes_puppies_cry
Sage Weil [Sat, 2 Sep 2017 18:37:37 +0000 (13:37 -0500)]
Merge pull request #15341 from chardan/jfw-wip-rand_makes_puppies_cry

common: implement random number generator (following N3551)

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #15565 from gmayyyha/ceph-osd-help-output
Sage Weil [Sat, 2 Sep 2017 18:36:53 +0000 (13:36 -0500)]
Merge pull request #15565 from gmayyyha/ceph-osd-help-output

ceph-osd: some flags are not documented in the help output

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16942 from jcsp/wip-20888
Sage Weil [Sat, 2 Sep 2017 18:36:08 +0000 (13:36 -0500)]
Merge pull request #16942 from jcsp/wip-20888

mon: rate limit on health check update logging

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17404 from rzarzynski/wip-bs-ldout-in-stupid
Sage Weil [Sat, 2 Sep 2017 18:35:51 +0000 (13:35 -0500)]
Merge pull request #17404 from rzarzynski/wip-bs-ldout-in-stupid

os/bluestore: replace dout with ldout in StupidAllocator.

7 years agoMerge pull request #17406 from liewegas/wip-21206
Sage Weil [Sat, 2 Sep 2017 18:35:26 +0000 (13:35 -0500)]
Merge pull request #17406 from liewegas/wip-21206

qa/tasks/ceph_manager: revive osds before doing final rerr reset

7 years agoMerge pull request #17416 from xiexingguo/wip-handle-small-block
Sage Weil [Sat, 2 Sep 2017 18:35:15 +0000 (13:35 -0500)]
Merge pull request #17416 from xiexingguo/wip-handle-small-block

os/bluestore: handle small main device properly

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17423 from liewegas/wip-21203
Sage Weil [Sat, 2 Sep 2017 18:34:41 +0000 (13:34 -0500)]
Merge pull request #17423 from liewegas/wip-21203

osd: fix build_initial_pg_history

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agotest/librados/aio.cc: silence coverity with scope_guard 17431/head
Danny Al-Gaaf [Tue, 30 May 2017 10:31:19 +0000 (12:31 +0200)]
test/librados/aio.cc: silence coverity with scope_guard

Fix for:

CID 1313405 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable my_completion2 going out of scope
 leaks the storage it points to.

CID 1219522 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable my_completion going out of scope
 leaks the storage it points to.

CID 1219501 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable my_completion going out of scope
 leaks the storage it points to.

CID 1313406 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable my_completion2 going out of scope
 leaks the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
7 years agoc_read_operations.cc: silence coverity with scope_guard
Danny Al-Gaaf [Tue, 30 May 2017 10:27:57 +0000 (12:27 +0200)]
c_read_operations.cc: silence coverity with scope_guard

CID 1219593 (#1 of 1): Resource leak (RESOURCE_LEAK)
 leaked_storage: Variable completion going out of scope leaks
 the storage it points to.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
7 years agoLibradosTestStub.cc: memset struct sockaddr_in
Danny Al-Gaaf [Tue, 30 May 2017 10:01:58 +0000 (12:01 +0200)]
LibradosTestStub.cc: memset struct sockaddr_in

Fix for:

CID 1402624 (#1 of 1): Uninitialized scalar variable (UNINIT)
 uninit_use: Using uninitialized value sin. Field sin.sin_zero is
 uninitialized.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
7 years agocommon/Timer.h: ~SafeTimer needs to be virtual
Danny Al-Gaaf [Tue, 30 May 2017 09:29:42 +0000 (11:29 +0200)]
common/Timer.h: ~SafeTimer needs to be virtual

Fix for:

CID 1396232 (#1 of 1): Non-virtual destructor (VIRTUAL_DTOR)
 nonvirtual_dtor: Class librbd::<unnamed>::SafeTimerSingleton has a
 destructor and a pointer to it is upcast to class SafeTimer which
 doesn't have a virtual destructor.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
7 years agotest_ipaddr.cc: memset with 0 and not '0'
Danny Al-Gaaf [Tue, 30 May 2017 08:56:23 +0000 (10:56 +0200)]
test_ipaddr.cc: memset with 0 and not '0'

Fix for:

CID 1405070 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405071 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405073 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405074 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405075 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405077 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405083 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405086 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
CID 1405087 (#1 of 1): Memset fill value of '0' (NO_EFFECT)
 bad_memset: "memset" with fill value "'0'" (the zero character).
 memset(&net, 48, 28UL). (CWE-665)

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
7 years agoclient/MetaRequest.h: fix UNINIT_CTOR
Danny Al-Gaaf [Thu, 11 May 2017 14:37:26 +0000 (16:37 +0200)]
client/MetaRequest.h: fix UNINIT_CTOR

Fix for:

CID 717207 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
 uninit_member: Non-static class member dirp is not initialized
 in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
7 years agoclient/Client.cc: fix UNINIT_CTOR
Danny Al-Gaaf [Thu, 11 May 2017 14:34:48 +0000 (16:34 +0200)]
client/Client.cc: fix UNINIT_CTOR

Fix for:

CID 1406088 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
 uninit_member: Non-static class member root_ancestor is not
 initialized in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
7 years agocrush/CrushCompiler.cc: fix error handling
Danny Al-Gaaf [Thu, 11 May 2017 13:29:56 +0000 (15:29 +0200)]
crush/CrushCompiler.cc: fix error handling

calloc() does not take negative values, check return value from
get_max_buckets() and handle it correctly.

Fix for:

CID 1405301 (#1 of 1): Argument cannot be negative (NEGATIVE_RETURNS)
 negative_returns: arg_map.size is passed to a parameter that cannot
 be negative.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
7 years agoclient/Client.cc: fix USE_AFTER_FREE
Danny Al-Gaaf [Wed, 10 May 2017 18:42:36 +0000 (20:42 +0200)]
client/Client.cc: fix USE_AFTER_FREE

Don't call put_request() twice, it's already called by
unregister_request()

Fix for:

CID 1405360 (#1 of 1): Use after free (USE_AFTER_FREE)
 deref_arg: Calling put_request dereferences freed pointer request

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
7 years agotools/rbd/Utils.cc: yank features_set_specified and related logic
Danny Al-Gaaf [Wed, 10 May 2017 14:52:54 +0000 (16:52 +0200)]
tools/rbd/Utils.cc: yank features_set_specified and related logic

since it isn't used

Fix for:

CID 1394854 (#1 of 1): 'Constant' variable guards dead code (DEADCODE)
 dead_error_line: Execution cannot reach this statement:
 opts->set(RBD_IMAGE_OPTION_....
 Local variable features_set_specified is assigned only once, to a
 constant value, making it effectively constant throughout its scope.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
7 years agoMerge pull request #17304 from kungf/calc_replicated_acting
Sage Weil [Sat, 2 Sep 2017 02:07:33 +0000 (21:07 -0500)]
Merge pull request #17304 from kungf/calc_replicated_acting

osd/PG: remove unused parameter in calc_ec_acting

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17088 from zmedico/interval_set_intersection_of_optimization
Sage Weil [Sat, 2 Sep 2017 02:06:36 +0000 (21:06 -0500)]
Merge pull request #17088 from zmedico/interval_set_intersection_of_optimization

interval_set: optimize intersection_of

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #15816 from chardan/jfw-wip-consolidate-spinlocks
Sage Weil [Fri, 1 Sep 2017 21:28:03 +0000 (16:28 -0500)]
Merge pull request #15816 from chardan/jfw-wip-consolidate-spinlocks

common: consolidate spinlocks

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #17265 from zmedico/interval-set-intersection-insert-optimization
Sage Weil [Fri, 1 Sep 2017 21:27:42 +0000 (16:27 -0500)]
Merge pull request #17265 from zmedico/interval-set-intersection-insert-optimization

interval_set: optimize intersect_of insert operations

Reviewed-by: Adam Emerson <aemerson@redhat.com>
7 years agoMerge pull request #17391 from myoungwon/wip-proxywrite-cleanup
Sage Weil [Fri, 1 Sep 2017 21:26:50 +0000 (16:26 -0500)]
Merge pull request #17391 from myoungwon/wip-proxywrite-cleanup

osd: remove unused variable in do_proxy_write

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>