]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Casey Bodley [Wed, 6 Jul 2016 15:50:47 +0000 (11:50 -0400)]
rgw: convert bucket instance listings back to metadata key format
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Tue, 5 Jul 2016 13:00:19 +0000 (09:00 -0400)]
rgw: use tenant/ for bucket instance metadata keys
to work around the ambiguity of parsing tenant: and :shard in the same
bucket instance metadata key, use tenant/ instead
to preserve backward compatibility with existing objects, new helper
function rgw_bucket_instance_key_to_oid() converts this / back to a :
before being used as an object name
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Thu, 30 Jun 2016 22:09:03 +0000 (18:09 -0400)]
rgw: add get_key() methods to format rgw_buckets
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Sage Weil [Thu, 7 Jul 2016 17:40:42 +0000 (13:40 -0400)]
Merge pull request #10128 from xiexingguo/xxg-wip-bluestore-2016-07-05
os/bluestore: introduce power 2 macros for block alignment and rounding
Reviewed-by: Sage Weil <sage@redhat.com>
Casey Bodley [Thu, 7 Jul 2016 17:00:32 +0000 (13:00 -0400)]
Merge pull request #10180 from theanalyst/mrgw/cmake-fixes
mrgw: search for cmake build dir.
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Abhishek Lekshmanan [Thu, 7 Jul 2016 16:22:27 +0000 (18:22 +0200)]
mrgw: search for cmake build dir.
Similar to mstart and mstop, mrgw also needs to find the correct build
dir as we pass in the pidfile and asokfile which otherwise falls back to
src/run dir.
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
Ali Maredia [Thu, 7 Jul 2016 16:13:46 +0000 (12:13 -0400)]
Merge pull request #10116 from tchaikov/wip-cmake-make-check
test: make check using cmake
Reviewed-by: Ali Maredia <amaredia@redhat.com>
Casey Bodley [Thu, 7 Jul 2016 16:03:09 +0000 (12:03 -0400)]
Merge pull request #10097 from yehudasa/wip-mrun-cmake
mrun, mstart.sh, mstop.sh: search for cmake build directory
Reviewed-by: Casey Bodley <cbodley@redhat.com>
David Zafman [Thu, 7 Jul 2016 15:57:53 +0000 (08:57 -0700)]
Merge pull request #9489 from athanatos/wip-16156
ReplicatedPG: call op_applied for submit_log_entries based repops
Reviewed-by: David Zafman <dzafman@redhat.com>
Kefu Chai [Thu, 7 Jul 2016 15:17:11 +0000 (23:17 +0800)]
qa/workunits/ceph-helpers.sh: disable test_pg_scrub()
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Thu, 7 Jul 2016 13:45:52 +0000 (21:45 +0800)]
Merge pull request #10139 from SUSE/wip-cmake-really-fix-fcgi-include-dir
cmake: Really add FCGI_INCLUDE_DIR to include_directories for rgw
Reviewed-by: Kefu Chai <kchai@redhat.com>
Jason Dillaman [Thu, 7 Jul 2016 12:15:04 +0000 (08:15 -0400)]
Merge pull request #9981 from yangdongsheng/rbd_set_vals
cls_rbd: set omap values in batch during image creation
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Thu, 7 Jul 2016 12:09:40 +0000 (08:09 -0400)]
Merge pull request #10155 from trociny/wip-16555-workaround
qa/workunits/rbd: before removing image make sure it is not bootstrapped
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Kefu Chai [Thu, 7 Jul 2016 08:55:37 +0000 (16:55 +0800)]
Merge pull request #10164 from dillaman/wip-cmake-test-rbd-mirror
cmake: ceph_test_rbd_mirror does not require librados_test_stub
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Tim Serong [Tue, 5 Jul 2016 12:01:25 +0000 (22:01 +1000)]
cmake: Really add FCGI_INCLUDE_DIR to include_directories for rgw
Commit
3cf6c53 was incorrect. FCGI_INCLUDE_DIR doesn't need to be
set in src/rgw/CMakeLists.txt, but it does need to be set for the
rgw_a target in src/CMakeLists.txt, as well as for the
ceph_test_librgw_file and ceph_test_librgw_file_nfsns targets in
src/test/CMakeLists.txt. I can only assume that I must not have
done a completely clean rebuild at some point when testing a
reworked version of the earlier commit :-/
This is only a problem for distros that keep the FCGI headers in
/usr/include/fastcgi/ (e.g.: SUSE).
This commit also removes a redundant include of <fcgiapp.h>
Signed-off-by: Tim Serong <tserong@suse.com>
Kefu Chai [Thu, 7 Jul 2016 06:23:56 +0000 (14:23 +0800)]
Merge pull request #9083 from badone/wip-doc-last_epoch_started
doc/dev: Fix missing code section due to no lexer for "none"
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Thu, 7 Jul 2016 06:13:31 +0000 (14:13 +0800)]
Merge pull request #9704 from badone/wip-ceph-authtool-fixes
authtool: Enhance argument combinations validation
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Thu, 7 Jul 2016 04:41:54 +0000 (12:41 +0800)]
run-make-check.sh: use "make check" for running tests
"make all" does not offer "ceph-disk" and "ceph-detect-init" for
testing. as they are solely used for testing purpose. instead, these two
python command line packages are installed by the "install" target. so
we need to use "make check" to 1) prepare the test dependencies 2)
launch ctest to perform the test.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 6 Jul 2016 15:47:47 +0000 (23:47 +0800)]
Revert "cmake: add ceph-{disk,detect-init} to ALL"
This reverts commit
19c0731751df9642cc5b8c583ea41d12e0b5ec41 .
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 6 Jul 2016 02:43:55 +0000 (10:43 +0800)]
test//osd/osd-copy-from.sh: use absolute path for "rados put"
"rados -p rbd put foo rados" does not work if "rados" is not in current
path. so change it to "rados -p rbd put foo $(which rados)"
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Wed, 6 Jul 2016 02:36:53 +0000 (10:36 +0800)]
cmake: pass more env vars to osd-copy-from.sh
we should use the cmake function of add_ceph_test() to add
osd-copy-from.sh as a test. then we won't miss any env variables.
w/o this change, $CEPH_BUILD_VIRTUALENV is not passed to
osd-copy-from.sh.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 5 Jul 2016 13:01:00 +0000 (21:01 +0800)]
qa/workunits/cephtool/test.sh: respect $TMPDIR
create temp directory and files in $TMPDIR. the $TMPDIR is hard-wired to
/tmp before this change, we'd better respect the env variable $TMPDIR,
so it would be more consistent, and easier to do the cleanup if any.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 5 Jul 2016 12:52:27 +0000 (20:52 +0800)]
test: vstart_wrapper.sh run tests in $TMPDIR
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 5 Jul 2016 11:41:49 +0000 (19:41 +0800)]
run-make-check.sh: run "make check" with a unique $TMPDIR
Signed-off-by: Kefu Chai <kchai@redhat.com>
xie xingguo [Tue, 5 Jul 2016 08:10:33 +0000 (16:10 +0800)]
os/bluestore: use p2 macros to simplify _do_write_small() process
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Josh Durgin [Wed, 6 Jul 2016 23:19:52 +0000 (16:19 -0700)]
Merge pull request #9702 from BlaXpirit/ceph-argparse-py3
ceph.in: python 3 compatibility of the ceph CLI
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Wed, 6 Jul 2016 23:18:51 +0000 (16:18 -0700)]
Merge pull request #9749 from songbaisen/a10
mon: remove the redundant is_active judge in PaxosService
Reviewed-by: Samuel Just <sjust@redhat.com>
Josh Durgin [Wed, 6 Jul 2016 23:18:00 +0000 (16:18 -0700)]
Merge pull request #9792 from stiopaa1/mon_monitorcc_addMutexLocker
mon/Monitor.cc:replce lock/unlock with Mutex:Lockr
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Josh Durgin [Wed, 6 Jul 2016 23:17:20 +0000 (16:17 -0700)]
Merge pull request #9939 from Yan-waller/yj-wip-radosclientwaitforosd
rados/client: fix waiting on the condition variable more efficient.
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
Josh Durgin [Wed, 6 Jul 2016 23:16:18 +0000 (16:16 -0700)]
Merge pull request #9947 from yuyuyu101/wip-remove-check
osd: remove dispatch queue check since we don't queue hb message to this
Reviewed-by: Sage Weil <sage@redhat.com>
Josh Durgin [Wed, 6 Jul 2016 23:01:50 +0000 (16:01 -0700)]
Merge pull request #9833 from onyb/wip-rados-pypi
pybind: make rados ready for PyPI
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Wed, 6 Jul 2016 23:01:06 +0000 (19:01 -0400)]
Merge pull request #10109 from xiexingguo/xxg-wip-bluestore-2016-07-02
os/bluestore: simplify LRUCache::trim()
Reviewed-by: Sage Weil <sage@redhat.com>
Josh Durgin [Wed, 6 Jul 2016 22:57:28 +0000 (15:57 -0700)]
Merge pull request #8980 from stiopaa1/osd_unneededmapassign
osd/OSD.h: remove unneeded line
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Josh Durgin [Wed, 6 Jul 2016 22:56:13 +0000 (15:56 -0700)]
Merge pull request #8959 from hjwsm1989/hj-test
os/filestore/LFNIndex: remove unused variable 'subdir_path'
Reviewed-by: Samuel Just <sjust@redhat.com>
Josh Durgin [Wed, 6 Jul 2016 22:55:30 +0000 (15:55 -0700)]
Merge pull request #8687 from mslovy/wip-peering-msg-priority
message: optimization for message priority strategy
Reviewed-by: Samuel Just <sjust@redhat.com>
Sage Weil [Wed, 6 Jul 2016 18:41:42 +0000 (14:41 -0400)]
Merge pull request #10014 from gaowanlong/indent_caused_compile_warning
build: fix wrong indent caused compile warning
Reviewed-by: Sage Weil <sage@redhat.com>
Mykola Golub [Wed, 6 Jul 2016 18:33:59 +0000 (21:33 +0300)]
Merge pull request #9970 from dillaman/wip-16349
rbd-mirror: gracefully handle being blacklisted
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Jason Dillaman [Wed, 6 Jul 2016 17:51:42 +0000 (13:51 -0400)]
cmake: ceph_test_rbd_mirror does not require librados_test_stub
Linking both librados_test_stub and librados results in failed
test cases.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Ali Maredia [Wed, 6 Jul 2016 16:54:09 +0000 (12:54 -0400)]
Merge pull request #10016 from ceph/wip-cmake-rpm
rpm: build rpm with cmake
Reviewed-by: Ali Maredia <amaredia@redhat.com>
Sage Weil [Sat, 2 Jul 2016 11:50:34 +0000 (04:50 -0700)]
run-make-check.sh: run make check with cmake if do_cmake.sh is available
Signed-off-by: Sage Weil <sage@redhat.com>
Jason Dillaman [Fri, 24 Jun 2016 00:28:33 +0000 (20:28 -0400)]
rbd-mirror: gracefully restart pool replayer when blacklisted
Fixes: http://tracker.ceph.com/issues/16349
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 24 Jun 2016 00:28:02 +0000 (20:28 -0400)]
rbd-mirror: do not clear image replayer error code after shut down
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Thu, 23 Jun 2016 20:57:50 +0000 (16:57 -0400)]
rbd-mirror: image deleter should use provided librados connection
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Thu, 23 Jun 2016 20:03:03 +0000 (16:03 -0400)]
rbd-mirror: each pool replayer should use its own librados connection
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Kefu Chai [Wed, 6 Jul 2016 13:23:07 +0000 (21:23 +0800)]
Merge pull request #10145 from dillaman/wip-cmake-rbd-python
cmake: fix incorrect dependencies to librados
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
John Spray [Wed, 6 Jul 2016 13:16:21 +0000 (14:16 +0100)]
Merge pull request #10119 from renhwztetecs/renhw-wip-cdentry-dump
mds: fixup dump Formatter' type error; add path_ino and is_primary in the CDentry::dump()
Reviewed-by: John Spray <john.spray@redhat.com>
John Spray [Wed, 6 Jul 2016 13:13:45 +0000 (14:13 +0100)]
Merge pull request #10062 from renhwztetecs/renhw-wip-filer
client/filer: cleanup the redundant judgments of _write&&_fallocate
Reviewed-by: John Spray <john.spray@redhat.com>
John Spray [Wed, 6 Jul 2016 13:12:55 +0000 (14:12 +0100)]
Merge pull request #10027 from batrick/client-root-lock
client: add missing client_lock for get_root
Reviewed-by: John Spray <john.spray@redhat.com>
John Spray [Wed, 6 Jul 2016 13:12:09 +0000 (14:12 +0100)]
Merge pull request #10100 from fullerdj/wip-djf-16144
tools/cephfs: Remove cephfs-data-scan tmap_upgrade
Reviewed-by: John Spray <john.spray@redhat.com>
John Spray [Wed, 6 Jul 2016 13:11:21 +0000 (14:11 +0100)]
Merge pull request #9971 from fullerdj/wip-djf-16288
mds: Kill C_SaferCond in evict_sessions()
Reviewed-by: John Spray <john.spray@redhat.com>
Mykola Golub [Wed, 6 Jul 2016 09:59:25 +0000 (12:59 +0300)]
qa/workunits/rbd: before removing image make sure it is not bootstrapped
If an image is being bootstrapped, it implies that the rbd-mirror
daemon currently has the image open. The removal API will prevent the
removal of any image that is opened by another client.
Works-around: http://tracker.ceph.com/issues/16555
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Jason Dillaman [Wed, 6 Jul 2016 04:12:03 +0000 (00:12 -0400)]
cmake: fix incorrect dependencies to librados
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Kefu Chai [Wed, 29 Jun 2016 12:29:43 +0000 (20:29 +0800)]
rpm: build rpm with cmake
Signed-off-by: Kefu Chai <kchai@redhat.com>
Jason Dillaman [Wed, 6 Jul 2016 01:44:32 +0000 (21:44 -0400)]
Merge pull request #10136 from runsisi/sisi-wip-fix-missing-return
librbd: fix missing return statement if failed to get mirror image state
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Samuel Just [Tue, 5 Jul 2016 17:50:50 +0000 (10:50 -0700)]
Merge pull request #10094 from athanatos/wip-throttle-test
test/common/Throttle.cc: fix race in shutdown
Reviewed-by: David Zafman <dzafman@redhat.com>
Casey Bodley [Tue, 5 Jul 2016 17:37:15 +0000 (13:37 -0400)]
Merge pull request #10088 from pritha-srivastava/wip_s3_signedurl_errors
rgw: Fix for using port 443 with pre-signed urls.
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Ali Maredia [Tue, 5 Jul 2016 15:29:24 +0000 (11:29 -0400)]
Merge pull request #10112 from tchaikov/wip-cmake
cmake changes
Reviewed-by: Ali Maredia <amaredia@redhat.com>
Jason Dillaman [Tue, 5 Jul 2016 12:27:42 +0000 (08:27 -0400)]
Merge pull request #10134 from trociny/wip-run-rbd-tests-fixup
test: run-rbd-tests test cmake fixup
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Kefu Chai [Tue, 5 Jul 2016 09:46:39 +0000 (17:46 +0800)]
Merge pull request #10133 from tchaikov/wip-fixc-cephtool-test.sh
test: cephtool/test.sh: fix expect_false() calls
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Mykola Golub [Tue, 5 Jul 2016 08:44:45 +0000 (11:44 +0300)]
Merge pull request #10072 from dillaman/wip-16561
librbd: failed assertion after shrinking a clone image twice
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
runsisi [Tue, 5 Jul 2016 08:08:40 +0000 (16:08 +0800)]
librbd: fix missing return statement if failed to get mirror image state
Signed-off-by: runsisi <runsisi@zte.com.cn>
Kefu Chai [Tue, 5 Jul 2016 06:15:41 +0000 (14:15 +0800)]
test: cephtool/test.sh: fix expect_false with pipe
this fixes failures like,
/home/jenkins-build/build/workspace/ceph-pull-requests/qa/workunits/cephtool/test.sh:
line 32: ceph osd blacklist ls | grep 192.168.0.1: command not found
where the failure is not the "failure" we are expecting.
in our tests, following command
expect_false "ceph osd blacklist ls | grep 192.168.0.1"
is designed to to verify that "ceph osd blacklist ls | grep 192.168.0.1"
fails with non-zero return code. but expect_false() evaluates the command
line using plain "$@", which will send the arguments direct to the shell,
and $0 is "ceph auth get client.xx | grep caps | grep mon", which does
not exist and is not built-in command. so we need to check the grep
command instead.
for multiple piped command line, use
expect_false sh <<< "echo foo | grep bar | grep baz"
Signed-off-by: Kefu Chai <kchai@redhat.com>
xie xingguo [Tue, 5 Jul 2016 03:29:34 +0000 (11:29 +0800)]
os/bluestore: use p2 macros to simplify the _write() process
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Mykola Golub [Tue, 5 Jul 2016 06:27:00 +0000 (09:27 +0300)]
test: run-rbd-tests test cmake fixup
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Brad Hubbard [Sun, 19 Jun 2016 07:23:10 +0000 (17:23 +1000)]
tests: ceph-authtool, add test for empty "--add-key="
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
Brad Hubbard [Sun, 12 Jun 2016 10:10:25 +0000 (20:10 +1000)]
authtool: Enhance argument combinations validation
Under certain circumstances ceph-authtool can create invalid key entries in
the specified keyring and behave less than intuitively. What's worse these
keys can currently cause ceph daemons to crash. This patch attempts to tighten
the behaviour and eliminate the possibility an invalid key can be created.
Fixes: http://tracker.ceph.com/issues/2904
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
Mykola Golub [Tue, 5 Jul 2016 05:28:43 +0000 (08:28 +0300)]
Merge pull request #10076 from dillaman/wip-rbd-mirror-cmake
test: fix rbd-mirror workunit test cases for cmake
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Kefu Chai [Tue, 5 Jul 2016 05:03:46 +0000 (13:03 +0800)]
Merge pull request #9731 from badone/wip-doc-ceph-authtool-print-fix
doc: ceph-authtool man page option is --print-key not --print
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Tue, 5 Jul 2016 03:26:46 +0000 (11:26 +0800)]
Merge pull request #10124 from trociny/wip-cmake-tests
test: cmake related fixups for rbd tests
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
xie xingguo [Tue, 5 Jul 2016 03:04:31 +0000 (11:04 +0800)]
os/bluestore: fix potential access past eof during debugging prefill
1. pre-calculate r, so we don't have to do the division each loop, which
is expensive.
2. make sure the extent to be allocated is within the block device size.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
xie xingguo [Tue, 5 Jul 2016 02:31:52 +0000 (10:31 +0800)]
os/bluestore: introduce power 2 macros for block alignment and rounding
Macros for various sorts of alignment and rounding.
So we can get rid of the annoying division and mod operation and simplify
the blob/space access logic.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
xie xingguo [Sat, 2 Jul 2016 09:00:45 +0000 (17:00 +0800)]
os/bluestore: make sure path_fd is correctly closed during destruction
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
xie xingguo [Sat, 2 Jul 2016 08:29:41 +0000 (16:29 +0800)]
os/bluestore: simplify buffer eviction logic of LRUCache
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Mykola Golub [Sun, 3 Jul 2016 18:43:17 +0000 (21:43 +0300)]
test: fix run-rbd-tests test for cmake
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Mykola Golub [Mon, 4 Jul 2016 07:02:18 +0000 (10:02 +0300)]
test: fix run-rbd-valgrind-unit-tests when built with cmake
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Mykola Golub [Mon, 4 Jul 2016 06:48:07 +0000 (09:48 +0300)]
test: ceph_test_librbd does not need rados_test_stub
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Sage Weil [Mon, 4 Jul 2016 14:55:29 +0000 (10:55 -0400)]
Merge pull request #10117 from xiexingguo/xxg-wip-bluestore-2016-07-04
os/bluestore: fix incorrect pool decoding of bnode
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Mon, 4 Jul 2016 13:53:20 +0000 (21:53 +0800)]
Merge pull request #9755 from dx9/wip-ns-name-uncompress
common/dns_resolve: use ns_name_uncompress instead of ns_name_ntop
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 4 Jul 2016 13:49:41 +0000 (21:49 +0800)]
Merge pull request #9766 from dx9/wip-autotools-arch
configure.ac: Use uname instead of arch.
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Kefu Chai [Mon, 4 Jul 2016 13:47:42 +0000 (21:47 +0800)]
Merge pull request #9772 from tchaikov/wip-close-on-exec
msgr: set close on exec flag
Reviewed-by: Haomai Wang <haomai@xsky.com>
Kefu Chai [Mon, 4 Jul 2016 13:46:55 +0000 (21:46 +0800)]
Merge pull request #9820 from dx9/wip-fix-res-query-detect
configure.ac: fix res_query detection
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 4 Jul 2016 13:46:14 +0000 (21:46 +0800)]
Merge pull request #9845 from dx9/wip-config-basename
common: remove basename() dependency
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 4 Jul 2016 13:44:17 +0000 (21:44 +0800)]
Merge pull request #9969 from liewegas/wip-assert
include/assert: clean up ceph assertion macros
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Kefu Chai [Mon, 4 Jul 2016 13:43:24 +0000 (21:43 +0800)]
Merge pull request #9983 from SUSE/wip-cmake-fix-fcgi-include-dir
cmake: Fix FCGI include directory
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 4 Jul 2016 13:42:34 +0000 (21:42 +0800)]
Merge pull request #10093 from tchaikov/wip-16525
crush: reset bucket->h.items[i] when removing tree item
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Mon, 4 Jul 2016 12:29:16 +0000 (20:29 +0800)]
Merge pull request #9330 from dachary/wip-15176-partprobe
ceph-disk: partprobe should block udev induced BLKRRPART
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 4 Jul 2016 12:19:20 +0000 (20:19 +0800)]
Merge pull request #9394 from xiexingguo/xxg-wip-batchpgstates
mon/PGMonitor: batch filter pg states; add sanity check
Reviewed-by: Kefu Chai <kchai@redhat.com>
huanwen ren [Mon, 4 Jul 2016 12:04:38 +0000 (20:04 +0800)]
mds/CDentry: add path_ino and is_primary in the dump()
path_ino and is_primary are main reference information in the dump(),
so add their
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
huanwen ren [Mon, 4 Jul 2016 11:22:21 +0000 (19:22 +0800)]
mds: fixup dump Formatter' type error
fixup dump Formatter' type error,
dump_int->dump_unsigned
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
Anirudha Bose [Mon, 4 Jul 2016 09:09:07 +0000 (14:39 +0530)]
pybind: Prefer using $TMPDIR if available
Signed-off-by: Anirudha Bose <ani07nov@gmail.com>
xie xingguo [Mon, 4 Jul 2016 09:08:59 +0000 (17:08 +0800)]
os/bluestore: fix incorrect pool decoding of bnode
"pool" is a pointer, and we shall alter its value instead.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Kefu Chai [Mon, 4 Jul 2016 08:59:56 +0000 (16:59 +0800)]
cmake: add ceph-{disk,detect-init} to ALL
Signed-off-by: Kefu Chai <kchai@redhat.com>
Loic Dachary [Thu, 26 May 2016 07:38:47 +0000 (09:38 +0200)]
ceph-disk: partprobe should block udev induced BLKRRPART
Wrap partprobe with flock to stop udev from issuing BLKRRPART because
this is racy and frequently fails with a message like:
Error: Error informing the kernel about modifications to partition
/dev/vdc1 -- Device or resource busy. This means Linux won't know about
any changes you made to /dev/vdc1 until you reboot -- so you shouldn't
mount it or use it in any way before rebooting.
Opening a device (/dev/vdc for instance) in write mode indirectly
triggers a BLKRRPART ioctl from udev (starting version 214 and up)
when the device is closed (see below for the udev release note).
However, if udev fails to acquire an exclusive lock (with
flock(fd, LOCK_EX|LOCK_NB); ) the BLKRRPART ioctl is not issued.
https://github.com/systemd/systemd/blob/
045e00cf16c47bc516c0823d059b7548f3ce9c7c /src/udev/udevd.c#L1042
Acquiring an exclusive lock before running the process that opens the
device in write mode is therefore an effective way to control this
behavior.
git clone git://anonscm.debian.org/pkg-systemd/systemd.git
systemd/NEWS:
CHANGES WITH 214:
* As an experimental feature, udev now tries to lock the
disk device node (flock(LOCK_SH|LOCK_NB)) while it
executes events for the disk or any of its partitions.
Applications like partitioning programs can lock the
disk device node (flock(LOCK_EX)) and claim temporary
device ownership that way; udev will entirely skip all event
handling for this disk and its partitions. If the disk
was opened for writing, the close will trigger a partition
table rescan in udev's "watch" facility, and if needed
synthesize "change" events for the disk and all its partitions.
This is now unconditionally enabled, and if it turns out to
cause major problems, we might turn it on only for specific
devices, or might need to disable it entirely. Device Mapper
devices are excluded from this logic.
Fixes: http://tracker.ceph.com/issues/15176
Signed-off-by: Marius Vollmer <marius.vollmer@redhat com>
Signed-off-by: Loic Dachary <loic@dachary.org>
Orit Wasserman [Mon, 4 Jul 2016 07:37:34 +0000 (09:37 +0200)]
Merge pull request #10077 from yehudasa/wip-16494
rgw: fix for issue 16494
Kefu Chai [Mon, 4 Jul 2016 07:00:50 +0000 (15:00 +0800)]
Merge pull request #10064 from BlaXpirit/brag-py3
Port ceph-brag to Python 3 (+ small fixes)
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 4 Jul 2016 06:08:35 +0000 (14:08 +0800)]
Merge pull request #10115 from runsisi/ss-wip-fix-rpm-spec
ceph.spec.in: fix rpm package building error
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 4 Jul 2016 05:55:02 +0000 (13:55 +0800)]
cmake: do not depend on sse jerasure plugins if not avaiable
should not depend on them if SSE3 and/or SSE4 is not around.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 4 Jul 2016 05:52:54 +0000 (13:52 +0800)]
cmake: do not link libglobal with lttng-ust
only link tracing libraries with lttng-ust, this fixes selinux denial
errors at run-time:
SELinux denials found on ubuntu@mira054.front.sepia.ceph.com: ['type=AVC
msg=audit(
1467543917 .770:131781): avc: denied { open } for pid=17511
comm="ceph-mon" path="/dev/shm/lttng-ust-wait-5" dev="tmpfs" ino=75199
scontext=system_u:system_r:ceph_t:s0
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file', 'type=AVC
msg=audit(
1467543914 .518:131756): avc: denied { open } for pid=17418
comm="ceph-osd" path="/dev/shm/lttng-ust-wait-5" dev="tmpfs" ino=75199
scontext=system_u:system_r:ceph_t:s0
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file', 'type=AVC
msg=audit(
1467543917 .770:131781): avc: denied { read } for pid=17511
comm="ceph-mon" name="lttng-ust-wait-5" dev="tmpfs" ino=75199
scontext=system_u:system_r:ceph_t:s0
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file', 'type=AVC
msg=audit(
1467543914 .518:131756): avc: denied { read } for pid=17418
comm="ceph-osd" name="lttng-ust-wait-5" dev="tmpfs" ino=75199
scontext=system_u:system_r:ceph_t:s0
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file']
Signed-off-by: Kefu Chai <kchai@redhat.com>
runsisi [Mon, 4 Jul 2016 05:52:03 +0000 (13:52 +0800)]
ceph.spec.in: fix rpm package building error as follows:
error: Installed (but unpackaged) file(s) found:
/usr/lib/udev/rules.d/60-ceph-by-parttypeuuid.rules
Signed-off-by: runsisi <runsisi@zte.com.cn>
Kefu Chai [Mon, 4 Jul 2016 03:26:28 +0000 (11:26 +0800)]
cmake: refactor distutils_install_module to follow the pattern of distutils_install_cython_module
Signed-off-by: Kefu Chai <kchai@redhat.com>