]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoqa/rgw: fix assertions in radosgw_admin task 14842/head
Casey Bodley [Thu, 27 Apr 2017 18:29:08 +0000 (14:29 -0400)]
qa/rgw: fix assertions in radosgw_admin task

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14816 from cbodley/wip-rgw-test-multi-list-fix
Casey Bodley [Thu, 27 Apr 2017 17:38:15 +0000 (13:38 -0400)]
Merge pull request #14816 from cbodley/wip-rgw-test-multi-list-fix

test/rgw: fix for empty lists as default arguments

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #14473 from ShiqiCooperation/master
Sage Weil [Thu, 27 Apr 2017 17:33:06 +0000 (12:33 -0500)]
Merge pull request #14473 from ShiqiCooperation/master

os/bluestore: assert blob map returns success

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14491 from liewegas/wip-bluestore-deferred-rewrite
Sage Weil [Thu, 27 Apr 2017 17:32:52 +0000 (12:32 -0500)]
Merge pull request #14491 from liewegas/wip-bluestore-deferred-rewrite

os/bluestore: rewrite deferred write handling

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #14695 from dachary/wip-choosleaf-stable
Sage Weil [Thu, 27 Apr 2017 17:32:31 +0000 (12:32 -0500)]
Merge pull request #14695 from dachary/wip-choosleaf-stable

crush: builder: legacy has chooseleaf_stable = 0

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14696 from dachary/wip-crush-workspace
Sage Weil [Thu, 27 Apr 2017 17:32:21 +0000 (12:32 -0500)]
Merge pull request #14696 from dachary/wip-crush-workspace

crush: crush_init_workspace starts with struct crush_work

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14814 from neha-ojha/wip-osd-filestore-default
Sage Weil [Thu, 27 Apr 2017 17:32:09 +0000 (12:32 -0500)]
Merge pull request #14814 from neha-ojha/wip-osd-filestore-default

osd: switch filestore to default to rocksdb

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14795 from tchaikov/wip-so-priority-cleanup
Kefu Chai [Thu, 27 Apr 2017 16:48:23 +0000 (00:48 +0800)]
Merge pull request #14795 from tchaikov/wip-so-priority-cleanup

msg/async: return right away in NetHandler::set_priority() if not supported

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #14802 from tchaikov/wip-mgr-cleanup
Sage Weil [Thu, 27 Apr 2017 16:43:32 +0000 (11:43 -0500)]
Merge pull request #14802 from tchaikov/wip-mgr-cleanup

mgr: various cleanups

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14807 from liewegas/wip-jewel-x
Sage Weil [Thu, 27 Apr 2017 16:43:12 +0000 (11:43 -0500)]
Merge pull request #14807 from liewegas/wip-jewel-x

ceph_test_rados_api_tier: tolerate ENOENT from 'pg scrub'

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14717 from liewegas/wip-bluestore-remove-max-ops
Yuri Weinstein [Thu, 27 Apr 2017 16:35:09 +0000 (09:35 -0700)]
Merge pull request #14717 from liewegas/wip-bluestore-remove-max-ops

os/bluestore: rename/fix throttle options

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #14819 from tchaikov/wip-objecter-more-constness
Sage Weil [Thu, 27 Apr 2017 16:26:45 +0000 (11:26 -0500)]
Merge pull request #14819 from tchaikov/wip-objecter-more-constness

osdc/Objecter: more constness

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14773 from viva64/sizeof_pointer
Yuri Weinstein [Thu, 27 Apr 2017 16:22:01 +0000 (09:22 -0700)]
Merge pull request #14773 from viva64/sizeof_pointer

src/msg/async/AsyncConnect.cc: Use of sizeof() on a Pointer Type

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #14782 from yuyuyu101/wip-rdma-perf
Yuri Weinstein [Thu, 27 Apr 2017 16:19:35 +0000 (09:19 -0700)]
Merge pull request #14782 from yuyuyu101/wip-rdma-perf

