]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agomds: take standby_for_fscid into account in FSMap::find_unused() 8536/head
Yan, Zheng [Mon, 11 Apr 2016 14:39:50 +0000 (22:39 +0800)]
mds: take standby_for_fscid into account in FSMap::find_unused()

Fixes: http://tracker.ceph.com/issues/15402
Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years ago10.1.1 v10.1.1
Jenkins Build Slave User [Wed, 6 Apr 2016 00:45:19 +0000 (00:45 +0000)]
10.1.1

9 years agoMerge pull request #8447 from cbodley/wip-cmake-mrun
Orit Wasserman [Tue, 5 Apr 2016 19:42:48 +0000 (21:42 +0200)]
Merge pull request #8447 from cbodley/wip-cmake-mrun

mrun: update path to cmake binaries

9 years agoMerge pull request #8430 from wjin/fix
Kefu Chai [Tue, 5 Apr 2016 16:37:41 +0000 (00:37 +0800)]
Merge pull request #8430 from wjin/fix

crush: fix error log

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agomrun: update path to cmake binaries 8447/head
Casey Bodley [Tue, 5 Apr 2016 14:38:39 +0000 (10:38 -0400)]
mrun: update path to cmake binaries

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #8131 from ErwanAliasr1/evelu-fast-check
Loic Dachary [Tue, 5 Apr 2016 13:52:52 +0000 (15:52 +0200)]
Merge pull request #8131 from ErwanAliasr1/evelu-fast-check

tests: Improving 'make check' execution time

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoconfig: fix setuser_match_path typo
Kefu Chai [Tue, 5 Apr 2016 12:53:25 +0000 (08:53 -0400)]
config: fix setuser_match_path typo

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8433 from ceph/wip-setuser-match-path
Sage Weil [Tue, 5 Apr 2016 12:53:04 +0000 (08:53 -0400)]
Merge pull request #8433 from ceph/wip-setuser-match-path

global/global_init: expand metavariables in setuser_match_path

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8438 from tchaikov/wip-fix-cmake
Orit Wasserman [Tue, 5 Apr 2016 09:40:44 +0000 (11:40 +0200)]
Merge pull request #8438 from tchaikov/wip-fix-cmake

cmake: fix the build of test_rados_api_list

9 years agotests: Removing one ceph-dencoder call in check-generated.sh 8131/head
Erwan Velu [Thu, 24 Mar 2016 14:26:55 +0000 (15:26 +0100)]
tests: Removing one ceph-dencoder call in check-generated.sh

The first ceph-dencoder call is very unlikely to fail and represent a
bottleneck as the parallel computation are only done one this test is
completed.

The idea of this patch is to run immediately the 4 dencoders process in
parallel and check the resulting error code. If one fail then we report the
failure.

As the failure is very unlikely, that saves time and makes the code
simplier too.

Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests: Fixing python statement in ceph_objectstore_tool.py
Erwan Velu [Wed, 23 Mar 2016 13:07:36 +0000 (14:07 +0100)]
tests: Fixing python statement in ceph_objectstore_tool.py

As reported by Kefu, "if ++try == 150" doesn't do what we are
expecting. This is C-style coding which is invalid in Python.

So this patch is splitting the increment and the test.

Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests: Avoiding a fixed 10sec sleep in test_mon_cephdf_commands()
Erwan Velu [Wed, 23 Mar 2016 10:13:48 +0000 (11:13 +0100)]
tests: Avoiding a fixed 10sec sleep in test_mon_cephdf_commands()

The current code was waiting 10s to expect the file being put.
If the file was put in a shorter time than 10s, the test just waits for
nothing reducing the execution speed of that test.

This patch simply check if the file is actually available every second
during 10sec to exit prematurely.

This patch saves exactly 10 sec on a local system, surely a little bit
less on an infra but still saves time.
Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests: Optmizing sleep sequence in cephtool/test.sh
Erwan Velu [Wed, 23 Mar 2016 09:45:33 +0000 (10:45 +0100)]
tests: Optmizing sleep sequence in cephtool/test.sh

The actual code double the wait time between two calls leading to a
possible 511s of waiting time which sounds a little bit excessive.

This patch offer to reduce the global wait time to 300s and test more
often the rados status to exit the loop earlier. In a local test, that
saves 6 secs per run.
Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests: Moving sleep call after action in ceph_watch_wait()
Erwan Velu [Wed, 23 Mar 2016 09:22:28 +0000 (10:22 +0100)]
tests: Moving sleep call after action in ceph_watch_wait()

