]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agolibrbd: snapshots should be created/removed against data pool 18043/head
Jason Dillaman [Fri, 29 Sep 2017 19:11:38 +0000 (15:11 -0400)]
librbd: snapshots should be created/removed against data pool

Fixes: http://tracker.ceph.com/issues/21567
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #17920 from dzafman/wip-21382
David Zafman [Fri, 29 Sep 2017 16:04:43 +0000 (09:04 -0700)]
Merge pull request #17920 from dzafman/wip-21382

Erasure code recovery should send additional reads if necessary

Fixes: http://tracker.ceph.com/issues/21382
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18036 from ownedu/wip-fix-asyncrdma-coredump
Haomai Wang [Fri, 29 Sep 2017 15:33:14 +0000 (10:33 -0500)]
Merge pull request #18036 from ownedu/wip-fix-asyncrdma-coredump

msg/async/rdma: fix a potential coredump when handling tx_buffers under heavy RDMA

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #17979 from dillaman/wip-21559
Mykola Golub [Fri, 29 Sep 2017 12:20:12 +0000 (15:20 +0300)]
Merge pull request #17979 from dillaman/wip-21559

rbd-mirror: forced promotion can result in incorrect status

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
7 years agoMerge pull request #18035 from tchaikov/wip-bit-cleanup
Sage Weil [Fri, 29 Sep 2017 12:03:16 +0000 (07:03 -0500)]
Merge pull request #18035 from tchaikov/wip-bit-cleanup

script/build-integration-branch: python3 compatible and pep8 clean

7 years agoMerge pull request #17846 from jecluis/wip-21300
Joao Eduardo Luis [Fri, 29 Sep 2017 10:25:56 +0000 (11:25 +0100)]
Merge pull request #17846 from jecluis/wip-21300

mon/MgrMonitor: read cmd descs if empty on update_from_paxos()

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoosd: For recovery get all possible shards to read on errors 17920/head
David Zafman [Fri, 22 Sep 2017 03:35:27 +0000 (20:35 -0700)]
osd: For recovery get all possible shards to read on errors

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoosd: Allow recovery to send additional reads
David Zafman [Fri, 22 Sep 2017 00:48:28 +0000 (17:48 -0700)]
osd: Allow recovery to send additional reads

For now it doesn't include non-acting OSDs
Added test for this case

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agotest: Allow modified options to existing setup functions
David Zafman [Thu, 21 Sep 2017 21:49:17 +0000 (14:49 -0700)]
test: Allow modified options to existing setup functions

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agotest: Use feature to get last array element
David Zafman [Wed, 27 Sep 2017 21:29:25 +0000 (14:29 -0700)]
test: Use feature to get last array element

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoMerge branch 'wip-fix-asyncrdma-coredump' of https://github.com/ownedu/ceph into... 18036/head
ownedu [Fri, 29 Sep 2017 06:00:29 +0000 (14:00 +0800)]
Merge branch 'wip-fix-asyncrdma-coredump' of https://github.com/ownedu/ceph into wip-fix-asyncrdma-coredump

7 years agomsg/async/rdma: fix a potential coredump when handling tx_buffers under
ownedu [Fri, 29 Sep 2017 05:50:23 +0000 (13:50 +0800)]
msg/async/rdma: fix a potential coredump when handling tx_buffers under
heavy RDMA traffic, there are chances to access a current_chunk which can
be beyond the range of pre-allocated Tx buffer pool thus causes a coredump

Signed-off-by: Yan Lei <yongyou.yl@alibaba-inc.com>
7 years agoFix a potential coredump when handling tx_buffers under heacy RDMA
ownedu [Fri, 29 Sep 2017 05:50:23 +0000 (13:50 +0800)]
Fix a potential coredump when handling tx_buffers under heacy RDMA
traffic, there are chances to access a current_chunk which can be beyond the
range of pre-allocated Tx buffer pool thus causes a coredump.

Signed-off-by: Yan Lei <yongyou.yl@alibaba-inc.com>
7 years agoscript/build-integration-branch: python3 compatible and pep8 clean 18035/head
Kefu Chai [Fri, 29 Sep 2017 04:03:15 +0000 (12:03 +0800)]
script/build-integration-branch: python3 compatible and pep8 clean

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge PR #17697 into master
Patrick Donnelly [Fri, 29 Sep 2017 01:26:06 +0000 (18:26 -0700)]
Merge PR #17697 into master

