]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agobluestore/BitAllocator: Fix deadlock with musl libc 10634/head
John Coyle [Tue, 9 Aug 2016 17:57:42 +0000 (13:57 -0400)]
bluestore/BitAllocator: Fix deadlock with musl libc

pthread_rwlock_wrlock() behaviour is undefined when calling thread holds lock. Added unlock() in shutdown() to avoid deadlock in destructor.

http://pubs.opengroup.org/onlinepubs/7908799/xsh/pthread_rwlock_wrlock.html

Signed-off-by: John Coyle <dx9err@gmail.com>
9 years agoMerge pull request #10579 from dreamhost/wip-16928
Matt Benjamin [Fri, 5 Aug 2016 19:26:57 +0000 (15:26 -0400)]
Merge pull request #10579 from dreamhost/wip-16928

rgw: Fix civetweb IPv6

verified:  autobuild

9 years agoMerge pull request #10597 from pritha-srivastava/wip_ldap_fix
Matt Benjamin [Fri, 5 Aug 2016 19:02:55 +0000 (15:02 -0400)]
Merge pull request #10597 from pritha-srivastava/wip_ldap_fix

rgw: Fix for incorrect access key id in reworked ldap auth code.

verified non-regression (MS AD)

9 years agorgw: Fix for incorrect access key id reworked ldap auth code. 10597/head
Pritha Srivastava [Fri, 5 Aug 2016 16:13:33 +0000 (21:43 +0530)]
rgw: Fix for incorrect access key id reworked ldap auth code.

The reworked ldap code does not use the correct access key id in get_policy.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
9 years agoMerge pull request #10595 from tchaikov/wip-rocksdb
Jason Dillaman [Fri, 5 Aug 2016 15:41:00 +0000 (11:41 -0400)]
Merge pull request #10595 from tchaikov/wip-rocksdb

rocksdb: revert the change introduced by dc41731

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agorocksdb: revert the change introduced by dc41731 10595/head
Kefu Chai [Fri, 5 Aug 2016 15:33:52 +0000 (23:33 +0800)]
rocksdb: revert the change introduced by dc41731

dc41731 reverts the submodule reference of rocksdb, and point it to an
older version which fails to support ppc64le and AArch64.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10262 from dachary/wip-16580-ceph-disk-timeout
Yuri Weinstein [Fri, 5 Aug 2016 15:22:39 +0000 (08:22 -0700)]
Merge pull request #10262 from dachary/wip-16580-ceph-disk-timeout

ceph-disk: timeout ceph-disk to avoid blocking forever

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Ken Dreyer (Red Hat) <kdreyer@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.cz>
9 years agoMerge pull request #10491 from xiexingguo/xxg-wip-osdmon-2016-07-28
Yuri Weinstein [Fri, 5 Aug 2016 15:14:02 +0000 (08:14 -0700)]
Merge pull request #10491 from xiexingguo/xxg-wip-osdmon-2016-07-28

osd/OSDMonitor: misc. fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #9259 from xiexingguo/xxg-wip-fix-monclientpinger
Yuri Weinstein [Fri, 5 Aug 2016 15:12:29 +0000 (08:12 -0700)]
Merge pull request #9259 from xiexingguo/xxg-wip-fix-monclientpinger

mon: MonClient may hang on pinging an unresponsive monitor

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10593 from linuxbox2/ldap-bindv3-again
Casey Bodley [Fri, 5 Aug 2016 15:11:36 +0000 (11:11 -0400)]
Merge pull request #10593 from linuxbox2/ldap-bindv3-again

rgw ldap: enforce simple_bind w/LDAPv3

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #9718 from songbaisen/a8
Yuri Weinstein [Fri, 5 Aug 2016 15:09:58 +0000 (08:09 -0700)]
Merge pull request #9718 from songbaisen/a8

mon: clear list in better way

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10392 from stiopaa1/mon_monclient_moveCCancelMonCommand
Yuri Weinstein [Fri, 5 Aug 2016 15:09:07 +0000 (08:09 -0700)]
Merge pull request #10392 from stiopaa1/mon_monclient_moveCCancelMonCommand

mon/MonClient: move C_CancelMonCommand to cc file

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10470 from xiexingguo/xxg-wip-osd-2016-07-28
Yuri Weinstein [Fri, 5 Aug 2016 15:08:19 +0000 (08:08 -0700)]
Merge pull request #10470 from xiexingguo/xxg-wip-osd-2016-07-28

