Commit Graph

55890 Commits

Author SHA1 Message Date
Kefu Chai
0250214529 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>
2016-07-07 21:45:52 +08:00
Jason Dillaman
fb7a1edbf7 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>
2016-07-07 08:15:04 -04:00
Jason Dillaman
7e43e4905b 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>
2016-07-07 08:09:40 -04:00
Abhishek Lekshmanan
9c7de9bd27
rgw: test_multi typo fix in log message
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-07-07 11:48:30 +02:00
Abhishek Lekshmanan
51bad6e332
rgw: test_multi.py avoid creating mds
Avoid creating mds' while bootstrapping new clusters from test_multi.py
as we only require an rgw+ceph cluster for the tests

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-07-07 11:37:58 +02:00
Kefu Chai
c49d95db10 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>
2016-07-07 16:55:37 +08:00
Tim Serong
234b06680b 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>
2016-07-07 16:25:34 +10:00
Kefu Chai
7dedce8a6e 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>
2016-07-07 14:23:56 +08:00
Kefu Chai
cbc9839684 Merge pull request #9704 from badone/wip-ceph-authtool-fixes
authtool: Enhance argument combinations validation

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-07-07 14:13:31 +08:00
Vikhyat Umrao
28c35fb0e9 mon : change osdmap flags set and unset message
Fixes: http://tracker.ceph.com/issues/15983

Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
2016-07-07 11:40:42 +05:30
Kefu Chai
146d2b15ff 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>
2016-07-07 12:41:57 +08:00
Kefu Chai
152b7b6c90 Revert "cmake: add ceph-{disk,detect-init} to ALL"
This reverts commit 19c0731751.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-07 12:11:05 +08:00
Kefu Chai
a38aa4a2e1 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>
2016-07-07 12:11:05 +08:00
Kefu Chai
3a1dea7c74 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>
2016-07-07 12:11:05 +08:00
Kefu Chai
06195b3476 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>
2016-07-07 12:11:05 +08:00
Kefu Chai
f3c8c28b60 test: vstart_wrapper.sh run tests in $TMPDIR
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-07 12:11:05 +08:00
Kefu Chai
444d37f2b0 run-make-check.sh: run "make check" with a unique $TMPDIR
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-07 12:11:05 +08:00
xie xingguo
67d966711d os/bluestore: use p2 macros to simplify _do_write_small() process
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-07-07 10:47:54 +08:00
Josh Durgin
fffb8fc0db 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>
2016-07-06 16:19:52 -07:00
Josh Durgin
d402cac7e6 Merge pull request #9749 from songbaisen/a10
mon: remove the redundant is_active judge in PaxosService

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-07-06 16:18:51 -07:00
Josh Durgin
c3806ff160 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>
2016-07-06 16:18:00 -07:00
Josh Durgin
2592bc72a0 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>
2016-07-06 16:17:20 -07:00
Josh Durgin
69b484331b 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>
2016-07-06 16:16:18 -07:00
Josh Durgin
1c7ad3523d 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>
2016-07-06 16:01:50 -07:00
Sage Weil
a4250c7459 Merge pull request #10109 from xiexingguo/xxg-wip-bluestore-2016-07-02
os/bluestore: simplify LRUCache::trim()

Reviewed-by: Sage Weil <sage@redhat.com>
2016-07-06 19:01:06 -04:00
Josh Durgin
3134a2dbc1 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>
2016-07-06 15:57:28 -07:00
Josh Durgin
9c26b7c109 Merge pull request #8959 from hjwsm1989/hj-test
os/filestore/LFNIndex: remove unused variable 'subdir_path'

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-07-06 15:56:13 -07:00
Josh Durgin
127862c674 Merge pull request #8687 from mslovy/wip-peering-msg-priority
message: optimization for message priority strategy

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-07-06 15:55:30 -07:00
Sage Weil
58bd756d95 Merge pull request #10014 from gaowanlong/indent_caused_compile_warning
build: fix wrong indent caused compile warning