ceph_watch_wait() is doing a sleep _before_ doing the test which could
stop this loop.

It's better doing the action first as it could exit immediately and
avoid a useless sleep.

That's a minor optimization but everything count when trying to get
something smooth.

Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests: Reducing sleep loops in ceph_objectstore_tool
Erwan Velu [Tue, 22 Mar 2016 10:20:24 +0000 (11:20 +0100)]
tests: Reducing sleep loops in ceph_objectstore_tool

This python script is making excessive sleep calls while running some
ceph commands.

Waiting up to 5 seconds to get the proper health status can be shorten
to avoid the worst case of waiting almost 5 seconds for nothing.

This patch removes also two sleeps calls after a wait_for_health call
which is already supposed to provides a clean state. Waiting
respectively 20 & 15 seconds after that call is just loosing time which
is precious at make check time.

Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests: Reducing sleep time for osd to be up
Erwan Velu [Mon, 21 Mar 2016 15:20:25 +0000 (16:20 +0100)]
tests: Reducing sleep time for osd to be up

OSDs are taking some time to be up but waiting 10 secs seems execessive
here between two loops. In the worst case, we can be in a situation of
waiting 10secs for nothing as we are just a few microsecs after the osd
is up.

This patch simply reduce the sleep from 10 to 1 seconds.
Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests: Optimizing kill_daemons() sleep time
Erwan Velu [Mon, 21 Mar 2016 11:12:13 +0000 (12:12 +0100)]
tests: Optimizing kill_daemons() sleep time

It could sounds like nothing but the actual sleeping rampup is counter
productive.

The code does : kill <proc>; sleep 0; kill <proc>; sleep 0; kill <proc;
sleep 1; and then it grows up 120 seconds by a smooth rampup.

But actually there is almost no chance the process dies so fast meaning
that by default we switch to the sleep 1.

Moving from sleep 0 to sleep 1 doesn't seems a big win but as
kill_daemons() is called very often we can save a lot of time by then
end.

This patch offer to sleep first a 1/10th of second instead of 0 and then
1/20th of second instead of 0.

The sleep call is also moved after the kill call as it's not necessary
waiting before executing the command.

This patch makes the running time of a test like osd-scrub-repair.sh
dropping from 7m30 to 7m7.

Saving another ~30seconds is an interesting win at make check level.
Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests: Making "objectstore" calls parallel in osd-scrub-repair.sh
Erwan Velu [Mon, 21 Mar 2016 10:47:51 +0000 (11:47 +0100)]
tests: Making "objectstore" calls parallel in osd-scrub-repair.sh

osd-scrub-repair is making several similar objectore calls in a
sequential way while they could be easily parallelized.

Each single objectore call can spent up to dozen of seconds so making
the call parallel is saving a lot of time while keeping the code pretty
simple.

This particular patch saves approx. 2 minutes on the actual code on a recent
laptop. The global running time of osd-scrub-repair drops from 9m33 to
7m37 !
Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests: Optimizing wait_for_clean()
Erwan Velu [Mon, 21 Mar 2016 10:30:13 +0000 (11:30 +0100)]
tests: Optimizing wait_for_clean()

wait_for_clean() is a very common call when running the make check.
It does wait the cluster to be stable before continuing.

This script was doing the same calls twice and could be optimized by
making the useful calls only once.

is_clean() function was checking num_pgs & get_num_active_clean()
The main loop itself was also calling get_num_active_clean()

This patch is inlining the is_clean() inside this loop to benefit from a
single get_num_active_clean() call. This avoid a useless call of (ceph +
xmlstarlet).

This patch does move all the 'timer reset' conditions into an else
avoiding spawning other ceph+xmlstarlet call while we already know we
should reset the timer.

The last modification is to reduce the sleeping time as the state of the
cluster is changing very fast.

This whole patch could looks like almost not a big win but for a test
like test/osd/osd-scrub-repair.sh, we drop from 9m56 to 9m30 while
reducing the number system calls.

At the scale of make check, that's a lot of saving.

Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests: Reducing commands in get_num_active_clean()
Erwan Velu [Mon, 21 Mar 2016 10:16:12 +0000 (11:16 +0100)]
tests: Reducing commands in get_num_active_clean()