osd: minor performance improvements

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #10539 from jcsp/wip-mds-counters
John Spray [Fri, 5 Aug 2016 14:55:56 +0000 (15:55 +0100)]
Merge pull request #10539 from jcsp/wip-mds-counters

mds: add perf counters for MDLog replay and SessionMap

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agorgw ldap: enforce simple_bind w/LDAPv3 10593/head
Matt Benjamin [Fri, 5 Aug 2016 14:02:03 +0000 (10:02 -0400)]
rgw ldap: enforce simple_bind w/LDAPv3

Found by Harald Klein <hklein@redhat.com>.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
9 years agoMerge pull request #10542 from ktdreyer/doc-rbd-libvirt-logging
Jason Dillaman [Fri, 5 Aug 2016 13:52:06 +0000 (09:52 -0400)]
Merge pull request #10542 from ktdreyer/doc-rbd-libvirt-logging

doc: describe libvirt client logging

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #10488 from lande1234/wip-lan-testing
Jason Dillaman [Fri, 5 Aug 2016 13:20:37 +0000 (09:20 -0400)]
Merge pull request #10488 from lande1234/wip-lan-testing

rbd-mirror: add additional test scenarios

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #10573 from renhwztetecs/renhw-wip-doc-cephfs
John Spray [Fri, 5 Aug 2016 11:26:21 +0000 (12:26 +0100)]
Merge pull request #10573 from renhwztetecs/renhw-wip-doc-cephfs

doc/mds: fixup mds doc

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agomds: add perf counter for rate of replay 10539/head
John Spray [Tue, 2 Aug 2016 12:01:17 +0000 (13:01 +0100)]
mds: add perf counter for rate of replay

Useful for watching the progress of a daemon
in standby-replay or replay.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agomds: expose perf counters for SessionMap
John Spray [Sun, 31 Jul 2016 22:20:33 +0000 (23:20 +0100)]
mds: expose perf counters for SessionMap

So that we can see how many sessions exist via
the counters rather than only by looking at status.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #10512 from renhwztetecs/renhw-wip-mds-balancer
John Spray [Fri, 5 Aug 2016 11:01:12 +0000 (12:01 +0100)]
Merge pull request #10512 from renhwztetecs/renhw-wip-mds-balancer

mds/MDBalancer: cleanup

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #10485 from gregsfortytwo/wip-client-dump-complete
John Spray [Fri, 5 Aug 2016 11:00:05 +0000 (12:00 +0100)]
Merge pull request #10485 from gregsfortytwo/wip-client-dump-complete

client: include COMPLETE and ORDERED states in cache dump

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #10533 from gregsfortytwo/wip-mds-dispatch-refcount
John Spray [Fri, 5 Aug 2016 10:59:21 +0000 (11:59 +0100)]
Merge pull request #10533 from gregsfortytwo/wip-mds-dispatch-refcount

mds: fix up _dispatch ref-counting semantics

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #10540 from jcsp/wip-mds-multimds-standby
John Spray [Fri, 5 Aug 2016 10:58:32 +0000 (11:58 +0100)]
Merge pull request #10540 from jcsp/wip-mds-multimds-standby

mds: fix daemon selection when starting ranks

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agorgw: Fix civetweb IPv6 10579/head
Robin H. Johnson [Fri, 5 Aug 2016 00:15:18 +0000 (17:15 -0700)]
rgw: Fix civetweb IPv6

Commit c38e3cbb6f7c6221209f2b512cba18c564c895a4 introduced a second
compiled version of src/civetweb/src/civetweb.c, but did not pass the
configuration header (civetweb/include/civetweb_conf.h).

As a result, USE_IPV6 was not defined when it was compiled, and that
copy was included into the radosgw binary. This caused breakage for the
civetweb frontend when used with IPv6:
  rgw frontends = civetweb port=[::]:7480

Reintroduce the header so that civetweb is compiled correctly again.

Fixes: http://tracker.ceph.com/issues/16928
Backport: jewel
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
9 years agoMerge pull request #10565 from dzafman/wip-16672
David Zafman [Fri, 5 Aug 2016 00:01:12 +0000 (17:01 -0700)]
Merge pull request #10565 from dzafman/wip-16672

OSD crash with Hammer to Jewel Upgrade: void FileStore::init_temp_collections()

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #10545 from trociny/fixup-rbd-mirror-test
Jason Dillaman [Thu, 4 Aug 2016 21:01:57 +0000 (17:01 -0400)]
Merge pull request #10545 from trociny/fixup-rbd-mirror-test

