Commit Graph

56470 Commits

Author SHA1 Message Date
John Spray
48cd11fece 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>
2016-08-02 18:04:31 +01:00
Alfredo Deza
79b011881e Merge pull request #9695 from ktdreyer/doc-tarballs-url
doc: update canonical tarballs URL

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2016-08-02 11:50:47 -04:00
John Spray
01cd578cbc Merge pull request #10386 from ceph/wip-jlayton-nlink
Fix attribute handling at lookup time

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-08-02 16:29:45 +01:00
Kefu Chai
af113a4760 Merge pull request #10541 from tchaikov/wip-cmake
cmake: install ceph_test_rados_striper_api_*

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-08-02 23:10:08 +08:00
Kefu Chai
62e51717f3 cmake: install ceph_test_rados_striper_api_*
so we can test them in ceph-qa-suite

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-08-02 22:38:00 +08:00
Casey Bodley
4d95e5c00e 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>
2016-08-02 09:12:39 -04:00
Jeff Layton
14ee7bcbf0 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>
2016-08-02 07:20:08 -04:00
Jeff Layton
9e8476743e 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>
2016-08-02 07:20:08 -04:00
Jeff Layton
f3605d39e5 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>
2016-08-02 07:20:08 -04:00
Jeff Layton
a2ce16f8bf 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>
2016-08-02 07:20:08 -04:00
Jeff Layton
e8a898925a 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>
2016-08-02 07:20:08 -04:00
Jeff Layton
d85ba5758a doc: add a new document on capabilities
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2016-08-02 07:20:05 -04:00
Jeff Layton
c0bba0f9e4 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>
2016-08-02 07:20:05 -04:00
Kefu Chai
9fa7af97b5 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>
2016-08-02 15:37:57 +08:00
David Zafman
f58063578c test: Removeall merged after print_function commit needs a fix
Signed-off-by: David Zafman <dzafman@redhat.com>
2016-08-01 22:29:56 -07:00
Josh Durgin
98b9ed1d7c 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)
2016-08-01 15:40:39 -07:00
Ali Maredia
f9be456d34 Merge pull request #10532 from linuxbox2/rgw-ldap-recon
rgw: add reinit/rebind logic (ldap)

Reviewed-by: Ali Maredia <amaredia@redhat.com>
2016-08-01 18:08:36 -04:00
Matt Benjamin
9b8fccf687 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>
2016-08-01 17:36:17 -04:00
Yuri Weinstein
c39e671ce5 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>
2016-08-01 14:30:05 -07:00
Yuri Weinstein
9d811caf34 Merge pull request #10450 from xiexingguo/xxg-wip-cleanup-options
osd: cleanup options and other redundancies

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-08-01 14:29:39 -07:00
Yuri Weinstein
4f5e4dff68 Merge pull request #10471 from xiexingguo/xxg-wip-fix-memdb-assert
kv/MemDB: fix assert triggerred by m_total_bytes underflow
2016-08-01 14:28:39 -07:00
Yuri Weinstein
a602346880 Merge pull request #9679 from xiexingguo/xxg-wip-fix-cephx
auth/cephx: misc fixes