* refs/remotes/upstream/pull/17697/head:
pybind/ceph_volume_client: add get, put, and delete object interfaces
pybind/ceph_volume_client: remove 'compat_version'
pybind/ceph_volume_client: set the version

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17604 into master
Patrick Donnelly [Fri, 29 Sep 2017 01:26:04 +0000 (18:26 -0700)]
Merge PR #17604 into master

* refs/remotes/upstream/pull/17604/head:
client:fix a bug in lseek

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #16036 into HEAD
Patrick Donnelly [Fri, 29 Sep 2017 00:00:39 +0000 (17:00 -0700)]
Merge PR #16036 into HEAD

* refs/remotes/upstream/pull/16036/head:
mds: improve cap min/max ratio descriptions
mds: fix whitespace
mds: cap client recall to min caps per client
mds: fix conf types
mds: fix whitespace
doc/cephfs: add client min cache and max cache ratio describe
mds: adding tunable features for caps_per_client

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agomds: improve cap min/max ratio descriptions 16036/head
Patrick Donnelly [Thu, 28 Sep 2017 23:01:00 +0000 (16:01 -0700)]
mds: improve cap min/max ratio descriptions

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomds: fix whitespace
Patrick Donnelly [Thu, 28 Sep 2017 22:56:26 +0000 (15:56 -0700)]
mds: fix whitespace

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomds: cap client recall to min caps per client
Patrick Donnelly [Wed, 27 Sep 2017 17:39:01 +0000 (10:39 -0700)]
mds: cap client recall to min caps per client

Fixes: http://tracker.ceph.com/issues/21575
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #17774 from amitkumar50/cov-misc-4
Yuri Weinstein [Thu, 28 Sep 2017 22:53:57 +0000 (15:53 -0700)]
Merge pull request #17774 from amitkumar50/cov-misc-4

include,messages,rbd: Initialize counter,group_pool

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #17820 from zmedico/PGPool-update-optimize-with-subset-of
Yuri Weinstein [Thu, 28 Sep 2017 22:53:29 +0000 (15:53 -0700)]
Merge pull request #17820 from zmedico/PGPool-update-optimize-with-subset-of

osd/PGPool::update: optimize with subset_of

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17884 from kungf/stats_invalid_scrub
Yuri Weinstein [Thu, 28 Sep 2017 22:51:47 +0000 (15:51 -0700)]
Merge pull request #17884 from kungf/stats_invalid_scrub

osd: make scrub right now when pg stats_invalid is true

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Amit Kumar amitkuma@redhat.com
7 years agoMerge pull request #17984 from adamemerson/wip-lists-of-pointers-are-bad-in-options
Yuri Weinstein [Thu, 28 Sep 2017 22:50:05 +0000 (15:50 -0700)]
Merge pull request #17984 from adamemerson/wip-lists-of-pointers-are-bad-in-options

options: Do not use linked lists of pointers!

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17987 from xiexingguo/wip-kick-recovery-for-degraded-obj
Yuri Weinstein [Thu, 28 Sep 2017 22:48:51 +0000 (15:48 -0700)]
Merge pull request #17987 from xiexingguo/wip-kick-recovery-for-degraded-obj

osd/PrimaryLogPG: kick off recovery on backoffing a degraded object

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17662 from shashalu/fix-set-bucket-versioning
Yuri Weinstein [Thu, 28 Sep 2017 21:58:18 +0000 (14:58 -0700)]
Merge pull request #17662 from shashalu/fix-set-bucket-versioning

rgw: set bucket versioninig donot change versioning status if missing status in xml

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #17775 from theanalyst/rgw-keystone-logging
Yuri Weinstein [Thu, 28 Sep 2017 21:57:15 +0000 (14:57 -0700)]
Merge pull request #17775 from theanalyst/rgw-keystone-logging

rgw: avoid logging keystone revocation messages when not configured

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Amit Kumar amitkuma@redhat.com
7 years agoMerge pull request #17916 from cbodley/wip-21506
Yuri Weinstein [Thu, 28 Sep 2017 21:23:28 +0000 (14:23 -0700)]
Merge pull request #17916 from cbodley/wip-21506