msg/async/rdma: add inqueue rx chunks perf counter

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14797 from wjwithagen/wip-wjw-freebsd-config-path
Yuri Weinstein [Thu, 27 Apr 2017 16:15:56 +0000 (09:15 -0700)]
Merge pull request #14797 from wjwithagen/wip-wjw-freebsd-config-path

common/config: Add /usr/local/etc/ceph to default paths

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14801 from tchaikov/wip-crypto-cleanup
Yuri Weinstein [Thu, 27 Apr 2017 16:15:25 +0000 (09:15 -0700)]
Merge pull request #14801 from tchaikov/wip-crypto-cleanup

crypto: cleanup NSPR in main thread

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #14805 from tchaikov/wip-mon-check-get
Yuri Weinstein [Thu, 27 Apr 2017 16:13:30 +0000 (09:13 -0700)]
Merge pull request #14805 from tchaikov/wip-mon-check-get

mon/OSDMonitor: check get()'s return value instead of bl's length

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14836 from idryomov/wip-krbd-wac-tests
Jason Dillaman [Thu, 27 Apr 2017 15:42:55 +0000 (11:42 -0400)]
Merge pull request #14836 from idryomov/wip-krbd-wac-tests

qa: krbd write-after-checksum tests

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #14803 from hrchu/rgwadmin-api-doc-usage-conf
Yehuda Sadeh [Thu, 27 Apr 2017 15:42:09 +0000 (08:42 -0700)]
Merge pull request #14803 from hrchu/rgwadmin-api-doc-usage-conf

doc: rgw: note rgw_enable_usage_log option in adminops guide

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #14824 from renhwztetecs/renhw-wip-mgr-bootstrap
Sage Weil [Thu, 27 Apr 2017 14:46:57 +0000 (09:46 -0500)]
Merge pull request #14824 from renhwztetecs/renhw-wip-mgr-bootstrap

mgr: mkdir bootstrap-mgr

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoqa: krbd write-after-checksum tests 14836/head
Ilya Dryomov [Wed, 26 Apr 2017 19:42:58 +0000 (21:42 +0200)]
qa: krbd write-after-checksum tests

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
8 years agocommon/config_opts.h: Allow for /usr/local/etc/ceph to hold keyrings 14797/head
Willem Jan Withagen [Thu, 27 Apr 2017 13:58:36 +0000 (15:58 +0200)]
common/config_opts.h: Allow for /usr/local/etc/ceph to hold keyrings

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #14831 from smithfarm/wip-stress-split
Sage Weil [Thu, 27 Apr 2017 13:43:30 +0000 (08:43 -0500)]
Merge pull request #14831 from smithfarm/wip-stress-split

tests: fix broken links in upgrade/hammer-jewel-x/stress-split

8 years agoMerge pull request #14751 from trociny/wip-19716
Jason Dillaman [Thu, 27 Apr 2017 12:25:01 +0000 (08:25 -0400)]
Merge pull request #14751 from trociny/wip-19716

test/librbd/test_notify.py: don't disable feature in slave

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agotests: fix broken links in upgrade/hammer-jewel-x/stress-split 14831/head
Nathan Cutler [Thu, 27 Apr 2017 12:03:04 +0000 (14:03 +0200)]
tests: fix broken links in upgrade/hammer-jewel-x/stress-split

Fixes: http://tracker.ceph.com/issues/19793
Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #14820 from tchaikov/wip-deb-maint-fun
Kefu Chai [Thu, 27 Apr 2017 10:47:14 +0000 (18:47 +0800)]
Merge pull request #14820 from tchaikov/wip-deb-maint-fun

debian: package crypto plugin only on amd64

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agomgr: mkdir bootstrap-mgr 14824/head
huanwen ren [Thu, 27 Apr 2017 08:21:02 +0000 (16:21 +0800)]
mgr: mkdir bootstrap-mgr

ceph-deploy rely on bootstrap-mgr
as follows: https://github.com/ceph/ceph-deploy/blob/master/ceph_deploy/mgr.py#L37

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
8 years agodebian: package crypto plugins only on amd64 14820/head
Kefu Chai [Thu, 27 Apr 2017 05:25:58 +0000 (13:25 +0800)]
debian: package crypto plugins only on amd64

