Commit Graph

54746 Commits

Author SHA1 Message Date
xie xingguo
4828b2f205 mds: cancel context correctly if we already have required osdmap in hand
By simply deleting the fin, the callbacks will be requeued into
the specified finisher and recalled later, which is not the expected
behaviour.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-14 20:40:14 +08:00
John Spray
6d6828fe52 Merge pull request #9669 from ceph/wip-selinux
selinux: allow chown for self and setattr for /var/run/ceph

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-14 13:34:56 +01:00
John Spray
7925d1d29d Merge pull request #9346 from jcsp/wip-enable-quota
client: enable client_quota by default

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-14 13:31:13 +01:00
John Spray
8ef90af3ba Merge pull request #9591 from ukernel/wip-16066
client: kill QuotaTree

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-14 13:29:52 +01:00
John Spray
b714f3004c Merge pull request #9651 from renhwztetecs/renhw-wip-mdcache
mds: fix mdsmap->get_metadata_pool() return to int64_t

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-14 13:26:43 +01:00
xie xingguo
510d0cc92f server: avoid duplicated call to utime_t
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-14 19:59:41 +08:00
xie xingguo
26931f888c server: negative error code when responding to client
As the comment suggests. Also a zero or positive return code
shall indicates a success, which does not match our intention here.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-14 19:32:01 +08:00
Mykola Golub
ba8ead5a4e Merge pull request #9672 from dillaman/wip-16260
librbd: do not shut down exclusive lock while acquiring

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-14 14:21:54 +03:00
Jason Dillaman
c49f70a6d3 Merge pull request #9653 from trociny/wip-16245
rbd-mirror: FAILED assert(!m_status_watcher)

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-06-14 06:55:10 -04:00
Mykola Golub
6ea199221c Merge pull request #9675 from dillaman/wip-16268
librbd: remove should ignore mirror errors from older OSDs

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-14 13:27:16 +03:00
Javier M. Mellid
dd9f53115a rgw: aws4: fix buffer sharing issue with chunked uploads
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
2016-06-14 11:15:24 +02:00
Sage Weil
780925c4a2 Merge pull request #9684 from chhabaramesh/master
os/bluestore: Fix for bit_alloc unit test case stack size and handle device that has less than block size at end.
2016-06-14 05:08:15 -04:00
Yan, Zheng
161954bbfe client: kill QuotaTree
Multiple clients can modify cephfs at the same time. It is
very tricky to keep QuotaTree consistant with the global FS
hiberarchy. This patch kills the quota tree.

After removing the quota tree, we traverse inode's path to
find quota root.

Fixes: http://tracker.ceph.com/issues/16066
Fixes: http://tracker.ceph.com/issues/16067
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-06-14 17:06:01 +08:00
Kefu Chai
9e28fe9953 Merge pull request #9668 from ceph/wip-rocksdb-wo-rdb
rocksdb: remove rdb source files from dist tarball

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-06-14 16:48:20 +08:00
Kefu Chai
64271f0345 test: fix ceph_test_cls_hello test
cls_register_cxx_filter() is exercised by cls_hello, so add the missing
stub for cls_register_cxx_filter() call.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-14 11:51:16 +08:00
xie xingguo
4c52bf9ed4 mds/SessionMap: avoid potential memory leak
This is safer and clean.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-14 11:34:58 +08:00
Ramesh Chander
32b3a8ac56 os/bluestore: Reduce stack size for bit alloc test case
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-06-13 20:33:09 -07:00
Ramesh Chander
6a2f04df5f os/bluestore: fix few calculations in bit alloc
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-06-13 20:33:09 -07:00
Kefu Chai
c01e3ebb6c Merge pull request #9678 from dzafman/wip-16273
test: Explicitly use tempfile delete= feature instead of os.unlink()

Reviewed-by: Kefu Chai <kefu@redhat.com>
2016-06-14 11:02:13 +08:00
xie xingguo
de8bc250b9 mds/SessionMap: explicitly require importing_count to be postive
The importing_count is of type int, thus it can go underflow and
assert(importing_count) can still return false positive while it
should not supposed to do so.

Also this can make the assert itself more sensitive, e.g., can
catch underflow errors.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-14 10:31:20 +08:00
xie xingguo
eabd0b7b7b server: remove redundant semicolon
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-14 09:43:58 +08:00
xie xingguo
bbbc326345 server: set terminating_sessions flag correctly
So caller won't do this multiple times.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-14 09:11:15 +08:00
Jason Dillaman
a1ea1edce9 librbd: track in-flight flush events for journaling
The tracking for flush events was accidentally dropped. This
can result in the journal being closed too early since it
might miss in-flight flush ops.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-13 20:21:13 -04:00
David Zafman
431871eae8 test: Explicitly use tempfile delete= feature instead of os.unlink()
The warning messages are caused by new delete= tempfile feature
trying to unlink a file after test has used os.unlink().

Signed-off-by: David Zafman <dzafman@redhat.com>
2016-06-13 15:59:55 -07:00
Matt Benjamin
2378709134 Merge pull request #9484 from jmunhoz/aws4-streaming
rgw: aws4: add STREAMING-AWS4-HMAC-SHA256-PAYLOAD support