rgw: dont reuse stale RGWObjectCtx for get_bucket_info()

7 years agoMerge pull request #17742 from adamemerson/wip-21389
Yuri Weinstein [Thu, 28 Sep 2017 21:11:32 +0000 (14:11 -0700)]
Merge pull request #17742 from adamemerson/wip-21389

rgw: Check payment operations in policy

Reviewed-by: Enming Zhang <enming.zhang@umcloud.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18023 from liewegas/wip-changelog
Sage Weil [Thu, 28 Sep 2017 20:26:25 +0000 (15:26 -0500)]
Merge pull request #18023 from liewegas/wip-changelog

debian/rules: no more ChangeLog

7 years agoMerge pull request #18002 from adamemerson/wip-21582
Matt Benjamin [Thu, 28 Sep 2017 20:08:34 +0000 (16:08 -0400)]
Merge pull request #18002 from adamemerson/wip-21582

rgw: Check bucket GetBucketLocation in policy

7 years agoMerge pull request #18024 from adamemerson/wip-21597
Matt Benjamin [Thu, 28 Sep 2017 19:44:24 +0000 (15:44 -0400)]
Merge pull request #18024 from adamemerson/wip-21597

rgw: Check bucket Website operations in policy

7 years agoMerge pull request #17839 from liewegas/wip-recovery-preemption
Sage Weil [Thu, 28 Sep 2017 19:14:01 +0000 (14:14 -0500)]
Merge pull request #17839 from liewegas/wip-recovery-preemption

osd: allow PG recovery scheduling preemption

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agodebian/rules: no more ChangeLog 18023/head
Sage Weil [Thu, 28 Sep 2017 17:55:35 +0000 (13:55 -0400)]
debian/rules: no more ChangeLog

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agorgw: Check bucket Website operations in policy 18024/head
Adam C. Emerson [Thu, 28 Sep 2017 17:54:32 +0000 (13:54 -0400)]
rgw: Check bucket Website operations in policy

Add code to check s3:GetBucketWebsite and s3:PutBucketWebsite
operations against bucket policy.

Fixes: http://tracker.ceph.com/issues/21597
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1493896
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoqa/suites/rados/singleton/all/recovery-preemption: add test 17839/head
Sage Weil [Wed, 27 Sep 2017 21:42:07 +0000 (17:42 -0400)]
qa/suites/rados/singleton/all/recovery-preemption: add test

This mirrors what I was testing locally.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18014 from theanalyst/doc-12.2.1
Sage Weil [Thu, 28 Sep 2017 17:06:15 +0000 (12:06 -0500)]
Merge pull request #18014 from theanalyst/doc-12.2.1

doc: 12.2.1 release notes

7 years agoMerge pull request #17973 from ligne/patch-1
Jos Collin [Thu, 28 Sep 2017 15:55:09 +0000 (15:55 +0000)]
Merge pull request #17973 from ligne/patch-1

doc: Fix typos in placement-groups.rst

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agodoc: add 12.2.1 to releases table 18014/head
Abhishek Lekshmanan [Thu, 28 Sep 2017 13:02:35 +0000 (15:02 +0200)]
doc: add 12.2.1 to releases table

Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
7 years agodoc: 12.2.1 release notes
Abhishek Lekshmanan [Thu, 28 Sep 2017 07:38:54 +0000 (09:38 +0200)]
doc: 12.2.1 release notes

Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
7 years agoMerge pull request #18000 from adamemerson/wip-21578
Matt Benjamin [Thu, 28 Sep 2017 15:20:31 +0000 (11:20 -0400)]
Merge pull request #18000 from adamemerson/wip-21578

rgw: Check bucket CORS operations in policy

7 years agoMerge pull request #17684 from majianpeng/bluefs-release-extents
Sage Weil [Thu, 28 Sep 2017 14:42:39 +0000 (09:42 -0500)]
Merge pull request #17684 from majianpeng/bluefs-release-extents

os/bluestore/BlueFS: move release unused extents work in _flush_and_syn_log

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18020 from theanalyst/doc-changelog-12.2.1
Sage Weil [Thu, 28 Sep 2017 13:56:12 +0000 (08:56 -0500)]
Merge pull request #18020 from theanalyst/doc-changelog-12.2.1