Reviewed-by: Sage Weil <sage@redhat.com>
2016-07-06 14:41:42 -04:00
Mykola Golub
25ef9fd8c1 Merge pull request #9970 from dillaman/wip-16349
rbd-mirror: gracefully handle being blacklisted

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-07-06 21:33:59 +03:00
Jason Dillaman
ea7d0eab55 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>
2016-07-06 13:51:42 -04:00
Michal Jarzabek
7dea307801 msg/AsyncMessenger: remove unused function
Remove create_anon_connection() function.

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2016-07-06 18:32:39 +01:00
Ali Maredia
0bd2abae70 Merge pull request #10016 from ceph/wip-cmake-rpm
rpm: build rpm with cmake

Reviewed-by: Ali Maredia <amaredia@redhat.com>
2016-07-06 12:54:09 -04:00
Sage Weil
96f6fc0643 run-make-check.sh: run make check with cmake if do_cmake.sh is available
Signed-off-by: Sage Weil <sage@redhat.com>
2016-07-06 23:48:45 +08:00
Jason Dillaman
2f55aa5e33 rbd-mirror: gracefully restart pool replayer when blacklisted
Fixes: http://tracker.ceph.com/issues/16349
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-07-06 11:36:28 -04:00
Jason Dillaman
1fc27545c2 rbd-mirror: do not clear image replayer error code after shut down
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-07-06 11:36:28 -04:00
Jason Dillaman
03c2aec4c6 rbd-mirror: image deleter should use provided librados connection
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-07-06 11:36:28 -04:00
Jason Dillaman
48f301decb rbd-mirror: each pool replayer should use its own librados connection
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-07-06 11:36:11 -04:00
Kefu Chai
c70f120368 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>
2016-07-06 21:23:07 +08:00
John Spray
0a0b0eb9a5 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>
2016-07-06 14:16:21 +01:00
John Spray
b7ba134782 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>
2016-07-06 14:13:45 +01:00
John Spray
40208315c9 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>
2016-07-06 14:12:55 +01:00
John Spray
47d3abe62e 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>
2016-07-06 14:12:09 +01:00
John Spray
835fdcac2d Merge pull request #9971 from fullerdj/wip-djf-16288
mds: Kill C_SaferCond in evict_sessions()

Reviewed-by: John Spray <john.spray@redhat.com>
2016-07-06 14:11:21 +01:00
Kefu Chai
20bd30ffa1 test: test_{compression_plugin,async_compressor}: do not copy plugins
do not copy plugins in unittest_{compression_plugin,async_compressor}
anymore.
42c640e searches in conf->plugin_dir also, if conf->plugin_dir/$type
does not have the requested plugin.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-06 20:01:50 +08:00
Kefu Chai
9c6c4d8fef osd: increment stas on recovery pull also
PGMap::recovery_rate_summary() summaries the recovery progress from
a pool's
pool_stat_t.stats.sum.num_{objects_recovered,bytes_recovered,keys_recovered},
now we only increment stats on completion of recovery push, but there
are chances that a PG recovers by pulling data from replicas to primary.
in that case, teuthology will erroneously consider recovery hung: a zero
recovering_keys_per_sec or recovering_bytes_per_sec or
recovering_objects_per_sec. so we should increment stats on pull as
well.

Fixes: http://tracker.ceph.com/issues/16277
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-06 20:00:58 +08:00
Mykola Golub
9737a8d6cb 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>
2016-07-06 12:59:25 +03:00
Jason Dillaman
a21b3df0ad cmake: fix incorrect dependencies to librados
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-07-06 00:12:03 -04:00
Kefu Chai
c8b36efd15 rpm: build rpm with cmake
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-07-06 10:07:20 +08:00
Jason Dillaman
b342bf8ea1 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>
2016-07-05 21:44:32 -04:00