qa/workunits/rbd: wait for image deleted before checking health

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agodoc: describe libvirt client logging 10542/head
Ken Dreyer [Tue, 2 Aug 2016 15:30:10 +0000 (09:30 -0600)]
doc: describe libvirt client logging

Describe how to configure logging and the admin socket for debugging RBD
libvirt clients.

Thanks to Jason Dillman <jdillama@redhat.com> on ceph-devel for this
information.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
9 years agoMerge pull request #10566 from batrick/mds-daemon-unused
John Spray [Thu, 4 Aug 2016 13:10:45 +0000 (14:10 +0100)]
Merge pull request #10566 from batrick/mds-daemon-unused

mds: remove unused MDSDaemon::objecter

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agodoc/mds: add generated files into the /etc/ceph/ 10573/head
huanwen ren [Thu, 4 Aug 2016 11:50:18 +0000 (19:50 +0800)]
doc/mds: add generated files into the /etc/ceph/

Fixes: 16906
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
9 years agomds: remove unused MDSDaemon::objecter 10566/head
Patrick Donnelly [Thu, 4 Aug 2016 02:03:28 +0000 (22:03 -0400)]
mds: remove unused MDSDaemon::objecter

Leftover from a2682edb76ceac428c686e0ac21c06511e27693e.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
9 years agoMerge pull request #10307 from pritha-srivastava/wip_s3_auth_rework
Matt Benjamin [Wed, 3 Aug 2016 16:39:26 +0000 (12:39 -0400)]
Merge pull request #10307 from pritha-srivastava/wip_s3_auth_rework

rgw: Rework of s3 LDAP Authentication code.

verified: MS AD

9 years agoos: Fix HashIndex::recursive_remove() to remove everything but original path 10565/head
David Zafman [Wed, 3 Aug 2016 05:32:02 +0000 (22:32 -0700)]
os: Fix HashIndex::recursive_remove() to remove everything but original path

Fixes: http://tracker.ceph.com/issues/16672
Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agofilestore: Clear objects before calling collection_list() again
David Zafman [Wed, 3 Aug 2016 06:26:41 +0000 (23:26 -0700)]
filestore: Clear objects before calling collection_list() again

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agofilestore: Improve logging
David Zafman [Wed, 3 Aug 2016 06:24:12 +0000 (23:24 -0700)]
filestore: Improve logging

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agomds/MDBalancer: change OPT_FLOAT to OPT_DOUBLE 10512/head
huanwen ren [Sat, 30 Jul 2016 05:50:24 +0000 (13:50 +0800)]
mds/MDBalancer: change OPT_FLOAT to OPT_DOUBLE

utime_t convert double in MDBalancer::tick(),
so g_conf->mds_bal_sample_interval should be set OPT_DOUBLE

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
9 years agomds/MDBalancer: redundance cleanup
huanwen ren [Fri, 29 Jul 2016 05:55:57 +0000 (13:55 +0800)]
mds/MDBalancer: redundance cleanup

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
9 years agomds/MDBalancer: some types of definitions are cleanup
huanwen ren [Fri, 29 Jul 2016 03:31:03 +0000 (11:31 +0800)]
mds/MDBalancer: some types of definitions are cleanup

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
9 years agomds/MDBalancer: add err info when ifstream open failure
huanwen ren [Thu, 28 Jul 2016 08:05:00 +0000 (16:05 +0800)]
mds/MDBalancer: add err info when ifstream open failure

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
9 years agoMerge remote-tracking branch 'upstream/pull/10543/head'
Patrick Donnelly [Tue, 2 Aug 2016 19:40:49 +0000 (15:40 -0400)]
Merge remote-tracking branch 'upstream/pull/10543/head'

* upstream/pull/10543/head:
  vstart.sh: only delete conf if -n

9 years agoMerge pull request #10492 from chhabaramesh/master
Igor Fedotov [Tue, 2 Aug 2016 18:43:41 +0000 (21:43 +0300)]
Merge pull request #10492 from chhabaramesh/master

os/bluestore: remove cmake warning from extent alloc functions

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agovstart.sh: only delete conf if -n 10543/head
Patrick Donnelly [Tue, 2 Aug 2016 18:13:18 +0000 (14:13 -0400)]
vstart.sh: only delete conf if -n