doc: add changelog for 12.2.1

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agodoc: add changelog for 12.2.1 18020/head
Abhishek Lekshmanan [Thu, 28 Sep 2017 13:53:35 +0000 (15:53 +0200)]
doc: add changelog for 12.2.1

Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
7 years agoMerge pull request #17769 from optimistyzy/97_new_opt
Sage Weil [Thu, 28 Sep 2017 13:30:44 +0000 (08:30 -0500)]
Merge pull request #17769 from optimistyzy/97_new_opt

os/bluestore/NVMEDevice: Remove using dpdk thread

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoMerge pull request #18001 from liewegas/wip-21417
Sage Weil [Thu, 28 Sep 2017 13:30:11 +0000 (08:30 -0500)]
Merge pull request #18001 from liewegas/wip-21417

os/bluestore: put cached attrs in correct mempool

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Varada Kari <varada.kari@gmail.com>
7 years agoMerge pull request #17755 from dillaman/wip-21353
Abhishek L [Thu, 28 Sep 2017 12:56:20 +0000 (14:56 +0200)]
Merge pull request #17755 from dillaman/wip-21353

doc/release-notes: ensure RBD users can blacklist prior to upgrade

Reviewed-By: Nathan Cutler <ncutler@suse.com>
7 years agoos/bluestore: move several buffer{ptr,list}s into cache_other mempool 18001/head
Sage Weil [Thu, 28 Sep 2017 12:02:50 +0000 (08:02 -0400)]
os/bluestore: move several buffer{ptr,list}s into cache_other mempool

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoos/bluestore: put new attrs in correct mempool too
Sage Weil [Thu, 28 Sep 2017 12:14:37 +0000 (08:14 -0400)]
os/bluestore: put new attrs in correct mempool too

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17966 from xiexingguo/wip-bluefs-kill-block-total
Xie Xingguo [Thu, 28 Sep 2017 11:04:31 +0000 (19:04 +0800)]
Merge pull request #17966 from xiexingguo/wip-bluefs-kill-block-total

os/bluestore/BlueFS: several cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18013 from tchaikov/wip-dashboard-favicon
John Spray [Thu, 28 Sep 2017 08:32:17 +0000 (09:32 +0100)]
Merge pull request #18013 from tchaikov/wip-dashboard-favicon

mgr/dashboard: use rel="icon" for favicon

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #17993 from jcsp/wip-21572
Kefu Chai [Thu, 28 Sep 2017 06:38:26 +0000 (14:38 +0800)]
Merge pull request #17993 from jcsp/wip-21572

mgr/dashboard: sort servers and OSDs in OSD list

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17937 from tchaikov/wip-automake-cleanup
Kefu Chai [Thu, 28 Sep 2017 06:05:16 +0000 (14:05 +0800)]
Merge pull request #17937 from tchaikov/wip-automake-cleanup

automake: remove files required by automake

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
7 years agomgr/dashboard: use rel="icon" for favicon 18013/head
Kefu Chai [Thu, 28 Sep 2017 05:46:31 +0000 (13:46 +0800)]
mgr/dashboard: use rel="icon" for favicon

shortcut is not a standard compliant link type, see
https://www.w3.org/TR/html5/links.html#linkTypes.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17991 from jcsp/wip-21570
Kefu Chai [Thu, 28 Sep 2017 05:22:22 +0000 (13:22 +0800)]
Merge pull request #17991 from jcsp/wip-21570

mgr/dashboard: handle null in format_number

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17986 from tchaikov/wip-doc-rgw-config
Kefu Chai [Thu, 28 Sep 2017 01:57:07 +0000 (09:57 +0800)]
Merge pull request #17986 from tchaikov/wip-doc-rgw-config

doc: fix hyper link to radosgw/config-ref

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #17926 from batrick/ptl-tool
Yuri Weinstein [Wed, 27 Sep 2017 22:06:10 +0000 (15:06 -0700)]
Merge pull request #17926 from batrick/ptl-tool

scripts: add ptl-tool for scripting merges

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
7 years agorgw: Check bucket GetBucketLocation in policy 18002/head
Adam C. Emerson [Wed, 27 Sep 2017 20:08:56 +0000 (16:08 -0400)]
rgw: Check bucket GetBucketLocation in policy

