Commit Graph

55825 Commits

Author SHA1 Message Date
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
Michal Jarzabek
9da5bd93da msg/AsyncMessenger.cc: remove unneeded cast
send_message is a virtual function, so there is no need to be casting
the pointer to AsyncConnection.

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2016-07-05 19:20:34 +01:00
Samuel Just
2daf3ef220 Merge pull request #10094 from athanatos/wip-throttle-test
test/common/Throttle.cc: fix race in shutdown

Reviewed-by: David Zafman <dzafman@redhat.com>
2016-07-05 10:50:50 -07:00
Casey Bodley
953fdecf15 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>
2016-07-05 13:37:15 -04:00
Ali Maredia
59a46b96a5 Merge pull request #10112 from tchaikov/wip-cmake
cmake changes

Reviewed-by: Ali Maredia <amaredia@redhat.com>
2016-07-05 11:29:24 -04:00
Jason Dillaman
a700116ded 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>
2016-07-05 08:27:42 -04:00
Vladislav Odintsov
109cfc2168 init-ceph: do not use systemd-run in sysvinit
`systemd-run` logic in initscripts was introduced because of ticket
http://tracker.ceph.com/issues/7627.

If we have systemd-based operating system, we should use systemd unit files
from systemd directory to start/stop ceph daemons.
Otherwise, `daemon()` from `/etc/init.d/functions` on systemd distro starts service
in `system.slice` and everything works well.

`systemd-run` can not be run on non-systemd distros, so it's not needed
on SysV systems.

also, ceph-disk is now able to run the "systemctl"
to enable and start the ceph-osd, and ceph-deploy is also now
playing well with systemd when it comes to ceph-mon and ceph-mds

Fixes: http://tracker.ceph.com/issues/16440

Signed-off-by: Vladislav Odintsov <odivlad@gmail.com>
2016-07-05 15:03:25 +03:00
Vladislav Odintsov
1fd4f92a02 init-radosgw: do not use systemd-run in sysvinit
`systemd-run` logic in initscripts was introduced because of ticket
http://tracker.ceph.com/issues/7627.

If we have systemd-based operating system, we should use systemd unit files
from systemd directory to start/stop ceph daemons.
Otherwise, `daemon()` from `/etc/init.d/functions` on systemd distro starts service
in `system.slice` and everything works well.

`systemd-run` can not be run on non-systemd distros, so it's not needed
on SysV systems.

also, ceph-disk is now able to run the "systemctl"
to enable and start the ceph-osd, and ceph-deploy is also now
playing well with systemd when it comes to ceph-mon and ceph-mds

Fixes: http://tracker.ceph.com/issues/16440

Signed-off-by: Vladislav Odintsov <odivlad@gmail.com>
2016-07-05 15:03:17 +03:00
Kefu Chai
0c13676126 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>
2016-07-05 17:46:39 +08:00
Mykola Golub
8a1fa024a4 Merge pull request #10072 from dillaman/wip-16561
librbd: failed assertion after shrinking a clone image twice

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2016-07-05 11:44:45 +03:00