src/test/ceph_objectstore_tool.py depends on an implicit "-k" when not
creating a new cluster. (Deleting the conf file without -n makes no
sense anyway.)

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
9 years agoMerge pull request #10462 from dillaman/wip-16478
Mykola Golub [Tue, 2 Aug 2016 17:48:07 +0000 (20:48 +0300)]
Merge pull request #10462 from dillaman/wip-16478

rbd-mirror: non-primary image is recording journal events during image sync

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #10484 from dillaman/wip-16538
Mykola Golub [Tue, 2 Aug 2016 17:14:54 +0000 (20:14 +0300)]
Merge pull request #10484 from dillaman/wip-16538

rbd-mirror: image deleter should use pool id + global image uuid for key

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
9 years agoqa/workunits/rbd: wait for image deleted before checking health 10545/head
Mykola Golub [Tue, 2 Aug 2016 17:06:17 +0000 (20:06 +0300)]
qa/workunits/rbd: wait for image deleted before checking health

This is a fixup to the previous commit.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #10458 from gregsfortytwo/wip-doc-troubleshooting
John Spray [Tue, 2 Aug 2016 17:04:31 +0000 (18:04 +0100)]
Merge pull request #10458 from gregsfortytwo/wip-doc-troubleshooting

doc: extend the CephFS troubleshooting guide

Reviewed-by: Zack Cerza <zack@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #9695 from ktdreyer/doc-tarballs-url
Alfredo Deza [Tue, 2 Aug 2016 15:50:47 +0000 (11:50 -0400)]
Merge pull request #9695 from ktdreyer/doc-tarballs-url

doc: update canonical tarballs URL

Reviewed-by: Alfredo Deza <adeza@redhat.com>
9 years agoos/bluestore: remove cmake warning from extent alloc functions. 10492/head
Ramesh Chander [Fri, 29 Jul 2016 09:16:57 +0000 (02:16 -0700)]
os/bluestore: remove cmake warning from extent alloc functions.
link: http://tracker.ceph.com/issues/16766
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
9 years agoMerge pull request #10386 from ceph/wip-jlayton-nlink
John Spray [Tue, 2 Aug 2016 15:29:45 +0000 (16:29 +0100)]
Merge pull request #10386 from ceph/wip-jlayton-nlink

Fix attribute handling at lookup time

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #10541 from tchaikov/wip-cmake
Kefu Chai [Tue, 2 Aug 2016 15:10:08 +0000 (23:10 +0800)]
Merge pull request #10541 from tchaikov/wip-cmake

cmake: install ceph_test_rados_striper_api_*

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agocmake: install ceph_test_rados_striper_api_* 10541/head
Kefu Chai [Tue, 2 Aug 2016 14:37:45 +0000 (22:37 +0800)]
cmake: install ceph_test_rados_striper_api_*

so we can test them in ceph-qa-suite

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agotest: unit test cases for disabling librbd journal by policy 10462/head
Jason Dillaman [Wed, 27 Jul 2016 03:28:43 +0000 (23:28 -0400)]
test: unit test cases for disabling librbd journal by policy

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: utilize factory methods to create AioObjectRequest objects
Jason Dillaman [Wed, 27 Jul 2016 14:56:48 +0000 (10:56 -0400)]
librbd: utilize factory methods to create AioObjectRequest objects

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: convert AioObjectRequest/AioObjectRead classes to templates
Jason Dillaman [Wed, 27 Jul 2016 13:07:00 +0000 (09:07 -0400)]
librbd: convert AioObjectRequest/AioObjectRead classes to templates

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: move read callback helpers to narrowest scope
Jason Dillaman [Wed, 27 Jul 2016 13:54:44 +0000 (09:54 -0400)]
librbd: move read callback helpers to narrowest scope

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: convert AioImageRequest derived classes to templates
Jason Dillaman [Wed, 27 Jul 2016 03:26:08 +0000 (23:26 -0400)]
librbd: convert AioImageRequest derived classes to templates

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: removed namespace indentation from legacy classes
Jason Dillaman [Wed, 27 Jul 2016 12:49:44 +0000 (08:49 -0400)]
librbd: removed namespace indentation from legacy classes