Add code to check s3:GetBucketLocation against bucket policy.

Fixes: http://tracker.ceph.com/issues/21582
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1493934
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoos/bluestore: put attrs in mempool
Sage Weil [Fri, 22 Sep 2017 12:09:37 +0000 (08:09 -0400)]
os/bluestore: put attrs in mempool

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agobuffer: add ptr::[try_]reassign_to_mempool
Sage Weil [Fri, 22 Sep 2017 12:08:52 +0000 (08:08 -0400)]
buffer: add ptr::[try_]reassign_to_mempool

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agorgw: Check bucket CORS operations in policy 18000/head
Adam C. Emerson [Wed, 27 Sep 2017 19:42:27 +0000 (15:42 -0400)]
rgw: Check bucket CORS operations in policy

Add code to check s3:GetCORS and s3:PutCORS operations against bucket
policy.

Fixes: http://tracker.ceph.com/issues/21578
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1494140
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoosd/PG: handle racy preemption
Sage Weil [Thu, 21 Sep 2017 16:37:13 +0000 (12:37 -0400)]
osd/PG: handle racy preemption

If we finish recovery/backfill and go active, but also get
preempted at the same time, we can ignore the event.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: allow local recovery reservations to be preempted
Sage Weil [Tue, 19 Sep 2017 20:26:40 +0000 (15:26 -0500)]
osd/PG: allow local recovery reservations to be preempted

If a PG has a higher recovery priority and a lower-priority item is in
progress, allow it to be preempted.  This triggers the RecoveryCancel
or BackfillCancel event with a 0 delay, which means it will immediately
re-request a reservation (and presumably wait).

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agocommon/AsyncReserver: support preemption
Sage Weil [Tue, 19 Sep 2017 20:25:05 +0000 (15:25 -0500)]
common/AsyncReserver: support preemption

If an (optional) preemption context is provided, use that to preempt
and existing reservation and grant a higher-priority one.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agorgw: Check bucket versioning operations in policy 17742/head
Adam C. Emerson [Wed, 27 Sep 2017 18:35:59 +0000 (14:35 -0400)]
rgw: Check bucket versioning operations in policy

Add code to check s3:GetBucketVersioning and s3:PutBucketVersioning
operations against bucket policy.

Fixes: http://tracker.ceph.com/issues/21389
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1490278
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agorgw: Check payment operations in policy
Adam C. Emerson [Thu, 14 Sep 2017 22:07:15 +0000 (18:07 -0400)]
rgw: Check payment operations in policy

Add code to check s3:GetBucketRequestPayment and
s3:PutBucketRequestPayment operations against bucket policy.

Fixes: http://tracker.ceph.com/issues/21389
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1490278
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoMerge pull request #17978 from alram/rbdmap-fix
Sage Weil [Wed, 27 Sep 2017 17:57:33 +0000 (12:57 -0500)]
Merge pull request #17978 from alram/rbdmap-fix

rbdmap: fix umount when multiple mounts use the same RBD

Reviewed-by: Dan Mick <dmick@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agomds: fix conf types
Patrick Donnelly [Wed, 27 Sep 2017 16:29:39 +0000 (09:29 -0700)]
mds: fix conf types

This correct an assertion failure.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomds: fix whitespace
Patrick Donnelly [Wed, 27 Sep 2017 16:29:23 +0000 (09:29 -0700)]
mds: fix whitespace

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #17962 from joscollin/wip-test-signed-unsigned-warning
Casey Bodley [Wed, 27 Sep 2017 14:26:49 +0000 (10:26 -0400)]
Merge pull request #17962 from joscollin/wip-test-signed-unsigned-warning

test: silence warnings from -Wsign-compare

Reviewed-by: Amit Kumar <amitkuma@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agomgr/dashboard: sort servers and OSDs in OSD list 17993/head
John Spray [Wed, 27 Sep 2017 14:13:48 +0000 (15:13 +0100)]
mgr/dashboard: sort servers and OSDs in OSD list