currently, only plugin based on isa-l is installed. archs other than
amd64 will not have this directory or the plugin(s) residing in it.
hence dh_install will fail when trying to copy nonexistence file/dir.

* debian/ceph-common.install: chmod +x, and only install crypto on amd64
  so dh_install can filter the install list using dh-exec
* debian/control: depends on dh-exec now. dh-exec v0.13 introduces support
  for filtering based on architecture. see dh-exec's changelog for more
  details. but trusty only offers dh-exec v0.12. so do not require ">=
  0.13) at this moment.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocmake: os should depend on crypto_plugins not a certain plugin
Kefu Chai [Thu, 27 Apr 2017 05:28:12 +0000 (13:28 +0800)]
cmake: os should depend on crypto_plugins not a certain plugin

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocrypto: cleanup NSPR in main thread 14801/head
Kefu Chai [Wed, 26 Apr 2017 07:56:32 +0000 (15:56 +0800)]
crypto: cleanup NSPR in main thread

quote from nspr's header file

```
 * Perform a graceful shutdown of NSPR.  PR_Cleanup() may be called by
 * the primordial thread near the end of the main() function.
```

this helps to silence some warnings from valgrind. but it does not hurt
in practice, because the process is about to die. and the freed memory
chunks are only allocated once in NSPR.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoosdc/Objecter: more constness 14819/head
Kefu Chai [Wed, 26 Apr 2017 15:54:22 +0000 (23:54 +0800)]
osdc/Objecter: more constness

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14779 from smithfarm/wip-fix-arch-build
Kefu Chai [Thu, 27 Apr 2017 03:14:00 +0000 (11:14 +0800)]
Merge pull request #14779 from smithfarm/wip-fix-arch-build

build/ops: rpm: package crypto on x86_64 only

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agodoc: rgw: note rgw_enable_usage_log option in adminops guide 14803/head
hrchu [Wed, 26 Apr 2017 10:33:37 +0000 (10:33 +0000)]
doc: rgw: note rgw_enable_usage_log option in adminops guide

Signed-off-by: hrchu <petertc@gmail.com>
8 years agotest/rgw: fix for empty lists as default arguments 14816/head
Casey Bodley [Wed, 26 Apr 2017 23:20:37 +0000 (19:20 -0400)]
test/rgw: fix for empty lists as default arguments

i was incorrectly using [] as a default function argument, without
realizing that default values are mutable and shared across invocations

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14499 from mdw-at-linuxbox/wip-rgw-acl
Radoslaw Zarzynski [Wed, 26 Apr 2017 21:30:35 +0000 (23:30 +0200)]
Merge pull request #14499 from mdw-at-linuxbox/wip-rgw-acl

rgw: swift: ability to update swift read and write acls separately.

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoos/bluestore: narrow lock scope in _deferred_aio_finish 14491/head
Sage Weil [Wed, 19 Apr 2017 14:09:37 +0000 (10:09 -0400)]
os/bluestore: narrow lock scope in _deferred_aio_finish

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: use superclass for aio completions
Sage Weil [Mon, 17 Apr 2017 21:48:59 +0000 (17:48 -0400)]
os/bluestore: use superclass for aio completions

This is less fragile and more explicit than using the lower bit
of the priv pointer.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: restructure deferred writes
Sage Weil [Tue, 11 Apr 2017 21:54:57 +0000 (17:54 -0400)]
os/bluestore: restructure deferred writes

Explicitly aggregate deferred writes into a batch.  When we
submit, take the opportunity to coalesce contiguous writes.
Handle aio completion independently from the original txcs.

Note that this paves the way for a few additional steps:

1- we could make deallocations cancel deferred writes.
2- we could drop the txc deferred states entirely and rely on
the explicit deferred write batch machinery instead... if we
build an alternative way to complete the SharedBlob writes
and ensure the lifecycle issue are dealt with.  (I'm not sure
it would be worth it, but it might be.)

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore/KernelDevice: handle non-block-aligned backing file
Sage Weil [Wed, 12 Apr 2017 22:49:20 +0000 (18:49 -0400)]
os/bluestore/KernelDevice: handle non-block-aligned backing file