get_num_active_clean() is called very often but spawn 1 useless process.
The current "grep -v | wc -l" can be easily replaced by "grep -cv" which
do the same while spawning one process less.

Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests: Killing daemons in parallel
Erwan Velu [Mon, 21 Mar 2016 10:14:04 +0000 (11:14 +0100)]
tests: Killing daemons in parallel

The current code of kill_daemons() was killing daemons one after the
other and wait it to actually die before switching to the next one.

This patch makes the kill_daemons() loop being run in parallel to avoid
this bottleneck.

Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests: Adding parallelism to check-generated.sh
Erwan Velu [Wed, 16 Mar 2016 15:54:35 +0000 (16:54 +0100)]
tests: Adding parallelism to check-generated.sh

This script had the following performance issue :
- 4 ceph-dencoders spawn sequentialy
- running twice the same dencoder command

This patch is adding parallelism around the 4 sequential calls but also
prevent from testing the deterministic feature twice.

On a recent laptop, this patch drops the running time from 7mn to 3m46
while keeping the loadavg < 2.

Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests: Adding parallelism for sequential ceph-dencoder calls
Erwan Velu [Wed, 16 Mar 2016 13:24:04 +0000 (14:24 +0100)]
tests: Adding parallelism for sequential ceph-dencoder calls

The current code was running sequentially two ceph-dencoder calls.
This process is executed pretty fast but adding sequentiality and by the number
of loops to execute, it have a cost.

This patch is just making this two calls being run in parallel.

As a result, the test/encoding/readable.sh test is running in 4m50 instead of 6.
The associate loadavg isn't impacted as it stays at 6 while being run with
nproc=8.

This patch save 1/6th of building time without impact the loadavg.

Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests: Adding parallelism to encoding/readable.sh
Erwan Velu [Tue, 15 Mar 2016 15:00:17 +0000 (16:00 +0100)]
tests: Adding parallelism to encoding/readable.sh

When running make -j x check, we face a weird situation where the makefile
targets are spawn in parallel up to "x" but one of those target is very very
long and sequential.

The "readable.sh" test is trying to run ~7.9K tests where 5.3K are actually
executed.

The current code is taking 23mn on a recent laptop (Intel(R) Core(TM)
i7-4810MQ CPU @ 2.80GHz, 32GB of RAM & SSD).

This patch implements parallelism to speed up this process which is not really CPU and
neither IO bound.

By default, readable.sh is now using the number of logical processors to determine
the level of parallelism (by using nproc). If needed, defining the MAX_PARALLEL_JOBS
variable will override this default value.

On the same system, where nproc=8, the resulting execution time is 5m55 seconds :
4x faster than the original code.

The global 'make check' is therefore getting faster too and dropped from 30 to
16 minutes : 2x faster than the original code.

Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agotests: Adding parallelism helpers in ceph-helpers.sh
Erwan Velu [Thu, 24 Mar 2016 09:57:38 +0000 (10:57 +0100)]
tests: Adding parallelism helpers in ceph-helpers.sh

This commit introduce two new functions in ceph-helpers.sh to ease
parallelism in tests.

It's based on two functions : run_in_background() & wait_background()

The first one allow you to spawn processes or functions in background and saves
the associated pid in a variable passed as first argument.

The second one waits for thoses pids to complete and report their exit status.
If one or more failed then wait_background() reports a failure.

A typical usage looks like :

 pids1=""
 run_in_background pids1 bash -c 'sleep 5; exit 0'
 run_in_background pids1 bash -c 'sleep 1; exit 1'
 run_in_background pids1 my_bash_function
 wait_background pids1

The variable that contains pids is local making possible to do nested calls of
thoses two new functions.

Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agocmake: fix the build of test_rados_api_list 8438/head
Kefu Chai [Tue, 5 Apr 2016 06:19:55 +0000 (14:19 +0800)]
cmake: fix the build of test_rados_api_list

the libglobal linkage was added in 769c0af, so add it to cmake
accordingly.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8435 from dillaman/wip-15370
Josh Durgin [Tue, 5 Apr 2016 01:11:48 +0000 (18:11 -0700)]
Merge pull request #8435 from dillaman/wip-15370

test: TestMirroringWatcher test cases were not closing images

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agotest: TestMirroringWatcher test cases were not closing images 8435/head
Jason Dillaman [Mon, 4 Apr 2016 22:03:59 +0000 (18:03 -0400)]
test: TestMirroringWatcher test cases were not closing images

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoglobal/global_init: expand metavariables in setuser_match_path 8433/head
Sage Weil [Mon, 4 Apr 2016 21:14:33 +0000 (17:14 -0400)]
global/global_init: expand metavariables in setuser_match_path