Fixes: http://tracker.ceph.com/issues/21572
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr/dashboard: handle null in format_number 17991/head
John Spray [Wed, 27 Sep 2017 13:33:58 +0000 (14:33 +0100)]
mgr/dashboard: handle null in format_number

Fixes: http://tracker.ceph.com/issues/21570
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agomgr/dashboard: remove ceph.com ref to favicon
John Spray [Wed, 27 Sep 2017 13:30:07 +0000 (14:30 +0100)]
mgr/dashboard: remove ceph.com ref to favicon

We have a local copy referenced in the very next line.

Signed-off-by: John Spray <john.spray@redhat.com>
7 years agorbd-mirror: ensure forced-failover cannot result in sync state 17979/head
Jason Dillaman [Tue, 26 Sep 2017 19:46:28 +0000 (15:46 -0400)]
rbd-mirror: ensure forced-failover cannot result in sync state

If the local image already exists and the local image isn't
registered in the remote journal, it should be assumed that
it's already in the replaying state so it can verify the
ancestry to detect split-brains.

Fixes: http://tracker.ceph.com/issues/21559
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agorbd-mirror: forced-promotion should interrupt replay delay to shut down
Jason Dillaman [Tue, 26 Sep 2017 18:21:42 +0000 (14:21 -0400)]
rbd-mirror: forced-promotion should interrupt replay delay to shut down

Fixes: http://tracker.ceph.com/issues/21559
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoosd/osd_types: kill osd_peer_stat_t 17987/head
xie xingguo [Wed, 27 Sep 2017 05:51:19 +0000 (13:51 +0800)]
osd/osd_types: kill osd_peer_stat_t

Which currently has no more consumers.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agodoc: Fix typos in placement-groups.rst 17973/head
Matt Boyle [Wed, 27 Sep 2017 10:11:23 +0000 (11:11 +0100)]
doc: Fix typos in placement-groups.rst

Signed-off-by: Matt Boyle <matt.boyle@gmail.com>
7 years agoMerge pull request #17988 from wumingqiao/wip-rados-update
Jos Collin [Wed, 27 Sep 2017 09:07:29 +0000 (09:07 +0000)]
Merge pull request #17988 from wumingqiao/wip-rados-update

include/rados: fix typo in librados.h

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoosd/PrimaryLogPG: kick off recovery on backoffing a degraded object
xie xingguo [Wed, 27 Sep 2017 08:05:56 +0000 (16:05 +0800)]
osd/PrimaryLogPG: kick off recovery on backoffing a degraded object

As we are now blocking frontend ops from accessing that very object!

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoinclude/rados: fix typo in librados.h 17988/head
wumingqiao [Wed, 27 Sep 2017 08:31:14 +0000 (16:31 +0800)]
include/rados: fix typo in librados.h

opeprate -> operate

Signed-off-by: wumingqiao <wumingqiao@inspur.com>
7 years agodoc: fix hyper link to radosgw/config-ref 17986/head
Kefu Chai [Wed, 27 Sep 2017 03:13:33 +0000 (11:13 +0800)]
doc: fix hyper link to radosgw/config-ref

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoosd/PGPool::update: optimize with subset_of 17820/head
Zac Medico [Wed, 27 Sep 2017 01:33:15 +0000 (18:33 -0700)]
osd/PGPool::update: optimize with subset_of

Replace expensive inverval_set intersection_of and operator==
calls with a single subset_of call. I borrowed this idea from
Piotr Dałek's "osd/PGPool: don't use intermediate interval set"
patch. The following benchmark program demonstrates a 38%
performance increase:

#include <iostream>
#include <chrono>
#include "include/interval_set.h"

#define NANOSECONDS(d) \
    std::chrono::duration_cast<std::chrono::nanoseconds>(d).count()

typedef uint64_t snapid_t;
typedef std::chrono::steady_clock::duration duration;

duration PGPool_update_old(const interval_set<snapid_t> &rs) {
  std::chrono::steady_clock::time_point start, end;
  interval_set<snapid_t> newly_removed_snaps, cached_removed_snaps;

  // initialize state
  cached_removed_snaps = rs;

  // start timed simulation
  start = std::chrono::steady_clock::now();

  {
    newly_removed_snaps = cached_removed_snaps;
    interval_set<snapid_t> intersection;
    intersection.intersection_of(newly_removed_snaps, cached_removed_snaps);

    assert(intersection == cached_removed_snaps);
    cached_removed_snaps.swap(newly_removed_snaps);
    newly_removed_snaps = cached_removed_snaps;
    newly_removed_snaps.subtract(intersection);
  }

  // end timed simulation
  end = std::chrono::steady_clock::now();

  return end - start;
}