Fixes: http://tracker.ceph.com/issues/16644
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: switch filestore to default to rocksdb 14814/head
Neha Ojha [Wed, 26 Apr 2017 17:20:35 +0000 (10:20 -0700)]
osd: switch filestore to default to rocksdb

Signed-off-by: Neha Ojha <nojha@redhat.com>
8 years agoMerge pull request #14714 from cbodley/wip-19446
Casey Bodley [Wed, 26 Apr 2017 18:30:20 +0000 (14:30 -0400)]
Merge pull request #14714 from cbodley/wip-19446

rgw: dont spawn error_repo until lease is acquired

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #12720 from kylinstorage/wip-loop-invariant-code-motion
Sage Weil [Wed, 26 Apr 2017 18:04:12 +0000 (13:04 -0500)]
Merge pull request #12720 from kylinstorage/wip-loop-invariant-code-motion

osd/PG.cc: loop invariant code motion

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13053 from Ted-Chang/kstore-bloom-filter
Kefu Chai [Wed, 26 Apr 2017 16:29:45 +0000 (00:29 +0800)]
Merge pull request #13053 from Ted-Chang/kstore-bloom-filter

os/kstore: Added rocksdb bloom filter settings

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13070 from cbodley/wip-rgw-meta-sync-periods
Yehuda Sadeh [Wed, 26 Apr 2017 16:29:26 +0000 (09:29 -0700)]
Merge pull request #13070 from cbodley/wip-rgw-meta-sync-periods

rgw multisite: fixes for meta sync across periods

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #13061 from guzhongyan/fix_typo
Kefu Chai [Wed, 26 Apr 2017 16:26:01 +0000 (00:26 +0800)]
Merge pull request #13061 from guzhongyan/fix_typo

osd: fix typo in comment

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13824 from Jing-Scott/doc-update-swift-static-web
Kefu Chai [Wed, 26 Apr 2017 16:17:49 +0000 (00:17 +0800)]
Merge pull request #13824 from Jing-Scott/doc-update-swift-static-web

doc: update the support status of swift static website

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14715 from wangzhengyong/cmpext
Yuri Weinstein [Wed, 26 Apr 2017 15:53:47 +0000 (08:53 -0700)]
Merge pull request #14715 from wangzhengyong/cmpext

osd,librados: cmpext support

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: observe bluestore_throttle_cost_* options 14717/head
Sage Weil [Fri, 21 Apr 2017 14:50:25 +0000 (10:50 -0400)]
os/bluestore: observe bluestore_throttle_cost_* options

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: rename throttle configs: bluestore_throttle[_deferred]_bytes
Sage Weil [Fri, 21 Apr 2017 14:49:43 +0000 (10:49 -0400)]
os/bluestore: rename throttle configs: bluestore_throttle[_deferred]_bytes

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: remove bluestore_max_ops
Sage Weil [Fri, 21 Apr 2017 14:46:43 +0000 (10:46 -0400)]
os/bluestore: remove bluestore_max_ops

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14299 from rzarzynski/wip-rgw-deduplicate-rgw_make_bucket_entry_name
Casey Bodley [Wed, 26 Apr 2017 15:38:13 +0000 (11:38 -0400)]
Merge pull request #14299 from rzarzynski/wip-rgw-deduplicate-rgw_make_bucket_entry_name

rgw: deduplicate variants of rgw_make_bucket_entry_name().

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14552 from shashalu/fix-sync-status
Casey Bodley [Wed, 26 Apr 2017 15:10:03 +0000 (11:10 -0400)]
Merge pull request #14552 from shashalu/fix-sync-status

rgw: add 'state==SyncState::IncrementalSync' condition when add item …

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14808 from ceph/wip-hdd-throttle-cost
Sage Weil [Wed, 26 Apr 2017 15:04:24 +0000 (10:04 -0500)]
Merge pull request #14808 from ceph/wip-hdd-throttle-cost