Better follows the Ceph C++ style guide

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: do not record journal events if append is disabled by policy
Jason Dillaman [Wed, 27 Jul 2016 02:58:24 +0000 (22:58 -0400)]
librbd: do not record journal events if append is disabled by policy

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: remove unused journal replay canceled callback
Jason Dillaman [Wed, 27 Jul 2016 00:57:40 +0000 (20:57 -0400)]
librbd: remove unused journal replay canceled callback

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: optionally support disabling journal appends via policy
Jason Dillaman [Wed, 27 Jul 2016 00:48:13 +0000 (20:48 -0400)]
librbd: optionally support disabling journal appends via policy

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #10505 from wjwithagen/wip-wjw-dns-resolv
Casey Bodley [Tue, 2 Aug 2016 13:12:39 +0000 (09:12 -0400)]
Merge pull request #10505 from wjwithagen/wip-wjw-dns-resolv

src/common/dns_resolve.cc: reorder the includes

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agomds: fix daemon selection when starting ranks 10540/head
John Spray [Mon, 1 Aug 2016 00:29:14 +0000 (01:29 +0100)]
mds: fix daemon selection when starting ranks

Previously, if "standby for rank" was set, but
"standby for fscid" wasn't, the daemon wouldn't
be recognised as the right one for the rank,
and we would end up promoting some arbitrary
standby.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoceph: don't fudge the ctime in stat() unless it's really older than the mtime 10386/head
Jeff Layton [Mon, 1 Aug 2016 13:01:15 +0000 (09:01 -0400)]
ceph: don't fudge the ctime in stat() unless it's really older than the mtime

The current code just looks at the sec field, but the difference may
only be evident in the nsec field.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: only skip querying the MDS in _lookup when we have the necessary caps
Jeff Layton [Mon, 1 Aug 2016 13:01:15 +0000 (09:01 -0400)]
client: only skip querying the MDS in _lookup when we have the necessary caps

If we don't have the caps we'll need later, then we must reissue the
lookup to get them regardless of whether we have a lease on the
dentry.

Fixes: http://tracker.ceph.com/issues/16668
Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: plumb a mask argument into _lookup
Jeff Layton [Mon, 1 Aug 2016 13:01:14 +0000 (09:01 -0400)]
client: plumb a mask argument into _lookup

...and attempt to pass in a sane value there, based on what we'll do
with the resulting inode.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agoclient: add mask parameter to _do_lookup
Jeff Layton [Mon, 1 Aug 2016 13:01:14 +0000 (09:01 -0400)]
client: add mask parameter to _do_lookup

We need to allow callers to specify caps to acquire during a lookup, as
they may need to scrape certain info out of the inode later. Allow them
to pass in a mask. For now, _lookup just passes in 0 for the mask,
but verify_reply_trace passes in the regetattr_mask to match what we'd
request in the _getattr request if there were a traceless reply.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agotest: add a link count test
Jeff Layton [Mon, 1 Aug 2016 13:01:14 +0000 (09:01 -0400)]
test: add a link count test

...and use the lowlevel calls to emulate what ganesha would do. In
particular, it dumps its inode from the cache after an unlink. So
do a second lookup afterward and verify that the nlink field in the
struct stat is valid.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agodoc: add a new document on capabilities
Jeff Layton [Mon, 1 Aug 2016 13:01:14 +0000 (09:01 -0400)]
doc: add a new document on capabilities

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agocephfs: remove some unused constants
Jeff Layton [Tue, 2 Aug 2016 11:19:53 +0000 (07:19 -0400)]
cephfs: remove some unused constants

The CEPH_CAP_SFLOCK shift value (and the other constants derived from
it) are entirely unused. Ditto for CEPH_CAP_BITS. Just remove them.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
9 years agodoc/mds: consistent with "../doc/rados/deployment/index.rst"
huanwen ren [Tue, 2 Aug 2016 08:50:15 +0000 (16:50 +0800)]
doc/mds: consistent with "../doc/rados/deployment/index.rst"

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
9 years agoMerge pull request #10535 from dzafman/wip-cot-fix
Kefu Chai [Tue, 2 Aug 2016 07:37:57 +0000 (15:37 +0800)]
Merge pull request #10535 from dzafman/wip-cot-fix