Back in 8290536d7d373ea6dddd8cdb55ac71e42b5278e2 we moved the
apply_changse (and, indirectly, config var expansion) to happen
after set do the drop privileges, but we need the metavar
expansion for setuser_match_path (which docs suggest setting to
/var/lib/ceph/$type/$cluster-$id).

Fixes: http://tracker.ceph.com/issues/15365
Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8378 from liewegas/wip-pgls-pgid
Sage Weil [Mon, 4 Apr 2016 20:53:51 +0000 (16:53 -0400)]
Merge pull request #8378 from liewegas/wip-pgls-pgid

osdc/Objecter: use full pgid hash in PGNLS ops

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #8069 from somnathr/wip-dyn-throttle-doc
Samuel Just [Mon, 4 Apr 2016 19:54:32 +0000 (12:54 -0700)]
Merge pull request #8069 from somnathr/wip-dyn-throttle-doc

Adding documentation on how to use new dynamic throttle scheme

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #8429 from ErwanAliasr1/evelu-broken-cephtool-test-mon
Sage Weil [Mon, 4 Apr 2016 19:48:10 +0000 (15:48 -0400)]
Merge pull request #8429 from ErwanAliasr1/evelu-broken-cephtool-test-mon

tests: Fixing broken test/cephtool-test-mon.sh test

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #8411 from theanalyst/rgw/unused-var
Orit Wasserman [Mon, 4 Apr 2016 18:22:43 +0000 (20:22 +0200)]
Merge pull request #8411 from theanalyst/rgw/unused-var

rgw_admin: remove unused parent_period arg
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #8426 from dillaman/wip-striper-logs
Josh Durgin [Mon, 4 Apr 2016 17:01:52 +0000 (10:01 -0700)]
Merge pull request #8426 from dillaman/wip-striper-logs

Striper: reduce assemble_result log level

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agocrush: fix error log 8430/head
Wei Jin [Mon, 4 Apr 2016 15:52:04 +0000 (23:52 +0800)]
crush: fix error log

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
9 years agoMerge pull request #8421 from tchaikov/wip-noexcept
Kefu Chai [Mon, 4 Apr 2016 15:44:43 +0000 (23:44 +0800)]
Merge pull request #8421 from tchaikov/wip-noexcept

os/ObjectStore: add noexcept to ensure move ctor is used

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agotests: Fixing broken test/cephtool-test-mon.sh test 8429/head
Erwan Velu [Mon, 4 Apr 2016 14:55:08 +0000 (16:55 +0200)]
tests: Fixing broken test/cephtool-test-mon.sh test

Since the merge of pr #7693, 'ceph command' to get the help is invalid.
As a result, 'test/cephtool-test-mon.sh' test was broken

This patch simply change the 'ceph command' by a 'ceph --help command'

Since this change the test is passing again.

Signed-off-by: Erwan Velu <erwan@redhat.com>
9 years agoMerge pull request #8422 from ceph/wip-fix-cmake
Casey Bodley [Mon, 4 Apr 2016 14:35:20 +0000 (10:35 -0400)]
Merge pull request #8422 from ceph/wip-fix-cmake

CMake: For CMake version <= 2.8.11, use LINK_PRIVATE

9 years agoMerge pull request #8410 from theanalyst/rgw/help-args
Casey Bodley [Mon, 4 Apr 2016 14:28:38 +0000 (10:28 -0400)]
Merge pull request #8410 from theanalyst/rgw/help-args

rgw: add a few more help options in admin interface

9 years agoMerge pull request #8393 from jcsp/wip-15309-2
Sage Weil [Mon, 4 Apr 2016 13:42:57 +0000 (09:42 -0400)]
Merge pull request #8393 from jcsp/wip-15309-2

qa: update rest test cephfs calls (part 2)

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8402 from ilc/master
Sage Weil [Mon, 4 Apr 2016 13:32:12 +0000 (09:32 -0400)]
Merge pull request #8402 from ilc/master

configure: Add -D_LARGEFILE64_SOURCE to Linux build.

9 years agoMerge pull request #8420 from dzafman/wip-15347
Sage Weil [Mon, 4 Apr 2016 12:56:23 +0000 (08:56 -0400)]
Merge pull request #8420 from dzafman/wip-15347