common/config_opts: Set the HDD throttle cost to 1.5M

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agocommon/config_opts: Set the HDD throttle cost to 1.5M 14808/head
Mark Nelson [Wed, 26 Apr 2017 15:00:37 +0000 (10:00 -0500)]
common/config_opts: Set the HDD throttle cost to 1.5M

Signed-off-by: Mark Nelson <mnelson@redhat.com>
8 years agoMerge pull request #14785 from idryomov/wip-krbd-exclusive-option
Ilya Dryomov [Wed, 26 Apr 2017 14:25:31 +0000 (16:25 +0200)]
Merge pull request #14785 from idryomov/wip-krbd-exclusive-option

rbd: recognize exclusive option

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #14804 from hrchu/rgwAdmin-apiDoc-getUsageInfo
Sage Weil [Wed, 26 Apr 2017 13:48:56 +0000 (08:48 -0500)]
Merge pull request #14804 from hrchu/rgwAdmin-apiDoc-getUsageInfo

doc: rgw: Get user usage needs to specify user

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoceph_test_rados_api_tier: tolerate ENOENT from 'pg scrub' 14807/head
Sage Weil [Wed, 26 Apr 2017 13:47:09 +0000 (09:47 -0400)]
ceph_test_rados_api_tier: tolerate ENOENT from 'pg scrub'

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14780 from liewegas/wip-osdmap-mempool
Sage Weil [Wed, 26 Apr 2017 13:33:05 +0000 (08:33 -0500)]
Merge pull request #14780 from liewegas/wip-osdmap-mempool

osd: put osdmap in mempool

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoqa/workunits/rbd: test exclusive map option 14785/head
Ilya Dryomov [Mon, 24 Apr 2017 13:31:53 +0000 (15:31 +0200)]
qa/workunits/rbd: test exclusive map option

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
8 years agoMerge pull request #14781 from theanalyst/rgw/cleanup/ldap_err_msg
Matt Benjamin [Wed, 26 Apr 2017 13:04:15 +0000 (09:04 -0400)]
Merge pull request #14781 from theanalyst/rgw/cleanup/ldap_err_msg

rgw_ldap: log the ldap err in case of bind failure

8 years agorgw: remove rgw_realm_reconfigure_delay 13070/head
Casey Bodley [Tue, 21 Mar 2017 16:19:01 +0000 (12:19 -0400)]
rgw: remove rgw_realm_reconfigure_delay

when the master zone is changed, this config variable was increasing the
window of time where the old master zone would continue to handle
requests to modify metadata. those changes would not be reflected by the
new metadata master zone, and would be lost to the cluster

it was an attempt to optimize for the unlikely case of multiple period
changes in a short period of time, but the logic in reload() handles this
case correctly as is

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: require --yes-i-really-mean-it to promote zone with stale metadata
Casey Bodley [Tue, 21 Mar 2017 20:10:27 +0000 (16:10 -0400)]
rgw: require --yes-i-really-mean-it to promote zone with stale metadata

if a zone is promoted to master before it has a chance to sync from the
previous master zone, any metadata entries after its sync position will
be lost

print an error if 'period commit' is trying to promote a zone that is
more than one period behind the current master, and only allow the
commit to proceed if the --yes-i-really-mean-it flag is provided

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: period commit uses sync status markers
Casey Bodley [Mon, 20 Mar 2017 20:13:03 +0000 (16:13 -0400)]
rgw: period commit uses sync status markers

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: use RGWShardCollectCR for RGWReadSyncStatusCoroutine
Casey Bodley [Mon, 1 Aug 2016 19:21:52 +0000 (15:21 -0400)]
rgw: use RGWShardCollectCR for RGWReadSyncStatusCoroutine

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: change metadata read_sync_status interface
Casey Bodley [Mon, 1 Aug 2016 18:35:53 +0000 (14:35 -0400)]
rgw: change metadata read_sync_status interface

makes the same change to read_sync_status() in RGWMetaSyncStatusManager,
needed to support multiple concurrent readers for the rest interface

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agotest/rgw: sync status ignores shard markers from previous periods
Casey Bodley [Tue, 25 Apr 2017 19:32:26 +0000 (15:32 -0400)]
test/rgw: sync status ignores shard markers from previous periods

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: store realm epoch with sync status markers
Casey Bodley [Fri, 17 Mar 2017 13:55:47 +0000 (09:55 -0400)]
rgw: store realm epoch with sync status markers