Reviewed-by: Sage Weil <sage@redhat.com>
2016-08-01 14:27:27 -07:00
Yuri Weinstein
ef97f9393b 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>
2016-08-01 14:26:43 -07:00
Yuri Weinstein
e08022f566 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>
2016-08-01 14:25:27 -07:00
Yuri Weinstein
8548a1e9bc 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>
2016-08-01 14:22:55 -07:00
scuttlemonkey
63c88a71f3 Merge pull request #10531 from scuttlemonkey/master
Add UK mirror and update copyright
2016-08-01 16:14:30 -04:00
Patrick McGarry
4f2f79ca32 doc: added new UK Ceph mirror to doc and mirroring
Signed-off-by: Patrick McGarry <pmcgarry@redhat.com>
2016-08-01 16:03:25 -04:00
Patrick McGarry
87c579cebe Merge remote-tracking branch 'origin/master' 2016-08-01 15:59:08 -04:00
Casey Bodley
4a90e648ed 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>
2016-08-01 15:50:09 -04:00
Casey Bodley
94db6ef834 Merge pull request #10510 from yehudasa/wip-16861
test_rgw_bencode: null terminate strings before checking

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-08-01 15:26:01 -04:00
Josh Durgin
ef9e8dc37d Merge pull request #9944 from sileht/master
python-rados: extends ReadOp/WriteOp API

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-08-01 09:53:03 -07:00
Kefu Chai
6c04c94d03 Merge pull request #10098 from dzafman/wip-16568
tools: New "removeall" used to remove head with snapshots

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-08-02 00:26:54 +08:00
Kefu Chai
43de9824db 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>
2016-08-02 00:17:29 +08:00
root
a3b5a461d2 For range requests, let the range be dumped before the error is honored.
Signed-off-by: Pavan Rallabhandi <PRallabhandi@walmartlabs.com>
2016-08-01 20:52:45 +05:30
root
67bfbf4102 For zero sized objects, let the range adhere as per the RFC
Signed-off-by: Pavan Rallabhandi <PRallabhandi@walmartlabs.com>
2016-08-01 20:52:45 +05:30
root
a94ec15a3b For zero sized objects, return 416 during range requests
Signed-off-by: Pavan Rallabhandi <PRallabhandi@walmartlabs.com>
2016-08-01 20:52:45 +05:30
Casey Bodley
e3ba5e8543 Merge pull request #10480 from ceph/lifecycle-cleanup
Clean up lifecycle thread

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-08-01 10:59:31 -04:00
Patrick Donnelly
9bef6cf85a
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>
2016-07-30 16:33:29 -04:00
Willem Jan Withagen
df49518642 src/vstart.sh: stop script aborting when ceph.cfg is not there
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2016-07-30 22:05:06 +02:00
Mykola Golub
77ec14a95b Merge pull request #10432 from dillaman/wip-16708
rbd-mirror: potential IO stall when using asok flush request

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-07-30 19:59:49 +03:00
Mykola Golub
df2aa585c4 Merge pull request #10341 from dillaman/wip-16223
rbd-mirror: reduce memory footprint during journal replay

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-07-30 19:28:02 +03:00
Mehdi Abaakouk
5c630e37a9 python-rados: Implements new write_ops
* rados_write_op_create
* rados_write_op_append
* rados_write_op_write_full
* rados_write_op_write
* rados_write_op_remove
* rados_write_op_truncate
* rados_write_op_zero

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
2016-07-30 10:15:20 +02:00
Mehdi Abaakouk
250e16538a python-rados: add some read_op/write_op methods
This change adds python API for the following C methods:
* rados_aio_write_op_operate
* rados_write_op_omap_set
* rados_read_op_set_flags
* rados_aio_read_op_operate

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
2016-07-30 10:15:09 +02:00
Kefu Chai
00b6fe11d2 Merge pull request #10489 from ceph/wip-cmake
cmake changes

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Ali Maredia <amaredia@redhat.com>
2016-07-30 13:24:32 +08:00
Yehuda Sadeh
4410eedc83 test_rgw_bencode: null terminate strings before checking
Fixes: http://tracker.ceph.com/issues/16861

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-07-29 16:07:01 -07:00
Greg Farnum
3421851fce doc: add some links to CephFS troubleshooting guide
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-07-29 13:59:22 -07:00
Greg Farnum
1c5778ecf9 doc: extend the CephFS troubleshooting guide
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-07-29 13:26:39 -07:00
Willem Jan Withagen
13d42705cc common/dns_resolve.h: Make sure the .h file has al required includes.
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2016-07-29 20:57:57 +02:00
Willem Jan Withagen
4557585447 src/common/dns_resolve.cc: reorder the includes
- dns_resolv.h should only be include after all the std-includes are
   made. Otherwise it will result into undefined structs/variables on
   FreeBSD/Clang

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2016-07-29 20:22:22 +02:00
Kefu Chai
a27bbaaebf cmake: link libcommon against pthread
as Thread.cc lives in libcommon, and global is not using libpthread
directly. so moving libpthread linkage from libglobal to libcommon.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-30 00:26:44 +08:00