test: Fix test to run with btrfs which has snap_### dirs

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8423 from wjin/fix
Sage Weil [Mon, 4 Apr 2016 12:55:53 +0000 (08:55 -0400)]
Merge pull request #8423 from wjin/fix

osdmap: rm nonused variable

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoqa/workunits/rbd: qemu tests need to wait for image to be createdReviewe
Sage Weil [Mon, 4 Apr 2016 12:55:14 +0000 (08:55 -0400)]
qa/workunits/rbd: qemu tests need to wait for image to be createdReviewe

qa/workunits/rbd: qemu tests need to wait for image to be created

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8427 from ghxandsky/master
Sage Weil [Mon, 4 Apr 2016 12:54:11 +0000 (08:54 -0400)]
Merge pull request #8427 from ghxandsky/master

set 128MB tcmalloc cache size by bytes

9 years agoset 128MB tcmalloc cache size by bytes 8427/head
Star Guo [Mon, 4 Apr 2016 05:41:52 +0000 (13:41 +0800)]
set 128MB tcmalloc cache size by bytes

Signed-off-by: Star Guo <star.guo@mevoco.com>
9 years agoMerge pull request #8314 from dx9/wip-unittest-erasure-code-plugin
Sage Weil [Sun, 3 Apr 2016 22:13:28 +0000 (18:13 -0400)]
Merge pull request #8314 from dx9/wip-unittest-erasure-code-plugin

unittest_erasure_code_plugin: fix deadlock (Alpine)

9 years agoMerge pull request #7693 from aclamk/auto_complete_python
Sage Weil [Sun, 3 Apr 2016 22:12:03 +0000 (18:12 -0400)]
Merge pull request #7693 from aclamk/auto_complete_python

ceph: bash auto complete for CLI based on mon command descriptions

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8366 from yangdongsheng/trival
Sage Weil [Sun, 3 Apr 2016 22:11:18 +0000 (18:11 -0400)]
Merge pull request #8366 from yangdongsheng/trival

build: fix compiling warnings

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge remote-tracking branch 'gh/jewel'
Sage Weil [Sun, 3 Apr 2016 18:28:23 +0000 (14:28 -0400)]
Merge remote-tracking branch 'gh/jewel'

9 years agoStriper: reduce assemble_result log level 8426/head
Jason Dillaman [Sun, 3 Apr 2016 14:52:10 +0000 (10:52 -0400)]
Striper: reduce assemble_result log level

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoqa/workunits/rbd: qemu tests need to wait for image to be created 8425/head
Jason Dillaman [Sun, 3 Apr 2016 14:29:38 +0000 (10:29 -0400)]
qa/workunits/rbd: qemu tests need to wait for image to be created

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoceph_test_rados_api_tier: parse env 8378/head
Sage Weil [Sun, 3 Apr 2016 13:49:07 +0000 (09:49 -0400)]
ceph_test_rados_api_tier: parse env

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_rados_api_list: parse env
Sage Weil [Sun, 3 Apr 2016 13:45:23 +0000 (09:45 -0400)]
ceph_test_rados_api_list: parse env

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd/ReplicatedPG: tolerate pgls commands with full hash
Sage Weil [Sun, 3 Apr 2016 13:35:03 +0000 (09:35 -0400)]
osd/ReplicatedPG: tolerate pgls commands with full hash

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd/ReplicatedPG: discard pgnls op that is outside pg bounds
Sage Weil [Thu, 31 Mar 2016 14:23:36 +0000 (10:23 -0400)]
osd/ReplicatedPG: discard pgnls op that is outside pg bounds

This should only happen with a buggy client, but we should avoid crashing,
and send a polite error message back.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosdc/Objecter: use full hash value for pg[n]ls ops
Sage Weil [Wed, 30 Mar 2016 15:55:55 +0000 (11:55 -0400)]
osdc/Objecter: use full hash value for pg[n]ls ops

Normal ops do this so they can behave when racing with split; pgnls ops
are no different.

In particular, this fixes a bug where we have an old OSDMap that doesn't
reflect a split, and the OSD replies with a 'next' value of the PG's new
max.  If we resend the same value to that PG, it'll be out of bounds,
and BlueStore will notice.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd/ReplicatedPG: fix typo
Sage Weil [Wed, 30 Mar 2016 15:43:01 +0000 (11:43 -0400)]
osd/ReplicatedPG: fix typo

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #8380 from dillaman/wip-cls-fadvise
Sage Weil [Sun, 3 Apr 2016 13:13:31 +0000 (09:13 -0400)]
Merge pull request #8380 from dillaman/wip-cls-fadvise