sync status markers can't be compared between periods, so we need to
record the current period's realm epoch with its markers. when the
rgw_meta_sync_info.realm_epoch is more recent than the marker's
realm_epoch, we must treat the marker as empty

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: RGWBackoffControlCR only retries until success
Casey Bodley [Mon, 27 Feb 2017 20:19:54 +0000 (15:19 -0500)]
rgw: RGWBackoffControlCR only retries until success

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: clean up RGWInitDataSyncStatusCoroutine
Casey Bodley [Tue, 7 Mar 2017 17:28:33 +0000 (12:28 -0500)]
rgw: clean up RGWInitDataSyncStatusCoroutine

RGWInitDataSyncStatusCoroutine operates on a given rgw_data_sync_status
pointer, which saves us from having to read it back from rados

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: fix marker comparison to detect end of mdlog period
Casey Bodley [Tue, 7 Mar 2017 16:16:43 +0000 (11:16 -0500)]
rgw: fix marker comparison to detect end of mdlog period

Fixes: http://tracker.ceph.com/issues/18639
Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agorgw: add == and != operators for period history cursor
Casey Bodley [Tue, 23 Aug 2016 02:06:15 +0000 (22:06 -0400)]
rgw: add == and != operators for period history cursor

RGWMetaSyncCR was using operator== but it always returned true!

Signed-off-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #13067 from cbodley/wip-rgw-test-multi-periods
Casey Bodley [Wed, 26 Apr 2017 12:50:00 +0000 (08:50 -0400)]
Merge pull request #13067 from cbodley/wip-rgw-test-multi-periods

test/rgw: fixes for test_multi_period_incremental_sync()

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agomon/OSDMonitor: check get()'s return value instead of bl's length 14805/head
Kefu Chai [Wed, 26 Apr 2017 12:17:42 +0000 (20:17 +0800)]
mon/OSDMonitor: check get()'s return value instead of bl's length

instead of assuming how the bl is encoded, we'd better rely on the
return code of get().

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agodoc: rgw: Get user usage needs to specify user 14804/head
hrchu [Wed, 26 Apr 2017 10:47:58 +0000 (10:47 +0000)]
doc: rgw: Get user usage needs to specify user

Signed-off-by: hrchu <petertc@gmail.com>
8 years agomgr/MgrPyModule: no need to keep pClass and pModule around 14802/head
Kefu Chai [Wed, 26 Apr 2017 09:17:38 +0000 (17:17 +0800)]
mgr/MgrPyModule: no need to keep pClass and pModule around

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomgr: pass python interpreter's path to embedded python
Kefu Chai [Wed, 26 Apr 2017 08:00:11 +0000 (16:00 +0800)]
mgr: pass python interpreter's path to embedded python

* also do prevent python from registering its own signal handler, it does
  not make sense in our embedded use case.
* pass python interpreter's path to embedded python before initializing
  it. python uses this path to look up the "site" modules, etc.

so it can use other interpreter if it is not intalled into $PATH,
otherwise the "python" in $PATH will always be used even the
PYTHON_EXECUTABLE in CMake's cache is pointing to another python
interpreter.

if one want to debug ceph-mgr with a customize build python, this would
be helpful.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocmake: no need to link ceph-mgr against mds
Kefu Chai [Wed, 26 Apr 2017 07:54:15 +0000 (15:54 +0800)]
cmake: no need to link ceph-mgr against mds

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14796 from tchaikov/wip-init-ceph
Kefu Chai [Wed, 26 Apr 2017 08:52:00 +0000 (16:52 +0800)]
Merge pull request #14796 from tchaikov/wip-init-ceph