verified (by hand)
2016-06-13 16:47:27 -04:00
Jason Dillaman
5a97a9b7ef librbd: remove should ignore mirror errors from older OSDs
Fixes: http://tracker.ceph.com/issues/16268
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-13 15:29:43 -04:00
Jason Dillaman
c5694fc676 librbd: do not shut down exclusive lock while acquiring
Fixes: http://tracker.ceph.com/issues/16260
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-13 12:06:40 -04:00
Mykola Golub
082f918a99 Merge pull request #9664 from dillaman/wip-16253
rbd-mirror: do not re-use image id from mirror directory if creating image

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-13 18:58:30 +03:00
John Spray
3c8b5f6308 Merge pull request #9588 from renhwztetecs/renhw-wip-mdsboot
mds: Ignore create_root_inode's access value

Reviewed-by: John Spray <john.spray@redhat.com>
2016-06-13 15:08:06 +01:00
Kefu Chai
b8ed93ac4e Merge pull request #9502 from tchaikov/wip-buffer-noexcept
common/buffer: add noexcept to ensure move ctor is used

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-06-13 21:49:41 +08:00
Jason Dillaman
da11f6d1f7 Merge pull request #9658 from runsisi/ss-wip-fix-rbd-mirror-doc
doc: fix typo for rbd-mirroring

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-06-13 09:29:12 -04:00
Mykola Golub
9f56d39cd2 Merge pull request #9657 from dillaman/wip-16235
librbd: avoid holding owner_lock waiting for exclusive lock

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-13 13:42:52 +03:00
Mykola Golub
7748d2e9ca Merge pull request #9661 from dillaman/wip-16248
qa/workunits: ensure replay has started before checking position

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-13 13:41:56 +03:00
Boris Ranto
2a6c738abd selinux: allow chown for self and setattr for /var/run/ceph
Fixes: http://tracker.ceph.com/issues/16126

Signed-off-by: Boris Ranto <branto@redhat.com>
2016-06-13 12:35:19 +02:00
xie xingguo
93d0fc9d93 mds/Mutation: remove redundant _dump method
The original passed in parameter "now" is useless, so
_dump method is identical to dump and shall be considered
as redundant.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-13 17:00:36 +08:00
Kefu Chai
bfed5fd5ef rocksdb: remove rdb source files from dist tarball
rdb is based on NodeJS, and we don't build rdb to use rocksdb as
a keyvaluestore backend.

Fixes: http://tracker.ceph.com/issues/13554
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-06-13 16:41:52 +08:00
xie xingguo
b686785704 mds: remove useless code
As scrub_dentry_next() never returns a negative result code,
it always returns 0, EAGAIN, ENOENT.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-06-13 16:38:07 +08:00
Jason Dillaman
1948047acb rbd-mirror: reset local image id when creating new image
Fixes: http://tracker.ceph.com/issues/16253
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-13 02:34:00 -04:00
Jason Dillaman
45dda67b3e rbd-mirror: handle an attempt to delete a non-mirrored image
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-13 02:33:59 -04:00
Jason Dillaman
7b2f99a97f cls_rbd: disallow setting an empty mirror image entry to disabling
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-13 02:03:29 -04:00
Haomai Wang
e7aff3da8b Merge pull request #9642 from yuyuyu101/wip-16237
msg/async/AsyncConnection: make verify auth callback without connection lock

Reviewed-by: Kefu Chai <kefu@redhat.com>
2016-06-13 13:35:59 +08:00
Kefu Chai
f7ddec3c58 Merge pull request #9213 from stiopaa1/replicatedpg_movetoforward
osd/ReplicatedPG.h: remove incorrect use of move

Reviewed-by: Adam Emerson <aemerson@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-06-13 13:09:21 +08:00
Kefu Chai
f9c48df52c Merge pull request #6967 from majianpeng/osd-full-skip-readop
osd: bypass readonly ops when osd full.

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-06-13 13:05:49 +08:00
Kefu Chai
3ab134363e Merge pull request #8913 from vumrao/wip-vumrao-15704
rados: Add cleanup message with time to rados bench output

Reviewed-by: David Zafman <dzafman@redhat.com>
2016-06-13 13:01:44 +08:00
Jason Dillaman
6a68b68e0d qa/workunits: ensure replay has started before checking position
Fixes: http://tracker.ceph.com/issues/16248
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-13 00:19:37 -04:00
runsisi
9ec13bb344 doc: fix typo for rbd-mirroring
Signed-off-by: runsisi <runsisi@zte.com.cn>
2016-06-13 10:05:11 +08:00
Jason Dillaman
b96ab805ee librbd: avoid holding owner_lock waiting for exclusive lock
Fixes: http://tracker.ceph.com/issues/16235
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-06-12 21:42:59 -04:00
Gregory Farnum
e223d2eaff Merge pull request #9374 from batrick/i16024
client: use fh min readahead to enable readahead

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-06-12 14:36:51 -07:00
Gregory Farnum
b3364be590 Merge pull request #8739 from ukernel/wip-14271
mds,client: sort dentries in hash order

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-06-12 14:21:39 -07:00
Mykola Golub
9dd0487af9 Merge pull request #9640 from dillaman/wip-16235
librbd: recursive lock possible when disabling journaling

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-06-12 20:39:25 +03:00