duration PGPool_update_new(const interval_set<snapid_t> &rs) {
  std::chrono::steady_clock::time_point start, end;
  interval_set<snapid_t> newly_removed_snaps, cached_removed_snaps;

  // initialize state
  cached_removed_snaps = rs;

  // start timed simulation
  start = std::chrono::steady_clock::now();

  {
    newly_removed_snaps = cached_removed_snaps;

    assert(cached_removed_snaps.subset_of(newly_removed_snaps));
    interval_set<snapid_t> removed_snaps = newly_removed_snaps;
    newly_removed_snaps.subtract(cached_removed_snaps);
    cached_removed_snaps.swap(removed_snaps);
  }

  // end timed simulation
  end = std::chrono::steady_clock::now();

  return end - start;
}

int main(int argc, char *argv[])
{
  assert(argc == 3);
  const int sample_count = std::stoi(argv[1]);
  const int interval_count = std::stoi(argv[2]);
  const int interval_distance = 4;
  const int interval_size = 2;
  const int max_offset = interval_count * interval_distance;
  interval_set<snapid_t> removed_snaps;

  for (int i = 0; i < max_offset; i += interval_distance)
    removed_snaps.insert(i, interval_size);

  duration old_delta(0), new_delta(0);

  for (int i = 0; i < sample_count; ++i) {
    old_delta += PGPool_update_old(removed_snaps);
    new_delta += PGPool_update_new(removed_snaps);
  }

  float ratio = float(NANOSECONDS(old_delta)) / NANOSECONDS(new_delta);

  std::cout << ratio << std::endl;
}

Suggested-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
Signed-off-by: Zac Medico <zmedico@gmail.com>
7 years agoinverval_set: optimize subset_of with sequential search
Zac Medico [Tue, 26 Sep 2017 06:13:57 +0000 (23:13 -0700)]
inverval_set: optimize subset_of with sequential search

Optimize subset_of to use sequential search when it
performs better than the lower_bound method, for set
size ratios smaller than 10. This is analogous to
intersection_of behavior since commit 825470fcf919.

The subset_of method can be used in some cases as a
less-expensive alternative to the intersection_of
method, since subset_of can return early if any element
of the smaller set is not contained in the larger set,
and intersection_of has the added burden of storing
the intersecting elements.

Signed-off-by: Zac Medico <zmedico@gmail.com>
7 years agorbdmap: fix umount when multiple mounts use the same RBD 17978/head
Alexandre Marangone [Tue, 26 Sep 2017 18:35:04 +0000 (11:35 -0700)]
rbdmap: fix umount when multiple mounts use the same RBD

When a Kubernetes Pod consumes a RBD it is mounted two
times on the same host. When the host shutdown umount will
fail leading to a hung system

Signed-off-by: Alexandre Marangone <amarango@redhat.com>
7 years agoMerge pull request #17063 from bspark8/wip-dynamic-cli-info-f
Yuri Weinstein [Tue, 26 Sep 2017 23:02:19 +0000 (16:02 -0700)]
Merge pull request #17063 from bspark8/wip-dynamic-cli-info-f

osd: use dmclock library client_info_f function dynamically

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
7 years agoMerge pull request #17335 from Carudy/cxw
Yuri Weinstein [Tue, 26 Sep 2017 23:01:14 +0000 (16:01 -0700)]
Merge pull request #17335 from Carudy/cxw

crush: safe check for 'ceph osd crush swap-bucket'

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17410 from zmedico/PGPool-update-optimize-removed_snaps-compariso...
Yuri Weinstein [Tue, 26 Sep 2017 22:59:59 +0000 (15:59 -0700)]
Merge pull request #17410 from zmedico/PGPool-update-optimize-removed_snaps-comparison-when-possible