cls_rbd: pass WILLNEED fadvise flags during object map update

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoosdmap: rm nonused variable 8423/head
Wei Jin [Sun, 3 Apr 2016 06:20:16 +0000 (14:20 +0800)]
osdmap: rm nonused variable

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
9 years agoCMake: For CMake version <= 2.8.11, use LINK_PRIVATE 8422/head
Haomai Wang [Sun, 3 Apr 2016 05:31:07 +0000 (13:31 +0800)]
CMake: For CMake version <= 2.8.11, use LINK_PRIVATE

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agoos/ObjectStore: add noexcept to ensure move ctor is used 8421/head
Kefu Chai [Sat, 2 Apr 2016 19:33:15 +0000 (03:33 +0800)]
os/ObjectStore: add noexcept to ensure move ctor is used

otherwise vector::push_back() will use the copy ctor if it resizes,
to enforce its strong exception guarantee.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge branch 'wip-cycles'
Josh Durgin [Sat, 2 Apr 2016 19:35:09 +0000 (12:35 -0700)]
Merge branch 'wip-cycles'

common/Cycles: Do not initialize Cycles globally

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agocommon/Cycles: Do not initialize Cycles globally.
Richard W.M. Jones [Mon, 21 Mar 2016 14:24:35 +0000 (14:24 +0000)]
common/Cycles: Do not initialize Cycles globally.

Move initialization to the few tests that actually use it.

Fixes: http://tracker.ceph.com/issues/15225
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
9 years agounittest_erasure_code_plugin: fix deadlock caused by locked mutex in cancelled thread 8314/head
John Coyle [Sat, 26 Mar 2016 03:05:41 +0000 (23:05 -0400)]
unittest_erasure_code_plugin: fix deadlock caused by locked mutex in cancelled thread

Added unlock when thread is cancelled.

Signed-off-by: John Coyle <dx9err@gmail.com>
9 years agoMerge pull request #8193 from liewegas/wip-bluestore
Sage Weil [Fri, 1 Apr 2016 21:52:47 +0000 (17:52 -0400)]
Merge pull request #8193 from liewegas/wip-bluestore

os/bluestore: a few fixes

9 years agotest: Fix test to run with btrfs which has snap_### dirs 8420/head
David Zafman [Fri, 1 Apr 2016 21:33:14 +0000 (14:33 -0700)]
test: Fix test to run with btrfs which has snap_### dirs

Fixes: http://tracker.ceph.com/issues/15347
Signed-off-by: David Zafman <dzafman@redhat.com>
9 years agoMerge pull request #8404 from cbodley/wip-rgw-realm-pull-fix
Orit Wasserman [Fri, 1 Apr 2016 18:22:51 +0000 (20:22 +0200)]
Merge pull request #8404 from cbodley/wip-rgw-realm-pull-fix

radosgw-admin: fix for 'realm pull'
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #8417 from dillaman/wip-librbd-mirroring-unsupported
Josh Durgin [Fri, 1 Apr 2016 17:54:02 +0000 (10:54 -0700)]
Merge pull request #8417 from dillaman/wip-librbd-mirroring-unsupported

librbd: avoid throwing error if mirroring is unsupported

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #8325 from trociny/wip-rbd-mirror-test-misc
Josh Durgin [Fri, 1 Apr 2016 16:55:20 +0000 (09:55 -0700)]
Merge pull request #8325 from trociny/wip-rbd-mirror-test-misc

test: rbd-mirror: script improvements for manual testing

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #8413 from runsisi/wip-fix-eexist
Jason Dillaman [Fri, 1 Apr 2016 16:16:12 +0000 (11:16 -0500)]
Merge pull request #8413 from runsisi/wip-fix-eexist

cls_journal: fix -EEXIST checking

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: avoid throwing error if mirroring is unsupported 8417/head
Jason Dillaman [Fri, 1 Apr 2016 16:08:12 +0000 (12:08 -0400)]
librbd: avoid throwing error if mirroring is unsupported

Attempting to remove an image will remove the image from the mirroring
directory.  However, if the OSD is older and doesn't support this
new feature, avoid throwing an error.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorgw: add exclusive flag to set_as_default() 8404/head
Casey Bodley [Thu, 31 Mar 2016 21:19:12 +0000 (17:19 -0400)]
rgw: add exclusive flag to set_as_default()