test: Removeall merged after print_function commit needs a fix

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agotest: Removeall merged after print_function commit needs a fix 10535/head
David Zafman [Tue, 2 Aug 2016 05:29:56 +0000 (22:29 -0700)]
test: Removeall merged after print_function commit needs a fix

Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agomds: fix up _dispatch ref-counting semantics 10533/head
Greg Farnum [Tue, 2 Aug 2016 02:38:20 +0000 (19:38 -0700)]
mds: fix up _dispatch ref-counting semantics

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
9 years agoMerge pull request #10344 from xiexingguo:xxg-wip-pipe-2016-07-19-02
Josh Durgin [Mon, 1 Aug 2016 22:40:39 +0000 (15:40 -0700)]
Merge pull request #10344 from xiexingguo:xxg-wip-pipe-2016-07-19-02

msg/simple: apply prefetch policy more precisely

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Conflicts:
src/msg/simple/Pipe.cc (removed unneeded cast)

9 years agoMerge pull request #10532 from linuxbox2/rgw-ldap-recon
Ali Maredia [Mon, 1 Aug 2016 22:08:36 +0000 (18:08 -0400)]
Merge pull request #10532 from linuxbox2/rgw-ldap-recon

rgw: add reinit/rebind logic (ldap)

Reviewed-by: Ali Maredia <amaredia@redhat.com>
9 years agorgw: add reinit/rebind logic (ldap) 10532/head
Matt Benjamin [Mon, 1 Aug 2016 21:36:17 +0000 (17:36 -0400)]
rgw: add reinit/rebind logic (ldap)

Gracefully handle stale LDAP connections by rebinding--verified
with MS AD.  Rebind is attempted once per request until rebound--
not worse than misconfiguring the environment.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
9 years agoMerge pull request #10365 from majianpeng/osd-perfcounter
Yuri Weinstein [Mon, 1 Aug 2016 21:30:05 +0000 (14:30 -0700)]
Merge pull request #10365 from majianpeng/osd-perfcounter

osd/ReplicatedPG: for sync-read it don't cacl l_osd_op_r_prepare_lat.

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10450 from xiexingguo/xxg-wip-cleanup-options
Yuri Weinstein [Mon, 1 Aug 2016 21:29:39 +0000 (14:29 -0700)]
Merge pull request #10450 from xiexingguo/xxg-wip-cleanup-options

osd: cleanup options and other redundancies

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #10471 from xiexingguo/xxg-wip-fix-memdb-assert
Yuri Weinstein [Mon, 1 Aug 2016 21:28:39 +0000 (14:28 -0700)]
Merge pull request #10471 from xiexingguo/xxg-wip-fix-memdb-assert

kv/MemDB: fix assert triggerred by m_total_bytes underflow

9 years agoMerge pull request #9679 from xiexingguo/xxg-wip-fix-cephx
Yuri Weinstein [Mon, 1 Aug 2016 21:27:27 +0000 (14:27 -0700)]
Merge pull request #9679 from xiexingguo/xxg-wip-fix-cephx

auth/cephx: misc fixes

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #9734 from xiexingguo/xxg-wip-cleanup-omap
Yuri Weinstein [Mon, 1 Aug 2016 21:26:43 +0000 (14:26 -0700)]
Merge pull request #9734 from xiexingguo/xxg-wip-cleanup-omap

os/filestore: add sanity checks and cleanups for mount() process

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #10231 from yonghengdexin735/wip-zzz-paxosserver-type
Yuri Weinstein [Mon, 1 Aug 2016 21:25:27 +0000 (14:25 -0700)]
Merge pull request #10231 from yonghengdexin735/wip-zzz-paxosserver-type

mon/PaxosService: make the return value type inconsistent

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10340 from yuyuyu101/wip-16715
Yuri Weinstein [Mon, 1 Aug 2016 21:22:55 +0000 (14:22 -0700)]
Merge pull request #10340 from yuyuyu101/wip-16715

msg/async/AsyncConnection: replace Mutex with std::mutex for peformance

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10531 from scuttlemonkey/master
scuttlemonkey [Mon, 1 Aug 2016 20:14:30 +0000 (16:14 -0400)]
Merge pull request #10531 from scuttlemonkey/master

Add UK mirror and update copyright

9 years agodoc: added new UK Ceph mirror to doc and mirroring 10531/head
Patrick McGarry [Mon, 1 Aug 2016 20:03:25 +0000 (16:03 -0400)]
doc: added new UK Ceph mirror to doc and mirroring

Signed-off-by: Patrick McGarry <pmcgarry@redhat.com>
9 years agoMerge remote-tracking branch 'origin/master'
Patrick McGarry [Mon, 1 Aug 2016 19:59:08 +0000 (15:59 -0400)]
Merge remote-tracking branch 'origin/master'