PGPool::update: optimize removed_snaps comparison when possible

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
7 years agocommon/options.h: Do not use linked lists of pointers 17984/head
Adam C. Emerson [Tue, 26 Sep 2017 22:37:31 +0000 (18:37 -0400)]
common/options.h: Do not use linked lists of pointers

Especially since we're just pushing things in from the end. The linked
list has more overhead, is slower, and adds no capability.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoMerge pull request #17980 from liewegas/wip-boost-url
Sage Weil [Tue, 26 Sep 2017 22:07:03 +0000 (17:07 -0500)]
Merge pull request #17980 from liewegas/wip-boost-url

make-dist,cmake: move boost tarball location to download.ceph.com

Reviewed-by: Jeff Layton <jlayton@redhat.com>
7 years agomake-dist,cmake: move boost tarball location to download.ceph.com 17980/head
Sage Weil [Tue, 26 Sep 2017 21:15:17 +0000 (17:15 -0400)]
make-dist,cmake: move boost tarball location to download.ceph.com

Sourceforge is down.  Also, we can hammer our servers instead of
theirs.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoinclude,messages,rbd: Initialize counter,group_pool 17774/head
amitkuma [Mon, 18 Sep 2017 13:50:23 +0000 (19:20 +0530)]
include,messages,rbd: Initialize counter,group_pool

Fixes the coverity issues:

** 1396182 Uninitialized scalar field
CID 1396182 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member counter is not initialized
in this constructor nor in any functions that it calls.

** 1396194 Uninitialized scalar field
CID 1396194 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member group_pool is not initialized
in this constructor nor in any functions that it calls

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
7 years agoMerge pull request #17589 from myENA/feature/20883-adminapi_sync_stats_master
Matt Benjamin [Tue, 26 Sep 2017 16:45:24 +0000 (12:45 -0400)]
Merge pull request #17589 from myENA/feature/20883-adminapi_sync_stats_master

rgw: admin api - add ability to sync user stats from admin api

7 years agoMerge pull request #17433 from C2python/check_action
Matt Benjamin [Tue, 26 Sep 2017 16:40:08 +0000 (12:40 -0400)]
Merge pull request #17433 from C2python/check_action

rgw: Return Error if Bucket Policy Contians Undefined Action

7 years agoMerge pull request #17969 from ceph/rbd-mirror-reboot
Jason Dillaman [Tue, 26 Sep 2017 16:10:16 +0000 (12:10 -0400)]
Merge pull request #17969 from ceph/rbd-mirror-reboot

systemd: rbd-mirror does not start on reboot

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoos/bluestore/BlueFS: check device id before using hint 17966/head
xie xingguo [Tue, 26 Sep 2017 11:35:10 +0000 (19:35 +0800)]
os/bluestore/BlueFS: check device id before using hint

As we might be allocating space from different devices (though
the chance is rare).

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoos/bluestore/BlueFS: drop redundant merge logic of pextents
xie xingguo [Tue, 26 Sep 2017 11:28:04 +0000 (19:28 +0800)]
os/bluestore/BlueFS: drop redundant merge logic of pextents

As Allocator will handle it automatically and efficiently!

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoos/bluestore/BlueFS: kill block_total
xie xingguo [Tue, 26 Sep 2017 08:52:08 +0000 (16:52 +0800)]
os/bluestore/BlueFS: kill block_total

As block_all will suffice for the same purpose.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #17929 from renhwztetecs/renhw-wip-mgrmon-command_descs_prefix
Sage Weil [Tue, 26 Sep 2017 13:38:14 +0000 (08:38 -0500)]
Merge pull request #17929 from renhwztetecs/renhw-wip-mgrmon-command_descs_prefix

mon/mgr: sync "mgr_command_descs","osd_metadata" and "mgr_metadata" prefixes to new mons

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17932 from jcsp/wip-21197
Sage Weil [Tue, 26 Sep 2017 13:36:24 +0000 (08:36 -0500)]
Merge pull request #17932 from jcsp/wip-21197

mgr: store declared_types in MgrSession

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17933 from jcsp/wip-17737
Sage Weil [Tue, 26 Sep 2017 13:35:52 +0000 (08:35 -0500)]
Merge pull request #17933 from jcsp/wip-17737

mgr: fix crashable DaemonStateIndex::get calls

Reviewed-by: Kefu Chai <kchai@redhat.com>