this dodges the race in RGWRealm::create() and RGWZoneParams::create()
that decides whether to set the new object as a default. by calling
set_as_default() with exclusive=true, it will fail with EEXIST if a
default is already set

it also fixes an issue with 'realm pull' on a secondary zone, where a
'default' zone may be created but never actually set_as_default()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw: add exclusive flag to RGWRealm::create_control
Casey Bodley [Thu, 31 Mar 2016 16:16:08 +0000 (12:16 -0400)]
rgw: add exclusive flag to RGWRealm::create_control

this was causing failures in 'radosgw-admin realm pull':

  ERROR creating control for new realm realm0: (17) File exists

'realm pull' calls RGWRealm::create() with exclusive=false, but
RGWRealm::create_control() was using exclusive=true

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agorgw_admin: improve the orphans find help 8410/head
Abhishek Lekshmanan [Fri, 1 Apr 2016 11:46:30 +0000 (13:46 +0200)]
rgw_admin: improve the orphans find help

Adding  a few missing commandline switches and improve the help message

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
9 years agoMerge pull request #8406 from dmick/jewel
Kefu Chai [Fri, 1 Apr 2016 14:26:26 +0000 (22:26 +0800)]
Merge pull request #8406 from dmick/jewel

debian/rules: put init-ceph in /etc/init.d/ceph, not ceph-base

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #8324 from tchaikov/wip-mon-cleanup
Kefu Chai [Fri, 1 Apr 2016 14:19:46 +0000 (22:19 +0800)]
Merge pull request #8324 from tchaikov/wip-mon-cleanup

mon: remove remove_legacy_versions()

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
9 years agorgw: add a few missing cmdline switches in help
Abhishek Lekshmanan [Fri, 1 Apr 2016 11:45:09 +0000 (13:45 +0200)]
rgw: add a few missing cmdline switches in help

Add a few missing commandlien switches for zone
operations (zone_id,source_zone,read_only) to the help options

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
9 years agocls_journal: fix -EEXIST checking 8413/head
runsisi [Fri, 1 Apr 2016 12:56:26 +0000 (20:56 +0800)]
cls_journal: fix -EEXIST checking

Signed-off-by: runsisi <runsisi@zte.com.cn>
9 years agorgw_admin: remove unused parent_period arg 8411/head
Abhishek Lekshmanan [Fri, 1 Apr 2016 12:40:12 +0000 (14:40 +0200)]
rgw_admin: remove unused parent_period arg

This variable seems to be unused, removing from help and code

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
9 years agodebian/rules: put init-ceph in /etc/init.d/ceph, not ceph-base 8406/head
Dan Mick [Fri, 1 Apr 2016 03:30:00 +0000 (20:30 -0700)]
debian/rules: put init-ceph in /etc/init.d/ceph, not ceph-base

When the package name changed from ceph to ceph-base, dh_installinit
started installing the init script into /etc/init.d/ceph-base.  Fix
this by using --name ceph with dh_installinit, which requires
1) naming the .init file ceph-base.ceph.init, and
2) calling dh_installinit separately for each package

Fixes: http://tracker.ceph.com/issues/15329
Signed-off-by: Dan Mick <dan.mick@redhat.com>
9 years agoMerge pull request #8371 from runsisi/wip-fix-eexist
Jason Dillaman [Thu, 31 Mar 2016 18:34:26 +0000 (13:34 -0500)]
Merge pull request #8371 from runsisi/wip-fix-eexist

cls_rbd: fix -EEXIST checking in cls::rbd::image_set

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoconfigure: Add -D_LARGEFILE64_SOURCE to Linux build. 8402/head
Ira Cooper [Thu, 31 Mar 2016 16:30:45 +0000 (12:30 -0400)]
configure: Add -D_LARGEFILE64_SOURCE to Linux build.

Without -D_LARGEFILE64_SOURCE we can't build against libxfs,
because off64_t must be defined.

Signed-off-by: Ira Cooper <ira@redhat.com>
9 years agoMerge pull request #8400 from qhjindev/fix_mon
Sage Weil [Thu, 31 Mar 2016 15:21:50 +0000 (11:21 -0400)]
Merge pull request #8400 from qhjindev/fix_mon

mon: remove unnecessary comment for update_from_paxos

9 years agoMerge pull request #8399 from oritwas/wip-cmake-mirrorwatcher
Casey Bodley [Thu, 31 Mar 2016 15:05:14 +0000 (11:05 -0400)]
Merge pull request #8399 from oritwas/wip-cmake-mirrorwatcher

