Yehuda Sadeh
5e633a9d5c
Merge pull request #12767 from linuxbox2/rgw-invalid-aio-read4
...
rgw: remove invalid read size4
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2017-01-07 17:08:58 -08:00
optimistyzy
201d4fc606
NVMEDevice: Eliminate virt to physical address translation in data_buf_next_sge
...
After SPDK is updated, SPDK requires virtual address
instead of physical address in huge page memory. Thus,
we do not need to pass the physical address since SPDK
library will do the address translation work.If we
still use the original code, it seems a bug.
In this patch, we will also use spdk_zmalloc instead of
dpdk's rte_malloc_socket function.
Signed-off-by: optimistyzy <optimistyzy@gmail.com>
2017-01-08 08:17:32 +08:00
Matt Benjamin
c0233c4abb
rgw_rados: sanitize dout print in GWRados::get_obj_iterate_cb(...)
...
We cannot assume pbl may be deferenced. Per review, move the dout
print into the r < 0 condition--since it's now an error, make it's
trace level 0.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2017-01-07 18:34:47 -05:00
Matt Benjamin
d10c37adf9
rgw_rados: add guard assert in add_io()
...
Use the iterator-returning insert operation in std::map, check
assert the insert case. As a side effect, this makes use of the
inserted object record more clear.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2017-01-07 18:22:33 -05:00
Nathan Cutler
276ffb4631
tests: drop unused rbd_functional_tests.pl script
...
This script is no longer used.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-01-07 23:33:12 +01:00
Nathan Cutler
2484a55461
tests: subst repo and branch in qemu test urls
...
References: http://tracker.ceph.com/issues/18440
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-01-07 22:49:56 +01:00
Nathan Cutler
74689df754
tests: subst branch and repo in qa/tasks/qemu.py
...
References: http://tracker.ceph.com/issues/18440
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-01-07 22:49:54 +01:00
Nathan Cutler
ed0e8be0b2
tests: subst repo name in krbd/unmap/tasks/unmap.yaml
...
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-01-07 13:40:06 +01:00
Nathan Cutler
56e37e41f4
tests: subst repo name in qa/tasks/cram.py
...
Inspired by bcbe45d948
Fixes: http://tracker.ceph.com/issues/18440
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-01-07 13:40:06 +01:00
Jason Dillaman
a159f3d1c0
Merge pull request #12549 from trociny/wip-16555
...
librbd: permit removal of image being bootstrapped by rbd-mirror
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-01-06 17:57:53 -05:00
Jason Dillaman
21a8c69313
Merge pull request #12638 from yangdongsheng/rbd_remove_incompatible
...
librbd: don't continue to remove an image w/ incompatible features
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-01-06 17:56:53 -05:00
Dan Mick
54c2880152
Merge pull request #12787 from jamincollins/arch-linux
...
ceph-detect-init: adding Arch Linux support
Reviewed-by: Dan Mick <dmick@redhat.com>
2017-01-06 13:12:26 -08:00
Matt Benjamin
437a187c77
Merge pull request #11776 from ceph/wip-rgw-openssl-7
...
Wip rgw openssl 7
2017-01-06 12:08:38 -05:00
Jason Dillaman
9242a2e4e1
librados: blacklist_add should wait for latest OSD map
...
This ensures that future operations against the OSDs force
a OSD map update to notice the blacklisted client.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-01-06 11:53:21 -05:00
Jason Dillaman
c720f6e370
librbd: prevent assertion failure when journal IO is blacklisted
...
Fixes: http://tracker.ceph.com/issues/18429
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-01-06 11:53:20 -05:00
Jason Dillaman
418dcf29cb
librbd: ignore blacklist error when releasing exclusive lock
...
This ensures the journal and object map are properly closed so that the
image can be properly closed w/o failing any assertions.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-01-06 11:53:20 -05:00
Jason Dillaman
47b89f4d48
librbd: fail immediately if the exclusive lock cannot be acquired
...
Fixes: http://tracker.ceph.com/issues/16988
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-01-06 11:53:20 -05:00
Jason Dillaman
9a5a8c75a0
librbd: add new lock_get_owners / lock_break_lock API methods
...
If the client application supports failover, let the application
force break the current lock and blacklist the owner. This is
required in case the current lock owner is alive from the point-of-view
of librbd but failover was required due to a higher level reason.
Fixes: http://tracker.ceph.com/issues/18327
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-01-06 11:53:19 -05:00
Kefu Chai
cad369754f
Merge pull request #12096 from wjwithagen/wip-wjw-readme-20161121
...
README.FreeBSD: update current status
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-01-06 23:56:26 +08:00
Kefu Chai
0e0b7a0d58
Merge pull request #12628 from SUSE/wip-18309-alt
...
ceph_fuse: pid_file default to empty
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-01-06 23:28:49 +08:00
Jason Dillaman
23f60fee86
librbd: separate break lock logic into standalone state machine
...
The current lockers are now queried before the lock is attempted to
prevent any possible race conditions when one or more clients attempt
to break the lock of a dead client.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-01-06 10:22:59 -05:00
Jason Dillaman
03533b912c
librbd: separate locker query into standalone state machine
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-01-06 10:22:59 -05:00
Kefu Chai
9b430a8a04
Merge pull request #12811 from wjwithagen/wip-wjw-rbd-udev-blkid
...
cmake: cleanup the use of udev and blkid in target_link_lib()
Reviewed-by: Kefu Chai <kefu@redhat.com>
2017-01-06 22:26:39 +08:00
John Spray
9114d60d23
Merge pull request #12478 from renhwztetecs/renhw-wip-client-lookup_parent
...
client: don't request lookup parent if ino is root
Reviewed-by: John Spray <john.spray@redhat.com>
2017-01-06 13:19:15 +00:00
John Spray
a7b0b1f37d
Merge pull request #12276 from kylinstorage/wip-cleanup-makeshared
...
cleanup: use std::make_shared to replace new
Reviewed-by: John Spray <john.spray@redhat.com>
2017-01-06 13:11:03 +00:00
Nathan Cutler
53ec76c7d0
tests: add no_client_pidfile override to fs/recovery tests
...
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-01-06 12:06:25 +01:00
Nathan Cutler
fe13664c8e
tests: override yaml to set client pid file to empty string
...
Due to http://tracker.ceph.com/issues/18309 the pid file for fuse clients
should always be set to the empty string. (Teuthology's default ceph.conf
sets it to /var/run/ceph/$cluster-$name.pid)
This commit adds a reusable yaml facet for this purpose.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-01-06 12:05:31 +01:00
Willem Jan Withagen
b38aa145b2
Cmake: cleanup the use of udev and blkid in target_link_lib()
...
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-01-06 11:40:31 +01:00
Kefu Chai
fa1f4cef68
doc: update troubleshooting-pg with scrub/repair feature
...
update rados/troubleshooting/troubleshooting-pg.rst with the
scrub/repair feature
Fixes: http://tracker.ceph.com/issues/15786
Signed-off-by: David Zafman <dzafman@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-01-06 18:16:58 +08:00
Wei Jin
2421010a47
msg/async: avoid atomic variable overhead
...
1) there is already a lock to protect the count
2) no need to send signal during each callback
Signed-off-by: Wei Jin <wjin.cn@gmail.com>
2017-01-06 17:47:18 +08:00
Kefu Chai
2203a134d0
doc: update rados.8 with list-inconsistent-* commands
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-01-06 17:34:27 +08:00
Yan, Zheng
e281a0b9c1
mds: fix null pointer dereference in Locker::handle_client_caps
...
Locker::handle_client_caps delays processing cap message if the
corresponding inode is freezing or frozen. When the message gets
processed, client can have already closed the session.
Fixes: http://tracker.ceph.com/issues/18306
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2017-01-06 15:54:12 +08:00
Haomai Wang
95bc52abce
Merge pull request #12780 from optimistyzy/201714_1
...
NVMEDevice: optimize sector_size usage
Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Pan Liu <pan.liu@istuary.com>
2017-01-06 11:21:32 +08:00
Haomai Wang
836c5686b5
Merge pull request #12776 from optimistyzy/201714
...
cmake: remove Findpciaccess.cmake
Reviewed-by: Kefu Chai <kefu@redhat.com>
Reviewed-by: Pan Liu <pan.liu@istuary.com>
2017-01-06 11:20:27 +08:00
Josh Durgin
86f0ddb6c5
Merge pull request #12806 from yuriw/wip-fix-distro-master
...
qa: Using centos 7.2 for `latest` version
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-01-05 16:53:09 -08:00
Yuri Weinstein
6c00a64e87
Using centos 7.2 as latest version
...
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2017-01-06 00:26:13 +00:00
Josh Durgin
aa644c4ce2
Merge pull request #12804 from yuriw/wip-fix-distro-master
...
qa: Cleaned up distros to use `latest` versions
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-01-05 14:31:38 -08:00
Yuri Weinstein
b29faef354
qa: Cleaned up distros to use latest
versions
...
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2017-01-05 13:38:04 -08:00
Nathan Cutler
dd0c4a5685
fuse: remove dead code after usage() call
...
usage() calls generic_client_usage(), which calls exit(-1), which never
returns.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-01-05 21:26:46 +01:00
Nathan Cutler
2258f2f166
ceph_fuse: pid_file default to empty
...
Fixes: http://tracker.ceph.com/issues/18309
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-01-05 21:26:46 +01:00
Samuel Just
9d5fb726c6
Merge pull request #12788 from athanatos/wip-oi-mismatch
...
PrimaryLogPG: don't update digests for objects with mismatched names
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-01-05 12:13:54 -08:00
Jason Dillaman
9ad8fec43f
Merge pull request #12413 from ovh/wip-support-hammer-in-rbd_recover_tool
...
tools: support hammer in rbd_recover_tool
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-01-05 10:27:41 -05:00
Mykola Golub
18567fb9f9
Merge pull request #12050 from dillaman/wip-16180
...
librados: asynchronous selfmanaged_snap_create/selfmanaged_snap_remove APIs
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-01-05 17:18:11 +02:00
Kefu Chai
d58dcba22f
Merge pull request #12763 from wjwithagen/wip-wjw-freebsd-boostpython
...
CMakeLists.txt: boost_python.so requires libpython.*.so on FreeBSD
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-01-05 22:21:59 +08:00
Kefu Chai
053d40fc17
Merge pull request #12562 from majianpeng/rockdb-option
...
rocksdb: add option: writable_file_max_buffer_size = 0
Reviewed-by: Sage Weil <sage@redhat.com>
2017-01-05 22:12:57 +08:00
Loic Dachary
23e6de2b7d
Merge pull request #12760 from tchaikov/wip-18371
...
ceph-disk: convert none str to str before printing it
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Alfredo Deza <adeza@redhat.com>
2017-01-05 15:08:49 +01:00
Kefu Chai
0d5780c93d
Merge pull request #12728 from Liuchang0812/fix-17861
...
osd: add asock command to dump the scrub queue
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-01-05 22:07:31 +08:00
Kefu Chai
14d8d5d10f
Merge pull request #12775 from xiexingguo/xxg-wip-shutup-warning
...
common: get rid of "warning: ignoring return value of ‘strerror_r’"
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-01-05 21:59:30 +08:00
John Spray
5f6cdab80f
qa/tasks: add test_corrupt_backtrace
...
Validate that we get EIO and a damage table entry
when seeing a decode error on a backtrace.
Signed-off-by: John Spray <john.spray@redhat.com>
2017-01-05 13:41:59 +00:00
John Spray
6f489c74ac
mds: check for errors decoding backtraces
...
Fixes: http://tracker.ceph.com/issues/18311
Signed-off-by: John Spray <john.spray@redhat.com>
2017-01-05 13:41:59 +00:00