9 years agoMerge pull request #10207 from prallabh/wip-16388
Casey Bodley [Mon, 1 Aug 2016 19:50:09 +0000 (15:50 -0400)]
Merge pull request #10207 from prallabh/wip-16388

rgw: Fix incorrect content length and range for zero sized objects during range requests

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #10510 from yehudasa/wip-16861
Casey Bodley [Mon, 1 Aug 2016 19:26:01 +0000 (15:26 -0400)]
Merge pull request #10510 from yehudasa/wip-16861

test_rgw_bencode: null terminate strings before checking

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #9944 from sileht/master
Josh Durgin [Mon, 1 Aug 2016 16:53:03 +0000 (09:53 -0700)]
Merge pull request #9944 from sileht/master

python-rados: extends ReadOp/WriteOp API

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #10098 from dzafman/wip-16568
Kefu Chai [Mon, 1 Aug 2016 16:26:54 +0000 (00:26 +0800)]
Merge pull request #10098 from dzafman/wip-16568

tools: New "removeall" used to remove head with snapshots

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #10085 from chengweiv5/fix-doc
Kefu Chai [Mon, 1 Aug 2016 16:17:29 +0000 (00:17 +0800)]
Merge pull request #10085 from chengweiv5/fix-doc

doc: ceph-deploy mon add doesn't take multiple nodes

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoFor range requests, let the range be dumped before the error is honored. 10207/head
root [Wed, 27 Jul 2016 12:35:50 +0000 (18:05 +0530)]
For range requests, let the range be dumped before the error is honored.

Signed-off-by: Pavan Rallabhandi <PRallabhandi@walmartlabs.com>
9 years agoFor zero sized objects, let the range adhere as per the RFC
root [Wed, 27 Jul 2016 12:34:19 +0000 (18:04 +0530)]
For zero sized objects, let the range adhere as per the RFC

Signed-off-by: Pavan Rallabhandi <PRallabhandi@walmartlabs.com>
9 years agoFor zero sized objects, return 416 during range requests
root [Wed, 27 Jul 2016 12:33:16 +0000 (18:03 +0530)]
For zero sized objects, return 416 during range requests

Signed-off-by: Pavan Rallabhandi <PRallabhandi@walmartlabs.com>
9 years agoMerge pull request #10480 from ceph/lifecycle-cleanup
Casey Bodley [Mon, 1 Aug 2016 14:59:31 +0000 (10:59 -0400)]
Merge pull request #10480 from ceph/lifecycle-cleanup

Clean up lifecycle thread

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: Rework of s3 LDAP Authentication code. 10307/head
Pritha Srivastava [Thu, 14 Jul 2016 10:33:48 +0000 (16:03 +0530)]
rgw: Rework of s3 LDAP Authentication code.

The LDAP authentication code has been reworked based
on the new authentication infrastructure.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
9 years agodoc/cephfs: fix up mds_standby_replay describe
huanwen ren [Mon, 1 Aug 2016 06:52:01 +0000 (14:52 +0800)]
doc/cephfs: fix up mds_standby_replay describe

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
9 years agomon/OSDMonitor: fix CEPH_FEATURE_SERVER_JEWEL of preprocess_boot() check 10491/head
xie xingguo [Fri, 29 Jul 2016 04:21:27 +0000 (12:21 +0800)]
mon/OSDMonitor: fix CEPH_FEATURE_SERVER_JEWEL of preprocess_boot() check

We shall check CEPH_FEATURE_SERVER_JEWEL carried by osd_features of
MOSDBoot message, as it will be properly filled by every OSD during
OSD::_send_boot() process.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agomon/OSDMonitor: expose require_kraken_osds flag to user
xie xingguo [Thu, 28 Jul 2016 11:17:34 +0000 (19:17 +0800)]
mon/OSDMonitor: expose require_kraken_osds flag to user

For newly created cluster the CEPH_OSDMAP_REQUIRE_KRAKEN will be
automatically set, while for existing clusters it will not.

This change add "require_jewel_osds" to white list, so user
can access it by the "ceph osd set *" command family.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge remote-tracking branch 'upstream/pull/10514/head'
Patrick Donnelly [Sat, 30 Jul 2016 20:33:29 +0000 (16:33 -0400)]
Merge remote-tracking branch 'upstream/pull/10514/head'

* upstream/pull/10514/head:
  src/vstart.sh: stop script aborting when ceph.cfg is not there

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>