cmake: add missing librbd/MirrorWatcher.cc and librd/ObjectWatcher.cc

9 years agomon: remove unnecessary comment for update_from_paxos 8400/head
Qinghua Jin [Thu, 31 Mar 2016 14:37:12 +0000 (22:37 +0800)]
mon: remove unnecessary comment for update_from_paxos

The return value comment for update_from_paxos is unnecessary.

Signed-off-by: Qinghua Jin <qhjin_dev@163.com>
9 years agocmake: add missing librbd/MirrorWatcher.cc and librd/ObjectWatcher.cc 8399/head
Orit Wasserman [Thu, 31 Mar 2016 13:59:32 +0000 (15:59 +0200)]
cmake: add missing librbd/MirrorWatcher.cc and librd/ObjectWatcher.cc

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge pull request #8394 from xiexingguo/xxg-wip-compile
Orit Wasserman [Thu, 31 Mar 2016 13:57:55 +0000 (15:57 +0200)]
Merge pull request #8394 from xiexingguo/xxg-wip-compile

rgw: fix compiling error

9 years agoMerge pull request #8358 from dachary/wip-releases
Loic Dachary [Thu, 31 Mar 2016 13:16:29 +0000 (15:16 +0200)]
Merge pull request #8358 from dachary/wip-releases

releases: what is merged where and when ?

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.cz>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoreleases: what is merged where and when ? 8358/head
Loic Dachary [Tue, 29 Mar 2016 17:17:14 +0000 (19:17 +0200)]
releases: what is merged where and when ?

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoreleases: update understanding the release cycle
Loic Dachary [Tue, 29 Mar 2016 17:16:31 +0000 (19:16 +0200)]
releases: update understanding the release cycle

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agorelease-notes: v10.0.5 release notes
Loic Dachary [Tue, 29 Mar 2016 16:16:53 +0000 (18:16 +0200)]
release-notes: v10.0.5 release notes

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #7875 from badone/wip-coverity-rgw_file-unused
Orit Wasserman [Thu, 31 Mar 2016 12:52:02 +0000 (14:52 +0200)]
Merge pull request #7875 from badone/wip-coverity-rgw_file-unused

[rgw] Check return code in RGWFileHandle::write

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agorgw: fix compiling error 8394/head
xie xingguo [Thu, 31 Mar 2016 11:48:38 +0000 (19:48 +0800)]
rgw: fix compiling error

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agoMerge pull request #8200 from H3C/wip-rgw-bugfixb
Orit Wasserman [Thu, 31 Mar 2016 11:43:49 +0000 (13:43 +0200)]
Merge pull request #8200 from H3C/wip-rgw-bugfixb

rgw/rgw_admin:fix bug about list and stats command
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoqa/workunits/rbd: use cluster1/2 instead local/remote as cluster names 8325/head
Mykola Golub [Thu, 31 Mar 2016 10:57:17 +0000 (13:57 +0300)]
qa/workunits/rbd: use cluster1/2 instead local/remote as cluster names

After adding tests that start daemons in both clusters, local/remote
names look confusing.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoqa/workunits/rbd: add helper to determine rbd-mirror local cluster
Mykola Golub [Thu, 31 Mar 2016 10:34:30 +0000 (13:34 +0300)]
qa/workunits/rbd: add helper to determine rbd-mirror local cluster

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoqa: update rest test cephfs calls (part 2) 8393/head
John Spray [Wed, 30 Mar 2016 10:43:22 +0000 (11:43 +0100)]
qa: update rest test cephfs calls (part 2)

"mds stat" now gives fsmap output rather than
mdsmap.  Update the rest api test's expectations.

Fixes: http://tracker.ceph.com/issues/15309
Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #8373 from wjwithagen/patch-4
Loic Dachary [Thu, 31 Mar 2016 10:21:56 +0000 (12:21 +0200)]
Merge pull request #8373 from wjwithagen/patch-4

ceph-detect-init/run-tox.sh: FreeBSD: No init detect

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #8387 from dreamhost/wip-mp-listpartresult-etag
Orit Wasserman [Thu, 31 Mar 2016 09:55:13 +0000 (11:55 +0200)]
Merge pull request #8387 from dreamhost/wip-mp-listpartresult-etag

rgw: Multipart ListPartsResult ETag quotes

Reviewed-by: Orit Wasserman <owasserm@redhat.com>