init-ceph: should have a space before "]"

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agocommon/config: Add /usr/local/etc/ceph to default paths
Willem Jan Withagen [Wed, 26 Apr 2017 07:45:37 +0000 (09:45 +0200)]
common/config: Add /usr/local/etc/ceph to default paths

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agosrc/msg/async/AsyncConnect.cc: PVS-Studio: CWE-467 Use of sizeof() on a Pointer Type 14773/head
Svyatoslav [Tue, 25 Apr 2017 12:52:53 +0000 (15:52 +0300)]
src/msg/async/AsyncConnect.cc: PVS-Studio: CWE-467 Use of sizeof() on a Pointer Type

Signed-off-by: Svyatoslav <razmyslov@viva64.com>
8 years agoinit-ceph: should have a space before "]" 14796/head
Kefu Chai [Wed, 26 Apr 2017 07:12:09 +0000 (15:12 +0800)]
init-ceph: should have a space before "]"

otherwise we will have

./bin/init-ceph: 269: [: missing ]

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomsg/async: return right away in NetHandler::set_priority() if not supported 14795/head
Kefu Chai [Wed, 26 Apr 2017 02:47:29 +0000 (10:47 +0800)]
msg/async: return right away in NetHandler::set_priority() if not supported

* SO_PRIORITY is linux specific, so no need to check __linux__
* early return if priority is less than 0 (maybe we should also return if
  it's higher than 6?), the less indent.
* store errno if fails to set SO_PRIORITY before printing log messages.
* guard the whole function with '#ifdef SO_PRIORITY' so on platforms
  where this option is not supported, this function will be a no-op.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12460 from umullan/bucketunlink
Kefu Chai [Wed, 26 Apr 2017 03:57:16 +0000 (11:57 +0800)]
Merge pull request #12460 from umullan/bucketunlink

doc: Correcting the remove bucket example and adding bucket link/unlink examples

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agodoc: Correcting the bucket unlink example with correct syntax 12460/head
Uday Mullangi [Tue, 13 Dec 2016 08:27:22 +0000 (13:57 +0530)]
doc: Correcting the bucket unlink example with correct syntax
Signed-off-by: Uday Mullangi <umullangi@walmartlabs.com>
8 years agoMerge pull request #14728 from dachary/wip-ceph-disk-lock
Kefu Chai [Wed, 26 Apr 2017 03:42:10 +0000 (11:42 +0800)]
Merge pull request #14728 from dachary/wip-ceph-disk-lock

ceph-disk: implement prepare --no-locking

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agotest/librados/c_operations: add cmpext tests 14715/head
wangzhengyong [Fri, 21 Apr 2017 10:09:10 +0000 (18:09 +0800)]
test/librados/c_operations: add cmpext tests
Dispatch compare-and-read and compare-and-write compound requests, and
confirm expected behaviour under compare and miscompare conditions.

Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
Signed-off-by: David Disseldorp <ddiss@suse.de>
8 years agoceph_test_rados_api_aio: add cmpext tests
wangzhengyong [Fri, 21 Apr 2017 10:01:48 +0000 (18:01 +0800)]
ceph_test_rados_api_aio: add cmpext tests
Write a buffer and compare it with a matching and non-matching buffer
via cmpext. Do this using rados_aio_cmpext(), ioctx.aio_cmpext() and
ioctx.aio_operate(op.cmpext())

Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
Signed-off-by: David Disseldorp <ddiss@suse.de>
8 years agolibrados: add cmpext API
wangzhengyong [Fri, 21 Apr 2017 09:01:11 +0000 (17:01 +0800)]
librados: add cmpext API
The compare-extent (cmpext) operation allows callers to compare existing
object contents with an arbitrary buffer. cmpext requests can be
compounded with read and write operations, allowing for atomic object
content updates. return 0 on success, negative error code
on failure, (-MAX_ERRNO - mismatch_off) on mismatch

This commit is based on Mike Christie's initial C++ API, with the
addition of AIO support and a C API. Response marshalling was also
reworked, so that the miscompare offset is unmarshalled transparently to
the caller.

Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
Signed-off-by: David Disseldorp <ddiss@suse.de>
8 years agoceph_test_rados_api_misc: add cmpext tests
wangzhengyong [Fri, 21 Apr 2017 08:57:24 +0000 (16:57 +0800)]
ceph_test_rados_api_misc: add cmpext tests

Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
Signed-off-by: Mike Christie <mchristi@redhat.com>
[ddiss@suse.de: add rados_cmpext() test coverage]
Reviewed-by: David Disseldorp <ddiss@suse.de>
8 years agoceph osd: add support for new op cmpext
wangzhengyong [Fri, 21 Apr 2017 08:51:09 +0000 (16:51 +0800)]
ceph osd: add support for new op cmpext
This adds support for a new op cmpext. The request will read
extent.length bytes and compare them to extent.length bytes at
extent.offset on disk. return 0 on success, negative error code
on failure, (-MAX_ERRNO - mismatch_off) on mismatch

rbd will use this in a multi op request to implement the
SCSI COMPARE_AND_WRITE request which is used by VMware for
its atomic test and set request.

Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
Signed-off-by: Mike Christie <mchristi@redhat.com>
[ddiss@suse.de: ReplicatedPG -> PrimaryLogPG]
Reviewed-by: David Disseldorp <ddiss@suse.de>
8 years agoMerge pull request #14755 from cbodley/wip-msg-direct
Yuri Weinstein [Tue, 25 Apr 2017 23:52:11 +0000 (16:52 -0700)]
Merge pull request #14755 from cbodley/wip-msg-direct

core: introduce DirectMessenger

Reviewed-by: Greg Farnum gfarnum@redhat.com
Reviewed-by: Sage Weil sage@redhat.com
8 years agoosd/OSDMap: put OSDMap[::Incremental] itself in mempool too 14780/head
Sage Weil [Tue, 25 Apr 2017 22:26:08 +0000 (18:26 -0400)]
osd/OSDMap: put OSDMap[::Incremental] itself in mempool too

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14783 from dachary/wip-crush-classe-test
Sage Weil [Tue, 25 Apr 2017 21:56:11 +0000 (16:56 -0500)]
Merge pull request #14783 from dachary/wip-crush-classe-test

test: use 7130 for crush-classes.sh

Reviewed-by: Dan Mick <dmick@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14651 from tchaikov/wip-silent-boost-build
Sage Weil [Tue, 25 Apr 2017 21:53:58 +0000 (16:53 -0500)]
Merge pull request #14651 from tchaikov/wip-silent-boost-build

cmake: pass -d0 to b2 if not CMAKE_VERBOSE_MAKEFILE

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14731 from ceph/wip-bluestore-type
Sage Weil [Tue, 25 Apr 2017 21:53:44 +0000 (16:53 -0500)]
Merge pull request #14731 from ceph/wip-bluestore-type

os/bluestore: use correct bound encode size for unused

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #14738 from liupan1111/wip-fix-initial
Sage Weil [Tue, 25 Apr 2017 21:53:23 +0000 (16:53 -0500)]
Merge pull request #14738 from liupan1111/wip-fix-initial

src/common: change last_work_queue to next_work_queue.

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14757 from dmick/wip-einval
Sage Weil [Tue, 25 Apr 2017 21:52:46 +0000 (16:52 -0500)]
Merge pull request #14757 from dmick/wip-einval

common: Better handling for missing/inaccessible ceph.conf files

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #14764 from Liuchang0812/wip-strip-pglog-op-name
Sage Weil [Tue, 25 Apr 2017 21:52:28 +0000 (16:52 -0500)]
Merge pull request #14764 from Liuchang0812/wip-strip-pglog-op-name

osd: strip pglog op name

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14772 from majianpeng/bluestore-remove-extentfreelist
Sage Weil [Tue, 25 Apr 2017 21:52:14 +0000 (16:52 -0500)]
Merge pull request #14772 from majianpeng/bluestore-remove-extentfreelist

os/bluestore: Remove ExtentFreeListManager.

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14777 from tchaikov/wip-19398
Sage Weil [Tue, 25 Apr 2017 21:51:53 +0000 (16:51 -0500)]
Merge pull request #14777 from tchaikov/wip-19398

osd/PGMonitor: always update pgmap with latest osdmap

Reviewed-by: Sage Weil <sage@redhat.com>